fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
[gnulib.git] / ChangeLog
blob10a99144547129e52fdee09d7c6f670c1778385e
1 2018-10-16  Bruno Haible  <bruno@clisp.org>
3         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
4         * lib/fsusage.c: Remove _SEQUENT_ case.
5         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
6         * lib/mountlist.c: Don't test for MNTTABNAME.
7         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
8         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
9         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
10         * lib/stat-size.h: Don't mention the Sequent bug.
11         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
13 2018-10-16  Bruno Haible  <bruno@clisp.org>
15         fsusage: Remove support for AIX 3.
16         * lib/fsusage.c: Remove code for AIX 3.
17         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
19 2018-10-16  Bruno Haible  <bruno@clisp.org>
21         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
22         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
23         * lib/fsusage.c: Remove code for AIX PS/2.
24         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
25         * lib/getloadavg.c: Likewise.
27 2018-10-16  Bruno Haible  <bruno@clisp.org>
29         getloadavg: Remove support for HP-UX on m68k.
30         * lib/getloadavg.c: Remove hp9000s300 case.
32 2018-10-16  Bruno Haible  <bruno@clisp.org>
34         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
35         * lib/fsusage.c: Remove DOLPHIN case.
36         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
37         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
39 2018-10-16  Bruno Haible  <bruno@clisp.org>
41         getloadavg: Remove support for Alliant FX/2800.
42         * lib/getloadavg.c: Remove alliant case.
44 2018-10-16  Bruno Haible  <bruno@clisp.org>
46         getloadavg: Remove support for tek4300.
47         * lib/getloadavg.c: Remove tek4300 case.
49 2018-10-16  Bruno Haible  <bruno@clisp.org>
51         getloadavg: Remove support for Ardent.
52         * lib/getloadavg.c: Remove ardent case.
54 2018-10-16  Bruno Haible  <bruno@clisp.org>
56         mountlist: Remove support for SVR2.
57         Reported by Andrew Borodin <aborodin@vmail.ru> in
58         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
59         * lib/mountlist.c: Remove MOUNTED_FREAD case.
60         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
61         MOUNTED_FREAD.
63 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
65         libc-config: merge from glibc
66         * lib/cdefs.h (__glibc_has_attribute): New macro.
68         regex: depend on libc-config
69         * modules/regex (Depends-on): Add libc-config.
70         This is needed after the recent autoupdate from glibc.
72 2018-10-14  Bruno Haible  <bruno@clisp.org>
74         localename: Add support for per-thread locales on Solaris 11.4.
75         * lib/locale.in.h (newlocale, freelocale): New declarations.
76         (duplocale): Declare also when the 'localename' module requests it.
77         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
78         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
79         (struniq): Update.
80         (struct locale_categories_names, struct locale_hash_node): New types.
81         (LOCALE_HASH_TABLE_SIZE): New constant.
82         (locale_hash_table, locale_lock): New variables.
83         (pointer_hash, get_locale_t_name): New functions.
84         (newlocale, duplocale, freelocale): New overridden functions.
85         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
86         * m4/intlsolaris.m4: New file.
87         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
88         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
89         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
90         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
91         declared.
92         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
93         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
94         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
95         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
96         * modules/localename (Files): Add intlsolaris.m4.
97         (Depends-on): Add 'locale'.
98         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
99         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
100         the signatures.
102 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
104         timevar: use gethrxtime to get wall clock time
105         clock_gettime is not portable.  gethrxtime takes the best available
106         option to get the wall clock time, including clock_gettime (monotonic
107         clock), and gettime (non monotonic).
108         Also, using xtime_t instead of float preserves the precision.
109         Suggested by Bruno Haible.
110         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
111         * modules/timevar (Depends-on): We need gethrxtime.
112         We no longer use times().
113         (Link): Update.
114         * lib/timevar.h (timevar_time_def): Use xtime_t.
115         * lib/timevar.c (set_to_current_time): Use gethrxtime.
116         (timevar_print): Instead of checking whether the timings themselves
117         are large enough for the timevar to be printed, check the percentages.
119 2018-10-14  Bruno Haible  <bruno@clisp.org>
121         wcsnrtombs: Work around Solaris 11.4 bug.
122         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
123         macro.
124         (gl_FUNC_WCSNRTOMBS): Invoke it.
125         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
127 2018-10-14  Bruno Haible  <bruno@clisp.org>
129         mbsnrtowcs: Work around Solaris 11.4 bug.
130         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
131         macro.
132         (gl_FUNC_MBSNRTOWCS): Invoke it.
133         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
135 2018-10-14  Bruno Haible  <bruno@clisp.org>
137         doc: Update for Solaris 11.4.
138         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
139         mention Solaris 11.4.
140         * m4/printf.m4: Update comments about Solaris.
141         * m4/log.m4: Likewise.
142         * m4/log10.m4: Likewise.
143         * m4/logb.m4: Likewise.
144         * m4/logbf.m4: Likewise.
145         * m4/logbl.m4: Likewise.
146         * m4/rename.m4: Likewise.
147         * m4/wcrtomb.m4: Likewise.
148         * m4/hostent.m4: Likewise.
149         * m4/servent.m4: Likewise.
151 2018-10-14  Bruno Haible  <bruno@clisp.org>
153         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
154         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
155         pointer.
156         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
157         pointer.
158         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
159         pointer.
160         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
161         pointer.
162         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
163         pointer.
165 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
167         bootstrap: fix wget command for po files.
168         * build-aux/bootstrap (po_download_command_format): Fix comment,
169         and adjust callers.
171 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
173         timevar: improve the output format
174         Suggested by Bruno Haible.
175         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
176         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
177         wall, since its resolution is much higher.
179 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
181         timevar: expect that getrusage is available.
182         Don't keep both times and getrusage as backend: both are guaranteed by
183         gnulib, a single one suffices.  Using getrusage is open to possibly
184         tracking other types of resources in the future.
185         * modules/timevar (Depends-on): Add getrusage.
186         (configure.ac): Remove gl_TIMEVAR.
187         (Files): Remove m4/timevar.m4.
188         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
189         * lib/timevar.h (timevar_enabled): Clarify documentation.
190         * lib/timevar.c: Remove all the code about times.
191         Remove all the CPP guards about getrusage: expect it to be present
192         (courtesy of gnulib).
194 2018-10-12  Bruno Haible  <bruno@clisp.org>
196         mountlist: Improve support for Solaris in 64-bit mode.
197         Reported by David Wood <David.Wood@deshaw.com> in
198         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
199         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
200         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
201         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
203 2018-10-12  Bruno Haible  <bruno@clisp.org>
205         mountlist: Add support for Minix.
206         Reported by Assaf Gordon in
207         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
208         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
209         AC_CHECK_FUNCS to check for 'getmntinfo'.
210         * lib/mountlist.c: Update comments.
212 2018-10-12  Bruno Haible  <bruno@clisp.org>
214         Make better use of Autoconf.
215         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
216         * m4/manywarnings.m4: Likewise.
217         * m4/manywarnings-c++.m4: Likewise.
218         * m4/socklen.m4: Likewise.
219         * m4/sockpfaf.m4: Likewise.
220         * m4/stdarg.m4: Likewise.
221         * m4/visibility.m4: Likewise.
222         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
223         indentation.
224         * m4/ls-mntd-fs.m4: Likewise.
226 2018-10-11  Bruno Haible  <bruno@clisp.org>
228         mountlist: Modernize platform lists.
229         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
230         platforms, deemphasizing the obsolete ones.
231         * lib/mountlist.c: Likewise.
233 2018-10-11  Bruno Haible  <bruno@clisp.org>
235         getprogname: Add support for 32-bit programs on HP-UX.
236         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
237         try the similar functions 32-bit programs on 64-bit HP-UX.
239 2018-10-11  Bruno Haible  <bruno@clisp.org>
241         getprogname: Work around program name truncation when possible.
242         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
243         possibly use pst_cmd instead.
245 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
247         fts: cleanup after FTS_NOATIME removal
248         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
249         (FTS_STOP): Shrink to minimal values.  We don’t need to
250         worry about binary compatibility in Gnulib, and the old way
251         of doing things had a hole in the user options that caused
252         FTS_OPTIONMASK to not work as desired.
254 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
256         fts: remove FTS_NOATIME
257         This reverts commit da4d6974013c822af1498941e32db774b2031765.
258         We cannot guarantee that O_NOATIME works: e.g. openat fails
259         with EPERM if the effective user ID of the caller does not match
260         the owner of the file and the caller is not privileged.
261         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
262         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
263         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
264         (FTS_OPTIONMASK): Adjust.
265         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
266         (fd_ring_check): Likewise.
268 2018-10-08  Bruno Haible  <bruno@clisp.org>
270         csharpcomp*, csharpexec*: Remove support for pnet.
271         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
272         HAVE_CSCC.
273         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
274         Don't test HAVE_CSCC.
275         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
276         (compile_csharp_class): Don't invoke it.
277         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
278         HAVE_ILRUN.
279         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
280         Don't test HAVE_ILRUN.
281         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
282         (execute_csharp_program): Don't invoke it.
283         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
284         any more.
286 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
288         renameatu: prefer renameat2 to syscall
289         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
290         Use renameat2 instead of syscall (Bug#32796).
291         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
293 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
295         bootstrap, gnulib-tool: use https instead of insecure rsync
296         * build-aux/bootstrap (download_po_files, po_download_command_format):
297         Don't try using rsync; always use wget over https to fetch PO files.
298         * gnulib-tool (func_import): Likewise.
299         * pygnulib/GLImport.py (GLImport.execute): Likewise.
301 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
303         bootstrap, gnulib-tool: correct the translations wget command
304         * build-aux/bootstrap (po_download_command_format2): Restrict
305         recursion to a single level.
306         * gnulib-tool (func_import): Likewise.
307         * pygnulib/GLImport.py (GLImport.execute): Likewise.
309 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
311         doc: the gnulib snapshots are not maintained
312         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
314 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
316         timevar: add to lib_SOURCES
317         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
319 2018-10-07  Bruno Haible  <bruno@clisp.org>
321         dirent: Update documentation.
322         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
324 2018-10-05  Bruno Haible  <bruno@clisp.org>
326         strpbrk: Make it possible to namespace the defined symbol.
327         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
329 2018-10-05  Bruno Haible  <bruno@clisp.org>
331         strcspn: Make it possible to namespace the defined symbol.
332         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
334 2018-10-05  Bruno Haible  <bruno@clisp.org>
336         raise: Make it possible to namespace the defined symbol.
337         * lib/raise.c (raise): Undefine only after the replacement function has
338         been defined.
339         (raise): Renamed from rpl_raise.
340         (raise_nothrow): Move to the end of the compilation unit.
342 2018-10-05  Bruno Haible  <bruno@clisp.org>
344         memcmp: Make it possible to namespace the defined symbol.
345         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
347 2018-10-05  Bruno Haible  <bruno@clisp.org>
349         explicit_bzero: Make it possible to namespace the defined symbol.
350         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
351         glibc.
353 2018-10-05  Bruno Haible  <bruno@clisp.org>
355         mkdir-p: Depend on 'mkdir'.
356         * modules/mkdir-p (Depends-on): Add 'mkdir'.
358 2018-10-05  Bruno Haible  <bruno@clisp.org>
360         tempname: Depend on 'mkdir'.
361         Reported by Maarten Bosmans <mkbosmans@gmail.com>
362         at <https://savannah.gnu.org/bugs/?33379>.
363         * modules/tempname (Depends-on): Add 'mkdir'.
365 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
367         timevar: rely on gnulib modules for time portability.
368         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
369         * m4/timevar.m4: Don't check for clock_t and struct tms,
370         guaranteed by gnulib.
371         * lib/timevar.h: Use extern "C" protection.
372         Include <stdio.h> for FILE.
373         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
374         they are guaranteed by gnulib.
375         Remove uses of clock as (now useless) fallback.
377 2018-10-04  Bruno Haible  <bruno@clisp.org>
379         sh-filename: New module.
380         * m4/sh-filename.m4: New file.
381         * modules/sh-filename: New file.
382         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
383         "/bin/sh".
384         * tests/test-posix_spawn1.c (main): Likewise.
385         * tests/test-posix_spawn2.c (main): Likewise.
386         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
387         is_envjavac_gcj43): Likewise.
388         * lib/javaexec.c (execute_java_class): Likewise.
389         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
390         * modules/posix_spawnp-tests (Depends-on): Likewise.
391         * modules/javacomp (Depends-on): Likewise.
392         * modules/javaexec (Depends-on): Likewise.
394 2018-10-04  Bruno Haible  <bruno@clisp.org>
396         spawn-pipe tests: Avoid test failure on native Windows.
397         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
398         that fd 2 is closed.
400 2018-10-04  Bruno Haible  <bruno@clisp.org>
402         fcntl: Make it possible to namespace the defined symbol.
403         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
404         been defined.
405         (fcntl): Renamed from rpl_fcntl.
406         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
407         from fcntl.
408         (klibc_fcntl): Move to the end of the compilation unit.
410 2018-10-02  Bruno Haible  <bruno@clisp.org>
412         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
413         * tests/test-vasnprintf.c (test_function): Change the test added on
414         2018-09-23 to check only the 18 most significant digits.
416         vasnprintf tests: Avoid test failure on Cygwin.
417         * tests/test-vasnprintf.c (test_function): Change the test added on
418         2018-09-23 to check only the 42 most significant digits.
420 2018-10-01  Bruno Haible  <bruno@clisp.org>
422         mkostemp, mkostemps: Update documentation.
423         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
424         * doc/glibc-functions/mkostemps.texi: Likewise.
426 2018-10-01  Tom Tromey  <tom@tromey.com>
428         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
429         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
430         on OS X.
432 2018-09-30  Pádraig Brady  <P@draigBrady.com>
434         hmac-*: refactor to remove repetitive code
435         * lib/hmac.c: A new parameterized single implementation.
436         * lib/hmac-md5.c: Define parameters and include implementation.
437         * lib/hmac-sha1.c: Likewise.
438         * lib/hmac-sha256.c: Likewise.
439         * lib/hmac-sha512.c: Likewise.
440         * modules/crypto/hmac-md5: Reference the new implementation file.
441         * modules/crypto/hmac-sha1: Likewise.
442         * modules/crypto/hmac-sha256: Likewise.
443         * modules/crypto/hmac-sha512: Likewise.
444         * tests/test-hmac-md5.c: Refactor common code to a single function.
445         * tests/test-hmac-sha1.c: Likewise.
446         * tests/test-hmac-sha256.c: Likewise.
447         * tests/test-hmac-sha512.c: Likewise.
449 2018-09-30  Zhang Qing  <zhangqingl@126.com>
451         hmac-sha512: fix hash for keys > blocksize (128 bytes)
452         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
453         key length to that output by sha512, not the blocksize.
454         Otherwise uninitialized data from the stack
455         is used when computing the hash.
456         * tests/test-hmac-sha512.c: Add a shortened key test case.
457         Reported at https://github.com/coreutils/gnulib/pull/5
459 2018-09-30  Bruno Haible  <bruno@clisp.org>
461         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
462         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
463         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
464         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
465         'unsigned int' before comparison with an unsigned value.
467 2018-09-30  Bruno Haible  <bruno@clisp.org>
469         grantpt: Remove unnecessary dependency.
470         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
472 2018-09-30  Bruno Haible  <bruno@clisp.org>
474         timevar: Small tweaks.
475         * lib/timevar.h: Fix comments. Add parameter names to function
476         declarations.
477         * lib/timevar.c: Include timevar.h immediately after config.h.
478         * lib/timevar.def: Fix comments.
479         * modules/timevar (Maintainer): List Akim Demaille.
481 2018-09-30  Bruno Haible  <bruno@clisp.org>
483         timevar: Include documentation in gnulib manual.
484         * doc/timevar.texi: Change node and section name to 'Profiling of
485         program phases'.
486         In the code snippets, tweak the #includes and use GNU coding style.
487         * doc/gnulib.texi: Include timevar.texi.
489 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
491         timevar: import from Bison.
492         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
493         New files.
494         * lib/timevar.def: New file.
495         * doc/timevar.texi: New file.
497 2018-09-26  Bruno Haible  <bruno@clisp.org>
499         javacomp-script, javacomp: Add preliminary support for Java 12..17.
500         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
501         * lib/javacomp.c (default_target_version): Likewise.
503 2018-09-26  Bruno Haible  <bruno@clisp.org>
505         javacomp-script, javacomp: Add support for Java 11.
506         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
507         target-version 11.
508         * lib/javaversion.h: Update comments.
509         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
510         source_version_index, get_goodcode_snippet, get_failcode_snippet,
511         TARGET_VERSION_BOUND, target_version_index,
512         corresponding_classfile_version): Accept source_version 11 and
513         target_version 11.
514         * lib/javacomp.h: Update comments accordingly.
516 2018-09-23  Bruno Haible  <bruno@clisp.org>
518         vasnprintf: Fix heap memory overrun bug.
519         Reported by Ben Pfaff <blp@cs.stanford.edu> in
520         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
521         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
522         memory.
523         * tests/test-vasnprintf.c (test_function): Add another test.
525 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
527         maint: mktime.c now shared with glibc
528         * config/srclist.txt: intprops.h, timegm.c and mktime.c
529         are now the same in Gnulib and glibc.
531         mktime: fix _LIBC typo
532         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
534 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
536         dfa: optimization for state merge
537         * lib/dfa.c (merge2): New function.
538         (merge_nfa_state): Use it.
540 2018-09-18  Jim Meyering  <meyering@fb.com>
542         dfa: trivial comment fix: s/is/if/
543         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
545 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
547         dfa: use more-informative function name
548         * lib/dfa.c (maybe_disable_superset_dfa):
549         Rename from dfautf8noss.  Use change.
551         dfa: tweak allocation performance
552         * lib/dfa.c (merge_nfa_state, dfaoptimize):
553         Prefer ptrdiff_t for indexes some more.
554         Use char for flags, as it’s wide enough.
555         Allocate queue and flags together, with one malloc call.
556         No need to use xnmalloc since the multiplication and
557         addition cannot overflow (it’s already been checked by
558         earlier allocation).  Prefer memset to open-coding.
560         dfa: prune states as we go
561         * lib/dfa.c (prune): Remove.
562         dfa: reorder enum for efficiency
563         (merge_nfa_state): Prune as we go instead of at the end.
564         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
566         * lib/dfa.c (END): Now -1 again.  Reorder other elements
567         of the enumeration to make it easier for GCC to generate
568         efficient code by using fewer comparisons to check for
569         ranges of values.
570         (atom): Take advantage of the reordering.
572 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
574         dfa: optimize alternation in NFA
575         Even when similar states exist in alternation, the DFA treats them
576         as separate items, which may complicate the transition in NFA and
577         cause slowdown.  This change assembles the states into one.  For
578         example, ab|ac is changed into a(b|c).  This change speeds-up
579         matching for many branched patterns.  For example, grep speeds up
580         more than 30× in:
582           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
583           time -p env LC_ALL=C grep -vf in in
585         * lib/dfa.c (prune): New function.
586         (merge_nfa_state): New function.  It merges similar NFA states.
587         (dfaoptimize): New function.  It seeks merged and removed nodes.
588         (dfaanalyze): Call new function.
589         (dfautf8noss): Change name from dfaoptimize because of addition of new
590         function.
591         (dfacomp): Update caller.
593         dfa: simplify initial state
594         Simplifying the initial state enables easier optimization of the NFA.
595         * lib/dfa.c (enum token): Add new element BEG.
596         (prtok): Adjust due to adding element BEG.
597         (dfaparse): Put BEG at a head of tokens.
598         (state_index): Adjust due to adding element BEG.
599         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
600         build initial state.
601         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
603 2018-09-18  Bruno Haible  <bruno@clisp.org>
605         file-has-acl: Fix test failure on Cygwin 2.9.
606         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
607         * lib/acl-internal.h: Likewise.
608         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
609         * lib/acl-internal.c: Update comments regarding Cygwin.
610         * lib/acl_entries.c: Likewise.
611         * lib/file-has-acl.c: Likewise.
612         (file_has_acl): For Cygwin, use a different way to determine whether
613         the "default" ACL of a directory is nontrivial.
614         * lib/get-permissions.c: Update comments regarding Cygwin.
615         * lib/set-permissions.c: Likewise.
617 2018-09-18  Bruno Haible  <bruno@clisp.org>
619         stat-time tests: Fix test failure on Cygwin.
620         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
622 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
624         doc: OS X 10.11 lacked ns time functions
625         According to <https://github.com/zeromq/libzmq/issues/2175>,
626         nanosecond-resolution timestamp functions were introduced
627         in macOS 10.12, so document the last version (OS X 10.11)
628         where they were absent.
630         gettime: nanotime never existed
631         Problem reported by Bruno Haible in:
632         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
633         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
634         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
636 2018-09-18  Bruno Haible  <bruno@clisp.org>
638         doc: Update statement about target platforms.
639         Reported by Simon Sobisch.
640         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
641         restrictions on MSVC versions.
643 2018-09-18  Bruno Haible  <bruno@clisp.org>
645         posix_spawn tests: Fix link error on 64-bit Cygwin.
646         * tests/test-posix_spawn1.c (environ): Remove declaration.
647         * tests/test-posix_spawn2.c (environ): Likewise.
648         * tests/test-posix_spawn3.c (environ): Likewise.
649         * tests/test-posix_spawn4.c (environ): Likewise.
650         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
651         * modules/posix_spawnp-tests (Depends-on): Likewise.
653 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
655         timespec: new function current_timespec
656         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
657         and don’t worry about it failing on a CLOCK_REALTIME arg.
658         POSIX requires it to succeed and I don’t know of any
659         counterexamples where the fallbacks would work.
660         (current_timespec): New function, taken from Emacs.  It is more
661         convenient than gettime, and can help register allocation.
662         * lib/timespec.h: Include arg-nonnull.h.
663         (current_timespec): New declaration.
664         (gettime, settime): Declare args to be nonnull.
665         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
667 2018-09-16  Bruno Haible  <bruno@clisp.org>
669         setlocale: Improve locale handling on macOS 10.12 or newer.
670         * lib/setlocale.c: Include header files for CoreFoundation. Declare
671         gl_locale_name_canonicalize.
672         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
673         and LC_MESSAGES.
674         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
676 2018-09-16  Bruno Haible  <bruno@clisp.org>
678         Update list of locale names with scripts on macOS.
679         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
680         match Mac OS X 10.13 and recent glibc.
682 2018-09-16  Bruno Haible  <bruno@clisp.org>
684         gettext: Use newer macOS APIs when possible.
685         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
686         CFLocaleCopyPreferredLanguages.
688 2018-09-16  Bruno Haible  <bruno@clisp.org>
690         localename: Revisit macOS specific code.
691         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
692         Fix comments about Mac OS X versions.
694 2018-09-15  Bruno Haible  <bruno@clisp.org>
696         setlocale: Improve support for locales not supported by libc.
697         Reported by Dapeng Gao <peter@dpgao.cc> at
698         <https://savannah.gnu.org/bugs/?54479>.
699         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
700         (libintl_setlocale): Use a more error-tolerant strategy when the locale
701         to be set is not supported by libc: Emit warnings instead of failing.
703 2018-09-15  Bruno Haible  <bruno@clisp.org>
705         strstr, strcasestr: Add workaround against glibc-2.28 bug.
706         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
707         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
708         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
709         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
710         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
711         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
712         * doc/glibc-functions/strcasestr.texi: Likewise.
714 2018-09-14  Bruno Haible  <bruno@clisp.org>
716         doc: Fix bottom of top-level page.
717         Reported by Akim Demaille <akim.demaille@gmail.com> in
718         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
719         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
720         mode.
721         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
722         accordingly.
724 2018-09-12  Bruno Haible  <bruno@clisp.org>
726         Add test case from a recent glibc bug.
727         * tests/test-strstr.c (main): Add test of long needle.
728         * tests/test-strcasestr.c (main): Likewise.
729         * tests/test-c-strstr.c (main): Likewise.
730         * tests/test-c-strcasestr.c (main): Likewise.
731         * tests/test-memmem.c (main): Likewise.
733 2018-09-12  Bruno Haible  <bruno@clisp.org>
735         Apply Eric Blake's improvements from 2011-02-25 to more tests.
736         * tests/test-c-strstr.c (main): Add the same tests here as well.
738 2018-09-12  Bruno Haible  <bruno@clisp.org>
740         Apply Jim Meyering's fix from 2015-01-11 to more tests.
741         * tests/test-memmem.c (main): Free haystack.
742         * tests/test-strcasestr.c (main): Likewise.
743         * tests/test-c-strcasestr.c (main): Likewise.
745 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
747         xstrtol: fix missing-TYPE_SIGNED typo
748         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
750 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
752         timespec: fix resolution confusion
753         In normal usage, clock resolution is given in seconds, but the
754         code was mistakenly using inverse seconds and calling it
755         “resolution”.  Fix this, partly by renaming two identifiers.
756         The old names will be kept for a bit, to ease transition.
757         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
758         New constants, replacing TIMESPEC_RESOLUTION and
759         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
760         All uses changed.
762 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
764         mktime: simplify in prep for glibc merge
765         * lib/mktime.c, lib/timegm.c [_LIBC]:
766         Include mktime-internal.h (a small file just for glibc)
767         instead of using a typedef.
769 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
771         intprops: minor clarification of code
772         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
773         Use _GL_INT_CONVERT rather than reinventing it.
775 2018-09-07  Bruno Haible  <bruno@clisp.org>
777         Fix a comment.
778         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
780 2018-09-07  Bruno Haible  <bruno@clisp.org>
782         posix_spawn_file_actions_addchdir: Add tests.
783         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
784         * tests/test-posix_spawn4.c: New file.
785         * modules/posix_spawn_file_actions_addchdir-tests: New file.
787 2018-09-07  Bruno Haible  <bruno@clisp.org>
789         posix_spawn_file_actions_addchdir: New module.
790         Suggested by Eric Blake in
791         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
792         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
793         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
794         union member 'chdir_action'.
795         * lib/spawn_faction_addchdir.c: New file.
796         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
797         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
798         HAVE_WORKING_POSIX_SPAWN.
799         * lib/spawn_faction_adddup2.c: Likewise.
800         * lib/spawn_faction_addopen.c: Likewise.
801         * m4/posix_spawn_faction_addchdir.m4: New file.
802         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
803         'posix_spawn_file_actions_addchdir' is present and whether
804         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
805         instead of HAVE_WORKING_POSIX_SPAWN.
806         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
807         posix_spawn_file_actions_addchdir is declared.
808         (gl_SPAWN_H_DEFAULTS): Initialize
809         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
810         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
811         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
812         * modules/spawn (Makefile.am): Substitute
813         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
814         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
815         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
816         * modules/posix_spawn_file_actions_addchdir: New file.
817         * modules/posix_spawn_file_actions_addclose (Depends-on,
818         configure.ac): Test also REPLACE_POSIX_SPAWN.
819         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
820         configure.ac): Likewise.
821         * modules/posix_spawn_file_actions_addopen (Depends-on,
822         configure.ac): Likewise.
823         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
824         signature.
825         * doc/posix-functions/posix_spawn.texi: Mention the new module.
826         * doc/posix-functions/posix_spawnp.texi: Likewise.
828 2018-09-06  Bruno Haible  <bruno@clisp.org>
830         stddef: Override max_align_t on NetBSD 8.0/x86.
831         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
832         the value of __alignof__ (max_align_t).
833         * doc/posix-headers/stddef.texi: Mention the issue.
835 2018-09-06  Bruno Haible  <bruno@clisp.org>
837         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
838         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
839         system fcntl.
840         * doc/posix-functions/fcntl.texi: Document the issue.
842 2018-09-06  Bruno Haible  <bruno@clisp.org>
844         count-trailing-zeros tests: Rely on limits-h module.
845         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
846         definition.
847         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
849 2018-09-06  Bruno Haible  <bruno@clisp.org>
851         count-leading-zeros tests: Rely on limits-h module.
852         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
853         definition.
854         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
856 2018-09-06  Bruno Haible  <bruno@clisp.org>
858         count-one-bits tests: Rely on limits-h module.
859         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
860         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
862 2018-09-06  Bruno Haible  <bruno@clisp.org>
864         xstrtoll: Rely on limits-h module.
865         * lib/xstrtol.c: Don't include intprops.h.
866         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
867         * modules/xstrtol (Depends-on): Remove 'intprops'.
868         * modules/xstrtoll (Depends-on): Add 'limits-h'.
870 2018-09-06  Bruno Haible  <bruno@clisp.org>
872         strtoll, strtoull: Rely on limits-h module.
873         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
874         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
875         * modules/strtoll (Depends-on): Add limits-h.
876         * modules/strtoull (Depends-on): Likewise.
878 2018-09-06  Bruno Haible  <bruno@clisp.org>
880         intprops tests: Fix compilation error with pre-C99 compiler.
881         * tests/test-intprops.c (verify_stmt): New macro.
882         (VERIFY, main): Use it.
884 2018-09-06  Bruno Haible  <bruno@clisp.org>
886         limits-h: Provide numerical limits macros.
887         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
888         IRIX and for GCC.
889         (WORD_BIT, LONG_BIT): Define.
890         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
891         <limits.h> does not define LLONG_MAX or WORD_BIT.
892         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
893         TYPE_MAXIMUM): New macros, from intprops.h.
894         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
895         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
896         provides.
898 2018-09-05  Bruno Haible  <bruno@clisp.org>
900         fcntl: Don't access nonexistent optional argument.
901         Reported by Frank Busse <f.busse@imperial.ac.uk> in
902         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
903         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
904         don't consume an argument. For actions that take an 'int' argument,
905         consume an 'int' argument.
907 2018-09-05  Eric Blake  <eblake@redhat.com>
909         doc: mention environ pitfall
910         * doc/posix-functions/environ.texi (environ): Assigning NULL to
911         environ is a glibc extension.
913 2018-09-03  Bruno Haible  <bruno@clisp.org>
915         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
916         Reported by Antoine Luong <antoine.luong@c-s.fr> in
917         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
918         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
919         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
920         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
922 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
924         mktime: fix unlikely race+overflow bug
925         Problem reported by Alexandre Oliva in:
926         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
927         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
928         to avoid an unlikely race if the compiler delays a load and
929         if this cascades into a signed integer overflow.
931 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
933         mktime, timegm: simplify glibc time64_t
934         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
935         Now long int, not time_t, since long int is the longstanding type
936         for this in glibc and there is no need to change it even if time_t
937         becomes 64 bits - even int would do, though this would be a change
938         to the glibc generated code.  When this change is merged into
939         glibc, it should simplify the time_t vs time64_t situation.
941         mktime, timegm: simplify merge to glibc
942         Move code around to make a merge to glibc easier to audit.
943         This should not change behavior.
944         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
945         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
946         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
947         simplify later conditionals; default the others to zero.  In uses
948         of these conditionals, explicitly spell out how _LIBC affects
949         things, so it’s easier to review from a glibc viewpoint.
950         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
951         compartmentalize tzset issues.  Move system-dependent tzsettish
952         code here from mktime.
953         (mktime): Move tzsettish code to my_tzset, and move
954         localtime_offset to within mktime so that it doesn’t
955         need a separate ifdef.
957 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
959         intprops: avoid evaluation of some expressions
960         This makes EXPR_SIGNED (e) easier to use, as it no longer
961         evaluates the expression E.  Formerly, E was required to be free
962         of side effects.
963         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
964         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
965         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
967 2018-08-23  Bruno Haible  <bruno@clisp.org>
969         getcwd: Add cross-compilation guesses.
970         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
971         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
972         Based on a patch by Paul Eggert.
973         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
974         guesses for all GNU systems.
976 2018-08-19  Bruno Haible  <bruno@clisp.org>
978         glob-h: Formalize side effects from other modules.
979         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
980         * m4/glob.m4 (gl_GLOB): Invoke it.
982         fnmatch-h: Formalize side effects from other modules.
983         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
984         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
986         limits-h: Formalize side effects from other modules.
987         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
988         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
990 2018-08-19  Bruno Haible  <bruno@clisp.org>
992         getpass: Move declaration to <unistd.h>.
993         * lib/unistd.in.h (getpass): New declaration.
994         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
995         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
996         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
997         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
998         On glibc systems, don't set REPLACE_GETPASS to 1.
999         * modules/getpass (Depends-on): Add 'unistd'.
1000         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
1001         (Include): Specify <unistd.h> instead of "getpass.h".
1002         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
1003         (configure.ac): Sync with the configure.ac section of modules/getpass.
1004         (Include): Specify <unistd.h> instead of "getpass.h".
1005         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
1006         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
1007         REPLACE_GETPASS.
1008         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
1009         REPLACE_GETPASS.
1010         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
1011         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
1012         and musl.
1013         * NEWS: Mention the change.
1015 2018-08-19  Bruno Haible  <bruno@clisp.org>
1017         glob: Fix over-optimization due to attribute __nonnull__.
1018         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
1020 2018-08-19  Bruno Haible  <bruno@clisp.org>
1022         glob: Fix another compilation error when glob.h is not replaced.
1023         Reported by Reuben Thomas <rrt@sc3d.org> in
1024         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
1025         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
1026         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
1028 2018-08-18  Bruno Haible  <bruno@clisp.org>
1030         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
1031         Reported by Reuben Thomas <rrt@sc3d.org> in
1032         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
1033         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
1034         in config.h.
1036 2018-08-18  Bruno Haible  <bruno@clisp.org>
1038         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
1039         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
1040         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
1041         Solution proposed by Eli Zaretskii.
1042         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
1043         * lib/gettimeofday.c (GetProcAddress): Likewise.
1044         * lib/link.c (GetProcAddress): Likewise.
1045         * lib/physmem.c (GetProcAddress): Likewise.
1046         * lib/poll.c (GetProcAddress): Likewise.
1047         * lib/select.c (GetProcAddress): Likewise.
1048         * lib/stat-w32.c (GetProcAddress): Likewise.
1050 2018-08-18  Bruno Haible  <bruno@clisp.org>
1052         glob: Fix another compilation error when glob.h is not replaced.
1053         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
1054         * lib/globfree.c: Include <libc-config.h>.
1056 2018-08-18  Bruno Haible  <bruno@clisp.org>
1058         glob: Fix compilation error when glob.h is not replaced.
1059         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
1060         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
1061         * lib/glob_pattern_p.c: Include <libc-config.h>.
1062         * modules/glob (Depends-on): Add libc-config.
1064 2018-08-18  Bruno Haible  <bruno@clisp.org>
1066         scratch_buffer: Add tests.
1067         * tests/test-scratch-buffer.c: New file.
1068         * modules/scratch_buffer-tests: New file.
1070 2018-08-18  Bruno Haible  <bruno@clisp.org>
1072         scratch_buffer: Fix include file.
1073         Reported by Reuben Thomas <rrt@sc3d.org> in
1074         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
1075         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
1076         double-inclusion guard.
1078 2018-08-18  Bruno Haible  <bruno@clisp.org>
1080         glob-h: Revert Paul Eggert's revert.
1081         * m4/glob_h.m4: Revert to previous state.
1082         * modules/glob-h: Likewise.
1084 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1086         glob-h: always build glob.h
1087         This works around a problem reported by Reuben Thomas in:
1088         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
1089         This workaround always builds glob.h, even on platforms that
1090         do not need it; perhaps this could be improved someday.
1091         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
1092         is always created now.
1093         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
1095 2018-08-13  Bruno Haible  <bruno@clisp.org>
1097         monetary: Simplify m4 code.
1098         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
1099         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
1101 2018-08-13  Bruno Haible  <bruno@clisp.org>
1103         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
1104         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
1105         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
1106         and by Paul J. Lucas <paul@lucasmail.org> in
1107         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
1108         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
1110 2018-08-11  Bruno Haible  <bruno@clisp.org>
1112         setlocale: Trivial simplification.
1113         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
1115 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1117         verify: port 'assume' to traditional tools
1118         * lib/verify.h (assume): Port better to Oracle Studio 12.6
1119         and other tools that use /*NOTREACHED*/ comments.
1121 2018-08-10  Bruno Haible  <bruno@clisp.org>
1123         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
1124         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
1125         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
1126         'fnmatch-gnu' is in use.
1128 2018-08-07  Bruno Haible  <bruno@clisp.org>
1130         glob-h: Add tests.
1131         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
1132         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
1133         tests/test-glob-h.c.
1134         * modules/glob-h-tests: New file.
1135         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
1136         conditions.
1137         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
1138         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
1140 2018-08-07  Bruno Haible  <bruno@clisp.org>
1142         glob-h: New module.
1143         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
1144         replacements.
1145         * lib/glob.c: Include <config.h>.
1146         * m4/glob_h.m4: New file.
1147         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
1148         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
1149         REPLACE_GLOB_PATTERN_P as appropriate.
1150         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
1151         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
1152         * modules/glob-h: New file.
1153         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
1154         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
1155         lstat, sys_stat. Change conditions.
1156         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
1157         REPLACE_GLOB_PATTERN_P. Set module indicator.
1158         (Makefile.am): Remove code that is moved to glob-h.
1159         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
1160         * modules/posixcheck (Depends-on): Add glob-h.
1162 2018-08-06  Bruno Haible  <bruno@clisp.org>
1164         Force generation of substitute .h file when C++ support is enabled.
1165         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
1166         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
1167         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
1168         FNMATCH_H to non-empty.
1169         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
1170         ICONV_H to non-empty.
1171         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
1172         MONETARY_H to non-empty.
1173         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
1174         non-empty.
1176 2018-08-06  Bruno Haible  <bruno@clisp.org>
1178         fnmatch-h: Fix test compilation error on mingw (regression from today).
1179         * lib/fnmatch.in.h: Fix conditions.
1181 2018-08-06  Bruno Haible  <bruno@clisp.org>
1183         sys_resource: Relicense under LGPLv2+.
1184         John Malmberg's approval is in
1185         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
1186         * modules/sys_resource (License): Change to LGPLv2+.
1188 2018-08-06  Bruno Haible  <bruno@clisp.org>
1190         fnmatch-h: Add tests.
1191         * tests/test-fnmatch-h.c: New file.
1192         * modules/fnmatch-h-tests: New file.
1193         * tests/test-fnmatch-h-c++.cc: New file.
1194         * modules/fnmatch-h-c++-tests: New file.
1196 2018-08-06  Bruno Haible  <bruno@clisp.org>
1198         fnmatch-h: New module.
1199         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
1200         replacements.
1201         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
1202         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
1203         'posixcheck' warning.
1204         * m4/fnmatch_h.m4: New file.
1205         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
1206         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
1207         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
1208         as appropriate.
1209         * modules/fnmatch-h: New file.
1210         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
1211         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
1212         conditions.
1213         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
1214         indicator.
1215         (Makefile.am): Remove code that is moved to fnmatch-h.
1216         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
1217         REPLACE_FNMATCH.
1218         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
1219         * modules/posixcheck (Depends-on): Add fnmatch-h.
1221 2018-08-06  Bruno Haible  <bruno@clisp.org>
1223         Enable more C++ tests.
1224         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
1225         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
1226         * modules/strings-tests (Depends-on): Add strings-c++-tests.
1227         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
1228         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
1230 2018-08-06  Bruno Haible  <bruno@clisp.org>
1232         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
1233         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
1234         getopt.h.
1235         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
1237 2018-08-05  Bruno Haible  <bruno@clisp.org>
1239         utime-h: Generate header file when module 'posixcheck' is in use.
1240         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
1241         UTIME_H to non-empty.
1243 2018-08-05  Bruno Haible  <bruno@clisp.org>
1245         monetary: Generate header file when module 'posixcheck' is in use.
1246         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
1247         use, set MONETARY_H to non-empty.
1249 2018-08-05  Bruno Haible  <bruno@clisp.org>
1251         iconv-h: Generate header file when module 'posixcheck' is in use.
1252         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
1253         set ICONV_H to non-empty.
1255 2018-08-05  Bruno Haible  <bruno@clisp.org>
1257         Optimize the "checking whether ... is declared without a macro" checks.
1258         Suggested by Paul Eggert in
1259         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
1260         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
1261         Gnulib module 'posixcheck' is not in use.
1263 2018-08-05  Bruno Haible  <bruno@clisp.org>
1265         iconv-h: Enable 'posixcheck' warnings.
1266         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
1267         iconv_open.
1268         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
1270 2018-08-05  Bruno Haible  <bruno@clisp.org>
1272         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
1273         * m4/extern-inline.m4: Add more comments.
1274         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
1275         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
1276         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
1278 2018-08-04  Bruno Haible  <bruno@clisp.org>
1280         New module 'posixcheck'.
1281         * modules/posixcheck: New file.
1282         * m4/posixcheck.m4: New file.
1283         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
1284         (Which modules?): Reference it.
1286 2018-08-01  Assaf Gordon <assafgordon@gmail.com>
1288         dfa: fix memory leak
1289         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
1291 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1293         ieee754-h: new module
1294         It looks like Emacs can use this for some NaN processing.
1295         Emacs uses it only on double NaNs so it should be safe.
1296         * MODULES.html.sh (func_all_modules): Add ieee754-h.
1297         * config/srclist.txt: Mention ieee754.h in a comment.
1298         * doc/glibc-headers/ieee754.texi (ieee754.h):
1299         Gnulib now has a substitute that should work
1300         except for long double and for non-IEEE platforms.
1301         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
1302         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
1304 2018-07-27  Bruno Haible  <bruno@clisp.org>
1306         iswcntrl: Mention minor problem on macOS.
1307         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
1309 2018-07-26  Colin Watson  <cjwatson@debian.org>
1311         bootstrap, gnulib-tool: fix translations rsync
1312         Previously, we created files such as $pobase/Makefile.in.in and then the
1313         subsequent rsync would immediately delete them.
1314         * build-aux/bootstrap (po_download_command_format): Avoid deleting
1315         non-.po files in target directory when rsyncing translations.
1316         * gnulib-tool (func_import): Likewise.
1317         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1319 2018-07-25  Jim Meyering  <meyering@fb.com>
1321         bootstrap: reinstate definition fo gnulib_mk.
1322         That variable is used at least by cppi.
1323         * build-aux/bootstrap (gnulib_mk): Restore definition.
1324         This reverts the deletion from v0.1-1844-gc66dba9ba.
1326 2018-07-23  Bruno Haible  <bruno@clisp.org>
1328         doc: For module names, use texinfo markup @code{} or @samp{}.
1329         * doc/alloca.texi: Mark gnulib module names with @code.
1330         * doc/alloca-opt.texi: Likewise.
1331         * doc/quote.texi: Likewise.
1332         * doc/posix-functions/freopen.texi: Likewise.
1333         * doc/posix-functions/open.texi: Likewise.
1334         * doc/posix-functions/readlink.texi: Likewise.
1335         * doc/posix-functions/readlinkat.texi: Likewise.
1336         * doc/posix-functions/stdout.texi: Likewise.
1337         * doc/posix-functions/stderr.texi: Likewise.
1338         * doc/posix-functions/unlink.texi: Likewise.
1339         * doc/posix-functions/unlinkat.texi: Likewise.
1340         * doc/posix-functions/utime.texi: Likewise.
1341         * doc/posix-functions/utimensat.texi: Likewise.
1342         * doc/posix-functions/utimes.texi: Likewise.
1343         * doc/posix-headers/stdint.texi: Likewise.
1344         * doc/glibc-functions/futimesat.texi: Likewise.
1345         * doc/glibc-functions/lutimes.texi: Likewise.
1346         * doc/glibc-functions/memmem.texi: Likewise.
1348 2018-07-23  Werner LEMBERG  <wl@gnu.org>
1350         doc: Avoid some overfull lines in the TeX output.
1351         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
1352         @example.
1353         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
1354         newline before the long URL.
1355         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
1356         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
1357         Add line breaks in code snippets.
1359 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
1361         hard-locale: simplify by removing hard-locale.m4
1362         * m4/hard-locale.m4: Remove.
1363         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
1364         (configure.ac): Do not call gl_HARD_LOCALE.
1366         gnulib-tool: limit line length for git send-email
1367         * gnulib-tool (func_import): Break actioncmd log line
1368         into multiple lines.
1370 2018-07-16  Bruno Haible  <bruno@clisp.org>
1372         ffs: Ensure declaration on mingw.
1373         Reported by Daniel P. Berrangé <berrange@redhat.com>
1374         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
1375         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
1376         also declared.
1378 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
1380         regex-tests: add dependency
1381         * modules/regex-tests (Depends-on): Add gettext-h.
1382         This is needed given the recent changes to regex,
1383         which no longer depends on gettext-h.
1385 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1387         regex: now in sync with glibc
1388         * config/srclist.txt: Gnulib and glibc regex code
1389         are synchronized again.
1391 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1393         renameatu: rename from renameat2
1394         It's looking like Glibc will add a renameat2 function
1395         that is incompatible with Gnulib renameat2; see:
1396         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
1397         To help avoid future confusion, rename renameat2 to something else.
1398         Use the name 'renameatu', as the Gnulib function is close to the
1399         Glibc function.  Perhaps someday there will also be a renameat2
1400         Gnulib module, which mimicks the future glibc renameat2, but that
1401         can wait as nobody seems to need such a module now.
1402         * NEWS: Mention this.
1403         * lib/renameatu.c: Rename from lib/renameat2.c.
1404         * lib/renameatu.h: Rename from lib/renameat2.h.
1405         * modules/renameatu: Rename from modules/renameat2.
1406         * modules/renameatu-tests: Rename from modules/renameat2-tests.
1407         All uses of "renameat2" in identifiers or file name
1408         changed to "renameatu", except for two instances in
1409         lib/renameatu.c that deal with the Linux kernel's
1410         renameat2 syscall.
1412 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
1414         gnulib-tool: minor tweaks for --gnu-make
1415         * gnulib-tool: Do not allow --gnu-make in test modes,
1416         since they all require automake.
1417         (func_emit_lib_Makefile_am): Don’t emit automake comment
1418         if --gnu-make.
1420         regex: work around conditional-dependencies glitch
1421         * modules/regex (Depends-on): Add langinfo.
1422         Without this change, I had problems building an experimental
1423         version of GNU Emacs.  The symptom of the bug was a message
1424         ‘./configure: line 12726: test: =: unary operator expected’.
1425         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
1426         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
1427         was unset.  Although gl_FUNC_NL_LANGINFO has
1428         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
1429         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
1430         --conditional-dependencies sometimes arranges for the
1431         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
1432         code.  Since the regex code includes <langinfo.h> it should be
1433         depending on the langinfo module anyway, and this happens to work
1434         around the bug, so install that as a workaround for now.  To
1435         reproduce the original problem, run the following shell script on
1436         the version of Gnulib just before this patch was installed.
1437                 rm -fr foo
1438                 mkdir foo
1439                 cat >foo/configure.ac <<'EOF'
1440                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
1441                 gl_EARLY
1442                 gl_INIT
1443                 AC_OUTPUT
1444                 EOF
1445                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
1446                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
1447                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
1448                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
1449                 cd foo
1450                 aclocal -I m4
1451                 autoconf
1452                 ./configure --with-included-regex
1454 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
1456         wchar: fix bug when checking for ‘inline’
1457         I discovered this when looking into using the regex module
1458         with Emacs.
1459         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
1460         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
1461         conftest1.c and conftest2.c but these files were not created.
1462         As far as I can see, this check never worked and nobody reported
1463         it until now, which is a bit worrisome.
1465 2018-06-30  Jim Meyering  <meyering@fb.com>
1467         bootstrap: s/--option val/--option=val/
1468         * build-aux/bootstrap (gnulib_tool_options): Change the
1469         spelling of "--option val" pairs to "--option=val", for
1470         aesthetics, and also so that this file no longer triggers
1471         a common help2man syntax-check warning when copied into
1472         projects like grep, gzip, etc.
1474 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
1476         manywarnings: omit -Wswitch-default
1477         This should make things more consistent, as we already ignore
1478         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
1479         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
1480         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
1481         Add -Wswitch-default.
1482         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
1483         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
1484         Remove -Wswitch-default.
1486         regex: revert most trimming
1487         Problems reported by Bruno Haible in:
1488         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
1489         * modules/regex (Depends-on): Add lock, memcmp, memmove,
1490         and wctype back in.  lock because regex users shouldn’t
1491         need to know that regex needs locking, and the rest because
1492         gnulib-tool should ordinarily ignore them anyway.
1494 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
1496         regex: trim module dependencies
1497         * modules/regex (Depends-on): Remove gettext-h and lock,
1498         since the regex code should work OK without these modules,
1499         and Emacs uses it that way.  Also remove memcmp, memmove,
1500         and wctype, as these modules are obsolete and should not be
1501         needed any more.
1503 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
1505         regex: glibc does not use intprops.h
1506         Maybe we can talk glibc into using intprops.h someday, but
1507         now doesn’t seem to be a good time.
1508         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
1509         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
1510         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
1512 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
1514         regex: port to recently proposed glibc regex merge
1515         This patch is inspired by Adhemerval Zanella's recent proposal
1516         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
1517         to merge glibc and Gnulib regex.  It aims to simplify the merge on
1518         the glibc side, without keeping Gnulib portable.
1519         * lib/regex.h: Fix a problem with glibc installed-header checking,
1520         as follows:
1521         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
1522         (_Restrict_arr_): Prefer __restrict_arr if defined,
1523         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
1524         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
1525         (build_wcs_upper_buffer, build_upper_buffer)
1526         (re_string_translate_buffer, re_string_context_at):
1527         Move decls here from lib/regex_internal.h, for glibc internal tests.
1528         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
1529         glibc BZ #18496.
1530         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
1531         -Wunused-value.
1532         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
1533         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
1534         (bitset_mask): Now static inline, and without any __attribute__
1535         ((unused)) decoration, for glibc internal tests.
1537 2018-06-25  Bruno Haible  <bruno@clisp.org>
1539         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
1540         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
1541         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
1542         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
1543         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
1544         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
1545         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
1546         / -lthread / -lpth does not get optimized away by a preceding
1547         --as-needed option.
1549 2018-06-25  Bruno Haible  <bruno@clisp.org>
1551         Continue to use spaces for indentation, not tabs.
1552         * MODULES.html.sh: Untabify.
1553         * doc/regex.texi: Likewise.
1554         * lib/acl-internal.c: Likewise.
1555         * lib/dfa.c: Likewise.
1556         * lib/exclude.c: Likewise.
1557         * lib/exclude.h: Likewise.
1558         * lib/get-permissions.c: Likewise.
1559         * lib/gettimeofday.c: Likewise.
1560         * lib/parse-datetime.y: Likewise.
1561         * lib/pselect.c: Likewise.
1562         * lib/set-permissions.c: Likewise.
1563         * lib/time.in.h: Likewise.
1564         * m4/canonicalize.m4: Likewise.
1565         * m4/gc.m4: Likewise.
1566         * m4/gnulib-common.m4: Likewise.
1567         * m4/pthread_sigmask.m4: Likewise.
1568         * m4/vararrays.m4: Likewise.
1569         * tests/test-digest.h: Likewise.
1570         * tests/test-fcntl-h.c: Likewise.
1571         * tests/test-timespec.c: Likewise.
1572         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
1574 2018-06-25  Bruno Haible  <bruno@clisp.org>
1576         manywarnings: Don't enable -Wjump-misses-init warnings by default.
1577         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
1578         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
1579         -Wjump-misses-init.
1581 2018-06-25  Jim Meyering  <meyering@fb.com>
1583         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
1584         * lib/acl-internal.h (free_permission_context): Remove that
1585         attribute directive.  Otherwise, it would provoke this from GCC 9:
1586         lib/acl-internal.h:300:3: error: 'const' attribute on function \
1587           returning 'void' [-Werror=attributes]
1589 2018-06-24  Jim Meyering  <meyering@fb.com>
1591         parse-datetime: accommodate gcc-4.8.5
1592         Bruno Haible reported the build failure in
1593         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
1594         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
1595         on declaration of new local.
1597 2018-06-24  Bruno Haible  <bruno@clisp.org>
1599         af_alg: Fail in continuable manner on Linux/powerpc64le.
1600         Reported by Assaf Gordon <assafgordon@gmail.com>
1601         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
1602         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
1603         byte send() as the first round.
1605 2018-06-24  Bruno Haible  <bruno@clisp.org>
1607         af_alg: Fix state of stream after sendfile() succeeds.
1608         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
1609         the stream is correctly positioned afterwards.
1610         * modules/crypto/af_alg (Depends-on): Add fflush.
1611         * tests/test-digest.h (test_digest_on_files): Verify that after the
1612         operation the stream is positioned at end of file.
1614 2018-06-24  Jim Meyering  <meyering@fb.com>
1616         canon-host: take GCC9's advice rather than ignoring warning
1617         Pádraig Brady suggested not to ignore this GCC9 advice.
1618         * lib/canon-host.c: Undo preceding change.
1619         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
1621         parse-datetime.y: avoid spurious GCC 9 warning
1622         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
1623         a function local prior to the first "goto fail".  The prior use would
1624         evoke this:
1625         parse-datetime.y: In function 'parse_datetime2':
1626         parse-datetime.y:1791:19: error: jump skips variable initialization \
1627           [-Werror=jump-misses-init]
1628         parse-datetime.y:2385:2: note: label 'fail' defined here
1629         parse-datetime.y:188:43: note: '({anonymous})' declared here
1630         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
1632         canon-host.c: avoid spurious GCC 9 warning
1633         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
1635         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
1636         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
1637         * m4/manywarnings.m4: Remove them.
1638         Otherwise, building coreutils, I would see this:
1639         cc1: error: deprecated command line option '-Wchkp' [-Werror]
1640         cc1: error: -Wabi won't warn about anything [-Werror=abi]
1641         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
1642           which is also used by default
1643         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
1645 2018-06-24  Bruno Haible  <bruno@clisp.org>
1647         af_alg tests: Add another test.
1648         * tests/test-digest.h (test_digest_on_files): Also check a large file
1649         with a skipped header.
1650         * tests/test-md5.c: Include macros.h.
1651         * tests/test-sha1.c: Likewise.
1652         * tests/test-sha256.c: Likewise.
1653         * tests/test-sha512.c: Likewise.
1654         * modules/crypto/md5-tests (Files): Add tests/macros.h.
1655         * modules/crypto/sha1-tests (Files): Likewise.
1656         * modules/crypto/sha256-tests (Files): Likewise.
1657         * modules/crypto/sha512-tests (Files): Likewise.
1659 2018-06-24  Pádraig Brady  <P@draigBrady.com>
1661         maint: clarify comments about sticky EOF
1662         * lib/af_alg.c: Be more direct that we can't
1663         assume stickiness of EOF for portability reasons.
1664         * lib/md5.c: Clarify that this isn't just a glibc issue.
1665         * lib/sha1.c: Likewise.
1666         * lib/sha256.c: Likewise.
1667         * lib/sha512.c: Likewise.
1669 2018-06-24  Bruno Haible  <bruno@clisp.org>
1671         af_alg: Comment and style improvements.
1672         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
1673         (afalg_buffer, afalg_stream): Improve comments.
1675 2018-06-24  Pádraig Brady  <P@draigBrady.com>
1677         af_alg: disable kernel hash functions by default
1678         All the kernel routines were seen to be significantly slower
1679         with these relatively recent components on an i3-2310M system:
1680           kernel-4.10.6-200.fc25.x86_64
1681           openssl-1.0.2m-1.fc25.x86_64
1682         sha1 was nearly twice as slow in the kernel for example.
1683         Further considerations why this should not be the default, at:
1684         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
1686         * m4/af_alg.m4: Require --with-linux-crypto to enable.
1687         * m4/gl-openssl.m4: Tweak accordingly.
1689 2018-06-24  Pádraig Brady  <P@draigBrady.com>
1691         af_alg: avoid hangs when reading from streams
1692         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
1693         and thus avoid doing a fread() when feof() is set.
1694         * lib/md5.c: Ensure feof() is called before fread().
1695         * lib/sha1.c: Likewise.
1696         * lib/sha256.c: Likewise.
1697         * lib/sha512.c: Likewise.
1699 2018-06-24  Pádraig Brady  <P@draigBrady.com>
1701         af_alg: fix error handling when hash not returned
1702         * lib/af_alg.c (afalg_stream): Handle the case where we've
1703         successfully written data to the kernel in the read/write loop,
1704         but the kernel doesn't respond with the hash.
1706 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
1708         libc-config: merge from glibc
1709         * lib/cdefs.h (__inline, __restrict):
1710         Copy from current glibc.  This fixes glibc bug 17721,
1711         which Gnulib had already fixed in a different way.
1712         (__nonnull): Lessen the distance from glibc by using the
1713         glibc definition inside an ‘#ifndef __nonnull’.
1714         (__attribute_nonstring__): New macro, copied from
1715         current glibc.
1716         * lib/libc-config.h (__attribute_nonstring__): New undef.
1717         (__restrict): Remove; workaround no longer needed.
1718         Keep the __inline workaround, though, as it uses HAVE___INLINE to
1719         support more compilers than the glibc __inline can.
1721 2018-06-24  Bruno Haible  <bruno@clisp.org>
1723         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
1724         * lib/mbrtowc.c (enc_t): New enum type.
1725         (locale_enc, locale_enc_cached): New functions.
1726         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
1727         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
1728         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
1729         instead.
1730         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
1731         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
1732         * modules/wcwidth (configure.ac): Invoke it.
1734 2018-06-24  Bruno Haible  <bruno@clisp.org>
1736         wchar-single: Fix test failure in wcwidth tests.
1737         * tests/test-wcwidth.c (main): If the wchar-single module is present,
1738         skip the tests in the C locale.
1740 2018-06-23  Pádraig Brady  <P@draigBrady.com>
1742         crypto: mention --without-linux-crypto in --with-openssl --help
1743         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
1744         routines take precedence in --with-openssl help output.
1746 2018-06-23  Pádraig Brady  <P@draigBrady.com>
1748         wchar-single: a new module to enable optimizations in wchar replacements
1749         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
1750         GNULIB_WCHAR_SINGLE is enabled.
1751         * lib/wcwidth.c (wcwidth): Likewise.
1753 2018-06-23  Bruno Haible  <bruno@clisp.org>
1755         libc-config: Fix conflict with FreeBSD include files.
1756         * lib/cdefs.h (__nonnull): Remove definition.
1757         * lib/libc-config.h (__nonnull): Remove undefinition.
1759 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1761         random_r: do not crash if state is unaligned
1762         Problem reported by Bruce Korb in:
1763         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
1764         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
1765         with 'cc -O2 -xmemalign=8s'.
1766         * lib/random_r.c: Include string.h, for memcpy.
1767         (get_int32, set_int32): New functions.
1768         (__srandom_r, __initstate_r, __setstate_r, __random_r):
1769         Use them to avoid assumption that state pointer is aligned.
1770         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
1771         * tests/test-random_r.c (test_failed): New function.
1772         (main): Use it, to test for alignment bugs.
1774         random_r: omit unnecessary include
1775         * lib/random_r.c: Do not include limits.h.
1777         random, random_r: merge from glibc
1778         * lib/random.c, lib/random_r.c:
1779         Include libc-config.h if !_LIBC, not config.h unilaterally.
1780         * lib/random.c:
1781         Do not include stdint.h or time.h; not needed.
1782         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
1783         (unsafe_state): Rename from generator.  All uses changed.
1784         Use C99-style initializers.
1785         (__random, __srandom, __initstate, __setstate): Rename from
1786         non-underscored version, but define it to non-underscored version
1787         on Gnulib.  Add a lock.
1788         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
1789         Likewise.
1790         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
1791         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
1792         (__srandom_r): Use int32_t instead of long int where int32_t will do.
1793         (__random_r): Use uint32 to fix glibc bug 17343.
1794         * modules/random, modules/random_r (Depends-on): Add libc-config.
1795         Depend on stdint only if $HAVE_RANDOM = 0.
1797 2018-06-19  Jim Meyering  <meyering@fb.com>
1799         README-release: also run any check-very-expensive tests
1800         * top/README-release: Adjust instructions so they run the
1801         check-very-expensive tests when there is such a target.
1803 2018-06-18  Bruno Haible  <bruno@clisp.org>
1805         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
1806         * m4/pthread_rwlock_rdlock.m4: Add comment.
1807         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
1808         are reader-preferring in glibc.
1809         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
1810         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
1812 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
1814         crypto: use byteswap
1815         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1816         * lib/sm3.c: Include <byteswap.h>.
1817         (SWAP): Use its macros rather than reinventing the wheel.
1818         * modules/crypto/md4, modules/crypto/md5-buffer:
1819         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
1820         * modules/crypto/sha512-buffer, modules/crypto/sm3:
1821         (Depends-on): Add byteswap.
1823 2018-06-17  Pádraig Brady  <P@draigBrady.com>
1825         gendocs.sh: fix support for legacy --texi2html
1826         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
1827         to the default makeinfo invocation.
1828         Reported by Bruce Korb
1830 2018-06-17  Bruno Haible  <bruno@clisp.org>
1832         gettext po infrastructure: Update from current gettext git.
1833         Reported by Akim Demaille <akim@lrde.epita.fr>.
1834         * build-aux/po/Makefile.in.in: Update from current gettext git.
1835         * build-aux/po/remove-potcdate.sin: Likewise.
1836         * config/srclist.txt: Temporarily disable sync for these files.
1838 2018-06-17  Bruno Haible  <bruno@clisp.org>
1840         getloadavg: Return 0 on Windows without Cygwin.
1841         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
1843 2018-06-17  Paul Smith  <psmith@gnu.org>
1845         getloadavg: Allow building on Windows without Cygwin
1846         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
1847         * m4/getloadavg.m4: Check for unistd.h.
1849 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
1851         Port crypto/af_alg to GCC 4.8.4
1852         Problem reported by Peter Simons in:
1853         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
1854         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
1856 2018-05-27  Colin Watson  <cjwatson@debian.org>
1858         bootstrap: document source fetching in --help
1859         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
1861 2018-04-09  Colin Watson  <cjwatson@debian.org>
1863         bootstrap: allow non-submodule control of gnulib
1864         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
1865         bootstrap.conf when fetching gnulib using "git clone" or via
1866         GNULIB_SRCDIR.
1868 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1870         crypto: omit stream ops Emacs doesn’t need
1871         * lib/md5.c (md5_stream):
1872         * lib/sha1.c (sha1_stream):
1873         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
1874         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
1875         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
1876         defined.  Emacs needs this, as it does not use the stream
1877         operations and doesn’t need all the af_alg stuff we’ve recently
1878         added.  Perhaps a similar change is needed to the other crypto
1879         modules, but this patch changes only those needed for Emacs.
1880         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
1881         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
1882         New modules, used by Emacs.
1883         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1884         * modules/crypto/sha512: Rewrite to depend on the new modules.
1886 2018-05-20  Pádraig Brady  <P@draigBrady.com>
1888         fts: avoid a memory leak edge case
1889         * lib/fts.c (fts_open): Set an appropriate fts_level
1890         so that an immediate fts_close() will free the allocation.
1891         * tests/test-fts.c (fts_dealloc): Add a test case which
1892         will trigger under valgrind or address sanitizer.
1893         Fixes https://bugs.gnu.org/31439
1895 2018-05-20  Bruno Haible  <bruno@clisp.org>
1897         wcwidth tests: Fix link error.
1898         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
1899         $(LIBUNISTRING).
1901 2018-05-20  Bruno Haible  <bruno@clisp.org>
1903         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
1904         * modules/regex (Files): Add m4/glibc21.m4.
1906 2018-05-20  Bruno Haible  <bruno@clisp.org>
1908         localcharset: Optimize.
1909         * lib/localcharset.c (alias_table): Comment out no-op mappings for
1910         platforms where these don't matter. This reduces the table size,
1911         which in turn reduces the lookup time.
1913 2018-05-19  Bruno Haible  <bruno@clisp.org>
1915         localcharset: Map the locale encodings found in newer OSes.
1916         * lib/localcharset.c (alias_table): Add mapping for locale encodings
1917         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
1918         IRIX 6.5, Minix 3.3.
1919         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
1921 2018-05-19  Bruno Haible  <bruno@clisp.org>
1923         localcharset: Move mapping tables into the code. Use a binary search.
1924         * lib/localcharset.h: Document the GNU canonical names for character
1925         encodings here.
1926         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
1927         relocatable.h, configmake.h.
1928         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
1929         macros.
1930         (charset_aliases): Remove variable.
1931         (get_charset_aliases): Remove function.
1932         (struct table_entry): New type.
1933         (alias_table, locale_table): New constants.
1934         (locale_charset): Use the alias_table or locale_table to get the
1935         canonicalized encoding name.
1936         * lib/config.charset: Remove file.
1937         * lib/ref-add.sin: Remove file.
1938         * lib/ref-del.sin: Remove file.
1939         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
1940         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
1941         * modules/localcharset (Notice): Remove.
1942         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
1943         glibc21.m4.
1944         (Depends-on): Remove configmake.
1945         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
1946         (Makefile.am): Simplify.
1947         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
1949 2018-05-19  Bruno Haible  <bruno@clisp.org>
1951         localcharset: Add a manual test.
1952         * tests/test-localcharset.c: New file.
1953         * modules/localcharset-tests: New file.
1955 2018-05-19  Bruno Haible  <bruno@clisp.org>
1957         localcharset: Remove support for obsolete platforms.
1958         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
1959         Mac OS X 10.2. Comment out dubious entry for Solaris.
1961 2018-05-19  Jim Meyering  <meyering@fb.com>
1963         gnupload: adjust comment
1964         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
1965         more likely we'll remove the just-added code in a year or two.
1967 2018-05-19  Bruno Haible  <bruno@clisp.org>
1969         gnupload: Fix "gpg-agent is not available in this session" error.
1970         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
1972 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1974         crypto/af_alg: fix --help
1975         * m4/af_alg.m4: Avoid spurious newline in --help output.
1977 2018-05-13  Bruno Haible  <bruno@clisp.org>
1979         nl_langinfo: Fix compilation error on Android.
1980         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
1981         INT_CURR_SYMBOL, etc. only if these items are defined.
1983 2018-05-13  Bruno Haible  <bruno@clisp.org>
1985         truncate: Fix compilation error on Android.
1986         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
1987         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
1988         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
1989         HAVE_TRUNCATE.
1990         * modules/truncate: Likewise.
1991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
1992         not HAVE_TRUNCATE.
1993         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
1994         HAVE_TRUNCATE.
1995         * doc/posix-functions/truncate.texi: Mention the issue.
1997 2018-05-13  Bruno Haible  <bruno@clisp.org>
1999         pthread: Fix compilation error on Android.
2000         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
2001         recursive inclusion of this file.
2003 2018-05-13  Bruno Haible  <bruno@clisp.org>
2005         posix_spawn: Fix compilation error on Android.
2006         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
2007         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
2008         (posix_spawn_file_actions_t): Consider also the case
2009         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
2011 2018-05-13  Bruno Haible  <bruno@clisp.org>
2013         tsearch: Move from K&R C to ANSI C.
2014         * lib/tsearch.c (tfind): Convert definition to ANSI C.
2016 2018-05-13  Bruno Haible  <bruno@clisp.org>
2018         tsearch: Fix compilation error on Android.
2019         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
2020         is 0.
2021         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
2022         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
2023         GNULIB_defined_tsearch is true.
2024         (twalk): Define only if GNULIB_defined_twalk is true.
2025         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
2026         is 0.
2027         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
2028         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
2029         * modules/search (Makefile.am): Substitute HAVE_TWALK.
2031 2018-05-13  Bruno Haible  <bruno@clisp.org>
2033         imaxdiv: Fix compilation error on Android.
2034         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
2035         is not defined.
2036         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
2037         HAVE_DECL_IMAXDIV, is 0.
2038         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
2039         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
2041 2018-05-13  Bruno Haible  <bruno@clisp.org>
2043         Support selective inclusion mechanism of recent mingw.org header files.
2044         Reported by Eli Zaretskii <eliz@gnu.org>.
2045         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
2046         __need_ssize_t, or __need_time_t is defined, just include the system's
2047         <sys/types.h>.
2048         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
2049         include the system's <locale.h>.
2051 2018-05-13  Bruno Haible  <bruno@clisp.org>
2053         Avoid compilation error due to 'mmap' on Android.
2054         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
2055         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
2056         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
2057         Undefine on Android.
2059 2018-05-13  Bruno Haible  <bruno@clisp.org>
2061         Add cross-compilation guesses for Linux systems without glibc.
2062         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
2063         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
2064         * m4/link.m4 (gl_FUNC_LINK): Likewise.
2065         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
2066         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
2067         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
2068         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
2069         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
2070         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
2071         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
2072         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2073         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2074         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
2075         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2076         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
2077         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
2078         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2079         * m4/utimens.m4 (gl_UTIMENS): Likewise.
2081 2018-05-13  Bruno Haible  <bruno@clisp.org>
2083         getpagesize: Fix compilation error on Android.
2084         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
2085         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
2086         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
2087         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
2088         HAVE_GETPAGESIZE accordingly.
2089         * modules/getcwd (Files): Add m4/getpagesize.m4.
2091 2018-05-13  Bruno Haible  <bruno@clisp.org>
2093         tcgetsid: Fix compilation error on Android.
2094         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
2095         AC_CHECK_FUNC.
2097 2018-05-13  Bruno Haible  <bruno@clisp.org>
2099         getpass: Fix configure test for Android.
2100         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
2101         AC_CHECK_FUNC.
2103 2018-05-13  Bruno Haible  <bruno@clisp.org>
2105         ffs: Fix compilation error on Android.
2106         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
2108 2018-05-13  Bruno Haible  <bruno@clisp.org>
2110         mkfifo: Fix compilation error on Android.
2111         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
2112         AC_CHECK_FUNC.
2114 2018-05-13  Bruno Haible  <bruno@clisp.org>
2116         c-strtod: Fix configure test for Android.
2117         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
2118         AC_CHECK_FUNC.
2120 2018-05-13  Bruno Haible  <bruno@clisp.org>
2122         random: Fix compilation error on Android.
2123         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
2124         AC_CHECK_FUNC.
2126 2018-05-13  Bruno Haible  <bruno@clisp.org>
2128         grantpt: Fix compilation error on Android.
2129         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
2130         AC_CHECK_FUNC.
2132 2018-05-13  Bruno Haible  <bruno@clisp.org>
2134         stdioext: Fix compilation errors with newer Android headers.
2135         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
2136         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
2137         fallbacks for Android.
2138         * lib/fpending.c: Update comments.
2139         * lib/fpurge.c: Likewise.
2140         * lib/freadable.h: Likewise.
2141         * lib/freadable.c: Likewise.
2142         * lib/freadahead.c: Likewise.
2143         * lib/freading.h: Likewise.
2144         * lib/freadptr.c: Likewise.
2145         * lib/fseterr.c: Likewise.
2146         * lib/fwritable.h: Likewise.
2147         * lib/fwritable.c: Likewise.
2148         * lib/fwriting.h: Likewise.
2149         * lib/fwriting.c: Likewise.
2151 2018-05-13  Bruno Haible  <bruno@clisp.org>
2153         doc: Add info about Android versions 2.0 to 8.1.
2154         * doc/**/*.texi: Add info about functions in all released versions of
2155         Bionic.
2157 2018-05-12  Bruno Haible  <bruno@clisp.org>
2159         fseeko: On mingw, don't use the hidden function _fseeki64.
2160         Reported by Eli Zaretskii <eliz@gnu.org>.
2161         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
2162         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
2164 2018-05-12  Bruno Haible  <bruno@clisp.org>
2166         glob: Choose 'dirent_type' in a way that works better on mingw.
2167         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
2168         * lib/glob.c (dirent_type): Define as uint_fast32_t.
2170 2018-05-12  Bruno Haible  <bruno@clisp.org>
2172         execute, spawn-pipe: Avoid warning about redefining 'close'.
2173         Reported by Eli Zaretskii <eliz@gnu.org>.
2174         * lib/execute.c: Undefine 'close' before redefining it.
2175         * lib/spawn-pipe.c: Likewise.
2177 2018-05-12  Bruno Haible  <bruno@clisp.org>
2179         nanosleep: Avoid test failure on mingw when it has nanosleep.
2180         Reported by Eli Zaretskii <eliz@gnu.org>.
2181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
2182         If it does not exist, use a simpler test program that does not call
2183         alarm().
2185 2018-05-10  Bruno Haible  <bruno@clisp.org>
2187         lock, cond, thread, tls: Use a different symbol as libpthread witness.
2188         Reported by Devin Hussey <husseydevin@gmail.com>.
2189         Based on a patch by Paul Eggert.
2190         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
2191         as witness of libpthread.
2192         * lib/glthread/cond.h (pthread_in_use): Likewise.
2193         * lib/glthread/thread.h (pthread_in_use): Likewise.
2194         * lib/glthread/tls.h (pthread_in_use): Likewise.
2196 2018-05-10  Bruno Haible  <bruno@clisp.org>
2198         cond tests: Fix compilation error on Solaris.
2199         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
2200         macro.
2202 2018-05-10  Bruno Haible  <bruno@clisp.org>
2204         doc: Add partial info about Android 4.3.
2205         * doc/*-functions/*.texi: Add info about functions that were added
2206         to Bionic between Android 4.3 and Android 9.0.
2208 2018-05-10  Bruno Haible  <bruno@clisp.org>
2210         doc: Add info about Android 9.0.
2211         * doc/**/*.texi: Add info about functions and headers in Bionic from
2212         Android 9.0.
2214 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
2216         af_alg: fix my typo in afalg_buffer
2217         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
2218         (afalg_stream): Simplify and avoid the need for a runtime test
2219         at the end.
2221         af_alg: recover better from crypto failures
2222         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
2223         input stream is seekable, by repositioning the stream back to
2224         where it was, possibly by just calling sendfile with an offset
2225         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
2226         cases, which lets our callers try again with user-mode code.
2227         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
2228         instead of on fflush and lseek.
2230         af_alg: distiguish I/O errors better
2231         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
2232         not -EIO, if it’s OK for the caller to try again with user-mode code.
2233         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
2234         some other error number) if fflush fails, as the caller should not
2235         try again that case.
2237         af_alg: avoid gotos
2238         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
2239         gotos, as they were a source of unreliability and made the code a
2240         bit harder to follow.
2242         af_alg: don’t leak file descriptors into children
2243         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
2244         This code should be compiled only on recent GNU/Linux platforms
2245         so we shouldn’t have to also depend on the accept4 module.
2247         af_alg: coalesce socket creation
2248         * lib/af_alg.c (alg_socket): New function.
2249         (afalg_buffer, afalg_stream): Use it.  This avoids some
2250         code duplication and gotos.
2252         af_alg: fix file descriptor leak
2253         * lib/af_alg.c (afalg_stream): Close leak.
2255         af_alg: Pacify --enable-gcc-warnings on GCC 8
2256         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
2257         and checking to pacify gcc -Wjump-misses-init on GCC 8.
2259 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2261         af_alg: Pacify --enable-gcc-warnings
2262         Problem reported by Assaf Gordon in:
2263         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
2264         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
2265         gcc -Wjump-misses-init.
2266         * lib/sha512.c (shaxxx_stream): Now static.
2268 2018-05-06  Bruno Haible  <bruno@clisp.org>
2270         af_alg: Add ability to use Linux kernel crypto API on data in memory.
2271         * lib/af_alg.h (afalg_buffer): New declaration.
2272         * lib/af_alg.c (afalg_buffer): New function.
2274 2018-05-06  Bruno Haible  <bruno@clisp.org>
2276         af_alg: Avoid warnings.
2277         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
2278         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
2280 2018-05-06  Bruno Haible  <bruno@clisp.org>
2282         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
2283         * tests/bench-digest.h: New file.
2284         * tests/bench-md5.c: New file.
2285         * tests/bench-sha1.c: New file.
2286         * tests/bench-sha224.c: New file.
2287         * tests/bench-sha256.c: New file.
2288         * tests/bench-sha384.c: New file.
2289         * tests/bench-sha512.c: New file.
2290         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
2291         tests/bench-digest.h.
2292         (Depends-on): Add getrusage, gettimeofday.
2293         (Makefile.am): Add variables to build bench-md5.
2294         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
2295         tests/bench-digest.h.
2296         (Depends-on): Add getrusage, gettimeofday.
2297         (Makefile.am): Add variables to build bench-sha1.
2298         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
2299         tests/bench-sha256.c, tests/bench-digest.h.
2300         (Depends-on): Add getrusage, gettimeofday.
2301         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
2302         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
2303         tests/bench-sha512.c, tests/bench-digest.h.
2304         (Depends-on): Add getrusage, gettimeofday.
2305         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
2307 2018-05-06  Bruno Haible  <bruno@clisp.org>
2309         af_alg: Fix a resource leak.
2310         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
2311         New local variable 'result'.
2313 2018-05-06  Bruno Haible  <bruno@clisp.org>
2315         af_alg: Fix bug with streams that are not at position 0.
2316         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
2317         assume that the stream is positioned at position 0.
2318         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
2319         of the stream.
2320         * lib/md5.h (md5_stream): Likewise.
2321         * lib/sha1.h (sha1_stream): Likewise.
2322         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
2323         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
2324         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
2326         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
2327         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
2328         stream that is not positioned at the beginning.
2330 2018-05-06  Bruno Haible  <bruno@clisp.org>
2332         af_alg: Add configure option to enable/disable use of Linux crypto API.
2333         Suggested by Assaf Gordon <assafgordon@gmail.com>.
2334         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
2335         USE_LINUX_CRYPTO_API.
2336         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
2337         * lib/af_alg.c: Likewise.
2339 2018-05-06  Bruno Haible  <bruno@clisp.org>
2341         Followup to 'af_alg: New module.'.
2342         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
2343         * modules/crypto/sha1 (Depends-on): Likewise.
2344         * modules/crypto/sha256 (Depends-on): Likewise.
2345         * modules/crypto/sha512 (Depends-on): Likewise.
2347 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2349         crypto/{md5,sha1,sha256,sha512}: simplify
2350         * lib/md5.c (md5_stream):
2351         * lib/sha1.c (sha1_stream):
2352         * lib/sha256.c (shaxxx_stream):
2353         Simplify, partly by assuming C99.
2354         * lib/sha256.c (shaxxx_stream):
2355         New function, which implements both sha256 and sha224.
2356         Simplify, partly by assuming C99.
2357         (sha256_stream, sha224_stream):
2358         Use it to avoid code duplication, removing a FIXME.
2359         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
2360         Likewise.
2362         af_alg: Improve comments.
2363         * lib/af_alg.h: Use imperatives and tighten up wording.
2365 2018-05-05  Bruno Haible  <bruno@clisp.org>
2367         af_alg: Improve comments.
2368         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
2370 2018-05-05  Bruno Haible  <bruno@clisp.org>
2372         af_alg: New module.
2373         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
2374         * lib/af_alg.c: Include "af_alg.h" before the other header files.
2375         * lib/md5.c: Include "af_alg.h" unconditionally.
2376         (md5_stream): Invoke afalg_stream unconditionally.
2377         * lib/sha1.c: Include "af_alg.h" unconditionally.
2378         (sha1_stream): Invoke afalg_stream unconditionally.
2379         * lib/sha256.c: Include "af_alg.h" unconditionally.
2380         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
2381         * lib/sha512.c: Include "af_alg.h" unconditionally.
2382         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
2383         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
2384         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
2385         * modules/crypto/af_alg: New file.
2386         * modules/crypto/md5 (Files): Remove files that are now in the
2387         'crypto/af_alg' module.
2388         (Depends-on): Add crypto/af_alg.
2389         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
2390         (Makefile.am): Don't mention af_alg.c here.
2391         * modules/crypto/sha1 (Files): Remove files that are now in the
2392         'crypto/af_alg' module.
2393         (Depends-on): Add crypto/af_alg.
2394         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
2395         (Makefile.am): Don't mention af_alg.c here.
2396         * modules/crypto/sha256 (Files): Remove files that are now in the
2397         'crypto/af_alg' module.
2398         (Depends-on): Add crypto/af_alg.
2399         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
2400         (Makefile.am): Don't mention af_alg.c here.
2401         * modules/crypto/sha512 (Files): Remove files that are now in the
2402         'crypto/af_alg' module.
2403         (Depends-on): Add crypto/af_alg.
2404         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
2405         (Makefile.am): Don't mention af_alg.c here.
2407 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2409         crypto tests: pacify GCC
2410         * tests/test-digest.h (test_digest_on_files):
2411         Don’t assume digest size fits in int (!).
2413         af_alg: minor style improvements
2414         * lib/af_alg.c (afalg_stream): Prefer C99 style
2415         decl-after-statement, since we’re already assuming C99.  Clarify
2416         by strengthening the bind test and omit unnecessary assignment.
2418 2018-05-05  Bruno Haible  <bruno@clisp.org>
2420         af_alg: Fix bug on empty files.
2421         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
2422         stream is empty.
2424 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2426         sys-limits.h: new file for crypto and safe I/O
2427         * lib/af_alg.c: Include sys-limits.h.
2428         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
2429         (afalg_stream): Also reject negative sizes for sendfile; they
2430         should not happen and the code is a bit cleaner and faster this way.
2431         * lib/safe-read.c: Include sys-limits.h.
2432         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
2433         * lib/sys-limits.h: New file, with values and commentary derived
2434         from the old safe-read.c and from GNU Emacs sysdep.c.
2435         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2436         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
2437         Add lib/sys-limits.h to Files section.
2439 2018-05-05  Bruno Haible  <bruno@clisp.org>
2441         af_alg: Improve function signature.
2442         * lib/af_alg.h (afalg_stream): Swap second and third argument.
2443         * lib/af_alg.c (afalg_stream): Likewise.
2444         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
2446 2018-05-05  Bruno Haible  <bruno@clisp.org>
2448         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
2449         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
2450         * modules/crypto/sha1 (Depends-on): Likewise.
2451         * modules/crypto/sha256 (Depends-on): Likewise.
2452         * modules/crypto/sha512 (Depends-on): Likewise.
2454 2018-05-05  Bruno Haible  <bruno@clisp.org>
2456         crypto/{md5,sha1,sha256,sha512}: Fix module description.
2457         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
2458         * modules/crypto/sha1 (Depends-on): Likewise.
2459         * modules/crypto/sha256 (Depends-on): Likewise.
2460         * modules/crypto/sha512 (Depends-on): Likewise.
2462 2018-05-05  Bruno Haible  <bruno@clisp.org>
2464         af_alg: Add documentation.
2465         * lib/af_alg.h: Add comments.
2467 2018-05-05  Bruno Haible  <bruno@clisp.org>
2469         sha512: Add tests.
2470         * tests/test-sha512.c: New file.
2471         * modules/crypto/sha512-tests: New file.
2473 2018-05-05  Bruno Haible  <bruno@clisp.org>
2475         sha256: Add tests.
2476         * tests/test-sha256.c: New file.
2477         * modules/crypto/sha256-tests: New file.
2479 2018-05-05  Bruno Haible  <bruno@clisp.org>
2481         sha1 tests: Add test for sha1_stream.
2482         * tests/test-sha1.c: Include test-digest.h.
2483         (main): Invoke test_digest_on_files on 'sha1_stream'.
2484         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
2486 2018-05-05  Bruno Haible  <bruno@clisp.org>
2488         md5 tests: Add test for md5_stream.
2489         * tests/test-digest.h: New file.
2490         * tests/test-md5.c: Include test-digest.h.
2491         (main): Invoke test_digest_on_files on 'md5_stream'.
2492         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
2494 2018-04-28  Matteo Croce  <mcroce@redhat.com>
2496         md5sum: Use AF_ALG when available.
2497         * lib/md5.c: Include af_alg.h.
2498         (md5_stream): Use afalg_stream when available.
2499         * modules/crypto/md5 (Files): Add the af_alg files.
2500         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
2501         (Makefile.am): Add af_alg.c.
2503 2018-04-28  Matteo Croce  <mcroce@redhat.com>
2505         sha512sum: Use AF_ALG when available.
2506         * lib/sha512.c: Include af_alg.h.
2507         (sha512_stream, sha384_stream): Use afalg_stream when available.
2508         * modules/crypto/sha512 (Files): Add the af_alg files.
2509         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
2510         (Makefile.am): Add af_alg.c.
2512 2018-04-28  Matteo Croce  <mcroce@redhat.com>
2514         sha256sum: Use AF_ALG when available.
2515         * lib/sha256.c: Include af_alg.h.
2516         (sha256_stream, sha224_stream): Use afalg_stream when available.
2517         * modules/crypto/sha256 (Files): Add the af_alg files.
2518         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
2519         (Makefile.am): Add af_alg.c.
2521 2018-04-28  Matteo Croce  <mcroce@redhat.com>
2523         sha1sum: Use AF_ALG when available.
2524         * lib/af_alg.h: New file.
2525         * lib/af_alg.c: New file.
2526         * lib/sha1.c: Include af_alg.h.
2527         (sha1_stream): Use afalg_stream when available.
2528         * m4/linux-if-alg.m4: New file.
2529         * modules/crypto/sha1 (Files): Add the new files.
2530         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
2531         (Makefile.am): Add af_alg.c.
2533 2018-05-05  Bruno Haible  <bruno@clisp.org>
2535         all: Replace more http URLs by https URLs.
2536         * lib/localename.c: Use https: URL.
2537         * lib/timespec.h: Likewise.
2539 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
2541         maint: port more modules to GCC 8
2542         * lib/dirname.h (base_name):
2543         * lib/exclude.h (new_exclude):
2544         * lib/xstrndup.h (xstrndup):
2545         Add malloc attribute.
2546         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
2547         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
2548         This pacifies GCC 8.
2549         * m4/gnulib-common.m4 (gl_COMMON_BODY):
2550         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
2552 2018-05-03  Bruno Haible  <bruno@clisp.org>
2554         Simplify code. Drop support for Borland C++ on Windows.
2555         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
2556         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
2557         'defined _WIN32'.
2558         * lib/canonicalize-lgpl.c: Likewise.
2559         * lib/classpath.c: Likewise.
2560         * lib/clean-temp.c: Likewise.
2561         * lib/csharpexec.c: Likewise.
2562         * lib/ctime.c: Likewise.
2563         * lib/dosname.h: Likewise.
2564         * lib/dup2.c: Likewise.
2565         * lib/errno.in.h: Likewise.
2566         * lib/error.c: Likewise.
2567         * lib/euidaccess.c: Likewise.
2568         * lib/execute.c: Likewise.
2569         * lib/fcntl.in.h: Likewise.
2570         * lib/fcntl.c: Likewise.
2571         * lib/filename.h: Likewise.
2572         * lib/findprog.c: Likewise.
2573         * lib/flock.c: Likewise.
2574         * lib/fopen.c: Likewise.
2575         * lib/freopen.c: Likewise.
2576         * lib/fstat.c: Likewise.
2577         * lib/fsync.c: Likewise.
2578         * lib/gc-gnulib.c: Likewise.
2579         * lib/get-rusage-data.c: Likewise.
2580         * lib/getaddrinfo.c: Likewise.
2581         * lib/getdelim.c: Likewise.
2582         * lib/getdtablesize.c: Likewise.
2583         * lib/gethostname.c: Likewise.
2584         * lib/getlogin.c: Likewise.
2585         * lib/getlogin_r.c: Likewise.
2586         * lib/getopt.c: Likewise.
2587         * lib/getpagesize.c: Likewise.
2588         * lib/getpass.c: Likewise.
2589         * lib/getrusage.c: Likewise.
2590         * lib/gettimeofday.c: Likewise.
2591         * lib/glob.c: Likewise.
2592         * lib/inttypes.in.h: Likewise.
2593         * lib/isapipe.c: Likewise.
2594         * lib/javaexec.c: Likewise.
2595         * lib/link.c: Likewise.
2596         * lib/localcharset.c: Likewise.
2597         * lib/localename.h: Likewise.
2598         * lib/localename.c: Likewise.
2599         * lib/localtime.c: Likewise.
2600         * lib/lseek.c: Likewise.
2601         * lib/mbsinit.c: Likewise.
2602         * lib/mkdir.c: Likewise.
2603         * lib/msvc-nothrow.h: Likewise.
2604         * lib/nanosleep.c: Likewise.
2605         * lib/nl_langinfo.c: Likewise.
2606         * lib/nonblocking.c: Likewise.
2607         * lib/nproc.c: Likewise.
2608         * lib/open.c: Likewise.
2609         * lib/openpty.c: Likewise.
2610         * lib/pathmax.h: Likewise.
2611         * lib/pipe-filter-aux.c: Likewise.
2612         * lib/pipe-filter-gi.c: Likewise.
2613         * lib/pipe-filter-ii.c: Likewise.
2614         * lib/pipe.c: Likewise.
2615         * lib/pipe2.c: Likewise.
2616         * lib/poll.c: Likewise.
2617         * lib/popen.c: Likewise.
2618         * lib/posix_openpt.c: Likewise.
2619         * lib/printf-parse.c: Likewise.
2620         * lib/progreloc.c: Likewise.
2621         * lib/putenv.c: Likewise.
2622         * lib/read.c: Likewise.
2623         * lib/relocatable.c: Likewise.
2624         * lib/rename.c: Likewise.
2625         * lib/same-inode.h: Likewise.
2626         * lib/secure_getenv.c: Likewise.
2627         * lib/select.c: Likewise.
2628         * lib/sethostname.c: Likewise.
2629         * lib/setlocale.c: Likewise.
2630         * lib/sigaction.c: Likewise.
2631         * lib/sigprocmask.c: Likewise.
2632         * lib/sleep.c: Likewise.
2633         * lib/spawn-pipe.h: Likewise.
2634         * lib/spawn-pipe.c: Likewise.
2635         * lib/spawni.c: Likewise.
2636         * lib/stat-time.h: Likewise.
2637         * lib/stat-w32.c: Likewise.
2638         * lib/stat.c: Likewise.
2639         * lib/stdio.in.h: Likewise.
2640         * lib/stdio-impl.h: Likewise.
2641         * lib/stdio-read.c: Likewise.
2642         * lib/stdio-write.c: Likewise.
2643         * lib/stdlib.in.h: Likewise.
2644         * lib/strerror_r.c: Likewise.
2645         * lib/strftime-fixes.c: Likewise.
2646         * lib/sys_stat.in.h: Likewise.
2647         * lib/sys_types.in.h: Likewise.
2648         * lib/sys_wait.in.h : Likewise.
2649         * lib/system-quote.h: Likewise.
2650         * lib/system-quote.c: Likewise.
2651         * lib/tmpdir.c: Likewise.
2652         * lib/tzset.c: Likewise.
2653         * lib/uname.c: Likewise.
2654         * lib/unistd.in.h: Likewise.
2655         * lib/utime.in.h: Likewise.
2656         * lib/utime.c: Likewise.
2657         * lib/utimecmp.c: Likewise.
2658         * lib/utimens.c: Likewise.
2659         * lib/vasnprintf.c: Likewise.
2660         * lib/vma-iter.h: Likewise.
2661         * lib/vma-iter.c: Likewise.
2662         * lib/wait-process.c: Likewise.
2663         * lib/wcsftime.c: Likewise.
2664         * lib/wctype.in.h: Likewise.
2665         * lib/write.c: Likewise.
2666         * tests/nap.h: Likewise.
2667         * tests/test-cloexec.c: Likewise.
2668         * tests/test-dup-safer.c: Likewise.
2669         * tests/test-dup2.c: Likewise.
2670         * tests/test-dup3.c: Likewise.
2671         * tests/test-fcntl.c: Likewise.
2672         * tests/test-get-rusage-data.c: Likewise.
2673         * tests/test-getaddrinfo.c: Likewise.
2674         * tests/test-getlogin.h: Likewise.
2675         * tests/test-isatty.c: Likewise.
2676         * tests/test-localename.c: Likewise.
2677         * tests/test-mbrtowc-w32.c: Likewise.
2678         * tests/test-nonblocking.c: Likewise.
2679         * tests/test-nonblocking-pipe-main.c: Likewise.
2680         * tests/test-nonblocking-socket-main.c: Likewise.
2681         * tests/test-nonblocking-socket.h: Likewise.
2682         * tests/test-pipe.c: Likewise.
2683         * tests/test-pipe2.c: Likewise.
2684         * tests/test-poll.c: Likewise.
2685         * tests/test-pthread_sigmask1.c: Likewise.
2686         * tests/test-select.h: Likewise.
2687         * tests/test-sethostname2.c: Likewise.
2688         * tests/test-sigprocmask.c: Likewise.
2689         * tests/test-spawn-pipe-child.c: Likewise.
2690         * tests/test-stat-time.c: Likewise.
2691         * tests/test-system-quote-main.c: Likewise.
2692         * tests/test-utimens-common.h: Likewise.
2693         * tests/test-wcrtomb-w32.c: Likewise.
2694         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
2695         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
2696         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
2697         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
2698         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
2699         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
2700         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
2701         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
2702         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2703         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
2704         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
2705         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
2706         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
2707         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2708         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
2709         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2711 2018-05-02  Bruno Haible  <bruno@clisp.org>
2713         localename: Fix test failures on mingw.
2714         * lib/localename.c (gl_locale_name_thread): Remove code specific to
2715         native Windows.
2716         (gl_locale_name_posix): Move code specific to native Windows here.
2717         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
2718         Accept result without charset suffix, as it appears on mingw.
2720 2018-04-28  Paul Smith  <psmith@gnu.org>
2722         bootstrap: Avoid gnulib operations if not needed
2723         * build-aux/bootstrap: Remove unused variable gnulib_mk.
2724         Set $gnulib_extra_files early so it can be overridden in .conf.
2725         Remove redundant --import flag from $gnulib_tool_options.
2726         Set $use_gnulib to false if no gnulib modules or files are needed.
2727         If $use_gnulib is false, don't do anything related to gnulib.
2728         A lot of this is just whitespace (indentation) changes.
2730 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
2732         manywarnings: port to GCC 8.0
2733         * build-aux/gcc-warning.spec: Add -Wcatch-value,
2734         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
2735         fact that the GCC help message now mentions operands for
2736         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
2737         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
2738         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
2739         and -Wunused-const-variable.
2740         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
2741         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
2742         -Wmissing-attributes, -Wmultistatement-macros,
2743         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
2744         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
2746 2018-04-24  Bruno Haible  <bruno@clisp.org>
2748         sys_socket: Make SO_REUSEPORT available across platforms.
2749         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2750         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
2751         * doc/posix-headers/sys_socket.texi: Mention the issue.
2752         * tests/test-poll.c (SO_REUSEPORT): Remove.
2753         * tests/test-select.h: Include <sys/socket.h>.
2754         (SO_REUSEPORT): Remove.
2755         * modules/select-tests (Depends-on): Add 'sys_socket'.
2757 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
2759         localcharset: short-circuit the search for an alias on a Mac
2760         * lib/localcharset.c (get_charset_aliases): Add a tautological
2761         UTF-8 entry to speed up the search for this case.
2762         Most machines default to a UTF-8 locale nowadays, so begin the
2763         list of aliases with a dummy UTF-8 entry so it will be found
2764         immediately and a time-consuming search through the rest of
2765         the list is avoided.
2767 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
2769         fts: add comment
2770         * lib/fts.c (fts_build): Explain why ==, not >.
2771         See remark by Bernhard Voelker in:
2772         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
2774         fts: fix bug in find across filesystems
2775         This fixes a bug I introduced last summer.
2776         Problem reported by Kamil Dudka in:
2777         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
2778         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
2779         (leaf_optimization):
2780         New arg for file descriptor.  All callers changed.
2781         (fts_build): Check for whether inodes should be sorted
2782         before closing the directory.
2784 2018-04-07  Bruno Haible  <bruno@clisp.org>
2786         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
2787         Reported by Genki Sky <sky@genki.is>.
2788         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
2789         version 0.9.10 or newer.
2790         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
2791         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
2792         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
2793         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
2794         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
2796 2018-04-07  Bruno Haible  <bruno@clisp.org>
2798         execute: Update comment.
2799         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
2801 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
2803         fts: treat CIFS like NFS
2804         Problem reported by Kamil Dudka in:
2805         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
2806         * lib/fts.c (S_MAGIC_CIFS): New macro.
2807         (dirent_inode_sort_may_be_useful, leaf_optimization):
2808         Treat CIFS like NFS.
2810 2018-03-28  Bruno Haible  <bruno@clisp.org>
2812         c-stack: Fix possible build failure on some platforms.
2813         * lib/c-stack.c (die): Define whenever this function is referenced.
2815 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
2817         time_rz: fix workaround for Mac OS X 10.6 infloop
2818         Problems reported by Charles A. Roelli (Bug#27736#117).
2819         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
2820         Also, discard output, which clutters the 'configure' log.
2822 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
2824         havelib: port to Solaris 10 /bin/sh
2825         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
2826         instead of '! test EXPR'.
2828 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
2830         time_rz: work around Mac OS X 10.6 infloop
2831         * doc/posix-functions/localtime.texi:
2832         * doc/posix-functions/localtime_r.texi: Mention the bug.
2833         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
2834         better to fix localtime and localtime_r instead, but that would be
2835         more work and is not needed to fix the Emacs problem.
2836         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
2838 2018-03-24  Jim Meyering  <meyering@fb.com>
2840         test-version-etc.sh: don't use diff directly: use init.sh's compare
2841         We'd rather not sacrifice readable "diff -u" output even for
2842         "diff -c" output (not supported by busybox) or for even less
2843         readable ed-style "diff" output.  So use init.sh's compare function
2844         * tests/test-version-etc.sh: Source init.sh and add "." to path.
2845         Remove "./" from invocation of test-version-etc, so we use path.
2846         And s/diff/compare/.
2847         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
2848         to get init.sh.
2849         Prompted by Eric Blake's comments in
2850         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
2852 2018-03-24  Bruno Haible  <bruno@clisp.org>
2854         javacomp-script, javacomp: Add support for Java 10.
2855         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
2856         target-version 10.
2857         * lib/javaversion.h: Update comments.
2858         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
2859         source_version_index, get_goodcode_snippet, get_failcode_snippet,
2860         TARGET_VERSION_BOUND, target_version_index,
2861         corresponding_classfile_version): Accept source_version 10 and
2862         target_version 10.
2863         * lib/javacomp.h: Update comments accordingly.
2865 2018-03-24  Bruno Haible  <bruno@clisp.org>
2867         javacomp-script, javacomp: Update comments.
2868         * m4/javacomp.m4: Update comments regarding gcj.
2869         * lib/javacomp.h: Likewise.
2871 2018-03-24  Bruno Haible  <bruno@clisp.org>
2873         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
2874         * lib/javaversion.h: Update comments.
2875         * lib/javacomp.h: Likewise.
2876         * lib/javacomp.c (default_target_version, source_version_index,
2877         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
2878         "1.9".
2879         (TARGET_VERSION_BOUND): Bump to 9.
2880         (target_version_index, corresponding_classfile_version): Recognize "9"
2881         instead of "1.9".
2882         (get_source_version_for_javac): New function.
2883         (is_envjavac_nongcj_usable, is_javac_usable): Add
2884         source_version_for_javac argument.
2885         (compile_java_class): Determine and pass source_version_for_javac.
2886         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
2887         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
2888         appropriate.
2890 2018-03-23  Jim Meyering  <meyering@fb.com>
2892         test-version-etc.sh: port to diff without -c
2893         * tests/test-version-etc.sh: Don't use diff's -c option.
2894         This caused spurious test failure on Alpine Linux, which
2895         uses busybox's diff. Reported by Assaf Gordon in
2896         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
2898 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
2900         c-stack: port to recent GCC build
2901         Problem reported by The Fireplace (Bug#30913).
2902         * lib/c-stack.c (die): Define only if used.
2904 2018-03-20  Bruno Haible  <bruno@clisp.org>
2906         euidaccess: Port to native Windows.
2907         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
2908         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
2910 2018-03-19  Bruno Haible  <bruno@clisp.org>
2912         javacomp: Add support for Java 7, 8, 9.
2913         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
2914         source_version_index, get_goodcode_snippet, get_failcode_snippet,
2915         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
2916         and target_version 1,7, 1.8, 1.9.
2917         * lib/javacomp.h: Update comments accordingly.
2919 2018-03-19  Bruno Haible  <bruno@clisp.org>
2921         javacomp-script: Add support for Java 9.
2922         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
2923         target-version 1.9.
2925 2018-03-16  Bruno Haible  <bruno@clisp.org>
2927         glob: Don't compile replacements on recent glibc systems.
2928         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
2929         REPLACE_GLOB is 0, include the system's <glob.h> and use
2930         _GL_CXXALIAS_SYS.
2931         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
2932         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
2933         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
2934         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
2935         Remove snippet/warn-on-use.
2936         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
2937         (Makefile.am): Create glob.h always. Update list of substitutions in
2938         glob.h. Don't depend on $(WARN_ON_USE_H).
2940 2018-03-16  Bruno Haible  <bruno@clisp.org>
2942         glob: Fix link error on native Windows.
2943         * modules/glob (Depends-on): Add 'lstat'.
2945 2018-03-15  Bruno Haible  <bruno@clisp.org>
2947         glob: Fix compilation error in C++ mode.
2948         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
2950 2018-03-15  Bruno Haible  <bruno@clisp.org>
2952         host-cpu-c-abi: Support for RISC-V CPU.
2953         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
2954         riscv32 and riscv64 ABIs.
2955         References:
2956         https://github.com/riscv/riscv-toolchain-conventions
2957         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
2958         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
2960 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2962         fflush: be more paranoid about libio.h change
2963         Suggested by Eli Zaretskii in:
2964         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
2965         * lib/fbufmode.c (fbufmode):
2966         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2967         (disable_seek_optimization, rpl_fflush):
2968         * lib/fpending.c (__fpending):
2969         * lib/fpurge.c (fpurge):
2970         * lib/freadable.c (freadable):
2971         * lib/freadahead.c (freadahead):
2972         * lib/freading.c (freading):
2973         * lib/freadptr.c (freadptr):
2974         * lib/freadseek.c (freadptrinc):
2975         * lib/fseeko.c (fseeko):
2976         * lib/fseterr.c (fseterr):
2977         * lib/fwritable.c (fwritable):
2978         * lib/fwriting.c (fwriting):
2979         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
2981 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
2983         maint: write-file-hooks -> before-save-hook
2984         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
2985         it's time to use the recommended replacement.
2986         Problem reported by Glenn Morris in:
2987         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
2988         * build-aux/announce-gen, build-aux/bootstrap:
2989         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
2990         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
2991         * build-aux/gnu-web-doc-update, build-aux/gnupload:
2992         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
2993         * build-aux/update-copyright, build-aux/useless-if-before-free:
2994         * build-aux/vc-list-files:
2995         Update hook usage for files where Gnulib is the canonical source.
2997 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
2999         binary-io: pacify gcc -Wunused-parameter
3000         Problem reported by Reuben Thomas in:
3001         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
3002         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
3003         Use _GL_UNUSED where appropriate.
3005         fflush: adjust to glibc 2.28 libio.h removal
3006         Problem reported by Daniel P. Berrangé in:
3007         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
3008         * lib/fbufmode.c (fbufmode):
3009         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
3010         (disable_seek_optimization, rpl_fflush):
3011         * lib/fpending.c (__fpending):
3012         * lib/fpurge.c (fpurge):
3013         * lib/freadable.c (freadable):
3014         * lib/freadahead.c (freadahead):
3015         * lib/freading.c (freading):
3016         * lib/freadptr.c (freadptr):
3017         * lib/freadseek.c (freadptrinc):
3018         * lib/fseeko.c (fseeko):
3019         * lib/fseterr.c (fseterr):
3020         * lib/fwritable.c (fwritable):
3021         * lib/fwriting.c (fwriting):
3022         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
3023         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
3024         Define if not already defined.
3026 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
3028         environ: fix link error on 32-bit Cygwin
3029         Problem reported for GNU Emacs by Ken Brown in:
3030         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
3031         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
3033 2018-02-24  Bruno Haible  <bruno@clisp.org>
3035         mbrtowc tests: Fix regression on glibc.
3036         Reported by Bernhard Voelker.
3037         * tests/test-mbrtowc.c (main): Fix expected value of wc.
3039 2018-02-24  Bruno Haible  <bruno@clisp.org>
3041         striconveha, uniconv/*: Avoid test failures on musl libc.
3042         * tests/iconvsupport.c: New file.
3043         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
3044         does not support the ISO-2022-JP-2 encoding.
3045         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
3046         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
3047         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
3048         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
3049         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
3050         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
3051         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
3052         (Makefile.am): Link test-striconveha with iconvsupport.o.
3053         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
3054         tests/iconvsupport.c.
3055         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
3056         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
3057         tests/iconvsupport.c.
3058         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
3059         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
3060         tests/iconvsupport.c.
3061         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
3062         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
3063         tests/iconvsupport.c.
3064         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
3065         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
3066         tests/iconvsupport.c.
3067         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
3068         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
3069         tests/iconvsupport.c.
3070         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
3072 2018-02-24  Bruno Haible  <bruno@clisp.org>
3074         localename: Add support for musl libc.
3075         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
3076         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
3077         on Linux platforms which define NL_LOCALE_NAME.
3079 2018-02-24  Bruno Haible  <bruno@clisp.org>
3081         mbrtowc tests: Don't make assumptions about the charset the C locale.
3082         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
3083         particular mapping in the C locale.
3085 2018-02-24  Bruno Haible  <bruno@clisp.org>
3087         ptsname_r: Don't expect that this function sets errno.
3088         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
3089         from ptsname_r().
3090         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
3092 2018-02-23  Bruno Haible  <bruno@clisp.org>
3094         xmalloca: pacify gcc -Wbad-function-cast
3095         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
3097 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
3099         nl_langinfo: pacify gcc -Wunused-function
3100         * lib/nl_langinfo.c (ctype_codeset): Do not define if
3101         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
3102         this case.  Without this change, I got a diagnostic when building
3103         coreutils on Fedora 27 with gcc 7.3.1 20180130.
3105         same: pacify gcc -Wunused-variable
3106         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
3107         Omit unused variable.
3109         malloca: pacify gcc -Wbad-function-cast
3110         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
3111         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
3112         To pacify GCC, I had to cast alloca’s result to some type other
3113         than void * before casting that to uintptr_t.
3115 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3117         utimecmp: new function utimecmpat
3118         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
3119         Do not include utimens.h.
3120         (utimecmpat): New function, generalizing utimecmp.
3121         (utimecmp): Now a thin layer around utimecmpat.
3122         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
3123         utimensat instead of on lstat and utimens.
3125         same: new function same_nameat
3126         * lib/same.c: Include fcntl.h.
3127         * lib/same.c (same_nameat): New function, generalizing same_name.
3128         (same_name): Now a thin layer around same_nameat.
3129         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
3130         * modules/same (Depends-on): Depend on fstatat, openat.
3132 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
3134         warnings: Add support for Objective C.
3135         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
3136         macro.
3138 2018-02-17  Bruno Haible  <bruno@clisp.org>
3140         lock: Fix test-once1 crash on FreeBSD11.
3141         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
3142         'pthread_create', not 'pthread_cancel'.
3144 2018-02-17  Bruno Haible  <bruno@clisp.org>
3146         lock: Add test of gl_once.
3147         * tests/test-once.c: New file.
3148         * modules/lock-tests (Files): Add it.
3149         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
3151 2018-02-17  Bruno Haible  <bruno@clisp.org>
3153         thread: Fix compilation error on IRIX.
3154         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
3155         needed; include it outside the C++ extern "C" {} block.
3156         * doc/posix-headers/pthread.texi: Mention the problem with
3157         pthread_atfork on IRIX.
3159 2018-02-04  Bruno Haible  <bruno@clisp.org>
3161         nl_langinfo: Override the system's nl_langinfo() when needed.
3162         Reported by Jim Meyering.
3163         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
3164         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
3166 2018-02-04  Bruno Haible  <bruno@clisp.org>
3168         signal-h, monetary, strings: Fix build failure in some cases.
3169         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
3170         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
3171         as delimiter in sed command, not '|'.
3172         * modules/monetary (Makefile.am): Likewise.
3173         * modules/strings (Makefile.am): Likewise.
3175 2018-02-03  Jim Meyering  <meyering@fb.com>
3177         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
3178         * top/maint.mk (sc_file_system): Don't complain about
3179         "/proc/filesystems".
3181 2018-02-03  Bruno Haible  <bruno@clisp.org>
3183         stdlib: Fix compilation error on OpenIndiana.
3184         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
3185         <sys/time.h>.
3186         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3187         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3189 2018-02-03  Bruno Haible  <bruno@clisp.org>
3191         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
3192         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
3193         and use $EGREP instead of 'grep -E'.
3194         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
3195         'grep -E'.
3197 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
3199         malloca: Add a compile-time verification.
3200         * lib/malloca.c (small_t): Verify that it is wide enough.
3201         * modules/malloca (Depends-on): Add verify.
3203 2018-02-02  Bruno Haible  <bruno@clisp.org>
3205         malloca: Add an argument check.
3206         Suggested by Paul Eggert.
3207         * lib/malloca.c (freea): Check against an invalid argument.
3209 2018-02-02  Bruno Haible  <bruno@clisp.org>
3211         localename: Add support for OpenIndiana.
3212         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
3213         Solaris 11 variants with uselocale() but without getlocalename_l().
3215 2018-02-02  Bruno Haible  <bruno@clisp.org>
3217         malloca, xmalloca: Make multithread-safe.
3218         Reported by Florian Weimer <fweimer@redhat.com>.
3219         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
3220         * lib/malloca.h (malloca): In the stack allocation case, return a
3221         pointer that is a multiple of 2 * sa_alignment_max.
3222         (sa_increment): Remove enum item.
3223         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
3224         a pointer that is a multiple of 2 * sa_alignment_max.
3225         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
3226         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
3227         HASH_TABLE_SIZE, mmalloca_results): Remove.
3228         (small_t): New type.
3229         (mmalloca, free): Rewritten.
3230         * lib/malloca.valgrind: Remove file.
3231         * modules/malloca (Files): Remove it.
3232         (Depends-on): Remove verify.
3234 2018-01-31  Bruno Haible  <bruno@clisp.org>
3236         environ: Fix link error on 64-bit Cygwin.
3237         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
3238         __declspec(dllimport) attribute.
3239         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
3241 2018-01-30  Bruno Haible  <bruno@clisp.org>
3243         get-rusage-data: Add support for Minix 3.
3244         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
3246 2018-01-30  Bruno Haible  <bruno@clisp.org>
3248         vma-iter: Add support for Minix 3.
3249         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
3250         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
3252 2018-01-27  Bruno Haible  <bruno@clisp.org>
3254         Fix malfunction of socket functions on HP-UX in 64-bit mode.
3255         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
3256         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
3257         _HPUX_ALT_XOPEN_SOCKET_API.
3258         * modules/accept (Depends-on): Add 'extensions'.
3259         * modules/getpeername (Depends-on): Likewise.
3260         * modules/getsockname (Depends-on): Likewise.
3261         * modules/getsockopt (Depends-on): Likewise.
3262         * modules/recvfrom (Depends-on): Likewise.
3263         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
3264         * doc/posix-functions/getpeername.texi: Likewise.
3265         * doc/posix-functions/getsockname.texi: Likewise.
3266         * doc/posix-functions/getsockopt.texi: Likewise.
3267         * doc/posix-functions/recvfrom.texi: Likewise.
3269 2018-01-27  Bruno Haible  <bruno@clisp.org>
3271         getsockname tests: More tests.
3272         * tests/test-getsockname.c (open_server_socket): New function, mostly
3273         copied from test-poll.c.
3274         (main): Check that getsockname fills in addr.
3275         * modules/getsockname-tests (Depends-on): Add the necessary
3276         dependencies.
3277         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
3279 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
3281         manywarnings: fix maintainer comment
3282         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
3283         it does not mistakenly think that ‘-1)’ is an option.
3285 2018-01-26  Bruno Haible  <bruno@clisp.org>
3287         langinfo: Fix last commit.
3288         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
3289         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
3291 2018-01-24  Bruno Haible  <bruno@clisp.org>
3293         langinfo, nl_langinfo: Add support for alternative month names.
3294         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
3295         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
3296         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
3297         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
3298         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
3299         * doc/posix-functions/nl_langinfo.texi: Likewise.
3301 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3303         Merge strftime.c changes from glibc
3304         This incorporates:
3305         2017-11-14 [BZ #10871] Implement alternative month names
3306         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
3307         2017-06-20 Use locale_t, not __locale_t, throughout glibc
3308         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
3309         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
3310         Use locale_t, not __locale_t.
3311         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
3312         (__strftime_internal): Add support for alternate months.
3314 2018-01-23  Bruno Haible  <bruno@clisp.org>
3316         doc: Mention another prerequisite for using Gnulib.
3317         Reported at <https://stackoverflow.com/questions/48378214/>.
3318         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
3319         AC_CONFIG_HEADERS.
3321 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
3323         build: GuixSD doesn't have /bin/bash
3324         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
3326 2018-01-21  Bruno Haible  <bruno@clisp.org>
3328         Avoid test failures on Microsoft Windows Subsystem for Linux.
3329         * tests/test-fcntl.c (main): Allow a different errno.
3330         * tests/test-rename.h (test_rename): Likewise.
3331         * tests/test-renameat.c (main): Likewise.
3332         * tests/test-renameat2.c (main): Likewise.
3334 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
3336         filenamecat: make base a suffix of result
3337         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
3338         (mfile_name_concat): Always make BASE a suffix of the result, as
3339         cp expects this.  To implement this, separate with '.' instead of
3340         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
3341         * tests/test-filenamecat.c (main): Adjust tests to match
3342         current behavior.  Check that BASE_IN_RESULT points to
3343         a copy of BASE and is a suffix of the resultk, and that DIR
3344         is a prefix of the result that is no longer than the prefix
3345         indicated by BASE_IN_RESULT.
3347 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
3349         update-copyright: Handle use of ©
3350         * build-aux/update-copyright ($circle_c_re): Update regex to
3351         handle use of © in headers.
3353 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
3355         Fix -Wundef warning in user-included header lib/cdefs.h.
3356         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
3358 2018-01-04  Bruno Haible  <bruno@clisp.org>
3360         pthread_sigmask: Avoid compilation error on mingw.
3361         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
3362         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
3363         macro.
3365 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
3367         test-framework-sh: ‘ps -ef’, not ‘ps ef’
3368         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
3369         Suggested by Bob Proulx (Bug#29968).
3370         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
3372 2018-01-02  Eric Blake  <eblake@redhat.com>
3374         stat-time: silence -Wunused-parameter regression
3375         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
3376         Prefer attribute over cast-to-void.
3377         (stat_time_normalize): Mark st as potentially unused.
3379 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
3381         test-framework-sh: avoid netstat
3382         Problem reported by Kristýna Streitová (Bug#29947).
3383         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
3384         deprecated on SuSE and it's not that important anyway.
3386 2018-01-01  Jim Meyering  <meyering@fb.com>
3388         update-copyright: add code to handle more special cases
3389         After running "make update-copyright" this year, five files
3390         required additional manual changes.  Automate those adjustments
3391         for next year.
3392         * Makefile (_year_and_prev): Define.
3393         (update-copyright): Add perl commands to induce this year's post-
3394         update-copyright adjustments.
3396 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
3398         version-etc: new year
3399         * build-aux/gendocs.sh (version):
3400         * doc/gendocs_template:
3401         * doc/gendocs_template_min:
3402         * doc/gnulib.texi:
3403         * lib/version-etc.c (COPYRIGHT_YEAR):
3404         Update copyright dates by hand in templates and the like.
3406         maint: fix 'make update-copyright'
3407         * Makefile (update-copyright): Adjust to 2016-11-23 change
3408         to config/srclist-update, which changed the format of srclist.txt.
3410 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
3412         chdir-safer: remove this module
3413         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
3414         * NEWS: Document removal.
3415         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
3416         * modules/chdir-safer: Remove these files.
3418 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
3420         Add cross-compilation results for GNU/Hurd.
3421         * m4/calloc.m4: Add GNU/Hurd guess.
3422         * m4/cbrtl.m4: Likewise.
3423         * m4/ceil.m4: Likewise.
3424         * m4/ceilf.m4: Likewise.
3425         * m4/ceill.m4: Likewise.
3426         * m4/chown.m4: Likewise.
3427         * m4/duplocale.m4: Likewise.
3428         * m4/exp2l.m4: Likewise.
3429         * m4/expm1.m4: Likewise.
3430         * m4/fchdir.m4: Likewise.
3431         * m4/floor.m4: Likewise.
3432         * m4/floorf.m4: Likewise.
3433         * m4/fmod.m4: Likewise.
3434         * m4/fmodf.m4: Likewise.
3435         * m4/fmodl.m4: Likewise.
3436         * m4/getcwd.m4: Likewise.
3437         * m4/getgroups.m4: Likewise.
3438         * m4/gettimeofday.m4: Likewise.
3439         * m4/hypot.m4: Likewise.
3440         * m4/hypotf.m4: Likewise.
3441         * m4/hypotl.m4: Likewise.
3442         * m4/link-follow.m4: Likewise.
3443         * m4/link.m4: Likewise.
3444         * m4/linkat.m4: Likewise.
3445         * m4/log.m4: Likewise.
3446         * m4/log10.m4: Likewise.
3447         * m4/log10f.m4: Likewise.
3448         * m4/log1p.m4: Likewise.
3449         * m4/log1pf.m4: Likewise.
3450         * m4/log1pl.m4: Likewise.
3451         * m4/log2.m4: Likewise.
3452         * m4/log2f.m4: Likewise.
3453         * m4/logf.m4: Likewise.
3454         * m4/lstat.m4: Likewise.
3455         * m4/malloc.m4: Likewise.
3456         * m4/mbrlen.m4: Likewise.
3457         * m4/mbrtowc.m4: Likewise.
3458         * m4/mkdir.m4: Likewise.
3459         * m4/mkfifo.m4: Likewise.
3460         * m4/mknod.m4: Likewise.
3461         * m4/mkstemp.m4: Likewise.
3462         * m4/modf.m4: Likewise.
3463         * m4/modff.m4: Likewise.
3464         * m4/modfl.m4: Likewise.
3465         * m4/printf.m4: Likewise.
3466         * m4/pselect.m4: Likewise.
3467         * m4/ptsname.m4: Likewise.
3468         * m4/putenv.m4: Likewise.
3469         * m4/readlink.m4: Likewise.
3470         * m4/realloc.m4: Likewise.
3471         * m4/remainder.m4: Likewise.
3472         * m4/remainderf.m4: Likewise.
3473         * m4/remainderl.m4: Likewise.
3474         * m4/rmdir.m4: Likewise.
3475         * m4/round.m4: Likewise.
3476         * m4/roundf.m4: Likewise.
3477         * m4/roundl.m4: Likewise.
3478         * m4/select.m4: Likewise.
3479         * m4/setenv.m4: Likewise.
3480         * m4/signbit.m4: Likewise.
3481         * m4/sleep.m4: Likewise.
3482         * m4/stat.m4: Likewise.
3483         * m4/strerror.m4: Likewise.
3484         * m4/strtok_r.m4: Likewise.
3485         * m4/symlink.m4: Likewise.
3486         * m4/symlinkat.m4: Likewise.
3487         * m4/trunc.m4: Likewise.
3488         * m4/truncf.m4: Likewise.
3489         * m4/truncl.m4: Likewise.
3490         * m4/tzset.m4: Likewise.
3491         * m4/ungetc.m4: Likewise.
3492         * m4/usleep.m4: Likewise.
3493         * m4/wcwidth.m4: Likewise.
3495 2017-12-28  Bruno Haible  <bruno@clisp.org>
3497         gnulib-tool: Make --conditional-dependencies work better.
3498         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
3499         * gnulib-tool (Options): Don't reject the combination of
3500         --conditional-dependencies with --with-tests.
3501         (func_emit_autoconf_snippets): Add argument referenceable_modules.
3502         Don't reference $modules.
3503         (func_import, func_create_testdir): Pass it.
3505 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
3507         regex: use re_malloc etc. consistently
3508         Problem and original patch reported by Arnold Robbins in:
3509         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
3510         * lib/regcomp.c (re_comp):
3511         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
3512         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
3514 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
3515             Paul Eggert  <eggert@cs.ucla.edu>
3517         glob: Silence warning about void pointer arithmetic.
3518         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
3519         arithmetic.
3521 2017-12-15  Bruno Haible  <bruno@clisp.org>
3523         spawn-pipe: Silence a clang warning.
3524         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
3525         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
3526         in this file.
3528 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
3530         explicit_bzero: port to macOS + Clang 9.0.0
3531         Problem reported by Marcus Johnson (Bug#29658).
3532         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
3533         Don’t use asm.
3535 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
3537         doc: Improve explanation of supporting relocatable libraries.
3538         * doc/relocatable-maint.texi (Supporting Relocation): Explain
3539         properly how to build the relocatable module for
3540         libraries. (Method and example code from Bruno Haible.)
3542 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
3544         doc: Use better texinfo tags in a few cases.
3545         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
3546         instead of @samp in a few places.
3548 2017-12-11  Bruno Haible  <bruno@clisp.org>
3550         unistr/base: Update comment.
3551         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
3553 2017-12-10  Pádraig Brady  <P@draigBrady.com>
3555         test-faccessat.c: unlink temp file to avoid subsequent test failure
3556         * tests/test-faccessat.c: Remove the file to avoid failure
3557         to open the file on subsequent runs due to being created
3558         with no permissions.
3560 2017-12-10  Bruno Haible  <bruno@clisp.org>
3562         doc: New sect. "Modifying the build rules of a Gnulib import directory".
3563         * doc/gnulib-tool.texi (Modified build rules): New node.
3565 2017-12-10  Bruno Haible  <bruno@clisp.org>
3567         doc: Tweak wording.
3568         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
3569         "binaries".
3571 2017-12-05  Sam Steingold  <sds@gnu.org>
3572             Bruno Haible  <bruno@clisp.org>
3574         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
3575         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
3576         AC_EGREP_CPP pattern.
3578 2017-12-03  Bruno Haible  <bruno@clisp.org>
3580         all: Replace more http URLs by https URLs.
3581         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
3582         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
3583         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
3584         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
3586 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
3588         Port better to CentOS 5
3589         Problems reported by Tom G. Christensen in:
3590         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
3591         * doc/glibc-functions/strverscmp.texi (strverscmp):
3592         Document strverscmp bug with glibc 2.9 and earlier.
3593         * doc/posix-functions/tzset.texi (tzset):
3594         Document that TZ with angle brackets is POSIX-2001 and later.
3595         * tests/test-nstrftime.c: Include unistd.h.
3596         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
3597         (TZ): Use it to skip tests with angle brackets in TZ,
3598         for older systems.
3600         stat: add missing module dependencies
3601         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
3602         Add stat-time.
3604 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
3606         stat: fix compilation failure on macOS Sierra
3607         Reported by Marius Schamschula <mschamschula@gmail.com> in:
3608         https://savannah.gnu.org/bugs/?52546
3609         * lib/stat.c: Add missing include of stat-time.h.
3611 2017-11-28  Jim Meyering  <meyering@fb.com>
3613         test-faccessat.c: correct BASE definition to avoid parallel test failure
3614         * tests/test-faccessat.c (BASE): Define using this file's name, not
3615         that of test-lstat.c.  Using the latter caused this test to fail
3616         sometimes when run concurrently with test-lstat.
3618 2017-11-27  Daiki Ueno  <ueno@gnu.org>
3620         unicase: fix VPATH build
3621         * modules/unicase/special-casing (Makefile.am): Ensure that the
3622         base directory is created when generating
3623         unicase/special-casing.h.
3625 2017-11-27  Daiki Ueno  <ueno@gnu.org>
3627         libunistring: update to Unicode 9.0.0
3628         * lib/gen-uni-tables.c (fill_properties): Recognize
3629         Sentence_Terminal and Prepended_Concatenation_Mark.
3630         (is_property_default_ignorable_code_point): Exclude U+08E2.
3631         (fill_arabicshaping): Allow missing whitespace when parsing;
3632         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
3633         (output_blocks): Increase the element size of the level1 table to
3634         accommodate more blocks.
3635         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
3636         Update each class according to the standard.
3637         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
3638         E_Base_GAZ characters.
3639         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
3640         Glue_After_Zwj, and E_Base_GAZ characters.
3641         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
3642         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
3643         enum value.
3644         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
3645         value.
3646         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
3647         LBP_ZWJ, LBP_EB, and LBP_EM.
3648         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
3649         enum value.
3650         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
3651         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
3652         declaration.
3653         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
3654         (uniwbrk_table): Implement WB14.
3655         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
3656         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
3657         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
3658         uc-is-grapheme-break.
3659         * modules/unigbrk/uc-grapheme-breaks: New module.
3660         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
3661         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
3662         enum value.
3663         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
3664         * lib/unigbrk/u-grapheme-breaks.h: New file.
3665         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
3666         u-grapheme-breaks.h instead of uc_is_grapheme_break.
3667         * lib/unigbrk/uc-grapheme-breaks.c: New file.
3668         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
3669         29.
3670         * tests/unigbrk/test-uc-gbrk-prop.c
3671         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
3672         GBP_GAZ, and GBP_EBG.
3673         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
3674         * tests/unigbrk/test-uc-is-grapheme-break.c
3675         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
3676         GBP_GAZ, and GBP_EBG.
3677         (main): Skip unsupported rules involving 3 or more characters,
3678         namely GB10, GB12, and GB13.
3679         * lib/uniwidth/width.c (nonspacing_table_data): Update.
3680         * all generated files under lib/uni* and tests/uni*: Regenerate.
3681         * all the affected modules: Bump version.
3683 2017-11-26  Bruno Haible  <bruno@clisp.org>
3685         strfmon_l: Fix compilation error with glibc 2.5.
3686         Reported by Tom G. Christensen <tgc@jupiterrise.com>
3687         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
3688         * lib/monetary.in.h: Include also <locale.h>.
3690 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
3692         posixtm: remove PDS_LEADING_YEAR
3693         This changes the API slightly, in a hopefully-innocuous way.
3694         Without this change the code had undefined behavior when a
3695         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
3696         Problem reported by Pádraig Brady in:
3697         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
3698         * NEWS: Mention this.
3699         * lib/posixtm.c (posix_time_parse): Treat the absence of
3700         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
3701         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
3702         present, but define it as zero, for compatibility with existing
3703         source code).  All other PDS_* values moved up.
3704         * tests/test-posixtm.c (LY): New macro.
3705         (T): Use it.  Do not expect a particular numeric encoding
3706         for PDS_CENTURY etc.
3708 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
3710         stat: work around Solaris bug with tv_nsec < 0
3711         * doc/posix-functions/fstat.texi (fstat):
3712         * doc/posix-functions/fstatat.texi (fstatat):
3713         * doc/posix-functions/lstat.texi (lstat):
3714         * doc/posix-functions/stat.texi (stat):
3715         Mention Solaris 11 bug.
3716         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
3717         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
3718         * lib/lstat.c (rpl_lstat):
3719         * lib/stat.c (rpl_stat):
3720         Normalize resulting timestamps.
3721         * lib/fstatat.c (normal_fstatat): New function.
3722         (rpl_fstatat): Use it.
3723         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
3724         (stat_time_normalize): New function.
3725         * m4/fstat.m4 (gl_FUNC_FSTAT):
3726         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
3727         * m4/lstat.m4 (gl_FUNC_LSTAT):
3728         * m4/stat.m4 (gl_FUNC_STAT):
3729         Replace on Solaris.
3730         * modules/fstat (Depends-on):
3731         * modules/fstatat (Depends-on):
3732         Add stat-time.
3733         * modules/stat-time (Depends-on): Add errno, intprops.
3735 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
3737         regex: merge from glibc
3738         * lib/regcomp.c (init_word_char): Add comments.
3740 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
3742         regex: merge from glibc
3743         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
3744         * lib/regex_internal.h (internal_function): Remove.
3745         All uses removed.
3747 2017-11-20  Bruno Haible  <bruno@clisp.org>
3749         crypto/gc-sm3: Fix buffer overrun.
3750         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
3751         Reported by Coverity.
3753 2017-11-12  Jim Meyering  <meyering@fb.com>
3755         maint: shorten https://lists.gnu.org/archive/html/... links
3756         Each /archive/html/ part can be replace with /r/.
3757         Run this to induce the change:
3758         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
3759         * ChangeLog: Perform that substitution.
3760         * Makefile: Likewise.
3761         * STATUS-libposix: Likewise.
3762         * build-aux/bootstrap: Likewise.
3763         * doc/maintain.texi: Likewise.
3764         * gnulib-tool: Likewise.
3765         * lib/allocator.h: Likewise.
3766         * lib/argp-ba.c: Likewise.
3767         * lib/argp-pv.c: Likewise.
3768         * lib/canon-host.c: Likewise.
3769         * lib/canonicalize-lgpl.c: Likewise.
3770         * lib/float.in.h: Likewise.
3771         * lib/fstat.c: Likewise.
3772         * lib/getdelim.c: Likewise.
3773         * lib/getprogname.c: Likewise.
3774         * lib/glthread/thread.h: Likewise.
3775         * lib/intprops.h: Likewise.
3776         * lib/mbsrtowcs-state.c: Likewise.
3777         * lib/safe-read.c: Likewise.
3778         * lib/signal.in.h: Likewise.
3779         * lib/stat.c: Likewise.
3780         * lib/stdbool.in.h: Likewise.
3781         * lib/stdio-impl.h: Likewise.
3782         * lib/stdio.in.h: Likewise.
3783         * lib/sysexits.in.h: Likewise.
3784         * lib/timespec.h: Likewise.
3785         * lib/wcsrtombs-state.c: Likewise.
3786         * m4/alloca.m4: Likewise.
3787         * m4/extern-inline.m4: Likewise.
3788         * m4/fstatat.m4: Likewise.
3789         * m4/gnulib-common.m4: Likewise.
3790         * m4/lib-ignore.m4: Likewise.
3791         * m4/printf.m4: Likewise.
3792         * m4/regex.m4: Likewise.
3793         * m4/stat-size.m4: Likewise.
3794         * m4/std-gnu11.m4: Likewise.
3795         * m4/stdbool.m4: Likewise.
3796         * m4/sys_types_h.m4: Likewise.
3797         * m4/threadlib.m4: Likewise.
3798         * m4/vararrays.m4: Likewise.
3799         * pygnulib/GLImport.py: Likewise.
3800         * tests/test-exp.h: Likewise.
3801         * tests/test-exp2.h: Likewise.
3802         * tests/test-expm1.h: Likewise.
3803         * tests/test-fflush2.c: Likewise.
3804         * tests/test-getopt_long.h: Likewise.
3805         * tests/test-intprops.c: Likewise.
3806         * tests/test-log.h: Likewise.
3807         * tests/test-log10.h: Likewise.
3808         * tests/test-log1p.h: Likewise.
3809         * tests/test-log2.h: Likewise.
3810         * tests/test-printf-posix.h: Likewise.
3811         * tests/test-regex.c: Likewise.
3812         * tests/test-snprintf-posix.h: Likewise.
3813         * tests/test-sprintf-posix.h: Likewise.
3814         * tests/test-stdalign.c: Likewise.
3815         * tests/test-stdbool.c: Likewise.
3816         * tests/test-vasnprintf-posix.c: Likewise.
3817         * tests/test-vasprintf-posix.c: Likewise.
3818         * top/maint.mk: Likewise.
3820 2017-11-12  Bruno Haible  <bruno@clisp.org>
3822         faccessat: Make the last change more robust.
3823         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
3824         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
3826 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
3828         faccessat: port to macOS (Bug#29231)
3829         macOS faccessat has the same bug that lstat does: if the file
3830         name ends in '/' it ignores the trailing slash.
3831         Problem reported for Emacs by Vincent Zhang.
3832         * doc/posix-functions/faccessat.texi (faccessat): Document this.
3833         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
3834         around the initial includes.  Include errno.h, string.h, sys/stat.h.
3835         (orig_faccessat) [HAVE_FACCESSAT]: New function.
3836         Include "unistd.h" after defining it.
3837         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
3838         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
3839         Handle in the usual way.
3840         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
3841         lstat dereferences symlinks, since faccessat is likely to
3842         have the same problem.
3843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
3844         * modules/faccessat (Depends-on): Add fstatat.
3845         Depend if REPLACE_FACCESSAT is 1, too.
3846         (configure.ac): Link if REPLACE_FACCESSAT is 1.
3847         * modules/faccessat-tests (Depends-on): Add symlink.
3848         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
3849         * tests/test-faccessat.c (main): Test for the bug.
3851 2017-11-11  Bruno Haible  <bruno@clisp.org>
3853         getprogname: Fix compilation error on IRIX.
3854         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
3855         'namesize'.
3857 2017-11-11  Bruno Haible  <bruno@clisp.org>
3859         year2038: Tweak last patch.
3860         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
3862 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
3864         year2038: be more insistent about 64-bit time_t
3865         Applications requiring access to arbitrary files should not be
3866         built with 32-bit time_t on hosts that have 64-bit timestamps,
3867         as this can lead to real trouble at runtime.
3868         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
3869         Check on all systems, not just MinGW.  Use a heuristic involving
3870         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
3871         output a failure or just a warning, to make it more likely that
3872         builders will select 64-bit time_t.
3874 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3876         havelib: fix typo in previous change
3877         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
3879         Don’t use AC_EGREP_CPP if affected by CFLAGS
3880         * m4/float_h.m4 (gl_FLOAT_H):
3881         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
3882         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
3883         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
3884         * m4/year2038.m4 (gl_YEAR2038):
3885         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
3886         likely to be affected by the choice of CFLAGS, since CFLAGS are
3887         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
3888         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
3890         fstatat: pacify GCC on unusual platform
3891         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
3892         Omit, as it’s unused in this case.
3894 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
3896         timespec: prefer ‘assume’ to ‘assure’
3897         This avoids some runtime tests.  The rest of the module makes
3898         similar assumptions and there is little point to testing here.
3899         * lib/timespec.h: Include verify.h instead of assure.h.
3900         (timespec_cmp): Use ‘assume’, not ‘assure’.
3901         Also, remove an unnecessary cast to ‘int’, as lots of other
3902         code in this module now causes -Wconversion to complain, and
3903         this is a problem with -Wconversion not with the code.
3905         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
3907         Port recent gnulib-tool change to Dash
3908         * gnulib-tool (func_create_testdir): Don't assume that the shell
3909         retokenizes after expanding "$@" inside the call to
3910         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
3912 2017-10-27  Jim Meyering  <meyering@fb.com>
3914         timespec.h: use "assure" to avoid a spurious warning
3915         * lib/timespec.h: Include "assure.h" and use it to help
3916         gcc7's -Wstrict-overflow avoid a false positive warning
3917         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
3918         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
3919         * modules/timespec (Depends-on): Add assure.
3921 2017-10-29  Bruno Haible  <bruno@clisp.org>
3923         Avoid several test failures with traditional locales on Haiku.
3924         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
3925         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
3926         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
3927         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
3928         LOCALE_ZH_CN=none.
3930 2017-10-29  Bruno Haible  <bruno@clisp.org>
3932         strerror_r-posix: Fix behaviour and test failure on Haiku.
3933         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
3934         are positive. Work around return value 0 instead of ERANGE on Haiku.
3935         For unknown error numbers, use a format string consistent with perror().
3936         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
3937         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
3938         are positive.
3940 2017-10-29  Bruno Haible  <bruno@clisp.org>
3942         get-rusage-data: Avoid crash on Haiku.
3943         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
3945 2017-10-29  Bruno Haible  <bruno@clisp.org>
3947         get-rusage-as: Avoid crash on Haiku.
3948         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
3950 2017-10-29  Bruno Haible  <bruno@clisp.org>
3952         ilogbl: Ensure replacement on Haiku.
3953         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
3954         REPLACE_ILOGBL if ilogbl does not work.
3955         (gl_FUNC_ILOGBL_WORKS): New macro.
3956         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
3957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
3958         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
3959         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
3960         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
3962 2017-10-29  Bruno Haible  <bruno@clisp.org>
3964         expl: Ensure replacement on Haiku.
3965         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
3966         zero.
3967         * doc/posix-functions/expl.texi: Mention the Haiku problem.
3969 2017-10-29  Bruno Haible  <bruno@clisp.org>
3971         math: Fix test failure on Haiku.
3972         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
3973         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
3974         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
3975         * doc/posix-headers/math.texi: Mention the Haiku problem.
3977 2017-10-29  Bruno Haible  <bruno@clisp.org>
3979         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
3980         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
3981         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
3983 2017-10-29  Bruno Haible  <bruno@clisp.org>
3985         crypto/*: Verify that the header file is self-contained.
3986         * tests/test-gc-*.c: Include the module's header file immediately after
3987         <config.h>.
3988         * tests/test-hmac-*.c: Likewise.
3989         * tests/test-arcfour.c: Likewise.
3990         * tests/test-arctwo.c: Likewise.
3991         * tests/test-des.c: Likewise.
3992         * tests/test-md2.c: Likewise.
3993         * tests/test-md4.c: Likewise.
3994         * tests/test-md5.c: Likewise.
3995         * tests/test-rijndael.c: Likewise.
3996         * tests/test-sha1.c: Likewise.
3997         * tests/test-sm3.c: Likewise.
3999 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
4000             Bruno Haible  <bruno@clisp.org>
4002         crypto/gc: fix build failure with -Werror=suggest-attribute=const
4003         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
4005 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
4007         New module: crypto/gc-sm3
4008         * lib/gc.h: Declare SM3-related stuffs.
4009         * lib/gc-gnulib.c: Support sm3 in internal functions.
4010         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
4011         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
4012         * modules/crypto/gc-sm3: Define gc-sm3 module.
4013         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
4014         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
4015         * MODULES.html.sh: List gc-sm3 module.
4017 2017-10-29  Bruno Haible  <bruno@clisp.org>
4019         random, random_r: Mention different prototypes on Haiku.
4020         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
4021         * doc/glibc-functions/random_r.texi: Likewise.
4022         * doc/glibc-functions/initstate_r.texi: Likewise.
4023         * doc/glibc-functions/setstate_r.texi: Likewise.
4025 2017-10-28  Bruno Haible  <bruno@clisp.org>
4027         posix_spawn: Avoid spurious message in configure output.
4028         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
4029         'cmp' command.
4031 2017-10-28  Bruno Haible  <bruno@clisp.org>
4033         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
4034         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
4035         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4037 2017-10-28  Bruno Haible  <bruno@clisp.org>
4039         ioctl: Override non-POSIX declaration on Haiku.
4040         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
4041         * lib/sys_ioctl.in.h: Add comment about Haiku.
4042         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
4043         * doc/glibc-headers/sys_ioctl.texi: Likewise.
4045 2017-10-28  Bruno Haible  <bruno@clisp.org>
4047         crypto/sm3: Add overview documentation to the .h file.
4048         * lib/sm3.h: Add comments.
4050 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
4052         New module: crypto/sm3
4053         This new module can be used to compute SM3 message digest of files or
4054         memory blocks according to the specification GM/T 004-2012
4055         Cryptographic Hash Algorithm SM3, published by State Cryptography
4056         Administration, China.
4057         The official SM3 cryptographic hash algorithm specification is
4058         available at
4059         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
4060         * lib/sm3.h: Declare the APIs of sm3 module.
4061         * lib/sm3.c: Implement SM3 hash algorithm.
4062         * m4/sm3.m4: m4 file for sm3 module.
4063         * modules/crypto/sm3: Define sm3 module.
4064         * tests/test-sm3.c: Implement SM3 test case.
4065         * modules/crypto/sm3-tests: Define sm3 test module.
4066         * MODULES.html.sh: List sm3 module.
4068 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
4070         gc-libgcrypt: fix undefined enum type in switch statement
4071         Resolve the following build failure:
4072         lib/gc-libgcrypt.c: In function 'gc_hash_open':
4073         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
4074         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
4075              case 0:
4076              ^~~~
4077         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
4078         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
4080 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
4082         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
4083         Resolve the following build failure:
4084         lib/gc-libgcrypt.c: In function 'gc_hash_read':
4085         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
4086         in signedness [-Werror=pointer-sign]
4087             digest = gcry_md_read (ctx->gch, 0);
4088                    ^
4089         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
4091 2017-10-26  Bruno Haible  <bruno@clisp.org>
4093         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
4094         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
4095         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
4097 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
4099         glob: fix another heap buffer overflow
4100         Problem reported by Tim Rühsen in:
4101         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
4102         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
4104 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
4106         quotearg: pacify compiler re unsigned
4107         * lib/quotearg.c (quotearg_n_options):
4108         Rewrite to avoid diagnostic from overly-picky compiler.
4109         Problem reported by Sami Kerola in:
4110         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
4112         glob: fix heap buffer overflow
4113         * lib/glob.c (glob): Fix off-by-one error introduced into
4114         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
4115         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
4116         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
4117         Fix suggested by Bruno Haible.
4119 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
4121         glob: pacify fuzzer for mempcpy
4122         Problem reported by Tim Rühsen in:
4123         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
4124         * lib/glob.c (glob): Do not pass NULL to mempcpy.
4126 2017-10-12  Bruno Haible  <bruno@clisp.org>
4128         doc: Fix syntax error (regression from 2017-10-03).
4129         * doc/posix-functions/strncpy.texi: Fix syntax error.
4131 2017-10-12  Bruno Haible  <bruno@clisp.org>
4133         doc: Update for Solaris 11.3.
4134         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
4135         mention Solaris 11.3.
4136         * m4/log2.m4: Fix comments.
4137         * m4/log2f.m4: Likewise.
4138         * m4/printf.m4: Update comments.
4139         * m4/rename.m4: Likewise.
4140         * m4/strncat.m4: Likewise.
4142         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
4144 2017-10-10  Bruno Haible  <bruno@clisp.org>
4146         doc: Improve doc about ioctl.
4147         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
4148         prototype.
4150 2017-10-09  Bruno Haible  <bruno@clisp.org>
4152         wcwidth: Don't use obsolete syntax of 'test'.
4153         Reported by Eric Blake.
4154         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
4155         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
4157 2017-10-09  Bruno Haible  <bruno@clisp.org>
4159         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
4160         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
4161         and Daniel P. Berrange <berrange@redhat.com>.
4162         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
4163         on glibc systems. The getopt-pfx-core.h file declares exactly what
4164         unistd.h needs, nothing more.
4166 2017-10-08  Bruno Haible  <bruno@clisp.org>
4168         vma-iter: Improve support for FreeBSD.
4169         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
4170         vma_iterate.
4171         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
4173 2017-10-08  Bruno Haible  <bruno@clisp.org>
4175         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
4176         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
4178 2017-10-07  KO Myung-Hun  <komh@chollian.net>
4180         test-framework-sh: Fix 'invalid path dir' error.
4181         On OS/2, a path separator is ';' not ':'. And ':' is used as a
4182         separator between a drive letter and directory parts.
4183         As a result, an absolute path such as x:/path/to/dir on OS/2 is
4184         treated as an invalid path dir.
4185         * tests/init.sh (PATH_SEPARATOR): Set at startup.
4186         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
4187         instead of hard coded ':'.
4189 2017-10-07  Bruno Haible  <bruno@clisp.org>
4191         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
4192         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
4193         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
4194         (rof_open): On Linux, do multiple read() calls and make sure
4195         MIN_LEFTOVER bytes are left when read() returns.
4197 2017-10-07  Bruno Haible  <bruno@clisp.org>
4199         vma-iter: Improve support for GNU/Hurd.
4200         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
4201         API, not the /proc file system.
4203 2017-10-07  Bruno Haible  <bruno@clisp.org>
4205         test-framework-sh: Don't require bash on Windows and OS/2.
4206         Reported by KO Myung-Hun.
4207         * tests/test-init.sh: Use 'shopt' only when running in bash.
4209 2017-10-06  KO Myung-Hun  <komh@chollian.net>
4211         wcwidth: check a macro version of wcwidth () as well
4212         * lib/wchar.in.h: Revert commit from 2016-01-14.
4213         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
4215 2017-10-06  Bruno Haible  <bruno@clisp.org>
4217         getopt-posix: Clarify copyright header.
4218         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
4219         * lib/getopt-pfx-core.h: Likewise.
4220         * lib/getopt-pfx-ext.h: Likewise.
4221         * lib/getopt-cdefs.in.h: Likewise.
4223 2017-10-03  Bruno Haible  <bruno@clisp.org>
4225         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
4226         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
4227         gl_HOST_CPU_C_ABI.
4229 2017-10-03  Bruno Haible  <bruno@clisp.org>
4231         doc: warn about misuse of strncpy and wcsncpy.
4232         * doc/posix-functions/strcpy.texi: Describe requirements on prior
4233         memory allocation.
4234         * doc/posix-functions/wcscpy.texi: Likewise.
4235         * doc/posix-functions/strncpy.texi: Describe what this function is not
4236         useful for.
4237         * doc/posix-functions/wcsncpy.texi: Likewise.
4239 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
4241         fsuage: fix typo in previous change
4242         * lib/fsusage.c: Remove stray include of full-read.h.
4243         Problem reported by Sam Steingold for macOS (Bug#28669).
4245 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
4247         fsusage: remove SVR2 support
4248         SVR2 was obsolete by 1986 and is no longer supported by anybody,
4249         and its code was getting in the way of use of this module by
4250         Emacs, which has its own ‘read’ function anyway.
4251         * lib/fsusage.c: Do not include sys/filsys.h.
4252         (get_fs_usage): Remove SVR2-specific code.
4253         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
4254         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
4255         * modules/fsusage (Depends-on): Do not depend on full-read.
4257         Simplify autoupdate of licenses
4258         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
4259         place.
4261 2017-10-01  Bruno Haible  <bruno@clisp.org>
4263         vma-iter: Add support for GNU/Hurd.
4264         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
4265         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
4267 2017-09-30  Bruno Haible  <bruno@clisp.org>
4269         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
4270         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
4271         fail when module 'largefile' is in use.
4272         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
4273         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
4274         Don't test HAVE_SYS_PROCFS_H.
4276 2017-09-30  Bruno Haible  <bruno@clisp.org>
4278         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
4279         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
4280         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
4281         * modules/havelib (Depends-on): Add host-cpu-c-abi.
4283 2017-09-30  Bruno Haible  <bruno@clisp.org>
4285         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
4286         * lib/uniname/uniname.c (unicode_name_character): Add braces around
4287         scope of local variables.
4289 2017-09-28  Bruno Haible  <bruno@clisp.org>
4291         string: code style
4292         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
4293         substitutable variables.
4294         * modules/string (Makefile.am): Likewise.
4296 2017-09-26  Bruno Haible  <bruno@clisp.org>
4298         uniname/uniname-tests: Tighten code.
4299         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
4300         local variables into one.
4302 2017-09-26  Bruno Haible  <bruno@clisp.org>
4304         vma-iter: Improvements for Linux and BSD platforms.
4305         - Add support for DragonFly BSD.
4306         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
4307         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
4308         Read the entire file into memory in a single system call.
4309         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
4310         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
4312 2017-09-26  Bruno Haible  <bruno@clisp.org>
4314         vma-iter: Provide the protection flags on FreeBSD.
4315         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
4316         skip three fields between the addresses and the protection flags.
4318 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4320         glob: remove bogus extern decl
4321         * lib/glob.c (__glob_pattern_type): Remove now-spurious
4322         extern declaration.  Problem reported by Adhemerval Zanella in:
4323         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
4325 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4327         uniname/uniname-tests: integer overflow fix
4328         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
4329         Check for integer overflow.
4331         duplocale-tests: fix unlikely crash
4332         * tests/test-duplocale.c (get_locale_dependent_values):
4333         Don’t crash with absurdly long month names.
4335         maint: fix overflow checking in nap.h
4336         * modules/chown-tests:
4337         * modules/fchownat-tests, modules/fdutimensat-tests:
4338         * modules/futimens-tests, modules/lchown-tests:
4339         * modules/stat-time-tests, modules/utime-tests:
4340         * modules/utimens-tests, modules/utimensat-tests:
4341         Depend on intprops.
4342         * tests/nap.h: Include intprops.h.
4343         (diff_timespec): Handle overflow properly.
4345         sys_types: update URL
4346         * m4/sys_types_h.m4: Use https: URL.
4348         parse-datetime: fix dependency
4349         * modules/parse-datetime (Depends-on): Depend
4350         on nstrftime, not strftime.
4352         parse-datetime, posixtm: avoid uninit access
4353         * lib/parse-datetime.y (parse_datetime2):
4354         * lib/posixtm.c (posixtime):
4355         Do not access uninitialized storage, even though the resulting
4356         value is never used.
4358 2017-09-25  Bruno Haible  <bruno@clisp.org>
4360         vma-iter: Improvements for BSD platforms.
4361         - Add support for GNU/kFreeBSD.
4362         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
4363         - Speed up on OpenBSD.
4364         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
4365         (vma_iterate_bsd): New function.
4366         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
4367         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
4368         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
4369         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
4371 2017-09-23  Bruno Haible  <bruno@clisp.org>
4373         strfmon_l: New module.
4374         * modules/strfmon_l: New file.
4375         * lib/strfmon_l.c: New file.
4376         * m4/strfmon_l.m4: New file.
4377         * doc/posix-functions/strfmon_l.texi: Mention the new module.
4378         * modules/strfmon_l-tests: New file.
4379         * tests/test-strfmon_l.c: New file.
4381         monetary: New module.
4382         * modules/monetary: New file.
4383         * lib/monetary.in.h: New file.
4384         * m4/monetary_h.m4: New file.
4385         * doc/posix-headers/monetary.texi: Mention the new module.
4386         * modules/monetary-tests: New file.
4387         * tests/test-monetary.c: New file.
4388         * modules/monetary-c++-tests: New file.
4389         * tests/test-monetary-c++.cc: New file.
4390         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
4392 2017-09-23  Bruno Haible  <bruno@clisp.org>
4394         duplocale tests: Fix test crash on Linux/x86.
4395         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
4396         locale from the current thread before freeing it.
4398 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
4400         mktime: port to OpenVMS
4401         Problem reported by John E. Malmberg in:
4402         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
4403         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
4405 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
4407         manywarnings: port to GCC on 64-bit MS-Windows
4408         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
4409         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
4410         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
4412 2017-09-13  Bruno Haible  <bruno@clisp.org>
4414         all: Replace many more http URLs by https URLs. Update stale URLs.
4415         * users.txt: Remove mention of 'newts'.
4416         * lib/localename.c: Update comment about LANG_SOTHO.
4418 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4420         all: Replace many http URLs by https URLs.
4422 2017-09-12  Bruno Haible  <bruno@clisp.org>
4424         doc: Prefer https URLs where possible.
4425         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
4426         * doc/ld-output-def.texi: Remove unavailable URL.
4428 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
4430         maintainer-makefile: FTP -> HTTPS
4431         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
4432         of FTP, which is planned to be decommissioned on 2017-11-01.
4434 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
4436         libc-config: Fix __GNUC_PREREQ macro.
4437         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
4438         __GNUC_MINOR.
4440 2017-09-09  Bruno Haible  <bruno@clisp.org>
4442         gnulib-tool: Simplify commit from 2015-08-20.
4443         * gnulib-tool (func_add_or_update): Remove local variable
4444         is_binary_file.
4446 2017-09-08  Bruno Haible  <bruno@clisp.org>
4448         stddef: Avoid conflict with system-defined max_align_t.
4449         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
4450         Reported by Werner Lemberg <wl@gnu.org> in
4451         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
4452         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
4453         (max_align_t): Define as a macro.
4454         (GNULIB_defined_max_align_t): New macro. Guards against multiple
4455         definitions of rpl_max_align_t in different copies of gnulib-generated
4456         <stddef.h>.
4458 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4460         libc-config: port to MSVC
4461         Problems reported by Gisle Vanem in:
4462         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
4463         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
4464         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
4465         * m4/__inline.m4: New file.
4466         * modules/libc-config (Files): Add it.
4467         (Depends-on): Use it.
4469         glob: Use enum for __glob_pattern_type result
4470         From a patch proposed by Adhemerval Zanella in:
4471         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
4472         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
4473         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
4474         * lib/glob_internal.h (__glob_pattern_type):
4475         * lib/glob.c (glob):
4476         * lib/glob_pattern_p.c (__glob_pattern_p):
4477         Use them.
4479         glob: fix for use in glibc
4480         Problem reported by Adhemerval Zanella in:
4481         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
4482         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
4483         Do not redefine if _LIBC.
4485 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
4487         glob: fix bugs with long login names
4488         Problem reported by Adhemerval Zanella in:
4489         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
4490         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
4491         (glob): Use the same scratch buffer for both getlogin_r and
4492         getpwnam_r.  Don’t require preallocation of the login name.  This
4493         simplifies storage allocation, and corrects the handling of
4494         long login names.
4496 2017-09-02  Bruno Haible  <bruno@clisp.org>
4498         dirent: Update doc.
4499         * doc/posix-headers/dirent.texi: More concrete list of platforms.
4501 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
4503         glob: fix getpwnam_r errno typo
4504         * lib/glob.c (glob): Fix longstanding misuse of errno after
4505         getpwnam_r, which returns an error number rather than setting
4506         errno.
4508         glob: fix typo in recent change
4509         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
4510         Fix recently-introduced typo.
4512 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
4514         glob: don't save and restore errno unnecessarily
4515         * lib/glob.c (glob): Don't save and restore errno
4516         merely because we have getpwnam_r.
4518         glob: don't assume getpwnam_r
4519         * lib/glob.c (glob): Port recent patches to platforms
4520         lacking getpwnam_r.
4522         scratch_buffer: don’t use private glibc API
4523         Suggested by Florian Weimer in:
4524         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
4525         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
4526         * lib/scratch_buffer_grow.c: Rename to
4527         lib/malloc/scratch_buffer_grow.c.
4528         * lib/scratch_buffer_grow_preserve.c: Rename to
4529         lib/malloc/scratch_buffer_grow_preserve.c.
4530         * lib/scratch_buffer_set_array_size.c: Rename to
4531         lib/malloc/scratch_buffer_set_array_size.c.
4532         * lib/scratch_buffer.h: New file.
4533         * modules/scratch_buffer (Files, Makefile.am):
4534         Adjust to source-file renaming.
4536 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4538         glob: use scratch_buffer instead of extend_alloca
4539         Much of the lib/glob.c part of this patch comes from a glibc patch
4540         proposed by Adhemerval Zanella in:
4541         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
4542         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
4543         included via glob.h, does this for us now.
4544         (__set_errno): Remove, as libc-config does this for us now.
4545         Include <scratch_buffer.h>.
4546         (GETPW_R_SIZE_MAX): Remove.
4547         (glob): Use struct scratch_buffer instead of extend_alloca.
4548         * lib/glob.in.h: Include libc-config.h rather than
4549         including <sys/cdefs.h> conditionally.
4550         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
4551         (__glibc_unlikely, __restrict, weak_alias):
4552         Remove, as libc-config does this for us now.
4553         * m4/glob.m4 (gl_PREREQ_GLOB):
4554         Remove sys/cdefs.h tests; no longer needed.
4555         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
4556         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
4558         scratch_buffer: new module
4559         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
4560         * lib/scratch_buffer_grow_preserve.c:
4561         * lib/scratch_buffer_set_array_size.c:
4562         New files, copied from glibc with very minor changes that can be
4563         copied back.
4564         * modules/scratch_buffer: New file.
4566         libc-config: new module
4567         * MODULES.html.sh: Add libc-config.
4568         * lib/cdefs.h: New file, copied from the GNU C Library with very
4569         minor changes that can be copied back.
4570         * lib/libc-config.h, modules/libc-config: New files.
4572 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4574         glob: match dangling symlinks
4575         This fixes a bug I inadvertently introduced to Gnulib when I
4576         merged glibc glob back into gnulib on 2007-10-16.  This fix is
4577         inspired by a patch proposed for glibc by Adhemerval Zanella in:
4578         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
4579         * doc/posix-functions/glob.texi: Update list of affected platforms.
4580         * lib/glob.c (__lstat64): New macro.
4581         (is_dir): New function.
4582         (glob, glob_in_dir): Match symlinks even if they are dangling.
4583         (link_stat, link_exists_p): Remove.  All uses removed.
4584         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
4585         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
4586         * modules/glob-tests (Depends-on): Add symlink.
4587         * tests/test-glob.c: Include errno.h, unistd.h.
4588         (BASE): New macro.
4589         (main): Test dangling symlinks, if symlinks are supported.
4591         glob, backupfile: inode 0 is a valid inode number
4592         * doc/posix-functions/readdir.texi (readdir):
4593         * doc/posix-headers/dirent.texi (dirent.h):
4594         Document more readdir portability issues.
4595         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
4596         (numbered_backup): Don’t treat inode 0 any differently from
4597         other inode values.
4598         * lib/glob.c (struct readdir_result): Remove skip_entry member.
4599         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
4600         All uses removed.
4601         * modules/glob (Depends-on): Remove d-ino.
4603         glob: simplify symlink detection
4604         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
4605         uint8_t, as C99 does not require uint8_t.
4606         (struct readdir_result): Use it.  Do not define skip_entry unless
4607         it is needed; this saves a byte on platforms lacking d_ino.
4608         (readdir_result_type, readdir_result_skip_entry):
4609         New functions, replacing ...
4610         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
4611         ... these functions, which were removed.  This makes the callers
4612         easier to read.  All callers changed.
4613         (D_INO_TO_RESULT): Now empty if there is no d_ino.
4615 2017-08-30  Pádraig Brady  <P@draigBrady.com>
4617         fts-tests: tag as a longrunning-test so not included by default
4618         * modules/fts-tests: This test takes about 20s on current systems,
4619         and uses about 285M of space on ext4.
4621 2017-08-30  Pádraig Brady  <P@draigBrady.com>
4623         renameat2: fix compilation on alpine linux
4624         * m4/renameat.m4: Check for <linux/fs.h> presence.
4625         * lib/renameat2.h: Only include <linux/fs.h> if present.
4626         Reported by Assaf Gordon on Alpine Linux.
4628 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4630         glob: try to port recent changes to MS-Windows
4631         Problem reported by Bruno Haible in:
4632         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
4633         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
4634         * lib/glob.in.h (__glob_pattern_p): ... to here.
4636 2017-08-24  Eric Blake  <eblake@redhat.com>
4638         warnings: fix compilation with old autoconf
4639         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
4640         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
4641         AC_DEFUN.
4642         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
4643         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
4645 2017-08-24  Bruno Haible  <bruno@clisp.org>
4647         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
4648         * modules/glob (Depends-on): Add c99.
4650 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4652         glob: fix typo that broke platforms lacking d_ino
4653         This typo also hurt performance on GNU/Linux and similar hosts.
4654         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
4655         in previous change.
4657 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
4659         glob: merge from glibc with Zanella glob changes
4660         Merge glob from glibc, with changes for glob proposed
4661         by Adhemerval Zanella in the thread starting here:
4662         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
4663         plus some fixes for this merge.
4664         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
4665         New files, ported from glibc.
4666         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
4667         with __restrict.
4668         (__size_t): Remove.  All uses replaced by size_t.
4669         (size_t): Define by defining __need_size_t and including <stddef.h>.
4670         This should work even in non-glibc platforms, where any name
4671         pollution is OK.
4672         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
4673         (struct stat64): Don’t worry about __GLOB_GNULIB.
4674         (glob, globfree, glob_pattern_p): Remove macros for
4675         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
4676         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
4677         but set errno.
4678         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
4679         removed since the glibc behavior works on null pointers.
4680         Do not include stdio.h; old SunOS is irrelevant now.
4681         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
4682         Include glob_internal.h.
4683         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
4684         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
4685         worked only coincidentally.
4686         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
4687         Remove macros; now done in glob.in.h.
4688         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
4689         (glob): Properly initialize glob structure with
4690         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
4691         Remove old code using SHELL since Bash no longer
4692         uses this.
4693         (glob, prefix_array): Separate MS code better.
4694         (glob, glob_in_dir): Use C99 decls before statements when glibc
4695         does.
4696         (glob_in_dir): Remove old Amiga and VMS code.
4697         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
4698         separate files.
4699         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
4700         (__glibc_unlikely):
4701         Move here from glob.c.
4702         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
4703         (weak_alias): New macro.
4704         (__size_t): Remove.  All uses replaced by size_t.
4705         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
4706         * modules/glob (Files): Add +lib/glob_internal.h,
4707         lib/glob_pattern_p.c, lib/globfree.c.
4708         (Depends-on): Remove snippet/arg-nonnull.
4710 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
4712         glob: port to clang's Undefined Sanitizer
4713         Problem reported by Tim Rühsen in:
4714         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
4715         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
4716         (glob_in_dir): Do not rely on undefined behavior in accessing
4717         struct members beyond their bounds.  Use a flexible array member
4718         instead.
4720 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
4722         vc-list-files: port to Solaris 10
4723         * build-aux/vc-list-files: Don't assume test -e works.
4725 2017-08-21  Karl Berry  <karl@freefriends.org>
4727         * doc/posix-functions/srandom.texi (srandom): typo }.
4729 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4731         git-version-gen: port to Solaris 10
4732         Problem reported by Dagobert Michelsen in:
4733         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
4734         * build-aux/git-version-gen (v_from_git):
4735         Use expr instead of shell substitution.
4737 2017-08-19  Bruno Haible  <bruno@clisp.org>
4739         host-cpu-c-abi: Improve detection of MIPS ABI.
4740         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
4741         _MIPS_SIM.
4743 2017-08-17  Bruno Haible  <bruno@clisp.org>
4745         hypot tests: Fix test failure on FreeBSD 11.0/x86.
4746         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
4748 2017-08-17  Bruno Haible  <bruno@clisp.org>
4750         float: Fix LDBL_MIN value on FreeBSD/x86.
4751         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
4753 2017-08-17  Bruno Haible  <bruno@clisp.org>
4755         random: Fix test compilation failure on Cygwin 1.5.25.
4756         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
4757         HAVE_DECL_SETSTATE.
4758         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
4759         declared.
4760         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
4761         HAVE_DECL_SETSTATE.
4762         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
4763         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
4764         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
4765         * doc/posix-functions/random.texi: Likewise.
4766         * doc/posix-functions/setstate.texi: Likewise.
4767         * doc/posix-functions/srandom.texi: Likewise.
4769 2017-08-16  Bruno Haible  <bruno@clisp.org>
4771         stdnoreturn: Fix test compilation failure on Cygwin.
4772         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
4773         <stdnoreturn.h> replacement.
4774         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
4775         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
4777 2017-08-16  Bruno Haible  <bruno@clisp.org>
4779         thread: Fix conflict with pthread_sigmask module.
4780         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
4781         it's defined as a macro.
4782         * modules/thread (Depends-on): Add pthread_sigmask.
4784 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
4786         rename: port better to NetBSD
4787         * doc/posix-functions/rename.texi (rename): NetBSD 7
4788         does not have the link-count bug.
4789         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
4790         broken merely because rename ("a", "b") removes "a" when the two
4791         names are hard links to the same file.
4793 2017-08-16  Bruno Haible  <bruno@clisp.org>
4795         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
4796         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
4797         the target file names with '$(srcdir)/'.
4798         * modules/unicase/locale-language (Makefile.am): Likewise.
4799         * modules/unicase/special-casing (Makefile.am): Likewise.
4800         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
4801         * modules/unictype/category-byname (Makefile.am): Likewise.
4802         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
4803         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
4804         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
4805         * modules/unictype/property-byname (Makefile.am): Likewise.
4806         * modules/unictype/scripts (Makefile.am): Likewise.
4807         * modules/uninorm/composition (Makefile.am): Likewise.
4809 2017-08-16  Bruno Haible  <bruno@clisp.org>
4811         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
4812         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
4813         value for OpenBSD.
4815 2017-08-16  Bruno Haible  <bruno@clisp.org>
4817         rename, renameat: Update doc regarding NetBSD.
4818         * doc/posix-functions/rename.texi: Clarify that when using
4819         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
4820         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
4821         version.
4823 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4825         renameat2: port better to macOS
4826         * lib/renameat2.c (renameat2): Use renameatx_np if available.
4828         futimens: don’t assume struct timespec layout
4829         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
4830         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
4831         * tests/test-fdutimensat.c (main):
4832         * tests/test-futimens.h (test_futimens):
4833         * tests/test-lutimens.h (test_lutimens):
4834         * tests/test-utimens.h (test_utimens):
4835         * tests/test-utimensat.c (main):
4836         Don’t assume that struct timespec is a two-member structure in
4837         tv_sec, tv_nsec order.  Although this is true on all platforms we
4838         know about, POSIX does not guarantee it.
4840         rename: document+test NetBSD rename
4841         Test failure reported by Bruno Haible in:
4842         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
4843         This is an area where NetBSD is better-behaved than POSIX,
4844         so allow the NetBSD behavior in tests.
4845         * doc/posix-functions/rename.texi:
4846         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
4847         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
4849 2017-08-15  Bruno Haible  <bruno@clisp.org>
4851         renameat: Ensure declaration in <stdio.h> on NetBSD.
4852         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
4853         * doc/posix-functions/renameat.texi: Mention this problem.
4855 2017-08-15  Bruno Haible  <bruno@clisp.org>
4857         duplocale: Work around NetBSD 7.0 bug.
4858         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
4859         * lib/duplocale.c: Add comment about NetBSD problem.
4860         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
4862 2017-08-15  Bruno Haible  <bruno@clisp.org>
4864         duplocale tests: Verify use with *_l functions.
4865         * modules/duplocale-tests (configure.ac): Test for uselocale and
4866         some *_l functions.
4867         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
4868         from main.
4869         (get_locale_dependent_values_from, test_with_locale_parameter): New
4870         functions.
4871         (main): Test both test_with_uselocale and test_with_locale_parameter.
4873 2017-08-15  Bruno Haible  <bruno@clisp.org>
4875         extensions: Enable NetBSD specific extensions.
4876         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
4878 2017-08-14  Bruno Haible  <bruno@clisp.org>
4880         open, openat: Update doc about O_CLOEXEC.
4881         * doc/posix-functions/open.texi: More concrete list of platforms.
4882         * doc/posix-functions/openat.texi: Likewise.
4884 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4886         open: support O_CLOEXEC
4887         * NEWS, doc/posix-functions/open.texi:
4888         * doc/posix-functions/openat.texi: Document this.
4889         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
4890         (GNULIB_defined_O_CLOEXEC): New symbol.
4891         * lib/open.c: Include cloexec.h.
4892         (open): Support O_CLOEXEC.
4893         * lib/openat.c: Include cloexec.h.
4894         (rpl_openat): Support O_CLOEXEC.
4895         * lib/popen-safer.c: Do not include cloexec.h.
4896         (open_noinherit): Remove.
4897         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
4898         * lib/save-cwd.c: Do not include cloexec.h.
4899         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
4900         * m4/open-cloexec.m4: New file.
4901         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
4902         Replace 'open' if O_CLOEXEC is not present.
4903         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
4904         Replace 'openat' if O_CLOEXEC is not present.
4905         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
4906         * modules/open (Files): Add m4/open-cloexec.m4.
4907         (Depends-on): Depend on cloexec if replacing 'open'.
4908         * modules/openat (Files): Add m4/open-cloexec.m4.
4909         (Depends-on): Depend on cloexec if replacing openat.
4910         * modules/popen-safer (Depends-on): Remove cloexec.
4911         * modules/save-cwd (Depends-on): Remove cloexec, and add
4912         fd-safer-flag and 'open'.
4914 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
4916         reallocarray: minor fixes
4917         * doc/glibc-functions/reallocarray.texi: Update version numbers.
4918         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
4919         * modules/reallocarray (License): Change from GPL to LGPL.
4920         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
4921         Indent properly and don't use tabs.
4923 2017-08-13  Darshit Shah  <darnir@gnu.org>
4925         reallocarray: New module
4926         reallocarray is a new function in glibc 2.26 to safely allocate an array
4927         of memory locations with integer overflow protection.
4928         * MODULES.html.sh: Add reallocarray.
4929         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
4930         * lib/reallocarray.c: New file to implement module reallocarray.
4931         * lib/stdlib.in.h: Add function declarations for reallocarray.
4932         * m4/reallocarray.m4: New file.
4933         * m4/stdlib_h.m4: Declare reallocarray.
4934         * modules/reallocarray: New file.
4935         * modules/reallocarray-test: New file.
4936         * modules/stdlib: Coerce stdlib.h to export reallocarray.
4937         * tests/test-reallocarray.c: New test.
4939 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4941         dirent-safer: fix cloexec race
4942         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
4943         (opendir_safer): Use F_DUPFD_CLOEXEC.
4944         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
4945         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
4946         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
4947         instead of dup_safer.
4949         fts: fix cloexec races
4950         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
4951         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
4952         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
4953         (fd_ring_check): Set cloexec flag on new file descriptors.
4954         (fts_build, fd_ring_check): While we’re at it, make sure the
4955         resulting file descriptor is not 0, 1, or 2, since that is easy.
4957 2017-08-11  Bruno Haible  <bruno@clisp.org>
4959         fts tests: Fix link error.
4960         Reported by Tom G. Christensen in
4961         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
4962         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
4964 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4966         fts: port recent changes to CentOS 6
4967         Problem reported by Tom G. Christensen in:
4968         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
4969         * lib/fts.c (fsword): New type.
4970         (struct dev_type, filesystem_type): Use it.
4971         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
4972         Also, check for f_type only if fstatfs and sys/vfs.h work.
4974 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
4976         tempname: do not depend on secure_getenv
4977         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
4978         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
4979         * modules/tempname (Depends-on): Remove secure_getenv.
4981 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
4983         extensions: add _OPENBSD_SOURCE
4984         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
4986 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
4987             Bruno Haible  <bruno@clisp.org>
4989         manywarnings: Add support for C++.
4990         * build-aux/g++-warning.spec: New file.
4991         * m4/manywarnings-c++.m4: New file.
4992         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
4993         redirects to manywarnings-c++.m4.
4994         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
4996 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
4998         git-version-gen: another fix for tags with "-"
4999         * build-aux/git-version-gen: Improve fix for tags containing "-".
5000         Suggested by Markus Armbruster in:
5001         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
5003 2017-08-06  Bruno Haible  <bruno@clisp.org>
5005         warnings, manywarnings: Add support for multiple languages, not just C.
5006         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
5007         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
5008         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
5009         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
5010         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
5011         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
5012         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
5013         of the current language. If C++ is the current language, modify
5014         WARN_CXXFLAGS instead of WARN_CFLAGS.
5015         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
5016         gl_MANYWARN_ALL_GCC.
5017         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
5019 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
5021         git-version-gen: Fix for tags containing '-'
5023         Really old versions of git-describe (before v1.5.0, Feb 2007)
5024         don't have the number of commits in their long format output,
5025         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
5026         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
5027         recognizes both patterns, and normalizes the old format to the new one.
5029         Unfortunately, this normalization code gets confused when the tag
5030         contains '-'.  Reproducer:
5032             $ git-tag -m test v0.2-rc1
5033             $ build-aux/git-version-gen .tarball-version; echo
5034             build-aux/git-version-gen: WARNING: git rev-list failed
5035             UNKNOWN
5037         We take exact tag "v0.2-rc1" for the old format, extract the presumed
5038         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
5039         commits since tha tag.  Fails, because tag "v0.2" does not exist.
5041         * git-version-gen: We could perhaps drop support for versions from
5042         more than a decade ago.  But tightening the pattern match is easy
5043         enough, so do that.  Still breaks when you use version tags ending in
5044         something matching -g????, but you arguably get what you deserve then.
5046 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
5048         valgrind-tests: use ls, and cache
5049         * m4/valgrind-tests.m4: Test ls, not bash.
5050         Problem reported by Reuben Thomas.
5051         Also, cache the result so that it can be overridden.
5053 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
5055         manywarnings: port to 64-bit GCC builds of Emacs
5056         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
5057         object size rather than hardwiring 2147483647.  This is needed to
5058         build GNU Emacs, which has one conditional (and used
5059         only-in-theory) call to malloc with a literal greater than
5060         2147483647.
5062 2017-08-04  Bruno Haible  <bruno@clisp.org>
5064         Relax the license of some modules with no runtime code.
5065         * modules/std-gnu11 (License): Set to 'unlimited'.
5066         * modules/c99 (License): Likewise.
5067         Reported by Reuben Thomas <rrt@sc3d.org>.
5068         * modules/d-ino (License): Set to 'LGPL'.
5069         * modules/host-os (License): Likewise.
5070         * modules/longlong (License): Likewise.
5072 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
5074         renameat2: port to RHEL 7 + NFS
5075         * lib/renameat2.c (renameat2) [SYS_renameat2]:
5076         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
5077         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
5079 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
5081         renameat2: port to non-renameat platforms
5082         Problem reported for MSVC-2015 by Gisle Vanem in:
5083         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
5084         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
5085         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
5087 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
5089         manywarnings: port to 32-bit GCC bug
5090         Problem reported by Pino Toscano in:
5091         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
5092         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
5093         not 2**63 - 1, to work around the following GCC bug:
5094         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
5096 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5098         backupfile: new function to validate backup suffix
5099         * lib/backupfile.c (set_simple_backup_suffix): New function.
5100         (backupfile_internal): Use it.
5102         canonicalize: fix EOVERFLOW commentary
5103         Problem reported by Bruno Haible in:
5104         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
5105         * lib/canonicalize.c (canonicalize_filename_mode):
5106         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
5108         Don't interpret EOVERFLOW to mean nonexistence
5109         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
5110         may be EOVERFLOW; this is likely more useful than reporting the
5111         stat errno.
5112         * lib/glob.c (link_stat): Rename from link_exists2_p and
5113         return -1/0 instead of 0/1.  Caller changed.
5114         * lib/glob.c (link_exists_p):
5115         * lib/renameat2.c (rename_noreplace, renameat2):
5116         * lib/tempname.c (try_nocreate):
5117         If errno == EOVERFLOW then the directory entry exists, so do not
5118         act as if it does not exist.
5120         backup-rename: new module
5121         It is like backupfile, except it avoids some race conditions,
5122         and it does not output to stderr or exit.
5123         * MODULES.html.sh: Add backup-rename.
5124         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
5125         * modules/backup-rename: New files.
5126         * lib/backupfile.c: Turn this into an internals file, which
5127         contains code common to backupfile and backup_rename.  Include
5128         backupfile-internal.h instead of backupfile.h.  Do not include
5129         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
5130         renameat2.h and fcntl.h.
5131         (BACKUP_NOMEM): New constant.
5132         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
5133         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
5134         (backupfile_internal): Rename from find_backup_file_name.
5135         Support new arg RENAME.
5136         (backup_args, backup_types, get_version, xget_version):
5137         Move to lib/backup-find.c.
5138         * lib/backupfile.h (backup_file_rename): New decl.
5139         * modules/backupfile (Files): Add lib/backup-internal.h,
5140         lib/backup-find.c.
5141         (Depends-on): Add dirfd, fcntl, renameat2.
5142         (lib_SOURCES): Add backup-find.c.
5144         renameat2: port better to older Solaris
5145         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
5146         Add goto to use a label, to silence picky compilers.
5148         fts-tests: port to gcc -Wwrite-strings
5149         * tests/test-fts.c (base, base_d): New static vars.
5150         (argv, remove_tree, main): Use them.
5152 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
5154         relocatable-lib{,-lgpl}: improve documentation
5155         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
5156         Various other updates.
5158 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
5159             Bruno Haible  <bruno@clisp.org>
5161         relocatable-lib{,-lgpl}: add Valgrind suppressions
5162         * lib/relocatable.valgrind: New file.
5163         * modules/relocatable-lib (Files): Add relocatable.valgrind.
5164         * modules/relocatable-lib-lgpl: Likewise.
5166 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
5168         relocatable: Make the license on the sources the GPL.
5169         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
5170         LGPL, which was a special case so that the relocatable source files
5171         could be used without gnulib-tool, to GPL. They can still be used under
5172         the LGPL, using the --lgpl option to gnulib-tool.
5174 2017-07-30  Bruno Haible  <bruno@clisp.org>
5176         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
5177         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
5178         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
5179         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
5180         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
5182 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
5184         faccessat: document AT_SYMLINK_NOFOLLOW issue
5185         * doc/posix-functions/faccessat.texi: Modernize platform list.
5186         Document AT_SYMLINK_NOFOLLOW limitation.
5188         renameat2: port to Solaris 10
5189         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
5190         with AT_SYMLINK_NOFOLLOW (which is not portable).
5191         (renameat): Undef before using, to avoid endless recursion when
5192         the replacement renameat calls renameat2 which calls the
5193         replacement renameat.
5194         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
5195         * modules/renameat2 (Depends-on): Remove faccessat.
5196         * modules/renameat-tests (test_renameat_LDADD):
5197         * modules/renameat2-tests (test_renameat2_LDADD):
5198         Remove $(LIB_EACCESS).
5200         renameat2: new module
5201         Although the Linux syscall renameat2 is not in glibc (yet?), it is
5202         useful to have access to its RENAME_NOREPLACE flag.
5203         * MODULES.html.sh (func_all_modules): Add renameat2.
5204         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
5205         * modules/renameat2-tests, tests/test-renameat2.c: New files.
5206         * lib/renameat.c (renameat): Move most of the implementation
5207         to renameat2, and just call renameat2.
5208         * modules/renameat (Files): Remove lib/at-func2.c.
5209         (Depends-on): Depend only on renameat2.
5210         (Include): Remove <fcntl.h>.
5211         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
5212         since renameat (via renameat2) might use faccessat.
5214 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
5216         vc-list-files: Adjust the script to support git worktrees
5217         * build-aux/vc-list-files: Require existence, not directory.
5219 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
5221         doc: bring MODULES.html.sh up to date
5222         Somehow a few months ago we stopped updating MODULES.html.sh.
5223         I don’t recall explicitly deciding this, so I updated it now.
5224         Alternatively I suppose we could remove it.
5225         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
5226         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
5227         truncate, utime, utime-h, windows-stat-inodes,
5228         windows-stat-override, windows-stat-timespec, year2038.  Sort.
5230 2017-07-26  Jim Meyering  <meyering@fb.com>
5232         fprintftime: fix build-break caused by recent renaming
5233         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
5234         "strftime.c".
5235         * modules/fprintftime: Depend directly on nstrftime.
5237 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
5239         regex: work with GCC7's -Werror=implicit-fallthrough=
5240         * lib/regex_internal.h (FALLTHROUGH): New macro.
5241         * lib/regcomp.c (peek_token_bracket, parse_expression):
5242         * lib/regexec.c (check_node_accept): Use it.
5244 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5246         fts: simplify fts_build
5247         * lib/fts.c (fts_build): Simplify, and be lazier about
5248         calling leaf_optimization.
5250         fts: three levels of leaf optimization
5251         * lib/fts.c (enum leaf_optimization): New type with three values.
5252         (S_MAGIC_AFS): New macro.  Sort them.
5253         (leaf_optimization): Rename from leaf_optimization_applies, and
5254         return enum leaf_optimization instead of bool.  All uses changed.
5255         Add cases for unknown type and for AFS.
5256         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
5258         fts: cache dirent_inode_sort_may_be_useful too
5259         * lib/fts.c (struct dev_type): New struct.
5260         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
5261         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
5262         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
5263         Now takes FTSENT const *, not int.  All uses changed.  Use
5264         filesystem_type to cache.
5265         (link_count_optimize_ok): Remove.  Caller changed to use
5266         leaf_optimization_applies, which now uses shared cache.
5268         fts: introduce MIN_DIR_NLINK
5269         * lib/fts.c (MIN_DIR_NLINK): New constant.
5270         Use it instead of 2, whenever we are talking about link counts.
5272         fts: nlink_t signedness fixups
5273         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
5274         so that root need not be a special case later.
5275         (fts_read): Remove now-redundant test for fts_level.
5276         Do not assume that nlink_t is signed.
5277         (fts_build): Remove useless decrement of nlinks.
5278         (fts_stat): Avoid unlikely signed integer overflow later, if
5279         nlink_t is signed.
5281         fts-tests: new module
5282         * modules/fts-tests, tests/test-fts.c: New files.
5284 2017-07-23  Bruno Haible  <bruno@clisp.org>
5286         Rename module 'strftime' to 'nstrftime'.
5287         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
5288         * lib/nstrftime.c: Renamed from lib/strftime.c.
5289         * modules/nstrftime: Renamed from modules/strftime.
5290         (Files, Makefile.am): Update.
5291         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
5292         Fix comment.
5293         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
5294         (Files, Makefile.am): Update.
5295         * modules/strftime: New file, an obsolete indirection.
5296         * doc/posix-functions/strftime.texi: Update reference.
5297         * config/srclist.txt: Update info.
5298         * NEWS: Mention the change.
5300 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
5302         malloca: Silence a warning from clang's memory sanitizer.
5303         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
5304         (freea): Use it.
5306 2017-07-18  Bruno Haible  <bruno@clisp.org>
5308         host-cpu-c-abi: Fix detection of MIPS ABI.
5309         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
5310         ABI, not the CPU instruction set.
5312 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5314         explicit_bzero: new module
5315         The explicit_bzero function has been added to glibc.
5316         This module is intended to supports its use in GNU programs.
5317         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
5318         * m4/explicit_bzero.m4, modules/explicit_bzero:
5319         New files.
5320         * doc/gnulib.texi (Glibc string.h): Link to new doc.
5321         * lib/string.in.h (explicit_bzero): Declare.
5322         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
5323         * modules/string (string.h): Substitute its vars.
5325 2017-07-16  Bruno Haible  <bruno@clisp.org>
5327         threadlib: Support static linking.
5328         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
5329         set gl_cv_have_weak to 'no'.
5331 2017-07-16  Bruno Haible  <bruno@clisp.org>
5333         unicase/locale-language: Fix link dependencies.
5334         * modules/unicase/locale-language (Link): New section.
5335         * modules/unicase/locale-language-tests (Makefile.am): Link
5336         test-locale-language program with $(LIBTHREAD).
5338 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
5340         sys_socket: Add support for OpenVMS.
5341         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
5342         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
5344 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
5346         sys_resource: Add support for OpenVMS.
5347         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
5348         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
5350 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
5351             Bruno Haible  <bruno@clisp.org>
5353         math: Add support for OpenVMS.
5354         * lib/math.in.h [__VMS]: Include <fp.h>.
5355         * doc/posix-headers/math.texi: Mention OpenVMS issues.
5357 2017-07-15  Bruno Haible  <bruno@clisp.org>
5359         getdtablesize: Add minimal support for OpenVMS.
5360         Reported by John E. Malmberg <wb8tyw@qsl.net>.
5361         * modules/getdtablesize (Description): Fix.
5362         * lib/getdtablesize.c: Fix comment.
5363         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
5364         getdtablesize() function, even though the test fails.
5365         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
5366         limitation on OpenVMS.
5368 2017-07-13  Bruno Haible  <bruno@clisp.org>
5370         Revisit cross-compilation guesses.
5371         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
5373 2017-07-13  Bruno Haible  <bruno@clisp.org>
5375         Improve cross-compilation guesses for native Windows.
5376         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
5377         Windows.
5378         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
5379         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
5380         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
5381         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
5382         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
5383         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
5384         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5385         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5386         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
5387         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
5388         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5389         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
5390         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
5391         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
5392         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
5393         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
5394         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
5395         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
5396         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
5397         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
5398         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5399         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5400         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
5401         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
5402         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
5403         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
5404         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5405         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5406         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5407         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
5408         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5409         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
5410         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5411         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
5412         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
5413         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
5414         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
5415         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
5416         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
5417         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5418         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5419         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5420         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
5421         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
5422         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
5423         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
5424         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
5425         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
5426         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
5427         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
5428         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
5429         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
5430         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
5431         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
5432         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
5433         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
5434         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
5435         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
5436         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
5437         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
5438         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
5439         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
5440         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
5441         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5442         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5443         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5444         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
5445         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
5446         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
5447         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
5448         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
5449         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
5450         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5451         * m4/regex.m4 (gl_REGEX): Likewise.
5452         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5453         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
5454         gl_FUNC_REMAINDERF_WORKS): Likewise.
5455         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
5456         gl_FUNC_REMAINDERL_WORKS): Likewise.
5457         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
5458         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
5459         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5460         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5461         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5462         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5463         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5464         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5465         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
5466         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5467         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
5468         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
5469         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5470         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
5471         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
5472         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5473         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5474         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5475         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
5476         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
5477         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
5478         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
5479         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5480         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
5481         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
5482         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5483         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
5484         Likewise.
5485         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5486         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
5487         Windows. Enable also on Autoconf 2.70.
5488         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5489         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5490         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
5491         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
5492         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5493         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
5494         for native Windows.
5495         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
5496         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
5498 2017-07-13  Bruno Haible  <bruno@clisp.org>
5500         Improve cross-compilation guesses for native Windows.
5501         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
5502         Windows.
5503         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
5504         memchr.m4.
5505         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
5507 2017-07-13  Bruno Haible  <bruno@clisp.org>
5509         Improve cross-compilation guesses for native Windows.
5510         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
5511         native Windows.
5512         (gl_FUNC_FFLUSH): Update accordingly.
5513         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
5514         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
5516 2017-07-11  Bruno Haible  <bruno@clisp.org>
5518         More systematic m4 quoting and indentation.
5519         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
5520         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
5521         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
5522         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5523         * m4/host-os.m4 (gl_HOST_OS): Likewise.
5524         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
5525         gl_WINSIZE_IN_PTEM): Likewise.
5526         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
5527         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
5528         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
5529         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
5530         Correct indentation.
5531         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5532         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5533         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
5534         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
5535         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
5536         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
5538 2017-07-10  Bruno Haible  <bruno@clisp.org>
5540         round, roundf: Avoid compiler warning in configure test.
5541         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
5542         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5544 2017-07-10  Bruno Haible  <bruno@clisp.org>
5546         getlogin tests: Avoid #ifdefs when sharing code between modules.
5547         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
5548         * modules/getlogin-tests (Files): Likewise. Remove
5549         tests/test-getlogin_r.c.
5550         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
5551         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
5552         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
5553         getlogin().
5555 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
5557         getlogin: don’t assume one name per uid
5558         Problem reported by Wolfgang F. Muthmann (Bug#27640).
5559         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
5560         (ttyname): Remove test.
5561         * modules/getlogin_r-tests (ttyname): Remove test.
5562         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
5563         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
5564         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
5565         getlogin rather than getlogin_r.  This avoids code duplication.
5566         (main): Use isatty and fstat rather than ttyname and stat.
5567         Use getpwnam instead of getpwuid, to be portable to test platforms
5568         that have multiple login names for the same uid.
5570 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
5571             Bruno Haible  <bruno@clisp.org>
5573         glob: Fix more memory leaks.
5574         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
5575         returning.
5576         Reported by Tim Rühsen.
5578 2017-07-10  Bruno Haible  <bruno@clisp.org>
5580         Make sure $host and $host_os are defined when used.
5581         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
5582         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
5583         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
5584         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5585         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5586         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
5587         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
5588         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
5589         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
5590         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
5591         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
5592         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
5593         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
5594         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
5595         m4_ifdef block.
5597 2017-07-09  Bruno Haible  <bruno@clisp.org>
5599         *printf: Fix cross-compilation guess for Solaris.
5600         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
5601         2010-12-21.
5603 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
5604             Bruno Haible  <bruno@clisp.org>
5606         vasnprintf: port to macOS 10.13
5607         Problem reported by comex in:
5608         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
5609         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
5611 2017-07-06  Bruno Haible  <bruno@clisp.org>
5613         imaxdiv tests: Fix logic.
5614         * tests/test-imaxdiv.c (main): Use == instead of =.
5615         Reported by Coverity.
5617 2017-07-06  Bruno Haible  <bruno@clisp.org>
5619         uninorm/filter: Fix use-after-free bug.
5620         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
5621         sortbuf == filter->sortbuf invariant.
5622         Reported by Coverity.
5624 2017-07-06  Bruno Haible  <bruno@clisp.org>
5626         glob: Fix more memory leaks.
5627         * lib/glob.c (glob): Free dirname before returning.
5628         Reported by Coverity and Tim Rühsen.
5630 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5632         parse-datetime: fix uninit var bug
5633         Reported by Bruno Haible in:
5634         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
5635         * lib/parse-datetime.y (parse_datetime2): Do not use
5636         uninitialized.
5638 2017-07-05  Bruno Haible  <bruno@clisp.org>
5640         doc: Update for MSVC 14.
5641         * doc/posix-headers/*.texi: Add info about MSVC 14.
5642         * doc/posix-functions/*.texi: Likewise.
5643         * doc/pastposix-functions/*.texi: Likewise.
5644         * doc/glibc-headers/*.texi: Likewise.
5645         * doc/glibc-functions/*.texi: Likewise.
5647 2017-07-05  Bruno Haible  <bruno@clisp.org>
5649         sched: Fix build failure on native Windows (regression from 2017-06-19).
5650         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
5652 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
5654         stdioext: Port to OpenVMS.
5655         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
5656         * lib/fpending.c (fpending): Remove non-working VMS specific code.
5657         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
5658         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
5659         * lib/fpurge.c (fpurge): Likewise.
5660         * lib/freadable.c (freadable): Likewise.
5661         * lib/freadahead.c (freadahead): Likewise.
5662         * lib/freading.c (freading): Likewise.
5663         * lib/freadptr.c (freadptr): Likewise.
5664         * lib/freadseek.c (freadseek): Likewise.
5665         * lib/fseeko.c (fseeko): Likewise.
5666         * lib/fseterr.c (fseterr): Likewise.
5667         * lib/fwritable.c (fwriteable): Likewise.
5668         * lib/fwriting.c (fwriting): Likewise.
5670 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
5672         glob: Declare variables at the very start of their scope.
5673         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
5674         its separate scope, so the functions will compile on Haiku.
5676 2017-07-01  Bruno Haible  <bruno@clisp.org>
5678         logbl: Work around a glibc bug on PowerPC64LE.
5679         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
5680         numbers.
5681         * doc/posix-functions/logbl.texi: Update.
5683 2017-06-29  Bruno Haible  <bruno@clisp.org>
5685         stat, fstat: Compile stat-w32.c only on platforms that need it.
5686         Suggested by Paul Eggert.
5687         * modules/stat (configure.ac): Request stat-w32.o only on native
5688         Windows.
5689         * modules/fstat (configure.ac): Likewise.
5691 2017-06-25  Bruno Haible  <bruno@clisp.org>
5693         stat: Improve last change.
5694         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
5696 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
5698         stat: port to xlc 12.01
5699         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
5700         12.01 complains "Compilation unit is empty."
5702 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
5704         xalloc-oversized: port to icc
5705         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
5706         __builtin_mul_overflow if ICC is defined, as this results in
5707         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
5708         20170213.
5710 2017-06-19  Bruno Haible  <bruno@clisp.org>
5712         classpath: Avoid including config.h twice, as it produces warnings.
5713         Reported by John E. Malmberg <wb8tyw@gmail.com>.
5714         * lib/classpath.h: Conditionalize the include of config.h.
5716 2017-06-19  Bruno Haible  <bruno@clisp.org>
5717             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
5719         sched: Fix compilation failure on OpenVMS.
5720         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
5721         test whether <pthread.h> exists and defines struct sched_param.
5722         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
5724 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
5726         diffseq: port to GCC 7 with --enable-gcc-warnings
5727         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
5728         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
5729         not complain about big_snake being defined but not used.
5731 2017-06-15  Bruno Haible  <bruno@clisp.org>
5733         gettext-h: Update theoretical condition for use of variable size arrays.
5734         Reported by Paul Eggert.
5735         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
5736         to include the theoretical condition for availability of variable size
5737         arrays, if we could trust the value of __STDC_VERSION__.
5739 2017-06-12  Bruno Haible  <bruno@clisp.org>
5741         Relicense some modules under LGPLv2+.
5742         Daiki Ueno's approval is in
5743         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
5744         * modules/uniwidth/base (License): Change to LGPLv2+.
5745         * modules/uniwidth/width (License): Likewise.
5747 2017-06-11  Bruno Haible  <bruno@clisp.org>
5749         localename: Fix test failure on DragonFly BSD.
5750         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
5751         like FreeBSD.
5753 2017-06-11  Bruno Haible  <bruno@clisp.org>
5755         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
5756         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
5757         * lib/float.in.h: Likewise.
5758         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
5760 2017-06-11  Bruno Haible  <bruno@clisp.org>
5762         gnulib-tool: Clean up after autotools.
5763         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
5764         useless directory left over by the Autotools.
5766 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
5768         getopt-posix: port to glibc 2.25.90
5769         Problem reported by Daniel P. Berrange in:
5770         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
5771         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
5772         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
5773         #undef if __GETOPT_PREFIX is defined.
5775 2017-06-11  Bruno Haible  <bruno@clisp.org>
5777         strtod-obsolete: Fix license.
5778         * modules/strtod-obsolete (License): Change to LGPL.
5780 2017-06-10  Jim Meyering  <meyering@fb.com>
5782         maint: update to work with GCC7's -Werror=implicit-fallthrough=
5783         * lib/savewd.c (FALLTHROUGH): Define.
5784         (savewd_save, savewd_restore): Use this, rather than a comment,
5785         whenever one switch case falls through into the next.
5787 2017-06-08  Bruno Haible  <bruno@clisp.org>
5789         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
5790         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
5791         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
5792         case.
5794 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
5796         doc: remove robots, add prereqs
5797         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
5798         builds.  Simon's robot site does not seem to be up, so remove
5799         mentions of it for now.
5801 2017-06-08  Bruno Haible  <bruno@clisp.org>
5803         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
5804         * gnulib-tool (func_symlink_target): New function, extracted from
5805         func_symlink.
5806         (func_symlink, func_symlink_if_changed): Use it.
5808 2017-06-08  Bruno Haible  <bruno@clisp.org>
5810         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
5811         * gnulib-tool (func_ln_s): Determine cp_src correctly.
5813 2017-06-07  Bruno Haible  <bruno@clisp.org>
5815         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
5816         Reported by John E. Malmberg <wb8tyw@gmail.com> in
5817         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
5818         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
5819         override, pass 2 arguments to getcwd, not 3.
5821 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
5823         same-inode: port better to VMS 8.2 and later
5824         Problem reported by John E. Malmberg in:
5825         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
5826         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
5827         Use the usual POSIX definition.
5828         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
5830 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5832         error: fix POSIX violation for va_end
5833         Problem reported by Bruno Haible in:
5834         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
5835         * lib/error.c (error_tail): Do not call va_end here.
5836         (error, error_at_line): Call it here instead.
5838 2017-05-28  Bruno Haible  <bruno@clisp.org>
5840         c-strtod: Make it usable in C++ mode.
5841         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
5843 2017-05-25  Jim Meyering  <meyering@fb.com>
5845         quotearg: fix compilation failure due to FALLTHROUGH misuse
5846         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
5847         macro back to /* fall through */ comment.  The macro can apply only
5848         to a following case statement.  Reported by Assaf Gordon.
5850 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
5852         intprops: port to recent icc
5853         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
5854         but does not support __builtin_add_overflow etc.
5855         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
5856         Define to 0.
5858 2017-05-23  Karl Berry  <karl@freefriends.org>
5860         * config/srclist.txt (iconv.m4): sync broken, comment out
5861         until (hopefully) the next gettext release.
5863 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
5865         Remove repeated words in comments.
5867 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
5869         fallthrough: reinstate a FALLTHROUGH instance in quotearg
5870         quotearg.c: Reinstate this instance which is significant
5871         when the if branch is not taken.
5873 2017-05-21  Bruno Haible  <bruno@clisp.org>
5875         gnulib-tool: Add options to create hard links.
5876         * gnulib-tool (func_usage): Document options --hardlink,
5877         --local-hardlink, --more-hardlinks.
5878         (func_symlink): Renamed from func_ln.
5879         (func_symlink_if_changed): Renamed from func_ln_if_changed.
5880         (func_hardlink): New function.
5881         (copymode, lcopymode): New variables.
5882         (symbolic, lsymbolic): Remove variables.
5883         (Options): Implement options --hardlink, --local-hardlink,
5884         --more-hardlinks.
5885         (func_should_link): Renamed from func_should_symlink. Set copyaction.
5886         (func_add_file, func_update_file): Update invocation of
5887         func_should_link. Invoke func_hardlink when appropriate.
5888         (func_import): Update comments.
5889         (func_create_testdir): Update invocation of func_should_link. Invoke
5890         func_hardlink when appropriate.
5891         Finally, invoke 'git update-index --refresh' to mitigate the effects of
5892         the hard links on git.
5894 2017-05-20  Bruno Haible  <bruno@clisp.org>
5896         argp: Simplify bit manipulation.
5897         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
5898         on a signed integer type.
5900 2017-05-20  Bruno Haible  <bruno@clisp.org>
5902         Avoid wrong configure results with gcc -fsanitize=address.
5903         This completes the work done on 2016-02-06 on this topic.
5904         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
5905         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
5906         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5907         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5908         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
5909         returning.
5910         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
5911         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
5912         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5913         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
5914         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
5915         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
5916         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
5917         free allocated memory before returning.
5918         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5919         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
5920         objects before returning.
5921         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
5922         returning.
5924 2017-05-20  Bruno Haible  <bruno@clisp.org>
5926         gnulib-tool: Don't create hard links between gnulib and its testdirs.
5927         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
5929 2017-05-20  Bruno Haible  <bruno@clisp.org>
5931         argp, tsearch tests: Fix file list.
5932         * modules/argp-tests (Files): Add tests/macros.h.
5933         * modules/tsearch-tests (Files): Likewise.
5935 2017-05-20  Bruno Haible  <bruno@clisp.org>
5937         getopt-posix tests: Remove redundant include.
5938         * tests/test-getopt.h: Don't include "macros.h". It's already included
5939         by tests/test-getopt-main.h.
5941 2017-05-19  Jim Meyering  <meyering@fb.com>
5943         dfa: two small simplifications
5944         * lib/dfa.c (build_state): Avoid repeating longer expressions.
5946 2017-05-18  Jim Meyering  <meyering@fb.com>
5948         fallthrough: update for GCC 7/8
5949         * lib/quotearg.c (FALLTHROUGH): New macro.
5950         Use it whenever one switch case falls through into the next,
5951         replacing "/* Fall through */" comments.  This exposed one
5952         instance of an unwarranted "fall through" comment: unwarranted
5953         because it preceded a "goto" label not a case statement.
5954         * lib/freopen-safer.c (freopen_safer): Likewise.
5955         * lib/fts.c (leaf_optimization_applies): Likewise.
5956         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
5957         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
5958         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
5959         tests/macros.h for the definition.
5960         * tests/test-argp.c (group1_parser): Likewise.
5961         * tests/test-getopt.h (getopt_loop): Likewise.
5963 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5965         argp: fix shift bug
5966         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
5967         behavior on shift overflow, caught by gcc -fsanitize=undefined.
5969         argp: fix pointer-subtraction bug
5970         * lib/argp-help.c (hol_append): Don’t subtract pointers to
5971         different arrays, as this can run afoul of -fcheck-pointer-bounds.
5972         See the thread containing Bruno Haible’s report in:
5973         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
5975 2017-05-19  Bruno Haible  <bruno@clisp.org>
5977         printf-posix tests: Avoid test failure with "gcc --coverage".
5978         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
5979         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
5980         than 5000000.
5981         * tests/test-fprintf-posix2.c (main): Likewise.
5983 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5985         closeout: don’t close stderr when sanitizing
5986         * NEWS: Document this.
5987         * lib/closeout.c (__has_feature): New macro, if not already defined.
5988         (SANITIZE_ADDRESS): New constant.
5989         (close_stdout): Don’t close stderr if sanitizing addresses.
5991 2017-05-19  Bruno Haible  <bruno@clisp.org>
5993         get-rusage-data tests: Avoid failure on Linux/glibc.
5994         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
5995         on glibc systems.
5997 2017-05-18  Bruno Haible  <bruno@clisp.org>
5999         localename: Include necessary header files on Cygwin.
6000         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
6001         where NL_LOCALE_NAME is defined.
6003 2017-05-18  Bruno Haible  <bruno@clisp.org>
6005         gettext: Update macros from gettext git.
6006         * m4/intldir.m4: Require Autoconf >= 2.60.
6007         * m4/progtest.m4: Fix typos in copyright notice.
6009 2017-05-18  Bruno Haible  <bruno@clisp.org>
6011         copy-file tests: Fix link error (regression from 2017-05-01).
6012         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6013         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
6014         $(LIB_CLOCK_GETTIME).
6016 2017-05-18  Bruno Haible  <bruno@clisp.org>
6018         unicase/special-casing: Fix incompatibility with gperf-3.0.4
6019         (regression from 2017-02-13).
6020         * lib/unicase/special-casing.in.h: Renamed from
6021         lib/unicase/special-casing.h.
6022         * modules/unicase/special-casing (Files): Add
6023         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
6024         (Makefile.am): Add rule for generating unicase/special-casing.h.
6025         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
6026         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
6027         not "special-casing.h".
6028         * lib/unicase/u*.c: Likewise.
6030 2017-05-17  Bruno Haible  <bruno@clisp.org>
6032         README: Don't ask people to read a TeXinfo file.
6033         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
6034         * README: Tell people how to read the HTML formatted manual.
6036 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
6038         parse-datetime: Fix memleak
6039         * lib/parse-datetime.y (parse_datetime2): Cleanup on
6040         localtime_rz() failure.
6042 2017-05-16  Bruno Haible  <bruno@clisp.org>
6044         javacomp: Fix handle leak.
6045         Found by Coverity.
6046         * lib/javacomp.c (get_classfile_version): Close fd before returning.
6048 2017-05-16  Bruno Haible  <bruno@clisp.org>
6050         relocate: Make it easier to reclaim allocated memory.
6051         * lib/relocatable.h (relocate2): New declaration/macro.
6052         * lib/relocatable.c (relocate2): New function.
6053         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
6054         relocate2 function.
6055         * lib/localcharset.c (relocate2): Define fallback.
6056         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
6057         allocated memory.
6058         * lib/javaversion.c (relocate2): Define fallback.
6059         (javaexec_version): Invoke relocate2 instead of relocate. Free the
6060         allocated memory.
6062 2017-05-16  Bruno Haible  <bruno@clisp.org>
6064         relocate: Simplify EMX specific code.
6065         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
6066         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
6068 2017-05-16  Bruno Haible  <bruno@clisp.org>
6070         sigpipe tests: Fix file list.
6071         * modules/sigpipe-tests (Files): Add tests/macros.h.
6073 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6075         manywarnings: update for GCC 7
6076         * build-aux/gcc-warning.spec:
6077         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
6078         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
6079         requires a non-comment fallthrough attribute.  This is a bit
6080         cleaner than the comment versions.
6081         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
6082         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
6083         Use it whenever one switch case falls through into the next.
6084         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
6085         Use FALLTHROUGH macro.
6087 2017-05-15  Bruno Haible  <bruno@clisp.org>
6089         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
6090         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
6091         @ALLOCA@, not @LTALLOCA@.
6093 2017-05-15  Bruno Haible  <bruno@clisp.org>
6095         sys_select: Avoid "was expanded before it was required" warning.
6096         * modules/sys_select (configure.ac): Require, not invoke,
6097         gl_HEADER_SYS_SELECT.
6099 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
6101         gnulib-tool: improve GNU Make debugging
6102         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
6103         Report autoconf diagnostics when it fails, in the output makefile.
6105 2017-05-14  Bruno Haible  <bruno@clisp.org>
6107         stat-time tests: Improve comment.
6108         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
6110 2017-05-14  Bruno Haible  <bruno@clisp.org>
6112         same-inode: Adapt for windows-stat-inodes.
6113         * lib/same-inode.h: Include <sys/types.h>.
6114         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
6115         * modules/same-inode (Depends-on): Add sys_types.
6117 2017-05-14  Bruno Haible  <bruno@clisp.org>
6119         windows-stat-inodes: New module.
6120         * m4/windows-stat-inodes.m4: New file.
6121         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
6122         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
6123         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
6124         (_GL_WINDOWS_STAT_INODES): New macro.
6125         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
6126         (GetFileInformationByHandleExFunc): New variable.
6127         (initialize): Initialize it.
6128         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
6129         st_ino appropriately.
6130         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
6131         a fallback, because it does not provide st_dev and st_ino values.
6132         * modules/fstat (Depends-on): Add 'verify'.
6133         * modules/windows-stat-inodes: New file.
6134         * doc/windows-stat-inodes.texi: New file.
6135         * doc/gnulib.texi: Include it.
6136         * doc/posix-headers/sys_stat.texi: Mention the new module.
6138 2017-05-14  Bruno Haible  <bruno@clisp.org>
6140         stat-time tests: Workaround for native Windows.
6141         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
6142         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
6143         New variables.
6144         (initialize_filenames): New function.
6145         (main): Invoke it.
6146         (cleanup, prepare_test): Update.
6148 2017-05-14  Bruno Haible  <bruno@clisp.org>
6150         stat-time: Adapt for windows-stat-timespec.
6151         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
6152         entire st_ctim field.
6154 2017-05-13  Jim Meyering  <meyering@fb.com>
6156         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
6157         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
6158         file that uses the assume macro, claiming that verify.h is unused.
6160 2017-05-13  Bruno Haible  <bruno@clisp.org>
6162         Use symbolic values for _WIN32_WINNT.
6163         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
6164         * lib/sethostname.c (_WIN32_WINNT): Likewise.
6166 2017-05-13  Bruno Haible  <bruno@clisp.org>
6168         year2038: New module.
6169         * m4/year2038.m4: New file.
6170         * modules/year2038: New file.
6171         * doc/year2038.texi: New file.
6172         * doc/gnulib.texi: Include it.
6174 2017-05-13  Bruno Haible  <bruno@clisp.org>
6176         largefile: Simplify.
6177         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
6178         of _GL_WINDOWS_64_BIT_ST_SIZE.
6180 2017-05-13  Bruno Haible  <bruno@clisp.org>
6182         largefile: Improve and document.
6183         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
6184         the mingw headers already define 'stat' appropriately.
6185         * modules/largefile (Description): Clarify.
6186         * doc/largefile.texi: New file.
6187         * doc/gnulib.texi: Include it.
6188         * doc/posix-headers/sys_types.texi: Update.
6190 2017-05-13  Bruno Haible  <bruno@clisp.org>
6192         truncate: New module.
6193         * lib/unistd.in.h (truncate): New declaration.
6194         * lib/truncate.c: New file.
6195         * m4/truncate.m4: New file.
6196         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
6197         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
6198         REPLACE_TRUNCATE.
6199         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
6200         HAVE_TRUNCATE, REPLACE_TRUNCATE.
6201         * modules/truncate: New file.
6202         * tests/test-unistd-c++.cc (truncate): Test signature.
6203         * doc/posix-functions/truncate.texi: Mention the new module.
6205         * tests/test-truncate.c: New file.
6206         * modules/truncate-tests: New file.
6208 2017-05-13  Bruno Haible  <bruno@clisp.org>
6210         windows-stat-timespec: New module.
6211         * modules/windows-stat-timespec: New file.
6212         * m4/windows-stat-timespec.m4: New file.
6213         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
6214         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
6215         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
6216         fields st_atim, st_mtim, st_ctim.
6217         (st_atime, st_mtime, st_ctime): Define as macros.
6218         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
6219         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
6220         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
6221         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
6222         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
6223         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
6224         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
6225         FILETIME to 'struct timespec', not 'time_t'.
6226         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
6227         FILETIME to 'struct timespec', not 'time_t'.
6228         * lib/stat-time.h (STAT_TIMESPEC): Define also if
6229         _GL_WINDOWS_STAT_TIMESPEC.
6230         * doc/windows-stat-timespec.texi: New file.
6231         * doc/gnulib.texi: Include it.
6233 2017-05-13  Bruno Haible  <bruno@clisp.org>
6235         windows-stat-override: New module.
6236         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
6237         definition. Define GNULIB_defined_struct_stat.
6238         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
6239         link error if this symbol is used and the corresponding module is not
6240         in use.
6241         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
6242         GNULIB_OVERRIDES_STRUCT_STAT.
6243         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
6244         GNULIB_OVERRIDES_STRUCT_STAT.
6245         * modules/sys_stat (Makefile.am): Substitute
6246         GNULIB_OVERRIDES_STRUCT_STAT.
6247         * modules/windows-stat-override: New file.
6249 2017-05-13  Bruno Haible  <bruno@clisp.org>
6251         fstat: Fix module dependency conditions.
6252         * modules/fstat (Depends-on): Fix typo.
6254 2017-05-13  Bruno Haible  <bruno@clisp.org>
6256         stat, fstat: Complete removal of old native Windows code.
6257         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
6258         * lib/fstat.c: Likewise.
6259         * lib/stat-w32.c: Likewise.
6261 2017-05-13  Bruno Haible  <bruno@clisp.org>
6263         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
6264         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
6266 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
6268         getopt-posix: port to mingw
6269         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
6270         Problem reported by Daniel P. Berrage in:
6271         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
6273 2017-05-11  Bruno Haible  <bruno@clisp.org>
6275         gettimeofday: Increase precision on mingw.
6276         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
6277         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
6278         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
6279         GetSystemTimePreciseAsFileTime based implementation always.
6280         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
6281         mingw.
6283 2017-05-11  Bruno Haible  <bruno@clisp.org>
6285         poll: Fix confusion between SOCKETs and FDs on native Windows.
6286         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
6287         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
6289 2017-05-11  Bruno Haible  <bruno@clisp.org>
6291         doc: Clarify doc about socket functions on native Windows.
6292         This reworks doc that was added on 2008-09-29.
6293         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
6294         clearer wording.
6295         * doc/posix-functions/accept.texi: Use clearer wording.
6296         * doc/posix-functions/bind.texi: Likewise.
6297         * doc/posix-functions/connect.texi: Likewise.
6298         * doc/posix-functions/getpeername.texi: Likewise.
6299         * doc/posix-functions/getsockname.texi: Likewise.
6300         * doc/posix-functions/getsockopt.texi: Likewise.
6301         * doc/posix-functions/ioctl.texi: Likewise.
6302         * doc/posix-functions/listen.texi: Likewise.
6303         * doc/posix-functions/recv.texi: Likewise.
6304         * doc/posix-functions/recvfrom.texi: Likewise.
6305         * doc/posix-functions/send.texi: Likewise.
6306         * doc/posix-functions/sendto.texi: Likewise.
6307         * doc/posix-functions/setsockopt.texi: Likewise.
6308         * doc/posix-functions/shutdown.texi: Likewise.
6309         * doc/posix-functions/socket.texi: Likewise.
6311 2017-05-10  Bruno Haible  <bruno@clisp.org>
6313         poll: Fix link error on native Windows.
6314         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
6316 2017-05-10  Bruno Haible  <bruno@clisp.org>
6318         time: Fix missing initialization of HAVE_TIMEZONE_T.
6319         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
6320         here...
6321         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
6322         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
6323         gl_HEADER_SYS_TIME_H_DEFAULTS.
6324         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
6325         (configure.ac): Remove useless quoting.
6327 2017-05-10  Bruno Haible  <bruno@clisp.org>
6329         Implement a way to opt out from MSVC support, part 2.
6330         * modules/msvc-inval (Include): Document recommended idiom.
6331         * modules/msvc-nothrow (Include): Likewise.
6333         Implement a way to opt out from MSVC support.
6334         This is useful for Emacs.
6335         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
6336         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
6337         * lib/error.c: Likewise.
6338         * lib/fcntl.c: Likewise.
6339         * lib/flock.c: Likewise.
6340         * lib/fstat.c: Likewise.
6341         * lib/fsync.c: Likewise.
6342         * lib/ioctl.c: Likewise.
6343         * lib/isapipe.c: Likewise.
6344         * lib/lseek.c: Likewise.
6345         * lib/nonblocking.c: Likewise.
6346         * lib/poll.c: Likewise.
6347         * lib/select.c: Likewise.
6348         * lib/sockets.h: Likewise.
6349         * lib/sockets.c: Likewise.
6350         * lib/stdio-read.c: Likewise.
6351         * lib/stdio-write.c: Likewise.
6352         * lib/utimens.c: Likewise.
6353         * lib/w32sock.h: Likewise.
6354         * lib/w32spawn.h: Likewise.
6355         * tests/test-cloexec.c: Likewise.
6356         * tests/test-dup-safer.c: Likewise.
6357         * tests/test-dup2.c: Likewise.
6358         * tests/test-dup3.c: Likewise.
6359         * tests/test-fcntl.c: Likewise.
6360         * tests/test-pipe.c: Likewise.
6361         * tests/test-pipe2.c: Likewise.
6362         * lib/ftruncate.c: Likewise.
6363         (chsize_nothrow): Renamed from chsize.
6364         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
6365         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
6366         * lib/close.c: Likewise.
6367         * lib/dup.c: Likewise.
6368         * lib/fclose.c: Likewise.
6369         * lib/raise.c: Likewise.
6370         * tests/test-fgetc.c: Likewise.
6371         * tests/test-fputc.c: Likewise.
6372         * tests/test-fread.c: Likewise.
6373         * tests/test-fwrite.c: Likewise.
6374         * lib/getdtablesize.c: Likewise.
6375         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
6376         * lib/isatty.c: Don't include msvc-inval.h if
6377         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
6378         Include <io.h> as an alternative to msvc-nothrow.h.
6379         * lib/read.c: Likewise.
6380         * lib/write.c: Likewise.
6381         * lib/dup2.c: Likewise.
6382         (dup2_nothrow): New function.
6383         (ms_windows_dup2): Use it.
6384         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
6385         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
6386         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
6387         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
6388         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
6389         * m4/read.m4 (gl_FUNC_READ): Likewise.
6390         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
6391         * doc/windows-without-msvc.texi: New file.
6392         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
6393         section.
6395 2017-05-10  Bruno Haible  <bruno@clisp.org>
6397         wait-process: Adjust native Windows support.
6398         * lib/wait-process.c: Use the usual condition for recognizing a native
6399         Windows platform.
6401 2017-05-10  Bruno Haible  <bruno@clisp.org>
6403         doc: New chapter "Native Windows Support".
6404         * doc/gnulib.texi (Native Windows Support): New chapter.
6405         * doc/windows-libtool.texi: Small wording changes.
6406         * doc/windows-sockets.texi: Small wording and formatting changes.
6408 2017-05-10  Bruno Haible  <bruno@clisp.org>
6410         doc: Move section "Library version handling".
6411         * doc/gnulib.texi: Move section "Library version handling"
6412         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
6414 2017-05-10  Bruno Haible  <bruno@clisp.org>
6416         doc: Move section "Running self-tests under valgrind".
6417         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
6418         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
6420 2017-05-10  Bruno Haible  <bruno@clisp.org>
6422         doc: New chapter "Build Infrastructure Modules".
6423         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
6425 2017-05-10  Bruno Haible  <bruno@clisp.org>
6427         Prepare for reordering sections in the manual.
6428         * doc/gnulib.texi: Move several sections to separate files. Include
6429         these files.
6430         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
6431         * doc/obsolete.texi: Likewise.
6432         * doc/extra-tests.texi: Likewise.
6433         * doc/transversal.texi: Likewise.
6434         * doc/namespace.texi: Likewise.
6435         * doc/check-version.texi: Likewise.
6436         * doc/windows-sockets.texi: Likewise.
6437         * doc/windows-libtool.texi: Likewise.
6438         * doc/licenses-texi.texi: Likewise.
6439         * doc/build-automation.texi: Likewise.
6440         * doc/c-locale.texi: Likewise.
6442 2017-05-10  Bruno Haible  <bruno@clisp.org>
6444         Fix instructions how to update manual on www.gnu.org.
6445         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
6447 2017-05-09  Bruno Haible  <bruno@clisp.org>
6449         tzset: Expand comment about TZ problem on native Windows.
6450         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
6451         Paul Eggert.
6452         * lib/ctime.c (rpl_ctime): Likewise.
6453         * lib/localtime.c (rpl_localtime): Likewise.
6454         * lib/mktime.c (mktime): Likewise.
6455         * lib/strftime-fixes.c (rpl_strftime): Likewise.
6456         * lib/wcsftime.c (rpl_wcsftime): Likewise.
6458 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6460         intprops: don’t depend on ‘verify’
6461         Problem reported by Ævar Arnfjörð Bjarmason in:
6462         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
6463         * lib/intprops.h: Do not include verify.h, and move compile-time
6464         checks from here ...
6465         * tests/test-intprops.c (main): ... to here, if they’re not here
6466         already.  Check widths of other standard integer types.
6467         * modules/intprops (Depends-on): Remove ‘verify’.
6469 2017-05-07  Bruno Haible  <bruno@clisp.org>
6471         utimens: On native Windows, support 100ns resolution also if fd < 0.
6472         * lib/utime.in.h: Include <time.h>.
6473         (_gl_utimens_windows): New declaration.
6474         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
6475         (utime): Invoke it.
6476         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
6477         instead of utime.
6478         * modules/utime (Depends-on): Add 'time'.
6480 2017-05-07  Bruno Haible  <bruno@clisp.org>
6482         utimens: Improve error code on native Windows.
6483         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
6484         error code EACCES, not EINVAL.
6486 2017-05-07  Bruno Haible  <bruno@clisp.org>
6488         utime: Handle more Windows error codes.
6489         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
6490         Based on explanations by Billy O'Neal.
6492 2017-05-05  Bruno Haible  <bruno@clisp.org>
6494         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
6495         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
6496         union.
6497         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
6498         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
6499         value of cipher->IV.
6501 2017-05-05  Bruno Haible  <bruno@clisp.org>
6503         wctype-h-c++-tests: Update.
6504         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
6506 2017-05-05  Bruno Haible  <bruno@clisp.org>
6508         wchar-c++-tests: Update.
6509         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
6511 2017-05-05  Bruno Haible  <bruno@clisp.org>
6513         utime-h-c++-tests: New module.
6514         * tests/test-utime-h-c++.cc: New file.
6515         (utime): Declare, missing since 2017-04-30.
6516         * modules/utime-h-c++-tests: New file.
6518 2017-05-05  Bruno Haible  <bruno@clisp.org>
6520         unistd-c++-tests: Update.
6521         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
6522         (read): Declare, missing since 2011-04-15.
6523         (sethostname): Declare, missing since 2011-12-03.
6525 2017-05-05  Bruno Haible  <bruno@clisp.org>
6527         time-c++-tests: Update.
6528         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
6529         (localtime, gmtime): Declare, missing since 2017-04-30.
6530         (ctime): Declare, missing since 2017-04-30.
6531         (strftime): Declare, missing since 2017-04-30.
6532         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
6533         2015-07-24.
6535 2017-05-05  Bruno Haible  <bruno@clisp.org>
6537         sys_resource-c++-tests: New module.
6538         * tests/test-sys_resource-c++.cc: New file.
6539         (getrusage): Declare, missing since 2012-04-13.
6540         * modules/sys_resource-c++-tests: New file.
6542 2017-05-05  Bruno Haible  <bruno@clisp.org>
6544         strings-c++-tests: New module.
6545         * tests/test-strings-c++.cc: New file.
6546         (ffs): Declare, missing since 2011-07-12.
6547         * modules/strings-c++-tests: New file.
6549 2017-05-05  Bruno Haible  <bruno@clisp.org>
6551         string-c++-tests: Update.
6552         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
6553         (ffsll): Declare, missing since 2011-07-15.
6555 2017-05-05  Bruno Haible  <bruno@clisp.org>
6557         stdlib-c++-tests: Update.
6558         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
6559         2011-10-18.
6560         (ptsname_r): Declare, missing since 2011-11-07.
6561         (qsort_r): Declare, missing since 2014-08-29.
6562         (random, srandom, initstate, setstate): Declare, missing since
6563         2012-01-14.
6564         (secure_getenv): Declare, missing since 2013-02-05.
6566 2017-05-05  Bruno Haible  <bruno@clisp.org>
6568         stdio-c++-tests: Update.
6569         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
6571 2017-05-05  Bruno Haible  <bruno@clisp.org>
6573         signal-h-c++-tests: Update.
6574         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
6576 2017-05-05  Bruno Haible  <bruno@clisp.org>
6578         math-c++-tests: Update.
6579         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
6580         (fma): Declare, missing since 2011-10-17.
6581         (fmal): Declare, missing since 2011-10-17.
6583 2017-05-05  Bruno Haible  <bruno@clisp.org>
6585         locale-c++-tests: Update.
6586         * tests/test-locale-c++.cc (localeconv): Declare, missing since
6587         2012-03-25.
6589 2017-05-05  Bruno Haible  <bruno@clisp.org>
6591         inttypes-c++-tests: New module.
6592         * tests/test-inttypes-c++.cc: New file.
6593         (strtoimax): Declare, missing since 2012-01-05.
6594         (strtoumax): Declare, missing since 2012-01-05.
6595         * modules/inttypes-c++-tests: New file.
6597 2017-05-05  Bruno Haible  <bruno@clisp.org>
6599         dirent-c++-tests: Update.
6600         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
6601         (rewinddir): Declare, missing since 2011-09-13.
6602         (dirfd): Declare, missing since 2010-03-08.
6604 2017-05-04  Bruno Haible  <bruno@clisp.org>
6606         argp: Fix mistake in 2017-04-23 commit.
6607         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
6608         assume that strerror_r returns 'int', not 'char *'.
6610 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
6612         argp: Fix typo.
6613         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
6615 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6617         utimens: port to Emacs + MS-Windows
6618         Skip the new MS-Windows-specific code if Emacs.
6619         * lib/utimens.c [EMACS_CONFIGUATION]:
6620         Avoid new MS-Windows-specific code.
6621         (USE_SETFILETIME): New macro.
6622         (fdutimens): Use it.
6624 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
6626         tzset: update doc for TZ problems on MS-Windows
6627         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
6628         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
6629         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
6630         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
6631         * doc/posix-functions/wcsftime.texi:
6632         Mention some issues with TZ under MS-Windows.
6634 2017-05-01  Bruno Haible  <bruno@clisp.org>
6636         copy-file: Fix build error on mingw.
6637         * modules/copy-file (Depends-on): Add 'close'.
6639 2017-05-01  Bruno Haible  <bruno@clisp.org>
6641         tzset: Work around TZ problem on native Windows.
6642         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
6643         Windows, set REPLACE_TZSET to 1.
6644         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
6645         invoke '_tzset' instead of 'tzset'.
6646         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
6648         * modules/time_rz (Depends-on): Add tzset.
6649         * lib/time_rz.c (tzset): Remove fallback definition.
6650         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
6652 2017-05-01  Bruno Haible  <bruno@clisp.org>
6654         mktime: Fix dependencies.
6655         * modules/mktime (Depends-on): Add 'time'.
6657 2017-05-01  Bruno Haible  <bruno@clisp.org>
6659         New module 'localtime-buffer', split off from module 'gettimeofday'.
6660         * lib/localtime-buffer.h: New file.
6661         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
6662         * lib/time.in.h (tzset): New declaration.
6663         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
6664         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
6665         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
6666         moved to lib/localtime-buffer.c or lib/tzset.c.
6667         * m4/localtime-buffer.m4: New file.
6668         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
6669         HAVE_TZSET, REPLACE_TZSET.
6670         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
6671         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
6672         gl_LOCALTIME_BUFFER_NEEDED.
6673         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
6674         since 2007-01-18.
6675         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
6676         tzset.
6677         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
6678         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
6679         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
6680         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
6681         * modules/localtime-buffer: New file.
6682         * modules/time (Depends-on): Remove 'gettimeofday'.
6683         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
6684         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
6685         * modules/tzset (Description): Enable hyperlink to POSIX spec.
6686         (Files): Add lib/tzset.c.
6687         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
6688         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
6689         gl_TIME_MODULE_INDICATOR.
6690         * modules/gettimeofday (Depends-on): Add localtime-buffer.
6692 2017-05-01  Bruno Haible  <bruno@clisp.org>
6694         copy-file: Preserve sub-second time stamps.
6695         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
6696         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
6697         transport the time stamps from the original file to the destination
6698         file.
6699         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
6700         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
6701         utime-h.
6703 2017-05-01  Bruno Haible  <bruno@clisp.org>
6705         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
6706         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
6707         also on MSVC.
6708         Reported by Eli Zaretskii <eliz@gnu.org>.
6710 2017-05-01  Bruno Haible  <bruno@clisp.org>
6712         wchar: Fix compilation error with the original mingw.org mingw.
6713         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
6714         <stddef.h> instead.
6715         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
6716         gl_WCTYPE_H.
6717         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
6718         gl_TYPE_WINT_T_PREREQ instead.
6719         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
6720         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
6721         Reported by Eli Zaretskii <eliz@gnu.org>.
6723 2017-04-30  Bruno Haible  <bruno@clisp.org>
6725         utimecmp: Add support for native Windows.
6726         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
6728 2017-04-30  Bruno Haible  <bruno@clisp.org>
6730         utimens: Add support for native Windows.
6731         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
6732         (fdutimens): Provide a native Windows implementation, like utime.c with
6733         added tv_nsec support.
6734         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
6735         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
6737 2017-04-30  Bruno Haible  <bruno@clisp.org>
6739         wcsftime: New module.
6740         * lib/wchar.in.h (wcsftime): New declaration.
6741         * lib/wcsftime.c: New file.
6742         * m4/wcsftime.m4: New file.
6743         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
6744         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
6745         HAVE_WCSFTIME, REPLACE_WCSFTIME.
6746         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
6747         HAVE_WCSFTIME, REPLACE_WCSFTIME.
6748         * modules/wcsftime: New file.
6749         * doc/posix-functions/wcsftime.texi: Mention the new module.
6751 2017-04-30  Bruno Haible  <bruno@clisp.org>
6753         strftime-fixes: New module.
6754         * lib/time.in.h (strftime): New declaration.
6755         * lib/strftime-fixes.c: New file.
6756         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
6757         (gl_FUNC_STRFTIME): Remove macro.
6758         * m4/strftime-fixes.m4: New file.
6759         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
6760         REPLACE_STRFTIME.
6761         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
6762         REPLACE_STRFTIME.
6763         * modules/strftime-fixes: New file.
6764         * doc/posix-functions/strftime.texi: Mention the new module.
6766 2017-04-30  Bruno Haible  <bruno@clisp.org>
6768         mktime: Work around TZ problem on native Windows.
6769         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
6770         from the native Windows workaround.
6771         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
6772         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
6773         'guessing no'.
6774         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
6775         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
6776         NEED_MKTIME_WINDOWS.
6777         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
6778         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
6779         NEED_MKTIME_INTERNAL.
6780         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
6781         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
6782         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
6783         not REPLACE_MKTIME.
6784         * doc/posix-functions/mktime.texi: Mention the native Windows
6785         workaround.
6787 2017-04-30  Bruno Haible  <bruno@clisp.org>
6789         localtime: New module.
6790         * lib/time.in.h (localtime): Declare also if requested by module
6791         'localtime'.
6792         * lib/localtime.c: New file.
6793         * m4/localtime.m4: New file.
6794         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
6795         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
6796         * modules/localtime: New file.
6797         * doc/posix-functions/localtime.texi: Mention the new module.
6799 2017-04-30  Bruno Haible  <bruno@clisp.org>
6801         ctime: New module.
6802         * lib/time.in.h (ctime): New declaration.
6803         * lib/ctime.c: New file.
6804         * m4/ctime.m4: New file.
6805         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
6806         REPLACE_CTIME.
6807         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
6808         * modules/ctime: New file.
6809         * doc/posix-functions/ctime.texi: Mention the new module.
6811 2017-04-30  Bruno Haible  <bruno@clisp.org>
6813         gettimeofday: Provide higher resolution on native Windows.
6814         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
6815         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
6816         (initialize): Initialize it.
6817         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
6818         'struct timeval'. Don't use _ftime().
6819         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
6820         <sys/timeb.h> and _ftime.
6822 2017-04-30  Bruno Haible  <bruno@clisp.org>
6824         Document the problem with the Cygwin environment variable TZ.
6825         * doc/posix-functions/tzset.texi: Add note about TZ.
6826         * doc/posix-functions/ctime.texi: Likewise.
6827         * doc/posix-functions/localtime.texi: Likewise.
6828         * doc/posix-functions/mktime.texi: Likewise.
6829         * doc/posix-functions/strftime.texi: Likewise.
6830         * doc/posix-functions/wcsftime.texi: Likewise.
6831         * doc/pastposix-functions/ftime.texi: Likewise.
6833 2017-04-30  Bruno Haible  <bruno@clisp.org>
6835         utime-tests: New module.
6836         * tests/test-utime.c: New file, based on tests/test-utimens.h.
6837         * tests/test-utimens-common.h: Include <sys/stat.h>.
6838         * modules/utime-tests: New file.
6840 2017-04-29  Bruno Haible  <bruno@clisp.org>
6842         utime: New module.
6843         * lib/utime.in.h: Add comment for snippets.
6844         (utime): New declaration.
6845         * lib/utime.c: New file.
6846         * m4/utime.m4: New file.
6847         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
6848         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
6849         REPLACE_UTIME.
6850         * modules/utime-h (Depends-on): Add snippets.
6851         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
6852         Insert snippets.
6853         * modules/utime: New file.
6854         * doc/posix-functions/utime.texi: Mention the new module.
6856 2017-04-29  Bruno Haible  <bruno@clisp.org>
6858         utime-h: Modernize handling of 'struct utimbuf'.
6859         * lib/utime.in.h: Include next <utime.h> if it exists.
6860         (utimbuf): Define to _utimbuf on native Windows.
6861         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
6862         Set UTIME_H on native Windows.
6863         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
6864         * modules/utime-h (Depends-on): Add include_next.
6865         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
6866         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
6868         * lib/utimens.c (utimbuf): Remove fallback definition.
6869         * m4/utimens.m4 (gl_UTIMENS): Don't require
6870         gl_CHECK_TYPE_STRUCT_UTIMBUF.
6871         * m4/utimbuf.m4: Remove file.
6872         * modules/utimens (Files): Remove m4/utimbuf.m4.
6874 2017-04-29  Bruno Haible  <bruno@clisp.org>
6876         Make use of module 'utime-h'.
6877         * modules/copy-file (Depends-on): Add utime-h.
6878         * lib/copy-file.c: Assume that <utime.h> exists.
6879         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
6881         * modules/utimens (Depends-on): Add utime-h.
6882         * lib/utimens.c: Assume that <utime.h> exists.
6884 2017-04-29  Bruno Haible  <bruno@clisp.org>
6886         utime-h: New module.
6887         * m4/utime_h.m4: New file.
6888         * lib/utime.in.h: New file.
6889         * modules/utime-h: New file.
6890         * doc/posix-headers/utime.texi: Mention the new module.
6892         * tests/test-utime-h.c: New file.
6893         * modules/utime-h-tests: New file.
6895 2017-04-30  Bruno Haible  <bruno@clisp.org>
6897         Fix a few typos.
6898         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
6899         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
6900         * doc/posix-functions/fstat.texi: Fix a plural typo.
6901         * doc/posix-functions/stat.texi: Likewise.
6902         * m4/include_next.m4: Update comments.
6904 2017-04-29  Bruno Haible  <bruno@clisp.org>
6906         error: Fix mistake in 2017-04-23 commit.
6907         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
6908         assume that strerror_r returns 'int', not 'char *'.
6910 2017-04-29  Bruno Haible  <bruno@clisp.org>
6912         stat: Fix time_t values and other problems on native Windows platforms.
6913         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
6914         implementations of stat().
6915         * lib/stat.c: Include filename.h instead of dosname.h. Include
6916         malloca.h, stat-w32.h.
6917         (is_unc_root): New function.
6918         (rpl_stat): New implementation for native Windows. Remove
6919         REPLACE_FUNC_STAT_DIR code.
6920         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
6921         Don't define REPLACE_FUNC_STAT_DIR.
6922         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
6923         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
6924         (Depends-on): Remove dosname. Add filename, malloca.
6925         (configure.ac): Also compile lib/stat-w32.c.
6927 2017-04-29  Bruno Haible  <bruno@clisp.org>
6929         fstat: Fix time_t values on native Windows platforms.
6930         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
6931         * lib/stat-w32.h: New file.
6932         * lib/stat-w32.c: New file.
6933         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
6934         stat-w32.h instead.
6935         (fstat_nothrow): Remove function.
6936         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
6937         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
6938         always.
6939         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
6940         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
6941         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
6942         (configure.ac): Also compile lib/stat-w32.c.
6944 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
6946         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
6947         Problem reported by Assaf Gordon and Gavin Smith in:
6948         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
6949         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
6950         #define this, too.
6952 2017-04-29  Bruno Haible  <bruno@clisp.org>
6954         strerror_r-posix: Fixes for MSVC 14.
6955         * lib/strerror_r.c: Include <stdarg.h>.
6956         (strerror_r): Provide error messages for errno values 100...140.
6957         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
6959 2017-04-28  Bruno Haible  <bruno@clisp.org>
6961         noreturn: New module.
6962         * lib/noreturn.h: New file.
6963         * modules/noreturn: New file.
6964         * tests/test-noreturn.c: New file.
6965         * modules/noreturn-tests: New file.
6966         * tests/test-noreturn-c++.cc: New file.
6967         * modules/noreturn-c++-tests: New file.
6969 2017-04-27  Bruno Haible  <bruno@clisp.org>
6971         wctype-h: Fix compilation error with the original mingw.org mingw.
6972         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
6973         HAVE_CRTDEFS_H.
6974         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
6975         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
6976         <stddef.h> instead.
6977         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
6979 2017-04-26  Pádraig Brady  <P@draigBrady.com>
6981         nap.h: Fix compilation on non windows platforms
6982         * tests/nap.h: Move misplaced endif.
6984 2017-04-26  Pádraig Brady  <P@draigBrady.com>
6985         and Paul Eggert  <eggert@cs.ucla.edu>
6987         time_rz: fix heap buffer overflow vulnerability
6988         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
6989         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
6990         whether there is enough buffer space available, thus avoiding
6991         the problematic promotion of signed to unsigned causing an invalid
6992         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
6993         the start of the buffer.
6994         * tests/test-parse-datetime.c (main): Add a test case written by
6995         Paul Eggert, which overwrites enough of the heap so that
6996         standard glibc will fail with "free(): invalid pointer"
6997         without the patch applied.
6999 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7001         xalloc: add missing integer overflow check
7002         * lib/xalloc.h (x2nrealloc): Also check for multiplication
7003         overflow when P is null.
7005 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7007         parse-datetime: make it standalone
7008         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
7009         (_GL_ATTRIBUTE_FORMAT): New macro.
7010         These are needed to get './gnulib-tool --test parse-datetime' to work.
7012 2017-04-23  Bruno Haible  <bruno@clisp.org>
7014         nap.h: Port to native Windows.
7015         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
7016         use nap_fd instead. On native Windows, close and reopen nap_fd.
7017         (nap_works): Don't compare the ctimes, because on native Windows, these
7018         are the creation times.
7019         (nap): Update.
7021 2017-04-23  Bruno Haible  <bruno@clisp.org>
7023         nap.h: Fix logic.
7024         * tests/nap.h (nap): Avoid signed integer overflow in loop.
7026 2017-04-23  Bruno Haible  <bruno@clisp.org>
7028         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
7029         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
7030         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
7031         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
7032         * lib/argp-help.c (__argp_failure): Likewise.
7034 2017-04-23  Bruno Haible  <bruno@clisp.org>
7036         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
7037         * m4/strerror_r.m4: Revert changes since 2016-10-16.
7038         * lib/strerror_r.c: Likewise.
7040 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7042         Target a C99 subset, not a C89 subset
7043         For many years Gnulib has targeted C89 and has resisted using C99
7044         features, as some Gnulib-using programs still wanted to target
7045         C89.  As this no longer seems to be the case, relax the porting
7046         requirements to allow some C99 features.  This is merely a change
7047         to the documentation, to give other Gnulib developers a chance to
7048         weigh in on the topic.
7049         * doc/extern-inline.texi (extern inline):
7050         * doc/gnulib-readme.texi (Portability guidelines):
7051         * doc/gnulib-tool.texi (Initial import):
7052         * doc/gnulib.texi (Header files):
7053         Modernize to talk about C99 and C11 instead of C89 and C99.
7054         * doc/gnulib-readme.texi (Portability guidelines):
7055         Now a section, not merely a subsection, so that it
7056         can be split up.  Modernize a bit.
7057         (C language versions, C99 features assumed)
7058         (C99 features avoided):
7059         New sections.
7061 2017-04-23  Bruno Haible  <bruno@clisp.org>
7063         doc: New section "Modules that modify the way other modules work".
7064         * doc/gnulib.texi (Modules that modify the way other modules work): New
7065         section.
7067 2017-04-23  Bruno Haible  <bruno@clisp.org>
7069         stat-time: Update comments.
7070         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
7071         * tests/test-utimens-common.h: Add reference regarding st_ctime on
7072         Windows.
7074 2017-04-01  Bruno Haible  <bruno@clisp.org>
7076         glob: Fix more memory leaks.
7077         * lib/glob.c (glob): Free allocated memory before returning.
7078         Reported by Coverity via Tim Rühsen.
7080 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7082         poll: improve fast check for out-of-range NFD
7083         * lib/poll.c: Do not include intprops.h.
7084         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
7085         * modules/poll (Depends-on): Remove intprops.
7087         ftoastr: cite a newer paper
7088         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
7089         instead of Loitsch 2010.
7091 2017-04-22  Bruno Haible  <bruno@clisp.org>
7093         poll: Enable argument check also in the Windows implementation.
7094         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
7095         Reported by Paul Eggert.
7097 2017-04-22  Bruno Haible  <bruno@clisp.org>
7099         getlogin_r: Work around bug in Mac OS X 10.12.
7100         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
7101         bug.
7102         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
7103         given size minus 1, call getlogin_r a second time, on a larger buffer.
7104         * modules/getlogin_r (Depends-on): Add malloca.
7105         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
7107 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7109         parse-datetime: fix %z and prefer signed int
7110         %z problem reported by Pádraig Brady in:
7111         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
7112         While fixing it, I decided to prefer signed ints to size_t, as
7113         they are less error-prone (e.g., ubsan catches overflow).
7114         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
7115         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
7116         counts, since signed integers make for better debugging.
7117         (date): Don’t assume %z works in printf formats.
7118         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
7119         sizes of buffers known to be small, e.g., because we’re using snprintf.
7120         (parse_datetime2): Simplify call to debug_mktime_not_ok.
7122 2017-04-22  Bruno Haible  <bruno@clisp.org>
7124         *printf: Work around rounding bug on Mac OS X.
7125         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
7126         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
7127         Mac OS X and FreeBSD.
7128         * doc/glibc-functions/*printf.texi: Likewise.
7130 2017-04-22  Bruno Haible  <bruno@clisp.org>
7132         vasnprintf tests: Avoid warnings.
7133         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
7134         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
7135         test.
7137 2017-04-22  Bruno Haible  <bruno@clisp.org>
7139         sys_file tests: Avoid warning.
7140         * tests/test-sys_file.c (main): Add a default clause to the switch
7141         statement.
7143 2017-04-22  Bruno Haible  <bruno@clisp.org>
7145         sethostname: Update doc.
7146         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
7147         Mac OS X.
7149 2017-04-22  Bruno Haible  <bruno@clisp.org>
7151         quotearg tests: Avoid warnings.
7152         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
7153         false.
7155 2017-04-22  Bruno Haible  <bruno@clisp.org>
7157         poll: Enable argument check.
7158         * lib/poll.c: Include intprops.h.
7159         (poll): Check value of nfd correctly.
7160         * modules/poll (Depends-on): Add intprops.
7162 2017-04-22  Bruno Haible  <bruno@clisp.org>
7164         get-rusage-data: Avoid warnings on Mac OS X.
7165         * lib/get-rusage-data.c: On Mac OS X, don't define
7166         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
7167         (get_rusage_data) [Mac OS X]: Just return 0.
7169 2017-04-22  Bruno Haible  <bruno@clisp.org>
7171         xbinary-io: Fix build error.
7172         * modules/xbinary-io (Depends-on): Add gettext-h.
7173         * lib/xbinary-io.c: Include gettext.h and define _().
7174         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7175         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
7177 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7179         parse-datetime: overflow and debug cleanups
7180         This long patch was triggered by this bug report from Ruediger Meier:
7181         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
7182         I fixed the bug he noted, then found some others nearby, and then
7183         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
7184         up some of the code to follow GNU standards while I was at it.
7185         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
7186         use c_isdigit.
7187         (EPOCH_YEAR): Remove; unused.
7188         (TM_YEAR_BASE): Now an enum rather than a macro.
7189         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
7190         time zone offset, since timezones now are in terms of seconds and
7191         not minutes.
7192         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
7193         appropriate.  Verify that intmax_t is wide enough.
7194         (time_overflow, time_zone_str): New functions, used to deal
7195         more reliably with overflow.
7196         (dbg_printf): Add printf attribute, to help catch integer width errors.
7197         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
7198         (%union, to_hour, yylex, parse_datetime2):
7199         Use intmax_t instead of long int and/or long_time_t.
7200         All uses changed.
7201         (DBGBUFSIZE): Move earlier.
7202         (relative_time, set_hhmmss, parser_control):
7203         Just use int for nanoseconds and for time zones; that’s wide enough.
7204         (parser_control): Use bool for members like year_seen that can
7205         be booleans instead of counters.  All uses changed.
7206         Remove debug_default_input_timezone; no longer needed.
7207         All uses removed.
7208         (apply_relative_time): Return a bool overflow flag.
7209         All uses changed to check for overflow.
7210         (apply_relative_time, zone, date, relunit, relunit_snumber)
7211         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
7212         Check for integer overflow portably.
7213         (str_days): Use just int for N, as it’s wide enough.
7214         Prefer 2D char arrays to arrays of char * when it looks like
7215         2D is a win on typical platforms.
7216         Prefer snprintf to strncpy/strncat, for simplicity;
7217         all buffers are smaller than INT_MAX so this is safe.
7218         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
7219         (debug_print_current_time): Don’t assume tv_nsec is of type long,
7220         as this is not true on x32.  Output "." before any nanoseconds.
7221         (debug_print_current_time, parse_datetime2):
7222         Output local zones using a more-consistent format.
7223         (debug_print_current_time, date, parse_datetime2):
7224         (main) [TEST]:
7225         Don’t assume time_t is the same width as long.
7226         (print_rel_part): New function, replacing ...
7227         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
7228         (debug_print_relative_time): Use bool for boolean.
7229         (local_zone): dsts_seen now counts only tDST instances.
7230         (date): Fix printf of size_t to use %z.  Do not assume numeric
7231         tokens have negative values merely because the context suggests
7232         a syntax with "-" separating tokens.
7233         (time_zone_hhmm): Return bool success indicator, which checks for
7234         overflow.  Store result into PC->time_zone instead.  All callers
7235         changed.
7236         (tm_year_str): New function.  Return a bool success indicator and
7237         store the result into a buffer.  All callers changed.  Output the
7238         numerically correct string even if adding 1900 to the year would
7239         overflow.
7240         (to_tm_year): New function, replacing the old to_year.  All
7241         callers changed.
7242         (tm_diff): Sync with glibc.
7243         (lookup_word): Use to_uchar instead of doing it by hand.
7244         (TZBUFSIZE): Now local to the only function that needs it.
7245         (debug_strfdatetime): Simplify now that time zones are int seconds.
7246         (debug_strfdate): Work even if tm_year + 1900 would overflow.
7247         (get_effective_timezone): Remove.  All uses removed.
7248         (parse_datetime2): Use fprintf in pieces instead of snprintfing
7249         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
7250         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
7251         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
7252         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
7253         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
7254         * modules/parse-datetime (Depends-on): Add inttypes.
7256 2017-04-21  Bruno Haible  <bruno@clisp.org>
7258         gettext-h: Avoid -Wundef warning.
7259         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
7260         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7261         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
7263 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
7265         error: Avoid "function declaration isn't a prototype" warning.
7266         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
7268 2017-04-21  Bruno Haible  <bruno@clisp.org>
7270         vasnprintf: Fix for MSVC 14.
7271         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
7272         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
7273         of !HAVE_SNPRINTF_RETVAL_C99.
7275 2017-04-21  Bruno Haible  <bruno@clisp.org>
7277         mbrtowc tests: Fix test failures on MSVC 14.
7278         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
7279         behaviour for invalid input.
7281 2017-04-21  Bruno Haible  <bruno@clisp.org>
7283         mbsinit: Fix for MSVC 14.
7284         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
7285         implementation that is in sync with mbrtowc.c. On other platforms, use
7286         an adequate ad-hoc implementation.
7288 2017-04-21  Bruno Haible  <bruno@clisp.org>
7290         Fix test-mbrtowc5.sh failure on native Windows.
7291         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
7292         "C".
7294 2017-04-21  Bruno Haible  <bruno@clisp.org>
7296         Avoid accidental use of native Windows APIs on Cygwin.
7297         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
7298         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
7299         * lib/localename.c (WINDOWS_NATIVE): Likewise.
7301 2017-04-20  Bruno Haible  <bruno@clisp.org>
7303         Remove red warnings from the generated MODULES.html.
7304         * modules/fcntl (Description): Disambiguate function references.
7305         * modules/getcwd-lgpl (Description): Likewise.
7306         * modules/hostent (Description): Likewise.
7307         * modules/servent (Description): Likewise.
7308         * modules/tempname (Description): Likewise.
7310 2017-04-20  Bruno Haible  <bruno@clisp.org>
7312         verify tests: Fix spurious failure with parallel make.
7313         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
7314         EXTRA_PROGRAMS.
7315         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
7316         * tests/test-verify-try.c: New file.
7317         * modules/verify-tests (Files): Add it.
7318         (EXTRA_PROGRAMS): Add test-verify-try.
7319         (MOSTLYCLEANFILES): Update accordingly.
7320         Reported by Adam James Stewart <ajstewart@anl.gov>.
7322 2017-04-18  Bruno Haible  <bruno@clisp.org>
7324         vma-iter: Fix compilation error on Solaris 7.
7325         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
7326         like on IRIX, OSF/1.
7327         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7329 2017-04-18  Bruno Haible  <bruno@clisp.org>
7331         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
7332         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
7333         included.
7334         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
7335         <sys/procfs.h>.
7336         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
7337         <sys/procfs.h> cannot be included.
7338         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7340 2017-04-18  Bruno Haible  <bruno@clisp.org>
7342         getopt-gnu: Add comments.
7343         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
7344         * modules/getopt-gnu (configure.ac): Likewise.
7346 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
7348         regex: port better to Solaris 10
7349         Solaris 10 <locale.h> includes <libintl.h>, which #defines
7350         gettext, and this causes a double #define.
7351         Problem reported by Gavin Smith in:
7352         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
7353         * lib/regex_internal.h (gettext): #undef before #defining.
7355 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
7357         intprops: improve comments
7358         * lib/intprops.h: Improve and shorten commentary.
7359         For the record, if we ever run into a pedantic compiler that
7360         behaves differently from GCC when converting an out-of-range value
7361         to a signed integer, we can work around the problem with something
7362         like the following code, where UCT is the signed counterpart of T
7363         (UCT is sometimes narrower than UT) and all callers are changed
7364         accordingly:
7365         #if __SUNPRO_C <= 0x5120
7366         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
7367            ((t) ((ut) (a) op (ut) (b)))
7368         #else
7369         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
7370            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
7371             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
7372                + TYPE_MINIMUM (t)) \
7373             : (t) (uct) ((ut) (a) op (ut) (b)))
7374         #endif
7376 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
7378         intprops: try to avoid tickling similar bugs
7379         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
7380         needs to be the same width as T; it can be wider.
7381         Change callers so that UT is at least as wide as unsigned int,
7382         as I suspect that this is less likely to run into compiler bugs.
7384         intprops: port to Oracle Studio 12.3 x86
7385         Problem reported by Gavin Smith in:
7386         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
7387         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
7388         Convert unsigned to signed via the usual rather than the standard way,
7389         to avoid a compiler bug in Oracle Studio 12.3 x86.
7391 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
7393         getopt: prefer - to _ in new file names
7394         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
7395         * lib/getopt-core.h: Rename from lib/getopt_core.h.
7396         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
7397         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
7398         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
7399         All uses changed.
7401         getopt: port recent getopt changes to macOS
7402         Problem reported by Harald Maier (Bug#26398).
7403         The macOS C compiler uses __nonnull for its own purposes and that
7404         clashes with glibc's __nonnull.
7405         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
7406         * lib/getopt_cdefs.in.h (__nonnull): Remove.
7407         * lib/getopt_core.h (getopt):
7408         * lib/getopt_ext.h (getopt_long, getopt_long_only):
7409         Use _GL_ARG_NONNULL, not __nonnull.
7410         * lib/unistd.in.h: Move snippet hooks to before where the getopt
7411         .h files are included, so that _GL_ARG_NONNULL is defined in time.
7412         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
7413         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
7415 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
7417         getopt-gnu: omit some duplicate code
7418         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
7419         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
7420         gnulib-tool already does this.
7421         * modules/getopt-gnu (configure.ac): Omit code duplicated from
7422         getopt-posix, which we depend on.
7424         getopt-posix: use angle-bracket include
7425         * lib/getopt1.c: Include <config.h>, not "config.h".
7427 2017-04-06  Zack Weinberg  <zackw@panix.com>
7429         getopt: annotate files with relationship to glibc
7431         As the final act in this patchset, adjust the message at the top of
7432         each file to indicate which files are synced with glibc.  (This has
7433         already been done for most of the headers.)
7435         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
7436         Mention in top-of-file boilerplate that these files are shared
7437         between glibc and gnulib.
7440         getopt: split up getopt.in.h and eliminate __need_getopt
7442         Over in glibc, all of the __need macros are being phased out in favor
7443         of small headers that declare only the necessary components, as this
7444         is much simpler and less prone to bugs.  As getopt is shared with
7445         glibc, gnulib needs to do the same for __need_getopt.
7447         __need_getopt is misnamed; what it really means is "we want only the
7448         getopt features specified in POSIX, not the GNU extensions".  glibc
7449         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
7450         these files can be shared verbatim with gnulib.  The portability
7451         wrapper, on the other hand, they have renounced altogether; glibc's
7452         getopt.h will no longer be shared with gnulib at all.  In exchange,
7453         certain glibc-specific quirks (having to do with __posix_getopt) no
7454         longer need appear in gnulib's headers at all.
7456         This patch merges getopt_core.h and getopt_ext.h from glibc, and
7457         splits up the current gnulib-side portability wrapper into three
7458         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
7459         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
7460         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
7461         unistd.in.h just use them.  All new files are clearly marked with
7462         whether they are shared with glibc.
7464         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
7465         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
7466         with glibc, and ...
7467         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
7468         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
7469         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
7470         instead of defining __need_getopt and including the full getopt.h.
7472         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
7473         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
7474         * modules/getopt-posix (Files): Add new headers and sort list.
7475         (Depends-on): No longer need snippet/arg-nonnull.
7476         (Makefile.am): Generate getopt_cdefs.h.
7479         getopt: better handling of ambiguous options
7481         glibc's getopt uses alloca to construct a linked list of possibilities
7482         for an "ambiguous" long option.  In gnulib, malloc should be used
7483         instead.  Providing for both cases complicates things a fair bit.
7485         This patch rewrites ambiguous-option handling to use a boolean vector
7486         instead of a linked list.  There is then only one allocation that
7487         might need freeing; in glibc it can honor __libc_use_alloca as usual,
7488         and in gnulib we define __libc_use_alloca to always be false, so we
7489         don't need ifdefs in the middle of the function.  This should also be
7490         slightly more efficient in the normal case of long options being fully
7491         spelled out -- I think most people aren't even aware they _can_
7492         sometimes abbreviate long options.
7494         One interesting consequence is that the list of possibilities is now
7495         printed in exactly the order they appear in the list of long options,
7496         instead of the first possibility being shuffled to the end.
7498         (The patch looks bigger than it really is because there's a fair bit
7499         of reindentation and code rearrangement.)
7501         * lib/getopt.c: When used standalone, define __libc_use_alloca
7502         as always false and alloca to abort if called.
7503         (process_long_option): Rewrite handling of ambiguous long options
7504         to use a single boolean vector, not a linked list; use
7505         __libc_use_alloca to decide whether to allocate this using alloca.
7508         getopt: refactor long-option handling
7510         There were two copies of the bulk of the code to handle long options.
7511         Now there is only one.
7513         This change temporarily removes the logic to avoid using alloca when
7514         standalone; the next patch in the series will restore it.
7516         * lib/getopt.c (process_long_option): New function split out
7517         from _getopt_internal_r.
7518         (_getopt_internal_r): Replace both copies of the long-option
7519         processing code with calls to process_long_option.
7522         getopt: tidy up _getopt_initialize a bit
7524         _getopt_data.__posixly_correct is completely redundant to
7525         _getopt_data.__ordering, and some work that logically belongs in
7526         _getopt_initialize was being done by _getopt_internal_r, making the
7527         code harder to understand.
7529         As a side effect, getenv will no longer be called if the first
7530         character of the options string is '+' or '-', which is probably a
7531         Good Thing.  (Perhaps we should have a flag character that
7532         specifically asks for the permutation behavior?)
7534         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
7535         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
7536         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
7539         getopt: merge from glibc: repetition reduction
7541         The definitions of the entry point functions 'getopt' and
7542         '__posix_getopt' can be made substantially less repetitive with a
7543         helper macro.
7545         While I was merging the const-correctness changes from gnulib into
7546         glibc I noticed there are still some unnecessary casts in
7547         _getopt_internal_r.
7549         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
7550         a macro.  Consistently cast 'argv' to 'char **' when calling
7551         _getopt_internal.
7552         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
7555         getopt: clean up error reporting
7557         getopt can print a whole bunch of error messages, and when used
7558         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
7559         cancellation point and getopt isn't, and also applying fprintf to a
7560         stream in wide-character mode is not allowed.  So every single error
7561         reporting case has an #ifdef _LIBC block in which it calls internal
7562         libc functions instead.  The counterpart patch series in glibc makes
7563         it possible to simplify all of that down to a set of #defines at the
7564         top of the file; core code is written as if it is safe to just call
7565         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
7566         call any *other* stdio functions.)
7568         * lib/getopt.c: When _LIBC is defined, define fprintf to
7569         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
7570         to _IO_funlockfile.  When neither _LIBC nor
7571         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
7572         funlockfile as no-ops.
7573         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
7574         standalone error-printing code can now be used for libc as well.
7575         Add an flockfile/funlockfile pair around one case where the error
7576         message is printed in several chunks.  Don't use fputc.
7579         getopt: fix fencepost error in ambiguous-W-option handling
7581         getopt_long contains an undocumented (AFAICT) feature in which, if you
7582         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
7583         treated as equivalent to '--foo'.  This is implemented with a partial
7584         second copy of the code for handling long options, and that code
7585         increments optind one too many times when recovering from an ambiguous
7586         abbreviated option, which can cause the main loop to walk past the end
7587         of argv and crash.
7589         I discovered this while writing a test case that tries to exercise all
7590         of getopt's error reporting paths; I wouldn't be surprised to learn
7591         that this feature is never used by real applications.
7593         * lib/getopt.c (_getopt_internal_r): Don't increment
7594         d->optind a second time when reporting ambiguous -W options.
7597         getopt: clean up getopt.c and getopt1.c file headers
7599         In getopt.c, there is no need to include wchar.h at all, and it is
7600         safe nowadays to assume that stdlib.h does declare getenv (several
7601         other gnulib modules make this assumption).
7603         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
7604         by using "" inclusions consistently, and there is no actual need to
7605         include stdlib.h (except in the #ifdef TEST block, where it should be
7606         unconditional), nor to provide a backup definition of NULL at all.
7608         * lib/getopt1.c: Simplify #ifdeffage at top of file.
7609         Move inclusion of stdlib.h to #ifdef TEST block and make
7610         unconditional.  Do not define NULL.
7611         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
7612         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
7613         * modules/getopt-gnu, modules/getopt-posix: Don't call
7614         gl_PREREQ_GETENV.
7617         getopt: harmonize comments with glibc
7619         The comments explaining how the behavior of 'getopt' varies depending
7620         on whether it's the standalone version and whether there are special
7621         characters at the beginning of the options string were inconsistent
7622         between gnulib and glibc, and also out of sync with the code.
7624         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
7627         getopt: remove USE_NONOPTION_FLAGS
7629         getopt includes code to parse an environment variable named
7630         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
7631         in decimal); but all of it has been #ifdefed out since 2001, with no
7632         official way to turn it back on.
7634         According to commentary in glibc's config.h.in, bash version 2.0
7635         set this environment variable to indicate argv elements that were
7636         the result of glob expansion and therefore should not be treated
7637         as options, but the feature was "disabled later" because "it
7638         caused problems".  According to bash's CHANGES file, "later" was
7639         release 2.01; it gives no more detail about what the problems
7640         were.
7642         Version 2.0 of bash was released on the last day of 1996, and version
7643         2.01 in June of 1997.  Twenty years later, I think it is safe to
7644         assume that this environment variable isn't coming back.
7646         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
7647         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
7648         __libc_argc and __libc_argv externs, which were only used by
7649         #ifdef USE_NONOPTION_FLAGS blocks.
7652         getopt: tabify, in preparation for merge with glibc
7654         glibc sticks to the GNU default of indenting with a mix of
7655         8-column tabs and spaces; make the gnulib copy match.
7657         getopt.h is not included because it is *not* going to be merged in its
7658         present form.
7660         * getopt.c, getopt1.c, getopt_int.h: Tabify.
7662 2017-04-02  Bruno Haible  <bruno@clisp.org>
7664         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
7665         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
7666         like it was done in modules/relocatable-lib on 2011-05-21 and in
7667         modules/relocatable-prog on 2011-08-15.
7668         Reported by Reuben Thomas <rrt@sc3d.org>.
7670 2017-03-31  Bruno Haible  <bruno@clisp.org>
7672         glob: Fix invalid free() call.
7673         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
7674         static storage to home_dir.
7675         Reported by Coverity via Tim Rühsen.
7677 2017-03-31  Bruno Haible  <bruno@clisp.org>
7679         glob: Fix memory leaks.
7680         * lib/glob.c (glob): Free allocated memory before returning.
7681         Reported by Coverity via Tim Rühsen.
7683 2017-03-31  Bruno Haible  <bruno@clisp.org>
7685         md5, sha1, sha256, sha512: Add comments regarding correctness.
7686         * lib/md5.h (buflen): Add comments regarding range.
7687         * lib/sha1.h (buflen): Likewise.
7688         * lib/sha256.h (buflen): Likewise.
7689         * lib/sha512.h (buflen): Likewise.
7690         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
7691         * lib/sha1.c (sha1_process_bytes): Likewise.
7692         * lib/sha256.c (sha256_process_bytes): Likewise.
7693         * lib/sha512.c (sha512_process_bytes): Likewise.
7694         Reported by Coverity via Tim Rühsen.
7696 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
7698         getopt: merge from glibc
7699         This does not change anything substantial; it merely simplifies
7700         hypothetical merges back to glibc.
7701         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
7702         Change copyright notice to match what is in glibc.
7703         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
7704         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
7705         __open_memstream rather than open_memstream and __glibc_likely
7706         instead of __builtin_expect.
7707         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
7709 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
7711         dfa: make [0-9] faster in non-C locales
7712         Problem reported by John P. Linderman (Bug#26193).
7713         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
7714         If both ends of the range are ASCII digits, do not worry about
7715         multi-character collating sequences and the like.  Be consistent
7716         about using isalpha as a precondition for setbit_case_fold_c.
7718 2017-03-19  Bruno Haible  <bruno@clisp.org>
7720         lock: Fix compilation error with HP-UX IA64 cc.
7721         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
7722         weak on non-glibc platforms.
7724 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7726         stdalign: tweak version# and test for HP-UX IA64
7727         Problems reported by Bruno Haible in:
7728         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
7729         * lib/stdalign.in.h (_Alignas):
7730         * m4/stdalign.m4 (gl_STDALIGN_H):
7731         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
7732         used octal (as that is how they document it), but it is decimal in
7733         practice now and the ancient implementations no longer matter.
7734         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
7736 2017-03-19  Bruno Haible  <bruno@clisp.org>
7738         vma-iter: Add support for Solaris.
7739         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
7740         approach.
7741         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
7742         * lib/get-rusage-as.c: Update comment about Solaris.
7743         * lib/get-rusage-data.c: Likewise.
7745 2017-03-19  Bruno Haible  <bruno@clisp.org>
7747         vma-iter: Prefer HP-UX specific API on HP-UX.
7748         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
7749         * lib/vma-iter.h: Update.
7750         Just in case HP-UX ever implements mquery().
7752 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
7754         stdalign: restore previous behavior for HP-UX IA64
7755         See Bruno Haible's email in:
7756         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
7757         which cites p 150 of a manual saying that 'aligned' works on Itanium.
7758         * lib/stdalign.in.h (_Alignas):
7759         Assume the '061200' applies to Itanium, not to PA-RISC.
7760         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
7762 2017-03-17  Bruno Haible  <bruno@clisp.org>
7764         stat-time, timespec: Support use of the header files in C++ mode.
7765         * lib/stat-time.h: Add "C" linkage declaration.
7766         * lib/timespec.h: Likewise.
7768 2017-03-17  Bruno Haible  <bruno@clisp.org>
7770         stdalign: Make it work with HP-UX cc.
7771         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
7772         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
7773         for HP-UX cc.
7775 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
7777         flexmember: try to detect HP-UX 11.31 cc bug
7778         Problem reported by Bruno Haible in:
7779         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
7780         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7781         Attempt to detect bug in HP-UX 11.31 cc.
7783 2017-03-16  Bruno Haible  <bruno@clisp.org>
7785         stdint: Fix test compilation failure with HP-UX 11 cc.
7786         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
7787         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
7788         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
7789         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
7791 2017-03-14  Bruno Haible  <bruno@clisp.org>
7793         gnulib-tool: Don't produce a tests directory with only snippet .h files.
7794         * gnulib-tool (func_modules_transitive_closure_separately): If
7795         testsrelated_modules ends up with no "real" modules, aside from
7796         modules with applicability 'all', set it to empty.
7798 2017-03-14  Bruno Haible  <bruno@clisp.org>
7800         vma-iter: Add support for HP-UX.
7801         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
7802         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
7803         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
7804         * lib/get-rusage-as.c: Update comment about HP-UX.
7805         * lib/get-rusage-data.c: Likewise.
7806         (get_rusage_data): Use get_rusage_data_via_setrlimit.
7808 2017-03-14  Bruno Haible  <bruno@clisp.org>
7810         limits-h: Make it work with HP-UX cc.
7811         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
7812         defined.
7814 2017-03-14  Bruno Haible  <bruno@clisp.org>
7816         Fix test failures on DragonFlyBSD.
7817         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
7818         * tests/test-select.h (test_bad_fd): Likewise.
7819         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
7821 2017-03-14  Bruno Haible  <bruno@clisp.org>
7823         freadahead: Silence warning on DragonFlyBSD.
7824         * lib/freadahead.c (__sreadahead): Declare ourselves.
7826 2017-03-14  Bruno Haible  <bruno@clisp.org>
7828         vma-iter: Add comment about AIX.
7829         * lib/vma-iter.c: Add comment about why this module is not implemented
7830         on AIX.
7832 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
7834         snippets: move unadjusted snippet sources to lib
7835         Problem reported by Michal Privoznik in:
7836         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
7837         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
7838         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
7839         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
7840         * lib/unused-parameter.h: Rename from
7841         build-aux/snippet/unused-parameter.h.
7842         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
7843         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
7844         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
7845         * modules/snippet/c++defs (Files:, CXXDEFS_H):
7846         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
7847         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
7848         Adjust to file renamings.
7850 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
7852         gnulib-tool: don't automatically distribute files from top/
7853         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
7854         not distribute top/README-release by default, don't distribute files
7855         from top/ unconditionally.
7856         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
7857         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
7859 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
7861         gnulib-tool: fix typo in comment output
7862         * gnulib-tool (func_import): Fix typo with previous change.
7864         snippets: work around GNU Make 3.82 VPATH
7865         When using 'gnulib-tool --gnu-make' on Emacs, and building
7866         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
7867         an out-of-source (VPATH) build failed because the sans-copyright
7868         snippet file was not built before the file that used it.
7869         Presumably this is some sort of VPATH thing.  Work around the
7870         problem by using the original snippet, i.e., don’t bother to
7871         remove its copyright notice.
7872         * modules/snippet/_Noreturn, modules/snippet/link-warning:
7873         Don’t assume Automake in comments.  Omit long-incorrect comment.
7874         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
7875         (MOSTLYCLEANFILES):
7876         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
7877         (MOSTLYCLEANFILES):
7878         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
7879         (MOSTLYCLEANFILES):
7880         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
7881         (MOSTLYCLEANFILES):
7882         Remove.
7883         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
7884         * modules/snippet/c++defs (CXXDEFS_H):
7885         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
7886         * modules/snippet/warn-on-use (WARN_ON_USE_H):
7887         Don’t bother to remove the copyright notice; just use the
7888         original snippet as-is.
7890 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
7892         gnulib-tool: minor --gnu-make fixups
7893         * gnulib-tool (func_emit_lib_Makefile_am):
7894         Remove useless code that was a blind alley during implementation.
7895         Problem reported by Thien-Thi Nguyen in:
7896         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
7897         (func_import): Note the "--gnu-make" option in the output comment.
7899 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
7901         gnulib-tool: new option --gnu-make
7902         This is for applications like GNU Emacs that use GNU Make
7903         features instead of Automake.
7904         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
7905         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
7906         Do not assume Automake.
7907         * gnulib-tool (func_determine_path_separator)
7908         (func_modules_transitive_closure, func_update_file)
7909         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
7910         (func_import): Add support for --gnu-make.
7912 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
7914         gnulib-common.m4: avoid aclocal.m4 bloat
7915         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
7916         Hide AM_PROG_AR from aclocal, so that aclocal does not
7917         install irrelevant macro definitions into aclocal.m4.
7919 2017-03-10  Bruno Haible  <bruno@clisp.org>
7921         vma-iter: Let callers know about error.
7922         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
7923         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
7925 2017-03-05  Bruno Haible  <bruno@clisp.org>
7927         Fix value of LD for 64-bit compilers on AIX.
7928         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
7929         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
7931 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
7933         dtotimespec: simplify
7934         * lib/dtotimespec.c (dtotimespec): Simplify.
7936 2017-03-04  Bruno Haible  <bruno@clisp.org>
7938         test-calloc-gnu: Reenable test also for GCC 7.
7939         * tests/test-calloc-gnu.c (eight): New function.
7940         (main): Don't skip test; use eight() instead.
7942 2017-03-04  Jim Meyering  <meyering@fb.com>
7944         test-calloc-gnu: port to GCC7
7945         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
7946         that attempts to calloc more than SIZE_MAX bytes, because GCC7
7947         and newer would detect that at compilation time.
7949 2017-03-04  Bruno Haible  <bruno@clisp.org>
7951         tests: Avoid compiler warning about uses of null_ptr.
7952         * tests/null-ptr.h: New file.
7953         * tests/test-canonicalize.c: Include null-ptr.h.
7954         (null_ptr): Remove function.
7955         * tests/test-canonicalize-lgpl.c: Likewise.
7956         * tests/test-memmem.c: Likewise.
7957         * tests/test-ptsname_r.c: Likewise.
7958         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
7959         * modules/canonicalize-lgpl-tests: Likewise.
7960         * modules/memmem-tests: Likewise.
7961         * modules/ptsname_r-tests: Likewise.
7962         Reported by Jim Meyering.
7964 2017-03-03  Bruno Haible  <bruno@clisp.org>
7966         doc: Mention Mac OS X deficiencies regarding semaphores.
7967         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
7968         * doc/posix-functions/sem_destroy.texi: Likewise.
7969         * doc/posix-functions/sem_getvalue.texi: Likewise.
7971 2017-03-03  Bruno Haible  <bruno@clisp.org>
7973         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
7974         Reported by Assaf Gordon <assafgordon@gmail.com> via
7975         Pádraig Brady <P@draigBrady.com>.
7976         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
7977         semaphores.
7978         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
7979         (atomic_int_semaphore): New macro.
7981 2017-02-28  Bruno Haible  <bruno@clisp.org>
7983         perror tests: Tweak for z/OS.
7984         Reported by Daniel Richard G. <skunk@iskunk.org>.
7985         * tests/test-perror.sh: Don't fail z/OS style perror output.
7987 2017-02-26  Bruno Haible  <bruno@clisp.org>
7989         nproc: Refactor large function.
7990         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
7991         from num_processors.
7992         (num_processors): In this function, only deal with OMP.
7994 2017-02-26  Pádraig Brady  <P@draigBrady.com>
7996         nproc: adjust handling of OpenMP environment variables
7997         to match the return value from omp_get_num_threads(), i.e.:
7998          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
7999          - Treat 0 as an invalid value and ignore
8000         Also remove the call to omp_get_num_threads() because
8001         it's ineffective without the omp pragmas in place.
8002         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
8003         so that it can be ignored.
8004         (num_processors): Honor OMP_THREAD_LIMIT even without
8005         OMP_NUM_THREADS being set.  Also fix a typo in the environment
8006         variable being checked, from the previous recent commit.
8008 2017-02-26  Pádraig Brady  <P@draigBrady.com>
8010         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
8011         * lib/nproc.c (parse_omp_threads): A new function refactored
8012         from num_processors() to support parsing both of the
8013         above environment variables.
8014         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
8015         to accurately reflect the current OpenMP nesting level.
8016         Also support the OMP_THREAD_LIMIT environment variable
8017         to limit the max value determined from OMP_NUM_THREADS.
8018         * modules/nproc: Depend on minmax header.
8019         Suggested by Oliver Heimlich.
8021 2017-02-25  Bruno Haible  <bruno@clisp.org>
8023         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
8024         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
8026 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8028         ftoastr: port to -Wdouble-promotion
8029         Work around -Wdouble-promotion false alarm in recent GCCs.
8030         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
8031         (ftoastr_snprintf, FTOASTR): Use it.
8033 2017-02-21  Bruno Haible  <bruno@clisp.org>
8035         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
8036         Reported by Rene Saavedra <rennes@openmailbox.org> in
8037         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
8038         * lib/glthread/lock.h: On glibc systems without
8039         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
8040         implementation of rwlocks.
8041         * lib/glthread/lock.c: Likewise.
8043 2017-02-20  Bruno Haible  <bruno@clisp.org>
8045         lock tests: Fix build failure on z/OS.
8046         Reported by Daniel Richard G. <skunk@iskunk.org>.
8047         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
8048         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
8049         exist.
8051 2017-02-19  Bruno Haible  <bruno@clisp.org>
8053         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
8054         This helps when CC=clang.
8055         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
8056         of /usr/bin/gcc.
8058         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
8059         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
8061 2017-02-19  Bruno Haible  <bruno@clisp.org>
8063         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
8064         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
8065         --with-tests --single-configure is specified.
8067 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
8069         users.txt: Update links, use HTTPS where possible
8070         * users.txt: Updated to HTTPS where possible,
8071         fixed some links to new locations.
8073 2017-02-16  Bruno Haible  <bruno@clisp.org>
8075         xbinary-io: Fix inlining.
8076         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
8078 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8080         xbinary-io: rename from xsetmode
8081         This patch is taken from suggestions by Bruno Haible in:
8082         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
8083         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
8084         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
8085         not ENOTTY, when it is an inappropriate device.
8086         * lib/binary-io.h (SET_BINARY): Resurrect.
8087         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
8088         (xset_binary_mode_error): Rename from xsetmode_error.
8089         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
8090         (xset_binary_mode): Rename from xsetmode.
8091         All uses changed.
8092         * modules/xbinary-io: Rename from modules/xsetmode.
8093         Update file names.
8094         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
8095         * NEWS: Update to match revised behavior.
8097 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8099         tests: Adjust to recent SET_BINARY change
8100         * tests/test-binary-io.c (main):
8101         * tests/test-binary-io.sh: Remove test for SET_BINARY.
8102         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
8103         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
8104         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
8106         xsetmode: new module
8107         This is to fix a problem noted by Eric Blake.
8108         Code was using xfreopen to change files to binary mode, but this
8109         fails for stdout when in append mode.  Such code should use
8110         xsetmode instead.
8111         * NEWS: Document incompatible changes to binary-io module.
8112         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
8113         New function.
8114         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
8115         (set_binary_mode): New function, which also checks for tty.
8116         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
8118 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
8120         headers: fix begin-end typos
8121         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
8122         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
8124         selinux-h: port to PGI 16.10
8125         * lib/se-selinux.in.h: Don't assume that include_next skips over
8126         duplicate -I DIR options.
8128         argp: port to PGI 16.10
8129         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
8131 2017-02-13  Darshit Shah  <darnir@gnu.org>
8133         unicase: Update function protoype to match definition.
8134         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
8135         uses 'size_t' as the datatype for the 'len' parameter in the functions
8136         it generates. Update the prototype specified here to match the newly
8137         generated function.
8139 2017-02-12  Bruno Haible  <bruno@clisp.org>
8141         times test: Avoid gcc warnings on Linux/x32.
8142         * tests/test-times.c (main): Really cast printf arguments from clock_t
8143         to 'long int'.
8145 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8147         glob: port better to emscripten
8148         Problem reported by Bruno Haible in:
8149         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
8150         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
8152 2017-02-11  Bruno Haible  <bruno@clisp.org>
8154         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
8155         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
8156         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
8157         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
8158         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
8159         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
8160         Distinguish hppa64 from hppa.
8162 2017-02-10  Bruno Haible  <bruno@clisp.org>
8164         search: Don't assume that tsearch() exists if 'VISIT' is defined.
8165         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
8166         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
8167         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
8169 2017-02-09  Bruno Haible  <bruno@clisp.org>
8171         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
8172         * doc/gnulib.texi (Libtool and Windows): Recommend
8173         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
8174         Reported by Reuben Thomas <rrt@sc3d.org>.
8176 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8178         stddef-tests: port to SIZE_MAX <= INT_MAX
8179         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
8180         Do not assume that INT_MAX < SIZE_MAX.
8182 2017-02-01  Bruno Haible  <bruno@clisp.org>
8184         lock tests: Fix link error.
8185         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
8186         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8188 2017-01-31  Bruno Haible  <bruno@clisp.org>
8190         lock: Fix link error (regression from 2017-01-05).
8191         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
8192         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
8193         pthread_rwlockattr_destroy weak.
8194         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8196 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
8198         Port to PGI 16.10 x86-64
8199         This patch fixes one real bug in gl_anylinked_list2.h, along with
8200         some minor glitches that are not bugs.  It does not silence PGI’s
8201         thousands of bogus warnings when compiling test-intprops.c.
8202         Fortunately, the warnings do not cause a failure.
8203         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
8204         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
8205         My goodness, PGI goes back a long ways - this predates C89!
8206         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
8207         For example, ASYNCSAFE (const void *) should expand to
8208         ‘const void *volatile’, not to ‘volatile const void *’.
8209         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
8210         * lib/verify.h (verify) [!__GNUC__]:
8211         Use shorter albeit meaningless string to bypass silly compiler limits.
8212         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
8213         * tests/nan.h (NaNf, NaNd, NaNl):
8214         Use static functions to avoid misguided compiler diagnostics.
8215         Is there some reason we don’t use static functions on all platforms?
8217 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
8219         parse-datetime: handle timezones reentrantly
8220         This API change was prompted by a report by Pádraig Brady in:
8221         https://bug.debian.org/851934#10
8222         To help fix the bug, make parse_datetime2 more reentrant.
8223         * NEWS: Document this incompatible change.
8224         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
8225         Add two arguments, the timezone and the timezone name.
8226         All callers changed.  If TZ="..." is specified, use it for
8227         calculating defaults.
8228         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
8229         this code should be usable in a library.
8230         (mktime_ok, get_effective_timezone):
8231         Accept timezone arg too.  All callers changed.
8232         (get_tz): Remove.
8233         (get_effective_timezone): Check for failures.
8235 2017-01-20  Eric Blake  <eblake@redhat.com>
8237         localename: port to cygwin 2.6
8238         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
8239         Cygwin.
8240         * modules/localename (Depends-on): Add extensions, since
8241         NL_LOCALE_NAME() is not visible without it.
8243 2017-01-17  Pádraig Brady  <P@draigBrady.com>
8245         parse-datetime: fix dependence on AC_PROG_SED
8246         * modules/parse-datetime: Use `sed` directly like all other modules.
8247         Reported by J William Piggott
8249 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
8251         intprops: update doc URLs
8252         * doc/intprops.texi (Integer Range Overflow): Update URLs.
8254 2017-01-16  Bruno Haible  <bruno@clisp.org>
8256         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
8257         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
8258         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
8259         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
8260         distinguish s390 and s390x.
8261         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
8262         * NEWS: Mention the change regarding 'armel'.
8264 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
8266         localeinfo: case_folded_counterparts and WEOF
8267         * NEWS: Document this.
8268         * lib/localeinfo.c (case_folded_counterparts):
8269         First arg is now wint_t, not wchar_t.  This generalizes the
8270         function to also work on WEOF, where it returns 0.
8272         dfa: port to gcc -fsanitize=undefined
8273         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
8274         as this runs afoul of gcc -fsanitize=undefined.
8276 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
8278         strftime: %z is -00 if unknown
8279         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
8280         the caller's responsibility to set 'negative_number'.  All uses changed.
8281         (__strftime_internal): Put '-' before a zero UTC offset if the time
8282         zone abbreviation starts with "-", which is the recently-introduced
8283         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
8284         * tests/test-strftime.c: Test for this.
8286 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
8288         dfa: port to older GCC
8289         Problem reported by Assaf Gordon in:
8290         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
8291         * modules/c99: New module.  This merely attempts to use the latest
8292         C version, which should be enough to solve this particular problem.
8293         The idea is to document which Gnulib modules assume C99 or later.
8294         * modules/dfa (Depends-on): Add it.
8296 2017-01-10  Bruno Haible  <bruno@clisp.org>
8298         Update DEPENDENCIES.
8299         * DEPENDENCIES: List only https URLs. Update recommended version for
8300         autoconf, automake, gperf.
8302 2017-01-10  Jim Meyering  <meyering@fb.com>
8304         maint.mk: enforce spelling of "timestamp" (i.e., no space)
8305         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
8306         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
8308 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
8310         dfa: minor simplification with emptyset
8311         * lib/dfa.c (build_state): Simplify by using emptyset.
8313 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
8315         dfa: shrink constraints from 4 bits to 3
8316         * lib/dfa.c (newline_constraint, letter_constraint)
8317         (other_constraint, prev_newline_dependent)
8318         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
8319         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
8320         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
8321         Constraints need only 3 bits, not 4.  Using smaller integers
8322         shrinks the code a bit and makes grep a tad faster on x86-64.
8324         dfa: omit unnecessary ptrdiff_t check
8325         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
8326         overflow, since xnmalloc does that now.
8328         dfa: omit unnecessary allocation
8329         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
8330         an all-zero follow set works just fine.
8332         dfa: omit unused local
8333         * lib/dfa.c (build_state): Fix up recent change.
8335         maint: remove stray .texi files
8336         Although these were superseded by other files like
8337         doc/posix-functions/ctime.texi, the old files were not removed.
8338         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
8340 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
8342         getprogname: fix port to IRIX
8343         * lib/getprogname.c (getprogname) [__sgi]:
8344         Don't dump core if malloc returns NULL.
8346         dfa: fix reallocation bug when matching newlines
8347         Problem reported for sed by S. Gilles (Bug#25390).
8348         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
8349         (dfastate): Reallocate before moving any newline transition ...
8350         (build_state): ... instead of reallocating here, where it is too late.
8352 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
8354         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
8355         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
8357 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
8359         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
8360         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
8362 2017-01-07  Bruno Haible  <bruno@clisp.org>
8364         stdioext: Port to Minix 3.2 and newer.
8365         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
8366         * lib/fseeko.c (fseeko): Likewise.
8367         Reported by Nelson Beebe via Paul Eggert.
8369 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8371         getprogname: port to IRIX
8372         * lib/getprogname.c (getprogname): Port to IRIX.
8373         Based on an idea by Bastien Roucariès at:
8374         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
8375         via code from Bruno Haible at:
8376         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
8378         localename-tests: port to NetBSD 7
8379         Problem reported by Nelson H. F. Beebe.
8380         * tests/test-localename.c:
8381         Test newlocale and uselocale only if both exist.
8383         glob, intprops, xalloc: work around Clang bug
8384         Work around LLVM bug 16404, which is still not fixed.
8385         https://llvm.org/bugs/show_bug.cgi?id=16404
8386         Problem reported by Nelson H. F. Beebe.
8387         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
8388         Remove.
8389         * lib/glob.c (size_add_wrapv):
8390         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
8391         * lib/xalloc-oversized.h (xalloc_oversized):
8392         Do not use overflow builtins if Clang.
8394         dfa: fix 'return' typo
8395         Problem reported by Nelson H. F. Beebe.
8396         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
8398 2017-01-05  Pádraig Brady  <P@draigBrady.com>
8400         parse-datetime: fix generated paths for coverage files
8401         * modules/parse-datetime: Adjust the paths for parse-datetime.y
8402         within parse-datetime.c, so that gcc generates appropriate .gcno
8403         files, allowing lcov to proceed without error.  Previously it
8404         would error trying to find "lib/lib/parse-datetime.y".
8406 2017-01-05  Pádraig Brady  <P@draigBrady.com>
8408         maint.mk: support parallel execution of coverage
8409         * top/maint.mk (coverage): Run dependencies serially,
8410         thus supporting parallel processing of each one,
8411         particularly build-coverage, which builds and runs tests.
8413 2017-01-05  Bruno Haible  <bruno@clisp.org>
8415         lock tests: Prefer semaphore over mutex.
8416         * tests/test-lock.c (USE_SEMAPHORE): New constant.
8417         (struct atomic_int, init_atomic_int, get_atomic_int_value,
8418         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
8419         Suggested by Torvald Riegel <triegel@redhat.com>.
8421 2017-01-05  Bruno Haible  <bruno@clisp.org>
8423         lock: Provide guarantee to avoid writer starvation for rwlocks.
8424         The rationale is: 1) Read-preferring read-write locks are prone to
8425         writer starvation if the number of reader threads multiplied by the
8426         percentage of time they have the lock held is too high. 2) Write-
8427         preferring read-write locks are the only reliable way to avoid this.
8428         3) There have been reports of 'test-lock' hanging on glibc systems
8429         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
8430         and glibc indeed implements read-preferring rwlocks by default, see
8431         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
8432         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
8433         * m4/pthread_rwlock_rdlock.m4: New file.
8434         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
8435         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
8436         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
8437         of rwlock initialization on glibc systems without
8438         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
8439         of rwlocks altogether on non-glibc systems without
8440         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
8441         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
8442         * lib/glthread/lock.c [USE_POSIX_THREADS]
8443         (glthread_rwlock_init_for_glibc): New function.
8444         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
8445         comment.
8446         [USE_PTH_THREADS]: New implementation of rwlocks.
8447         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
8448         readers.
8449         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
8450         (Depends-on): Add 'extensions'.
8451         * tests/test-rwlock1.c: New file.
8452         * lock-tests (Files): Add it.
8453         (Depends-on): Add usleep.
8454         (Makefile.am): Add test-rwlock1 to the tests.
8456 2017-01-05  Bruno Haible  <bruno@clisp.org>
8458         thread: Fix pth port.
8459         * lib/glthread/thread.h (pth_init): Declare weak.
8460         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
8461         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
8462         function.
8464 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
8466         parse-datetime: fix debug message on lone year number
8467         Input dates such as
8468           date -d "Apr 11 22:59:00 2011"
8469         are parsed as date (Apr 11, with default year 2016), then time, then a
8470         number (2011). Based on the combination of previously seen tokens,
8471         'digits_to_date_time' determines 2011 to be a year value.
8472         This fixes the debug messages to correctly show the updated year.
8473         Before:
8474             $ date --debug -d 'Apr 11 22:59:00 2011'
8475             date: parsed date part: (Y-M-D) 2016-04-11
8476             date: parsed time part: 22:59:00
8477             date: parsed number part: today/this/now
8478         After:
8479             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
8480             date: parsed date part: (Y-M-D) 2016-04-11
8481             date: parsed time part: 22:59:00
8482             date: parsed number part: year: 2011
8483         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
8484         'debug_year_seen' member fields.
8485         (digits_to_date_time): Update 'year_seen' as needed.
8486         (debug_print_current_time): Inform about year updates.
8487         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
8489         parse-datetime: fix local timezone debug messages
8490         "Local timezones" are strings that affect only DST relative to the
8491         default timezone. The debug messages in parse-datetime.y printed
8492         wrong information when encountering local timezones.
8493         Examples:
8494         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
8495              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
8496              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
8497         When the default timezone relates to the zone strings, EET/EEST are
8498         parsed as local timezones (tLOCAL_ZONE), and only change the DST
8499         value (0/1, respectively):
8500              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
8501              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
8502         * lib/parse-datetime.y (debug_print_current_time): If local timezone
8503         was seen, inform about DST change, don't print actual timezone.
8504         (debug_strfdatetime): If local timezone was seen, use default timezone
8505         (and adjust as needed) instead of using incorrect timezone.
8506         (parse_datetime2): Use correct time-zone source string, and adjust
8507         default timezone as needed.
8509         parse-datetime: add debug warning about DST changes
8510         Incorrect date arithmetic due to daylight saving time (DST) are a
8511         common (false) bug report in coreutils.
8512         Detect two such cases and print a warning:
8513         1. year/month/day adjustments (performed on 'struct tm'),
8514            where 'mktime' returns a different isdst value.
8515         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
8516            where the result of 'localtime(3)' on the value will return a
8517            different isdst value.
8518         Note: DST changes could be harmless or unnoticeable.
8519         Examples (with 'TZ=America/New_York'):
8520         Unnoticeable: result is 2016-Dec-14
8521            $ date -d '2016-06-15 EDT + 6 months' +%b
8522            Dec
8523         Unnoticeable: result is 2016-Dec-15 11:00:00
8524            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
8525            2016-12-15
8526         This is unexpected:
8527            $ date -d '2016-06-01 EDT + 6 months' +%F
8528            2016-11-30
8529         The new debug warnings will show:
8530            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
8531            ...
8532            date: warning: daylight saving time changed after date adjustment
8533            ...
8534         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
8535         print an appropriate warning message.
8537         parse-datetime: add debug warning about date arithmetic
8538         Date arithmetic are done directly on the fields of 'struct tm',
8539         which can result in invalid dates. Normalization with 'mktime(3)'
8540         will then produce a different date - which might cause unexpected
8541         results.
8542         Examples:
8543           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
8544           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
8545         Note that date normalization is not inherently wrong and not rejected,
8546         as it has legitimate uses:
8547           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
8548         If the user asked to adjust months but 'mday' changed,
8549         or user asked to adjust years but 'month' changed - warn about it.
8550             $ ./src/date --debug -d '2016-10-31 - 1 month'
8551             ...
8552             date: warning: when adding relative months/years, \
8553                            it is recommended to specify the 15th of the month
8554             ...
8555             date: warning: month/year adjustment resulted in shifted dates:
8556             date:      adjusted Y M D: 2016 09 31
8557             date:    normalized Y M D: 2010 10 01
8558             ...
8559         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
8560         a warning message. Improve recommendation of when to use 15 of the
8561         month or noon for date arithmetic.
8563         parse-datetime: fix debug message of relative part after timezone
8564         Relative part (e.g '+8 days') after a timezone string was not
8565         reported (was only reported after a timezone number). Due to the
8566         parser's structure, timezone strings with numbers were handled
8567         separately.
8568         before:
8569              # Timezone number + relative part: OK
8570              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
8571              ...
8572              date: parsed relative part: -8 day(s)
8573              # Timezone string + relative part: missing
8574              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
8575              [ missing message ]
8576         After: messages are printed in both cases.
8577         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
8579         parse-datetime: fix incorrect debug message on lone number
8580         A lone number is an absolute value, not a relative time part.
8581         before:
8582            $ date --debug -d '20130101'
8583            date: parsed number part: today/this/now
8584         After:
8585            $ ./src/date --debug -d '20130101'
8586            date: parsed number part: (Y-M-D) 2013-01-01
8587         * lib/parse-datetime.y ('item'/'number' tokens): Call
8588         'debug_print_current_time' instead of 'debug_print_relative_time'.
8590 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
8592         doc: modernize for C11 etc.
8593         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
8594         for C11, MinGW, etc.  This responds to Paul Smith's question in:
8595         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
8597         dfa: prefer functions to FETCH_WC macro
8598         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
8599         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
8600         wint_t result into DFA->lex.wctok instead of to a separate arg.
8601         All callers changed.  Move more local decls closer to where
8602         they're used.
8604         dfa: narrow more local var scopes
8605         * lib/dfa.c: Move more local decls to be more local.
8607         dfa: remove duplicate assignment
8608         Problem reported by Bruno Haible in:
8609         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
8610         * lib/dfa.c (parse_bracket_exp): Simplify.
8612 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
8614         dfa: simplify constraint-dependency checking
8615         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
8616         (prev_other_constraint): Remove.
8617         (prev_newline_dependent, prev_letter_dependent):
8618         Simplify, to avoid an unnecessary bitwise AND operation.
8620         dfa: prefer functions and constants to macros
8621         * lib/dfa.c: Prefer constants to macros where either will do.
8622         (streq, isasciidigit, newline_constraint)
8623         (letter_constraint, other_constraint, succeeds_in_context)
8624         (prev_newline_constraint, prev_letter_constraint)
8625         (prev_other_constraint, prev_newline_dependent)
8626         (prev_letter_dependent, accepting, accepts_in_context):
8627         Now static functions instead of function-like macros.
8628         Use lower-case names accordingly.  All uses changed.
8630         dfa: narrow more local var scopes
8631         * lib/dfa.c: Move some more local decls down to nearer where
8632         they're needed.
8634 2016-12-31  Jim Meyering  <meyering@fb.com>
8636         dfa: narrow the scope of many local variables
8637         * lib/dfa.c: Now that we are no longer constrained to c89, move
8638         declarations of many variables (often indices) "down" into the
8639         scope(s) where used or to the point of definition.  This is a
8640         no-semantic-change diff.
8642 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
8644         version-etc: new year
8645         * build-aux/gendocs.sh (version):
8646         * doc/gendocs_template:
8647         * doc/gendocs_template_min:
8648         * doc/gnulib.texi:
8649         * lib/version-etc.c (COPYRIGHT_YEAR):
8650         Update copyright dates by hand in templates and the like.
8651         * all files: Run 'make update-copyright'.
8653 2016-12-31  Eric Blake  <eblake@redhat.com>
8655         do-release-commit-and-tag: avoid shell syntax error
8656         * build-aux/do-release-commit-and-tag (curr_br): $branch can
8657         contain spaces when rebasing.
8659         maint.mk: hoist gnulib_dir definition earlier
8660         * top/maint.mk (gnulib_dir): Move near top of file.
8662 2016-12-31  Jim Meyering  <meyering@fb.com>
8664         maint.mk: do not always evaluate intprops-related shell
8665         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
8666         using gnulib_dir undefined (gnulib_dir is defined later in the
8667         file, which will be fixed separately), and besides, there is no
8668         need to incur the cost of this shell invocation for every single
8669         use of this .mk file.  Reported by Eric Blake in
8670         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
8672 2016-12-30  Jim Meyering  <meyering@fb.com>
8674         maint.mk: improve sc_prohibit_intprops_without_use
8675         * top/maint.mk (_intprops_names): Don't hard-code the list of
8676         symbol names.  Instead, derive it on the fly.
8678 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
8680         dfa: shorten sbit, success
8681         * lib/dfa.c (struct regex_syntax.sbit):
8682         (struct dfa.success): Use char, not int, for array elements, since
8683         they are all in the range 0..7.
8685         dfa: simplify multibyte_prop etc.
8686         This follows up on a change made when dfa.c was in grep, namely grep
8687         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
8688         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
8689         That earlier simplification allows for some more simplification
8690         and trimming down here.
8691         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
8692         (struct lexer_state): New mamber brack.
8693         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
8694         since they must be in the range 0..3 now.
8695         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
8696         the brack member now supersedes them.
8697         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
8698         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
8699         (dfaparse): Remove unnecessary initializations of already-0 storage.
8700         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
8701         (dfassbuild): No need to clear sup->mbcsets.
8703         dfa: minor performance tweak
8704         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
8706         dfa: wrap charclass inside a struct
8707         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
8708         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
8709         about 5% faster, where list.txt is generated by 'aspell dump
8710         master | head -n 100000 >list.txt'.  See Bug#22239.
8711         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
8712         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
8713         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
8714         Adjust to this, e.g., by using charclass * rather than charclass.
8715         All callers changed as needed.
8716         (copyset): Remove.  All uses changed to simple assignment.
8717         (parse_bracket_exp): Use zeroset instead of memset.
8719 2016-12-30  Jim Meyering  <meyering@fb.com>
8721         maint.mk: update list of intprops.h symbol names
8722         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
8723         This avoids a false failure of the sc_prohibit_intprops_without_use
8724         rule in grep.
8726 2016-12-29  Eric Blake  <eblake@redhat.com>
8728         getopt: fix parallel test failure
8729         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
8730         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
8731         * tests/test-getopt-main.h (main): Use different file names
8732         in case test-getopt-gnu and test-getopt-posix run in parallel.
8734 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8736         xalloc: x2nrealloc check for ptrdiff_t overflow
8737         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
8738         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
8740 2016-12-24  Bruno Haible  <bruno@clisp.org>
8742         lock test: Fix performance problem on multi-core machines.
8743         * tests/test-lock.c (USE_VOLATILE): New macro.
8744         (struct atomic_int): New type.
8745         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
8746         functions.
8747         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
8748         as 'struct atomic_int'.
8749         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
8750         reclock_checker_thread, test_recursive_lock): Use the new functions.
8751         Reported by Eric Blake in
8752         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
8753         and by Pádraig Brady in
8754         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
8756 2016-12-19  Bruno Haible  <bruno@clisp.org>
8758         vma-iter: Fix endless loop on 64-bit Windows.
8759         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
8760         'unsigned long'.
8762 2016-12-19  Bruno Haible  <bruno@clisp.org>
8764         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
8765         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
8766         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
8767         Invoke gt_TYPE_WINT_T instead.
8768         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
8769         * modules/stdint (Files): Add m4/wint_t.m4.
8770         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
8771         * modules/wctype-h (Makefile.am): Likewise.
8772         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
8773         not only on MSVC.
8774         * lib/wctype.in.h (wint_t): Likewise.
8776 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8778         getopt-posix-tests: fix Makefile typo
8779         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
8780         Fix typo: the last ‘_’ was missing in the name.
8781         I suspect that the typo explains this build failure:
8782         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
8783         although I can’t reproduce the problem on Solaris 10 sparc.
8785 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8787         dfa: improve worst-case 'replace' performance
8788         See my note in Bug#22357#71.
8789         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
8790         (merge_constrained): New function, which is like
8791         the old 'merge' function, except with a new argument C2.
8792         Simplify the body by avoiding the need for different sections
8793         of code depending on whether one input is exhausted.
8794         (merge): Use the new function.
8795         (delete): Return the constraint of the deleted position,
8796         not the entire position.  Caller changed.
8797         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
8799 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
8801         dfa: performance improvement for removal of epsilon closure
8802         See Bug#22357#32.
8803         * lib/dfa.c (delete): Use binary search to find deleted index.
8804         (replace): New function.  It replaces a position with the followed set.
8805         (epsclosure): Replace it with a new algorithm.  Update caller.
8807 2016-12-18  Bruno Haible  <bruno@clisp.org>
8809         Split tests for getopt-posix and getopt-gnu.
8810         * tests/test-getopt-posix.c: New file.
8811         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
8812         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
8813         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
8814         GNULIB_TEST_GETOPT_GNU.
8815         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
8816         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
8817         (Makefile.am): Test test-getopt-posix instead of test-getopt.
8818         * modules/getopt-gnu-tests: New file.
8819         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
8821 2016-12-18  Bruno Haible  <bruno@clisp.org>
8823         posix-modules: Add options for specific platforms.
8824         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
8825         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
8826         Invoke func_tmpdir. Filter out the excludes.
8828 2016-12-18  Bruno Haible  <bruno@clisp.org>
8830         getopt: Fix link error for users of getopt() in <unistd.h>.
8831         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
8832         __need_getopt is defined. Undefine all macros before defining them.
8833         * modules/getopt (Include): Clarify that including <unistd.h> is also
8834         OK.
8835         * tests/test-getopt.c: Add comment.
8837 2016-12-17  Bruno Haible  <bruno@clisp.org>
8839         getaddrinfo tests: Avoid compilation error on MSVC.
8840         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
8841         getaddrinfo on native Windows.
8843 2016-12-17  Bruno Haible  <bruno@clisp.org>
8845         getlogin, getlogin_r: Fix link errors on MSVC.
8846         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
8847         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
8848         (Link): New section.
8849         * modules/getlogin_r (Files): Add m4/getlogin.m4.
8850         (configure.ac): Require gl_LIB_GETLOGIN.
8851         (Link): New section.
8852         * NEWS: Mention the new link requirements.
8853         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
8854         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
8856 2016-12-17  Bruno Haible  <bruno@clisp.org>
8858         Un-deprecate the 'progname' module.
8859         * NEWS: Describe the appropriate use-cases of 'progname' versus
8860         'getprogname'. Based on discussion summary at
8861         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
8863 2016-12-17  Bruno Haible  <bruno@clisp.org>
8865         Reorganize NEWS a bit.
8866         * NEWS: Move some not so important changes away from section
8867         "Important Notes".
8869 2016-12-17  Bruno Haible  <bruno@clisp.org>
8871         tanhf: Avoid redefinition error on MSVC.
8872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
8873         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
8874         may be defined as an inline function.
8875         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
8876         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
8878 2016-12-17  Bruno Haible  <bruno@clisp.org>
8880         tanf: Avoid redefinition error on MSVC.
8881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
8882         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
8883         may be defined as an inline function.
8884         * modules/math (Makefile.am): Substitute REPLACE_TANF.
8885         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
8887 2016-12-17  Bruno Haible  <bruno@clisp.org>
8889         sqrtf: Avoid redefinition error on MSVC.
8890         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
8891         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
8892         may be defined as an inline function.
8893         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
8894         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
8896 2016-12-17  Bruno Haible  <bruno@clisp.org>
8898         sinhf: Avoid redefinition error on MSVC.
8899         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
8900         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
8901         may be defined as an inline function.
8902         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
8903         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
8905 2016-12-17  Bruno Haible  <bruno@clisp.org>
8907         sinf: Avoid redefinition error on MSVC.
8908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
8909         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
8910         may be defined as an inline function.
8911         * modules/math (Makefile.am): Substitute REPLACE_SINF.
8912         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
8914 2016-12-17  Bruno Haible  <bruno@clisp.org>
8916         logf: Avoid redefinition error on MSVC.
8917         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
8918         may be defined as an inline function.
8920 2016-12-17  Bruno Haible  <bruno@clisp.org>
8922         log10l: Avoid redefinition error on MSVC.
8923         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
8924         may be defined as an inline function.
8926 2016-12-17  Bruno Haible  <bruno@clisp.org>
8928         log10f: Avoid redefinition error on MSVC.
8929         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
8930         may be defined as an inline function.
8932 2016-12-17  Bruno Haible  <bruno@clisp.org>
8934         hypotl: Avoid redefinition error on MSVC.
8935         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
8936         may be defined as an inline function.
8938 2016-12-17  Bruno Haible  <bruno@clisp.org>
8940         hypotf: Avoid redefinition error on MSVC.
8941         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
8942         may be defined as an inline function.
8944 2016-12-17  Bruno Haible  <bruno@clisp.org>
8946         fmodl: Avoid redefinition error on MSVC.
8947         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
8948         may be defined as an inline function.
8950 2016-12-17  Bruno Haible  <bruno@clisp.org>
8952         fmodf: Avoid redefinition error on MSVC.
8953         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
8954         may be defined as an inline function.
8956 2016-12-17  Bruno Haible  <bruno@clisp.org>
8958         expf: Avoid redefinition error on MSVC.
8959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
8960         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
8961         may be defined as an inline function.
8962         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
8963         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
8965 2016-12-17  Bruno Haible  <bruno@clisp.org>
8967         coshf: Avoid redefinition error on MSVC.
8968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
8969         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
8970         may be defined as an inline function.
8971         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
8972         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
8974 2016-12-17  Bruno Haible  <bruno@clisp.org>
8976         cosf: Avoid redefinition error on MSVC.
8977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
8978         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
8979         may be defined as an inline function.
8980         * modules/math (Makefile.am): Substitute REPLACE_COSF.
8981         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
8983 2016-12-17  Bruno Haible  <bruno@clisp.org>
8985         atan2f: Avoid redefinition error on MSVC.
8986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
8987         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
8988         may be defined as an inline function.
8989         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
8990         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
8992 2016-12-17  Bruno Haible  <bruno@clisp.org>
8994         atanf: Avoid redefinition error on MSVC.
8995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
8996         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
8997         may be defined as an inline function.
8998         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
8999         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
9001 2016-12-17  Bruno Haible  <bruno@clisp.org>
9003         asinf: Avoid redefinition error on MSVC.
9004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
9005         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
9006         may be defined as an inline function.
9007         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
9008         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
9010 2016-12-17  Bruno Haible  <bruno@clisp.org>
9012         acosf: Avoid redefinition error on MSVC.
9013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
9014         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
9015         may be defined as an inline function.
9016         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
9017         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
9019 2016-12-17  Bruno Haible  <bruno@clisp.org>
9021         Avoid redefinition errors on MSVC.
9022         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
9023         the function may be defined as an inline function.
9024         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
9025         the function may be defined as an inline function.
9027 2016-12-17  Bruno Haible  <bruno@clisp.org>
9029         Avoid redefinition errors on MSVC.
9030         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
9031         * lib/unistd.in.h: Include <stdio.h> when necessary.
9033 2016-12-17  Bruno Haible  <bruno@clisp.org>
9035         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
9036         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
9037         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
9038         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
9039         WINT_MAX.
9041 2016-12-17  Bruno Haible  <bruno@clisp.org>
9043         Avoid autoconf warning.
9044         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
9045         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
9047 2016-12-17  Bruno Haible  <bruno@clisp.org>
9049         fpending: Revert workaround against Emacs bug.
9050         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
9051         The Emacs bug is fixed by Eli Zaretskii in
9052         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
9054 2016-12-17  Bruno Haible  <bruno@clisp.org>
9056         getlogin_r tests: Port to mingw.
9057         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
9058         regression introduced on 2014-05-19.
9060 2016-12-17  Bruno Haible  <bruno@clisp.org>
9062         getlogin: Port to newer mingw.
9063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
9064         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
9065         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
9066         HAVE_GETLOGIN.
9067         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
9068         HAVE_GETLOGIN.
9069         * doc/posix-functions/getlogin.texi: Mention the issue.
9070         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
9071         regression introduced on 2014-05-14.
9073 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9075         builtin-expect: improve port to IBM XL C
9076         Problem reported for z/OS by Daniel Richard G. in:
9077         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
9078         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
9079         Test for <builtins.h> directly.
9081         builtin-expect: port to IBM XL C
9082         Problem reported for z/OS by Daniel Richard G. in:
9083         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
9084         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
9085         Also allow __builtin_expect defined via a standard include file.
9087         regex: fix dependency
9088         Problem reported by Bruno Haible in:
9089         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
9090         * modules/regex: Depend on builtin-expect.
9092         builtin-expect: new module
9093         Fix fnmatch to use it.
9094         Problem reported for z/OS by Daniel Richard G.
9095         * lib/fnmatch.c (__builtin_expect):
9096         * lib/glob.c (__builtin_expect):
9097         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
9098         * lib/memmem.c (__builtin_expect) [!_LIBC]:
9099         * lib/scandir.c (__builtin_expect):
9100         * lib/strstr.c (__builtin_expect) [!_LIBC]:
9101         Remove macro; config.h now does this.
9102         * lib/gl_anytreehash_list1.h (add_to_bucket):
9103         * lib/regex_internal.h (BE):
9104         Assume __builtin_expect.
9105         * m4/builtin-expect.m4, modules/builtin-expect: New files.
9106         * modules/avltreehash-list, modules/fnmatch, modules/glob:
9107         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
9108         * modules/scandir, modules/strstr-simple:
9109         Depend on builtin-expect.
9111 2016-12-15  Bruno Haible  <bruno@clisp.org>
9113         init.sh: Add possibility to not delete temporary files.
9114         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
9115         to yes, don't erase the temporary directory.
9117 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9119         regex: fix integer-overflow bug in never-used code
9120         Problem reported by Clément Pit–Claudel in:
9121         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
9122         * lib/regex_internal.h: Include intprops.h.
9123         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
9124         behavior on integer overflow.
9125         * modules/regex (Depends-on): Add intprops.
9127         fpending: fix port to MinGW on Emacs
9128         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
9129         Problem reported by Eli Zaretskii in:
9130         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
9131         Is Plan 9 still a valid porting target, anyway?
9133 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9135         safe-alloc: use xalloc-oversized
9136         * lib/safe-alloc.c: Include xalloc-oversized.h.
9137         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
9138         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
9140         xalloc: do not exceed PTRDIFF_MAX
9141         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
9142         xalloc_oversized check, since objects larger than PTRDIFF_MAX
9143         bytes have pointer-subtraction problems.
9145         malloca: do not exceed PTRDIFF_MAX
9146         * lib/malloca.h: Include xalloc-oversized.
9147         (nmalloca): Use xalloc_oversized instead of rolling our own.
9148         * modules/malloca (Depends-on):
9149         * modules/relocatable-prog-wrapper (Depends-on):
9150         Add xalloc-oversized.
9152         quotearg: pacify GCC better
9153         * modules/quotearg (Depends-on): Add minmax, stdint.
9154         * lib/quotearg.c: Include minmax.h, stdint.h.
9155         (nslots): Now int, as there seems little point to going to extra
9156         work merely to support the INT_MAX slot, which nobody ever uses.
9157         (quotearg_n_options): Redo size-overflow checks to pacify GCC
9158         and to catch (mostly-theoretical) ptrdiff_t problems too.
9159         This can be done via one comparison.
9161 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
9163         xalloc-oversized: check for PTRDIFF_MAX too
9164         This avoids undefined behavior when subtracting pointers to
9165         objects containing more than PTRDIFF_MAX bytes.
9166         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
9167         Also return 1 if the result would exceed PTRDIFF_MAX>
9168         * modules/xalloc-oversized (Depends-on):
9169         Add stdint.
9171         dfa: fix glitches in previous commit
9172         Sorry, I don't know how I managed to commit the wrong version.
9173         * lib/dfa.c (MIN): Move up.
9174         (xpalloc): Now static.
9176         dfa: fix some unlikely integer overflows
9177         I found these while reviewing the recent Coverity-related fix.
9178         This patch changes part of dfa.c to prefer ptrdiff_t instead of
9179         size_t for object counts.  Using ptrdiff_t is the style typically
9180         used in Emacs; although it wastes a sign bit as sizes can never be
9181         negative, it makes -fsanitize=undefined more likely to catch
9182         integer overflows in index calculation, and nowadays the upside is
9183         typically more important than the downside.  Although perhaps the
9184         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
9185         of dfa.c already does, since it uses state_num which is signed),
9186         that is a bigger change and is not needed to fix the bugs I found.
9187         * lib/dfa.c: Include stdint.h and intprops.h.
9188         (TOKEN_MAX): New macro.
9189         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
9190         (charclass_index, parse_bracket_exp, addtok, insert, merge)
9191         (realloc_trans_if_necessary, free_mbdata):
9192         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
9193         This is safe because xpalloc checks that the sizes do not exceed
9194         either SIZE_MAX or PTRDIFF_MAX.
9195         (xpalloc): New function, mostly taken from Emacs.
9196         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
9197         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
9198         (charclass_index): Check for integer overflow in computing
9199         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
9200         added to it later.
9201         (alloc_position_set): Check for integer overflow.  On typical
9202         platforms this check has zero overhead, since the constant
9203         expression is false.
9204         (realloc_trans_if_necessary):
9205         Remove assertion, which I hope Coverity no longer needs.
9207         * modules/dfa (Depends-on): Add intprops, stdint.
9209 2016-12-12  Jim Meyering  <meyering@fb.com>
9211         dfa: add an assertion to avoid coverity false positive
9212         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
9213         warned that "newalloc1 - 2" could overflow.
9215 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
9217         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
9218         * dfa.h (DFA_CASE_FOLD): Remove.
9219         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
9221 2016-12-13  John W. Eaton  <gnu@jweaton.org>
9223         link: fix test to declare use of rename()
9224         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
9225         -Werror=implicit-function-declaration
9227 2016-12-12  Bruno Haible  <bruno@clisp.org>
9229         fpending: Port to native Windows with MSVC.
9230         * lib/fpending.c: Include stdio-impl.h.
9231         (__fpending): Include all known implementations. Err out if it's not
9232         ported.
9233         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
9234         * modules/fpending (Files): Add lib/stdio-impl.h.
9235         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
9237 2016-12-12  Bruno Haible  <bruno@clisp.org>
9239         stdioext: Port to native Windows with MSVC.
9240         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
9241         (struct _gl_real_FILE): New type.
9242         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
9243         Windows.
9244         * lib/fbufmode.c (fbufmode): Add code for native Windows.
9245         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
9246         other SystemV derived implementations.
9247         * lib/fpurge.c (fpurge): Likewise.
9248         * lib/freadable.c (freadable): Likewise.
9249         * lib/freadahead.c (freadahead): Likewise.
9250         * lib/freading.c (freading): Likewise.
9251         * lib/freadptr.c (freadptr): Likewise.
9252         * lib/freadseek.c (freadptrinc): Likewise.
9253         * lib/fseeko.c (fseeko): Likewise.
9254         * lib/fseterr.c (fseterr): Likewise.
9255         * lib/fwritable.c (fwritable): Likewise.
9256         * lib/fwriting.c (fwriting): Likewise.
9257         Reported by Gisle Vanem <gvanem@yahoo.no>.
9259 2016-12-11  Jim Meyering  <meyering@fb.com>
9261         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
9262         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
9263         to work with most shells, but not with the one provided by many
9264         Solaris 10 systems, so running configure with such a /bin/sh evokes
9265         e.g., "./configure: syntax error at line 33602: `(' unexpected".
9266         Reported by Assaf Gordon in
9267         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
9269 2016-12-10  Bruno Haible  <bruno@clisp.org>
9271         threadlib: Optimize out runtime test on Solaris >= 10.
9272         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
9273         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
9274         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
9276 2016-12-10  Bruno Haible  <bruno@clisp.org>
9278         stdint: Update doc about Solaris 9.
9279         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
9281 2016-12-09  Bruno Haible  <bruno@clisp.org>
9283         c-ctype tests: Fix link error on Solaris 9.
9284         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
9285         Reported at <https://savannah.gnu.org/bugs/?46827>.
9287 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
9289         dfa: fix performance bug that recomputes trans
9290         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
9291         25 on-demand changes.  The bug caused build_state to reset all
9292         d->trans elements to -2 even when d->trans was already non-null.
9293         Use C99 style decls after statements in this function.
9295         same-inode: port to MinGW
9296         Here st_ino is always 0, so change the definition of SAME_INODE so
9297         that 1 means the two files are the same, 0 with st_ino != 0 means
9298         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
9299         reported by Bruno Haible (Bug#25146).
9300         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
9301         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
9303 2016-12-04  Bruno Haible  <bruno@clisp.org>
9305         javacomp-script: Support Java 7 and 8.
9306         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
9307         target-version 1.7, 1.8.
9309 2016-12-02  Daiki Ueno  <ueno@gnu.org>
9311         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
9312         GPLv2" rewriting.
9314 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
9316         * gnulib-tool (func_import): Adhere to the license guideline when
9317         rewriting the license text to "LGPLv3+ or GPLv2":
9318         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
9320 2016-12-02  Bruno Haible  <bruno@clisp.org>
9322         localcharset: Avoid theoretical buffer overrun.
9323         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
9324         return value from setlocale if it would lead to a buffer overrun.
9326 2016-12-01  Bruno Haible  <bruno@clisp.org>
9328         Relicense some modules under LGPLv2+.
9329         Kevin Cernekee's approval is in
9330         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
9331         * modules/fseterr (License): Change to LGPLv2+.
9332         * modules/mbchar (License): Likewise.
9333         * modules/mbiter (License): Likewise.
9334         * modules/mbsnlen (License): Likewise.
9335         * modules/wcwidth (License): Likewise.
9337 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
9339         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
9340         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
9341         OS/2 kLIBC.
9343 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
9345         alphasort, scandir: Port to OS/2 kLIBC
9346         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
9347         declaration.
9348         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
9350 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
9352         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
9353         * lib/relocatable.c (relocate): Do not touch pathname if it is started
9354         with '/@unixroot'.
9356 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
9358         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
9359         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
9360         OS/2 kLIBC unless TCPV40HDRS is defined.
9362 2016-11-29  Jim Meyering  <meyering@fb.com>
9364         dfa: avoid new infinite loop
9365         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
9366         * lib/dfa.c (dfastate): When constructing a new state table, we could
9367         initially declare that we had found a match, and later find that
9368         constraints eliminate that possibility, yet continue to use the
9369         now stale "matched" indicator.  That would lead to an infinite loop.
9370         The solution is to update "matched" when necessary.
9371         Introduced by commit v0.1-983-g403adf1.
9373 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9375         dfa: avoid match middle in multibyte character
9376         * lib/dfa.c (transit_state): If fails in matching single byte characters
9377         on a state including period expression in non-UTF8 multibyte locales,
9378         skip trailing bytes.
9379         (dfa_supported): Revert previous change.
9381 2016-11-27  Jim Meyering  <meyering@fb.com>
9383         dfa: avoid false match in non-UTF8 multibyte locales
9384         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
9385         as "not supported" so that callers will resort to using regex-based
9386         matcher.  This will surely hurt performance, but correctness trumps
9387         performance here, and the affected locales are less and less relevant,
9388         these days.  See grep's bug report https://bugs.gnu.org/24975.
9390 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
9392         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
9393         * lib/ptsname_r.c: Include the appropriate headers.
9394         [__sun]: Delete sys/sysmacros.h include.
9395         [_AIX || __osf__]: Likewise.
9396         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
9398 2016-11-27  Pádraig Brady  <P@draigBrady.com>
9400         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
9401         * lib/md4.c (md4_process_bytes): The existing define is made internal
9402         in recent versions of glibc, so also use this new public define.
9403         * lib/md5.c (md5_process_bytes): Likewise.
9404         * lib/sha1.c (sha1_process_bytes): Likewise.
9405         * lib/sha256.c (sha256_process_bytes): Likewise.
9406         * lib/sha512.c (sha512_process_bytes): Likewise.
9408 2016-11-27  Pádraig Brady  <P@draigBrady.com>
9410         maint: use a more standard return from mbrtowc test
9411         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
9412         from the test program as this often indicates an
9413         unhandled case in the test program.
9414         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
9415         (gl_MBRTOWC_SANITYCHECK): Likewise.
9416         (gl_MBRTOWC_NULL_ARG2): Likewise.
9417         (gl_MBRTOWC_NUL_RETVAL): Likewise.
9419 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
9421         freopen: work around glibc bug with closed fd
9422         Work around glibc bug#15589, where freopen mishandles the case
9423         where stdin etc. are already closed.
9424         * doc/posix-functions/freopen.texi (freopen): Document the bug.
9425         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
9426         instead of __need_FILE, as the latter does not work with glibc.
9427         Include <fcntl.h>, for open flags.
9428         (rpl_freopen): Work around glibc bug.
9429         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
9430         * modules/freopen (Depends-on): Add fcntl-h.
9431         * tests/test-freopen.c (main): Test for bug.
9433 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9435         fnmatch: fix typo introduced on 2016-08-17
9436         This fixes the port to non-GCC compilers that lack __builtin_expect.
9437         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
9439         dfa: simplify with new function fillset
9440         * lib/dfa.c (fillset): New function.
9441         Use it for clarity when applicable.
9443         dfa: fix glitches with on-demand states
9444         Also, adjust commentary to better match new code.
9445         Some of these glitches predate the recent change.
9446         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
9447         only non-initial states.
9448         (dfastate): Rename locals to better match new roles.
9449         Move them into nested scopes if this is easy.
9450         Omit unnecessary calls to zeroset.
9451         Simplify test for whether to throw in the positions of state 0.
9452         Omit C99-ism (decl after statement) since Gawk still wants C89.
9453         (build_state): Omit unnecessary test and assignment.
9454         Fix some confusion that counted transition tables inaccurately
9455         and could cause a memory leak.
9456         (dfaexec_main): Redo to make it clearer to the compiler that
9457         -1 and -2 are the only negative state numbers here.
9459 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9461         dfa: addition of new state on demand
9462         * src/dfa.c (dfastate): Add argument UC, the current input character.
9463         Fill only a group including the character in transition table.
9464         (realloc_trans_if_necessary): Add the dummy state which means that a
9465         transition table is assigned but the next state is not assigned.
9466         (build_state): Return the next state.  All callers updated.
9467         (transit_state_singlebyte): If we get the dummy state,
9468         fill the transition table.
9469         (dfaexec_main): Handle the dummy state.
9470         (free_mbdata, dfafree): Consider the dummy state.
9472 2016-11-24  Daiki Ueno  <ueno@gnu.org>
9474         srclist: sync with released gettext
9475         * config/srclist.txt: Set "release" option to the files under
9476         $GETTEXT.
9478 2016-11-24  Daiki Ueno  <ueno@gnu.org>
9480         srclist: add "release" option
9481         * config/srclist.txt: Change the format so that the first column
9482         of each line points to the top-level directory of the source
9483         archive.
9484         * config/srclist-update: Accept "release" option that checks files
9485         from the most recently tagged revision in the source archive.
9487 2016-11-21  Bruno Haible  <bruno@clisp.org>
9489         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
9490         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
9491         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
9492         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
9493         Inline and remove member function 'rpl ()' of the wrapper struct.
9495 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
9497         dfa: fix logic typo
9498         Problem reported by Stephane Chazelas (Bug#24973).
9499         * lib/dfa.c (using_simple_locale): Fix typo that caused some
9500         non-simple locales like fr_FR to be treated as simple.
9502 2016-11-20  Jim Meyering  <meyering@fb.com>
9504         fix test driver leaks: exclude, malloc, realloc
9505         * tests/test-exclude.c (main): Fix trivial leak.
9506         * tests/test-malloc-gnu.c (main): Likewise.
9507         * tests/test-realloc-gnu.c (main): Likewise.
9508         With these changes, grep's tests are now leak free.
9509         I.e., running them with ASAN elicits no failure:
9510           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
9511             AM_LDFLAGS='-fsanitize=address -static-libasan' check
9513 2016-11-11  Bruno Haible  <bruno@clisp.org>
9515         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
9516         * modules/libunistring: (License): Change from LGPL to
9517         "LGPLv3+ or GPLv2".
9518         * modules/libunistring-optional: Likewise.
9519         * modules/unicase/*: Likewise.
9520         * modules/uniconv/*: Likewise.
9521         * modules/unictype/*: Likewise.
9522         * modules/unigbrk/*: Likewise.
9523         * modules/unilbrk/*: Likewise.
9524         * modules/uniname/*: Likewise.
9525         * modules/uninorm/*: Likewise.
9526         * modules/unistdio/*: Likewise.
9527         * modules/unistr/*: Likewise.
9528         * modules/uniwbrk/*: Likewise.
9529         * modules/uniwidth/*: Likewise.
9531 2016-11-12  Bruno Haible  <bruno@clisp.org>
9533         Relicense some modules under LGPLv2+.
9534         Paul Eggert's approval is in
9535         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
9536         Eric Blake's approval is in
9537         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
9538         Ludovic Courtès's approval is in
9539         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
9540         * modules/isnand-nolibm (License): Change to LGPLv2+.
9541         * modules/isnanf-nolibm (License): Likewise.
9542         * modules/isnanl-nolibm (License): Likewise.
9544 2016-11-19  Bruno Haible  <bruno@clisp.org>
9546         Relicense some modules under LGPLv2+.
9547         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
9548         modules/vasnprintf.
9549         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
9550         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
9551         All other significant changes to the files in lib/ of these modules
9552         are from me.
9553         * modules/memcmp2 (License): Change to LGPLv2+.
9554         * modules/amemxfrm (License): Likewise.
9555         * modules/fpieee (License): Likewise.
9556         * modules/fpucw (License): Likewise.
9557         * modules/frexp-nolibm (License): Likewise.
9558         * modules/frexpl-nolibm (License): Likewise.
9559         * modules/printf-frexp (License): Likewise.
9560         * modules/printf-frexpl (License): Likewise.
9561         * modules/printf-safe (License): Likewise.
9562         * modules/signbit (License): Likewise.
9564 2016-11-17  Bruno Haible  <bruno@clisp.org>
9566         Enable Unicode decoder safety unconditionally.
9567         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
9568         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
9569         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9570         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9571         * lib/unistr/u8-prev.c (u8_prev): Likewise.
9572         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
9573         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
9574         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
9575         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
9576         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
9577         * lib/unistr/u16-prev.c (u16_prev): Likewise.
9578         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
9579         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
9580         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
9581         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
9582         * lib/unistr/u32-prev.c (u32_prev): Likewise.
9583         * lib/unistr/u32-next.c (u32_next): Likewise.
9584         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
9585         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
9586         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
9587         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
9588         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
9589         CONFIG_UNICODE_SAFETY tests unconditionally.
9590         * tests/unistr/test-u32-mblen.c (main): Likewise.
9591         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
9592         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
9593         * tests/unistr/test-u32-next.c (main): Likewise.
9594         * tests/unistr/test-u32-strmblen.c (main): Likewise.
9595         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
9596         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
9597         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
9598         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
9599         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9600         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
9601         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
9602         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
9603         * lib/unistr/u16-check.c (u16_check): Update comment.
9604         * NEWS: Mention the changes that callers should be aware of.
9606 2016-11-19  Bruno Haible  <bruno@clisp.org>
9608         relocatable-prog-wrapper: Fix breakage on Cygwin.
9609         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
9610         (Depends-on): Remove intprops.
9611         * lib/relocwrapper.c: Update dependency tree.
9612         (strerror): Undefine.
9613         * build-aux/install-reloc (func_create_wrapper): Do not compile
9614         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
9616 2016-11-19  Bruno Haible  <bruno@clisp.org>
9618         strerror: Make it compile in C++ mode.
9619         * lib/strerror.c (strerror): Ignore the return value of memcpy().
9621 2016-11-15  Pedro Alves  <palves@redhat.com>
9623         sys_time: add gnulib::timeval for C++
9624         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
9625         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
9626         timeval macro.
9628 2016-11-14  Pedro Alves  <palves@redhat.com>
9630         snippet/c++defs: fix real-floating arg functions in C++ mode
9631         Also, define isfinite, isinf, isnan, signbit in the gnulib
9632         namespace instead of in the global namespace.
9633         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
9634         (_GL_END_NAMESPACE): New.
9635         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
9636         (isfinite, isinf, isnan, signbit) [__cplusplus &&
9637         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
9638         instead of in the global namespace.
9639         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
9640         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
9641         of in the global namespace.
9643 2016-11-13  Jim Meyering  <meyering@fb.com>
9645         strftime: don't use __THROW
9646         Each use of __THROW would provoke this from gcc-7-to-be:
9648           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
9649             on unit local functions [-Wattributes]
9650           static int iso_week_days (int, int) __THROW;
9651           ^~~~~~
9652         * lib/strftime.c (__THROW): Don't define.
9653         Remove each use of __THROW.
9654         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
9655         (tm_diff, iso_week_days, __strftime_internal): Likewise.
9657 2016-11-14  Paul Eggert  <eggert@union>
9659         obstack: port to gcc -fcheck-pointer-bounds
9660         Problem found by 'make check' failure on bleeding-edge coreutils
9661         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
9662         6.2.0-5ubuntu12), configured via "./configure
9663         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
9664         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
9665         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
9666         New macro, copied from fts_.h.
9667         (struct _obstack_chunk.contents): Use it.
9669 2016-11-14  Eric Blake  <eblake@redhat.com>
9671         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
9672         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
9673         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
9675 2016-11-14  Pádraig Brady  <P@draigBrady.com>
9677         strptime: fix compile error in recent change
9678         * lib/strptime.c (__strptime_internal): Fix ported code.
9680 2016-11-11  Bruno Haible  <bruno@clisp.org>
9682         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
9683         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
9684         (func_import): Extend determination of license_incompatibilities.
9685         (func_create_testdir): Extend table of license compatibility. Handle
9686         also the licenses GPLv3+, GPL, LGPLv3+.
9688 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
9690         strftime: tune %q
9691         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
9693         Merge strftime.c changes from glibc
9694         This incorporates:
9695         2007-10-16 [BZ #5184] Add tzset_called argument
9696         2008-06-13 [BZ #6612] pass reference to tzset_called around
9697         2009-10-30 Implement Burmese language locale for Myanmar
9698         2010-01-09 Add support for XPG7 testing
9699         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
9700         2015-10-20 Convert miscellaneous function definitions to prototype style
9701         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
9702         it anyway and this lessens the difference between gnulib and glibc.
9703         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
9704         (__THROW): Define if standard headers do not.
9705         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
9706         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
9707         Declare with __THROW.
9708         (__strftime_internal): Rename from strftime_case_. Add arg for
9709         whether tzset is called.  All uses changed.  Call tzset at most
9710         once.  Allow %OC, for Burmese.
9711         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
9712         Don't assume values are in range.
9714 2016-11-12  Eric Blake  <eblake@redhat.com>
9716         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
9717         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
9718         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
9719         different value.
9721 2006-11-12  Pedro Alves  <palves@redhat.com>
9723         Fix gnulib C++ namespace support and std::frexp
9724         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
9725         _GL_CXXALIASWARN.
9727 2006-11-12  Pedro Alves  <palves@redhat.com>
9729         GNULIB_NAMESPACE::func need not pull in rpl_func
9730         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
9731         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
9732         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
9733         struct instead of a function pointer.
9735 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
9737         manywarnings: fix -Wno-missing-field-initializers detection
9738         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
9739         to be independent of -Wunused-variable.  I.E. ensure the latter
9740         warning doesn't occur so that detection of the former is accurate.
9742 2016-11-05  Pádraig Brady  <pbrady@fb.com>
9744         strftime,strptime: support %q to represent the quarter
9745         * lib/strftime.c (strftime_case_): Add %q case.
9746         * lib/strptime.c (__strptime_internal): Likewise.
9747         * tests/test-strftime.c (quarter_test): A new test case.
9749 2016-11-03  Eric Blake  <eblake@redhat.com>
9751         bootstrap: Fix get_version() for AIX 5.3
9752         * build-aux/bootstrap (get_version): Factor out sed script, since
9753         indented comments choke AIX 5.3 sed.
9754         Reported-by: Michael Felt <aixtools@gmail.com>
9756 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
9758         intprops: port to older XL C
9759         Problem reported by Alexander Samoilov in:
9760         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
9761         http://savannah.nongnu.org/bugs/?49448
9762         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
9763         Define to 1 only for XL C 12.1 or later, since this bug
9764         occurs in XL C for AIX 6.0 but not in 12.1.
9766 2016-11-02  Pádraig Brady  <P@draigBrady.com>
9768         backupfile: initialize default suffix within the implementation
9769         * lib/backupfile.c (find_backup_file_name): Initialize the
9770         global variable here, to simplify usage, and to only call
9771         getenv() when needed.
9773 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9775         futimens: remove FIXME for old Linux kernels
9776         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
9777         this in 2012" FIXME, like that for utimensat.
9779         utimensat: remove FIXME for old Linux kernels
9780         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
9781         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
9782         this in 2012" FIXME, by assuming the file system bug is absent
9783         unless demonstrated to be present.  We no longer need to worry
9784         about Linux kernel 2.6.32 when building with newer kernels.
9786 2016-10-16  Bruno Haible  <bruno@clisp.org>
9788         qsort_r: Fix macrology for platforms that lack the function.
9789         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
9790         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
9791         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
9792         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
9793         not exist.
9794         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
9795         the function exists.
9796         * modules/qsort_r: Add comments.
9798 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9800         sys_types: fix Texinfo typos
9801         * doc/glibc-functions/gnu_dev_major.texi:
9802         * doc/glibc-functions/gnu_dev_makedev.texi:
9803         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
9805 2016-10-26  John David Anglin  <dave.anglin@bell.net>
9807         getprogname: port to HP-UX
9808         See Bug#24805.
9809         * lib/getprogname.c (getprogname) [__hpux]: Port.
9810         * tests/test-getprogname.c (STREQ) [__hpux]:
9811         Special-case for HP-UX limitations on program name length.
9813 2016-10-20  Bruno Haible  <bruno@clisp.org>
9815         Update doc about target platforms.
9816         * doc/gnulib-intro.texi (Target Platforms): Update list.
9818 2016-10-15  Bruno Haible  <bruno@clisp.org>
9820         opendir, readdir, closedir: Relicense under LGPLv2+.
9821         * modules/opendir (License): Change to LGPLv2+.
9822         * modules/readdir (License): Likewise.
9823         * modules/closedir (License): Likewise.
9825 2016-10-16  Bruno Haible  <bruno@clisp.org>
9827         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
9828         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
9829         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
9830         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
9831         HAVE_DECL_STRERROR_R.
9833 2016-10-16  Bruno Haible  <bruno@clisp.org>
9835         Make the 'argp' module work without the 'error' module.
9836         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
9838 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
9840         diffseq: restore TOO_EXPENSIVE heuristic
9841         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
9842         (Bug#24715).  The simplest solution is to restore the
9843         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
9844         using a higher threshold to avoid Bug#16848 on smaller files.
9845         * lib/diffseq.h (struct context): Restore member too_expensive.
9846         (struct partition): Restore members lo_minimal, hi_minimal.
9847         (diag, compareseq): Restore arg find_minimal.  All uses changed.
9848         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
9849         1993 to make 'diff' run faster (but not as well) on large inputs,
9850         but use a threshold of 4096 instead of the old 256.
9851         * lib/fstrcmp.c (strcmp_bounded):
9852         * lib/git-merge-changelog.c (compute_differences):
9853         Adjust to diffseq.h changes.
9855 2016-10-22  Bruno Haible  <bruno@clisp.org>
9857         iconv: Avoid compilation error when bootstrapping GNU libiconv.
9858         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
9859         declaration yet, define ICONV_CONST to empty.
9861 2016-10-15  Bruno Haible  <bruno@clisp.org>
9863         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
9864         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
9865         module.
9867 2016-10-16  Bruno Haible  <bruno@clisp.org>
9869         system-quote tests: Avoid compiler warning on AIX.
9870         * tests/test-system-quote-child.c (fopen): Redefine like the system's
9871         <stdio.h> does.
9873 2016-10-16  Bruno Haible  <bruno@clisp.org>
9875         Fix some "gcc -Wall" warnings.
9876         * tests/test-ffsl.c (main): Use variable x, not i.
9877         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
9878         freopen.
9879         * tests/test-sethostname1.c (main): Explicitly ignore the return value
9880         of sethostname.
9882 2016-10-16  Bruno Haible  <bruno@clisp.org>
9884         gnulib-tool: Make --create-testdir on all modules work again.
9885         * gnulib-tool (func_create_testdir): Don't include the
9886         non-recursive-gnulib-prefix-hack module.
9888 2016-10-21  Daiki Ueno  <ueno@gnu.org>
9890         libunistring: change the maintainer to 'all'
9891         * modules/gen-uni-tables, modules/libunistring:
9892         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
9893         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
9894         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
9895         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
9896         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
9897         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
9898         * modules/uniwidth/*: Change the maintainer to 'all'.
9900 2016-10-16  Bruno Haible  <bruno@clisp.org>
9902         Simplify "configure: checking ..." messages.
9903         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
9904         AC_MSG_NOTICE.
9905         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9907 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
9909         quotearg-tests: pacify gcc -Wall
9910         Problem reported by Bruno Haible in:
9911         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
9912         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
9913         * tests/test-quotearg.h: ... from here.
9915 2016-10-20  Pádraig Brady  <P@draigBrady.com>
9917         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
9918         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
9919         Needed on Centos <= 4.
9921 2016-10-20  Jim Meyering  <meyering@fb.com>
9923         printf.m4: fix a bug in detecting printf %j support
9924         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
9925         uintmax_t is defined in neither stdint.h nor inttypes.h.
9926         Before, this macro might have mistakenly set
9927         gl_cv_func_printf_sizes_c99=yes on such a system.
9928         Spotted by Zev Weiss.
9930 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
9932         sched: substitute HAVE_SYS_CDEFS_H too
9933         Problem reported by Tom G. Christensen in:
9934         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
9935         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
9936         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
9938 2016-10-19  Pádraig Brady  <P@draigBrady.com>
9940         quotearg: never write beyond the returned length
9941         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
9942         scan of the string when we initially encounter a single quote when
9943         shell quoting, so that if we then switch to a more concise quoting method
9944         we will not have written beyond that returned length.
9945         This is significant for sh-quote, which has separate routines
9946         to determine the length and do the actual quoting.
9947         * tests/test-quotearg.h: Reinstate the buffer bounds checking
9948         now that we never write more than the returned length.
9950 2016-10-18  Bruno Haible  <bruno@clisp.org>
9952         getprogname tests: Avoid failure in packages that use libtool.
9953         * tests/test-getprogname.c (main): Strip "lt-" prefix.
9954         Based on a patch by Jim Meyering.
9956 2016-10-16  Bruno Haible  <bruno@clisp.org>
9958         getprogname: Fix test failure on Cygwin. Comments.
9959         * lib/getprogname.h: Add comments.
9960         * lib/getprogname.c: Add comments. Fix #elif indentation.
9961         * tests/test-getprogname.c (main): On Cygwin, expect a result without
9962         ".exe" suffix.
9964 2016-10-16  Bruno Haible  <bruno@clisp.org>
9966         Make sure the libunistring detection rejects older versions with a
9967         known bug.
9968         * modules/unistr/u8-strtok (configure.ac): Bump required version.
9969         * modules/unistr/u16-strtok (configure.ac): Likewise.
9970         * modules/unistr/u32-strtok (configure.ac): Likewise.
9972 2016-10-18  Bruno Haible  <bruno@clisp.org>
9974         sh-quote, system-quote: revert regression of unit test.
9975         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
9976         * tests/test-system-quote-main.c (check_one): Likewise.
9978 2016-10-16  Pádraig Brady  <P@draigBrady.com>
9980         quotearg: fix stale tests
9981         * tests/test-quotearg.c [locale_results]: Add the missing str7
9982         entries to the expected results.
9983         * tests/test-system-quote-main.c (check_one): Don't enforce that we
9984         don't write beyond the returned length, since that's no longer the
9985         case if we switch to a more concise quoting style.
9986         * tests/test-sh-quote.c (check_one): Likewise.
9987         (main): Adjust for the new more concise quoting style.
9988         Reported by Bruno Haible.
9990 2016-10-16  Jim Meyering  <meyering@fb.com>
9992         non-recursive-gnulib-prefix-hack: fix inconsequential typo
9993         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
9994         to "$1".  This macro is always invoked with $1 == lib.
9995         Spotted by Bruno Haible
9997 2016-10-16  Bruno Haible  <bruno@clisp.org>
9999         Fix a test crash.
10000         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
10001         fails.
10003 2016-10-16  Pádraig Brady  <P@draigBrady.com>
10005         test-limits-h: suppress -Woverlength-strings
10006         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
10008 2016-10-15  Bruno Haible  <bruno@clisp.org>
10010         gettime, timespec, utimens: Relicense under LGPL.
10011         * modules/gettime (License): Change to LGPL.
10012         * modules/timespec (License): Likewise.
10013         * modules/utimens (License): Likewise.
10015 2016-10-14  Bruno Haible  <bruno@clisp.org>
10016             Pádraig Brady  <P@draigBrady.com>
10018         canonicalize-lgpl: Support the case path_max > INT_MAX.
10019         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
10020         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
10022 2016-10-13  Jim Meyering  <meyering@fb.com>
10024         getprogname: IBM z/OS: avoid NULL-dereference
10025         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
10026         upon strdup failure.
10028 2016-10-12  Jim Meyering  <meyering@fb.com>
10030         test-stdint: use _GL_VERIFY rather than "verify" for some tests
10031         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
10032         and an abbreviated diagnostic rather than verify with the full one,
10033         because the full-length strings would evoke warnings from gcc with
10034         -Woverlength-strings.
10036 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10038         stdint: port SIZE_MAX to glibc s390
10039         Problem reported by Eric Blake in:
10040         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
10041         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
10042         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
10043         correct type, if possible.
10045 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
10047         getprogname: port to IBM z/OS
10048         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
10050 2016-10-11  Jim Meyering  <meyering@fb.com>
10052         maint: remove stray space after "." in AC_DEFINE comment.
10053         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
10054         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10056 2016-10-05  Jim Meyering  <meyering@fb.com>
10058         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
10059         * lib/long-options.c (parse_long_options): Add a break statement
10060         to avoid this new warning/failure:
10061         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
10062           --create-testdir --dir=/t/x --with-tests --test long-options
10063         ../../gllib/long-options.c: In function 'parse_long_options':
10064         ../../gllib/long-options.c:66:12: error: this statement may \
10065           fall through [-Werror=implicit-fallthrough]
10066                    (*usage_func) (EXIT_SUCCESS);
10067                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
10069 2016-10-05  Jim Meyering  <meyering@fb.com>
10071         utimecmp: avoid new GCC 7 warning from -Wbool-operation
10072         Testing this module would fail when using GCC 7 like this:
10073         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
10074           --dir=/tmp/x --with-tests --test utimecmp
10075         ../../gllib/utimecmp.c: In function ‘utimecmp’:
10076         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
10077           [-Werror=bool-operation]
10078                          time_t s = src_s & ~ (res == 2 * BILLION);
10079                                             ^
10080         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
10081           [-Werror=bool-operation]
10082                src_s &= ~ (res == 2 * BILLION);
10083                         ^
10084         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
10085         Instead, make it explicit that we intend to apply it to 0 or 1.
10087 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10089         dfa: save memory for states
10090         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
10091         states if dfa has a lot of caches.
10093 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
10095         wchar, wctype-h: fix for MinGW 3.22.2
10096         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
10097         special invocation, to fix issues with MinGW 3.22.2 wchar.h
10098         when included from <string.h>.
10099         * lib/wctype.in.h [__MINGW32__]: Add special invocation
10100         convention for MinGW 3.22.2, to solve issues with their
10101         wctype.h when included from <ctype.h>.
10103 2016-10-05  Jim Meyering  <meyering@fb.com>
10105         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
10106         * lib/long-options.c (parse_long_options): Add a break statement
10107         to avoid this new warning/failure:
10108         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
10109           --create-testdir --dir=/t/x --with-tests --test long-options
10110         ../../gllib/long-options.c: In function ‘parse_long_options’:
10111         ../../gllib/long-options.c:66:12: error: this statement may \
10112           fall through [-Werror=implicit-fallthrough]
10113                    (*usage_func) (EXIT_SUCCESS);
10114                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
10116         utimecmp: avoid new GCC 7 warning from -Wbool-operation
10117         Testing this module would fail when using GCC 7 like this:
10118         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
10119           --dir=/tmp/x --with-tests --test utimecmp
10120         ../../gllib/utimecmp.c: In function ‘utimecmp’:
10121         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
10122           [-Werror=bool-operation]
10123                          time_t s = src_s & ~ (res == 2 * BILLION);
10124                                             ^
10125         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
10126           [-Werror=bool-operation]
10127                src_s &= ~ (res == 2 * BILLION);
10128                         ^
10129         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
10130         Instead, make it explicit that we intend to apply it to 0 or 1.
10132 2016-10-03  Pádraig Brady  <P@draigBrady.com>
10134         quotearg: minimize shell quoting using double quotes
10135         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
10136         quote in encountered then use double quotes (c style quoting)
10137         when possible, as it simplifies the quoting.
10138         * tests/test-quotearg-simple.c: Add test cases.
10139         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
10140         for the fact we now may write beyond the returned length.
10142 2016-10-02  Jim Meyering  <meyering@fb.com>
10144         vasnprintf.c: avoid spurious warning from GCC 7
10145         The presence of cpp directives renders this "FALLTHROUGH" comment
10146         ineffective, so does not suppress the -Wimplicit-fallthrough warning
10147         from GCC 7 built from git on 2016-10-02.
10148         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
10149         directives, so that it takes effect once again.  This is clearly
10150         not a proper change, and I will revert it once this bug is fixed:
10151         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
10153 2016-10-01  Jim Meyering  <meyering@fb.com>
10155         getprogname: correct the test for a __progname variable
10156         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
10157         and AC_LINK_IFELSE to check for a global __progname.  If found,
10158         define HAVE_VAR___PROGNAME.
10159         * lib/getprogname.c (getprogname): Reflect the new name of the
10160         feature- checked preprocessor symbol:
10161         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
10163 2016-09-28  Jim Meyering  <meyering@fb.com>
10165         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
10166         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
10167         fall-through case with a /* fallthrough */ comment.
10169         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
10170         * lib/dfa.c (dfassbuild): Mark the end of this case with a
10171         /* fallthrough */ comment.
10173         getprogname: avoid __progname vs program_invocation_short_name pitfall
10174         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
10175         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
10176         not with Fedora 24's glibc-2.23.1-10.
10177         * lib/getprogname.c (__progname): Move this declaration down...
10178         (getprogname): ... into the #elif block where used, and make it
10179         explicitly "extern".
10181         getprogname: port to OpenBSD 5.1
10182         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
10183         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
10184         * modules/getprogname (configure.ac): Move most of this code...
10185         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
10186         increment serial number, and add a test for __progname.
10187         https://bugs.gnu.org/24562
10188         Reported by Nelson H. F. Beebe.
10190 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10192         sched: port to GCC 6.2.1 on macOS Sierra
10193         Problem reported by Denis Davydov in:
10194         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
10195         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
10196         Include <sys/cdefs.h> before <sched.h>.
10197         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
10198         so that we needn’t worry about the sched.h include bug here.
10199         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
10200         and include it before <sched.h> if it exists, when
10201         checking for <sched.h>.
10203         tests/init.sh: port Alpine fix to AIX 7.1
10204         * tests/init.sh (compare_): When attempting to use diff -U3,
10205         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
10206         diff -u not outputting a space after leading '+', as the users
10207         of 'compare' should not be that picky about its output format.
10208         In the AIX 7.1 case, return with diff exit status (or with 2 if
10209         trouble), instead of some random nonzero exit status.
10210         * tests/test-init.sh (test_compare): Remove space after leading
10211         '+', so that AIX 7.1 'diff' passes the test.
10213 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10215         nl_langinfo: pacify GCC
10216         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
10217         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
10219         stdint: also set GL_GENERATE_LIMITS_H
10220         Problem reported by Jim Meyering in:
10221         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
10222         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
10224         limits-h, stdint: Don't assume extensions, fix typo
10225         * m4/limits-h.m4 (gl_LIMITS_H):
10226         * m4/stdint.m4 (gl_STDINT_H):
10227         Don't assume AC_USE_SYSTEM_EXTENSIONS.
10228         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
10229         reported by Jim Meyering in:
10230         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
10232 2016-09-21  Jim Meyering  <meyering@fb.com>
10234         getprogname: port to AIX
10235         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
10236         and strdup to obtain a short program name string.  Using code from
10237         Bruno Haible and an idea from Bastien ROUCARIÈS, in
10238         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
10239         Assaf Gordon reported that this new file would fail to compile on
10240         AIX-7.1 32bit.
10242 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
10244         extensions: fix typo in comment
10245         * m4/extensions.m4: Sync from Autoconf master.
10247         stdint: support new _WIDTH macros
10248         * doc/posix-headers/stdint.texi: Document this.
10249         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
10250         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
10251         support for INTMAX_WIDTH, etc. as well as for support for just C99.
10252         * modules/stdint (Depends-on): Add limits-h.
10253         (Makefile.am): Substitute HAVE_C99_STDINT_H.
10254         * modules/stdint-tests (Depends-on): Add extensions, so that
10255         INTMAX_MAX etc. are defined.
10256         * tests/test-stdint.c: Verify the new macros.
10258         limits-h: new module
10259         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
10260         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
10261         * doc/posix-headers/limits.texi: Document new module.
10262         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
10263         * modules/limit-h-tests, tests/test-limits-h.c: New files.
10265         stdio: don't redefine __USE_MINGW_ANSI_STDIO
10266         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
10267         if it is already defined.  Apparently GNU Emacs relies on this.  See:
10268         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
10270 2016-09-15  Eric Blake  <eblake@redhat.com>
10272         sys_types: avoid glibc 2.25 warnings about major()
10273         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
10274         older autoconf.
10275         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
10276         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
10277         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
10278         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
10280         mountlist: include sysmacros.h for glibc
10281         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
10282         AC_HEADER_MAJOR.
10283         * lib/mountlist.c (includes): Use correct headers.
10285 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
10287         extensions: port to more ISO C TSes
10288         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
10289         master, to add support for more recent ISO C TRs and TSes.
10291 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10293         intprops: new macro TYPE_WIDTH
10294         * lib/intprops.h (TYPE_WIDTH): New macro.
10295         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
10296         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
10297         * lib/parse-datetime.y (parse_datetime2):
10298         Use it.
10300         extensions: port to recent ISO C TRs
10301         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
10302         Sync from Autoconf master, to add support for recent ISO C TRs.
10303         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
10304         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
10305         the MinGW option is not an extension.
10307 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
10309         dfa: port to Solaris 9
10310         Problems reported by Tom G. Christensen in:
10311         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
10312         * modules/dfa (Depends-on): Add isblank.
10313         * modules/dfa-tests (dfa_match_aux_LDADD):
10314         Rename from test_stat_LDADD, to fix typo.
10315         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
10317 2016-09-10  Jim Meyering  <meyering@fb.com>
10319         strverscmp: avoid link failure on OS X
10320         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
10321         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
10323 2016-08-16  Jim Meyering  <meyering@fb.com>
10325         dfa: new module, importing grep's DFA matcher
10326         Since grep's DFA matcher is now being used by two gnulib-enabled
10327         projects, grep and sed, it makes sense to version-control its
10328         sources and unit tests in one place: here.
10329         * modules/dfa: New module.
10330         * modules/dfa-tests: New file.
10331         * lib/dfa.c: New file, from grep.
10332         * lib/dfa.h: Likewise.
10333         * lib/localeinfo.c: Likewise.
10334         * lib/localeinfo.h: Likewise.
10335         * tests/dfa-match-aux.c: Likewise.
10336         * tests/dfa-invalid-char-class.sh: Likewise.
10337         * tests/dfa-match.sh: Likewise, with minor changes.
10338         * MODULES.html.sh (Misc): Add "dfa" to this list.
10340 2016-09-09  Jim Meyering  <meyering@fb.com>
10342         getprogname-tests: don't depend on assert-h
10343         * modules/getprogname-tests (Depends-on): Remove assert-h.
10344         It was not needed, and in fact would cause build failure for
10345         coreutils on some systems.  Reported by Assaf Gordon in https:
10346         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
10348 2016-09-07  Jim Meyering  <meyering@fb.com>
10350         getprogname-tests: work also when EXEEXT is nonempty
10351         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
10352         * tests/test-getprogname.c (main): Use it.
10353         Suggested by Gisle Vanem.
10355 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
10357         getprogname: fix errors in previous change
10358         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
10359         s/program_invocation_name/base/
10360         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
10362 2016-09-08  Pádraig Brady  <P@draigBrady.com>
10364         parse-datetime: restrict debug output to input string
10365         * lib/parse-datetime.y (parse_datetime2): If we parse
10366         all of the input but determine it's invalid, ensure
10367         we don't output the now invalid input pointer.
10368         This issue was seen with `date -d 'now +1'`.
10370 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
10372         flexmember: new macro FLEXALIGNOF
10373         * lib/flexmember.h: Include <stddef.h>, for offsetof.
10374         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
10375         this macro.  Update comments.
10377 2016-09-07  Jim Meyering  <meyering@fb.com>
10379         getprogname: port to systems with __argv (mingw, msvc)
10380         * lib/getprogname.c (getprogname): Include "dirname.h" and use
10381         last_component: more general than open coding it with hard-coded "/".
10382         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
10383         * modules/getprogname (Depends-on): Add dirname-lgpl.
10384         (configure.ac): Check for __argv in <stdlib.h>.
10385         * modules/getprogname-tests: New file.
10386         * tests/test-getprogname.c: New file.
10387         Suggested by Gisle Vanem in
10388         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
10390 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
10392         flexmember: port better to GCC + valgrind
10393         With a char[] flexible array member in a struct with nontrivial
10394         alignment, GCC-generated code can access past the end of the
10395         array, because GCC assumes there are padding bytes to get the
10396         struct aligned.  So the common idiom of malloc (offsetof (struct
10397         s, m), n) does not properly allocate an n-byte trailing member, as
10398         malloc’s argument should be the next multiple of alignof (struct s).
10399         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
10400         Although C11 apparently permits this GCC optimization (i.e., there
10401         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
10402         See the thread containing:
10403         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
10404         * lib/flexmember.h: New file.
10405         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
10406         * lib/localename.c, lib/time_rz.c:
10407         Include flexmember.h.
10408         * lib/fnmatch_loop.c (struct patternlist):
10409         * lib/localename.c (struct hash_node):
10410         Use FLEXIBLE_ARRAY_MEMBER.
10411         * lib/fnmatch_loop.c (EXT):
10412         * lib/fts.c (fts_alloc):
10413         * lib/glob.c (glob_in_dir):
10414         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
10415         * lib/localename.c (gl_lock_define_initialized):
10416         * lib/time_rz.c (tzalloc):
10417         Use FLEXSIZEOF instead of offsetof.
10418         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
10419         Check that the size of the struct can be taken.
10420         * modules/flexmember (Files): Add lib/flexmember.h.
10421         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
10422         Add flexmember.
10424 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
10426         getprogname: port to Solaris 10
10427         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
10428         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
10429         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
10431         stdalign: correct mistake in alignof doc
10432         Problem reported by Joseph Myers in:
10433         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
10434         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
10435         alignof(S) where S is a structure containing a flexible array
10436         member.  The Gnulib substitute does not support this, but C11 does.
10438 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
10440         main.mk: remove sc_program_name, since there is no more need to
10441         use set_program_name in tools (getprogname is enough for most
10442         of the cases).
10443         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
10444         * top/maint.mk (sc_program_name): Remove.
10446 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
10448         Port tests away from progname, since modules that need the
10449         program name already depend on getprogname.
10450         * modules/acl-tests (Depends-on): Remove progname.
10451         * modules/argmatch (Depends-on): Likewise.
10452         * modules/argmatch-tests (Depends-on): Likewise.
10453         * modules/argp-tests (Depends-on): Likewise.
10454         * modules/argp-version-etc-tests (Depends-on): Likewise.
10455         * modules/array-list-tests (Depends-on): Likewise.
10456         * modules/array-oset-tests (Depends-on): Likewise.
10457         * modules/avltree-list-tests (Depends-on): Likewise.
10458         * modules/avltree-oset-tests (Depends-on): Likewise.
10459         * modules/avltreehash-list-tests (Depends-on): Likewise.
10460         * modules/carray-list-tests (Depends-on): Likewise.
10461         * modules/copy-file-tests (Depends-on): Likewise.
10462         * modules/exclude-tests (Depends-on): Likewise.
10463         * modules/fchownat-tests (Depends-on): Likewise.
10464         * modules/fdopendir-tests (Depends-on): Likewise.
10465         * modules/filenamecat-tests (Depends-on): Likewise.
10466         * modules/fstatat-tests (Depends-on): Likewise.
10467         * modules/fstrcmp-tests (Depends-on): Likewise.
10468         * modules/linked-list-tests (Depends-on): Likewise.
10469         * modules/linkedhash-list-tests (Depends-on): Likewise.
10470         * modules/mkdirat-tests (Depends-on): Likewise.
10471         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
10472         * modules/nonblocking-socket-tests (Depends-on): Likewise.
10473         * modules/obstack-printf-tests (Depends-on): Likewise.
10474         * modules/openat-tests (Depends-on): Likewise.
10475         * modules/parse-datetime-tests (Depends-on): Likewise.
10476         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
10477         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
10478         * modules/quotearg-simple-tests (Depends-on): Likewise.
10479         * modules/quotearg-tests (Depends-on): Likewise.
10480         * modules/rbtree-list-tests (Depends-on): Likewise.
10481         * modules/rbtree-oset-tests (Depends-on): Likewise.
10482         * modules/rbtreehash-list-tests (Depends-on): Likewise.
10483         * modules/spawn-pipe-tests (Depends-on): Likewise.
10484         * modules/system-quote-tests (Depends-on): Likewise.
10485         * modules/uniname/uniname-tests (Depends-on): Likewise.
10486         * modules/uninorm/nfc-tests (Depends-on): Likewise.
10487         * modules/uninorm/nfd-tests (Depends-on): Likewise.
10488         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
10489         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
10490         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
10491         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
10492         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
10493         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
10494         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
10495         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
10496         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
10497         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
10498         * modules/unlinkat-tests (Depends-on): Likewise.
10499         * modules/version-etc-tests (Depends-on): Likewise.
10500         * modules/xalloc-die-tests (Depends-on): Likewise.
10501         * modules/xmemdup0-tests (Depends-on): Likewise.
10502         * modules/xprintf-posix-tests (Depends-on): Likewise.
10503         * modules/xvasprintf-tests (Depends-on): Likewise.
10504         * tests/test-argmatch.c: Do not include progname.h.
10505         (main) Stop calling set_program_name.
10506         * tests/test-argp-version-etc.c: Likewise.
10507         * tests/test-argp.c: Likewise.
10508         * tests/test-argv-iter.c: Likewise.
10509         * tests/test-array_list.c: Likewise.
10510         * tests/test-array_oset.c: Likewise.
10511         * tests/test-avltree_list.c: Likewise.
10512         * tests/test-avltree_oset.c: Likewise.
10513         * tests/test-avltreehash_list.c: Likewise.
10514         * tests/test-carray_list.c: Likewise.
10515         * tests/test-copy-acl.c: Likewise.
10516         * tests/test-copy-file.c: Likewise.
10517         * tests/test-exclude.c: Likewise.
10518         * tests/test-fchownat.c: Likewise.
10519         * tests/test-fdopendir.c: Likewise.
10520         * tests/test-filenamecat.c: Likewise.
10521         * tests/test-fstatat.c: Likewise.
10522         * tests/test-fstrcmp.c: Likewise.
10523         * tests/test-linked_list.c: Likewise.
10524         * tests/test-linkedhash_list.c: Likewise.
10525         * tests/test-mkdirat.c: Likewise.
10526         * tests/test-nonblocking-pipe-main.c: Likewise.
10527         * tests/test-nonblocking-socket-main.c: Likewise.
10528         * tests/test-obstack-printf.c: Likewise.
10529         * tests/test-openat.c: Likewise.
10530         * tests/test-parse-datetime.c: Likewise.
10531         * tests/test-pipe-filter-gi1.c: Likewise.
10532         * tests/test-pipe-filter-gi2-main.c: Likewise.
10533         * tests/test-pipe-filter-ii1.c: Likewise.
10534         * tests/test-pipe-filter-ii2-main.c: Likewise.
10535         * tests/test-quotearg-simple.c: Likewise.
10536         * tests/test-quotearg.c: Likewise.
10537         * tests/test-rbtree_list.c: Likewise.
10538         * tests/test-rbtree_oset.c: Likewise.
10539         * tests/test-rbtreehash_list.c: Likewise.
10540         * tests/test-sameacls.c: Likewise.
10541         * tests/test-set-mode-acl.c: Likewise.
10542         * tests/test-spawn-pipe-main.c: Likewise.
10543         * tests/test-system-quote-main.c: Likewise.
10544         * tests/test-unlinkat.c: Likewise.
10545         * tests/test-version-etc.c: Likewise.
10546         * tests/test-xalloc-die.c: Likewise.
10547         * tests/test-xfprintf-posix.c: Likewise.
10548         * tests/test-xmemdup0.c: Likewise.
10549         * tests/test-xprintf-posix.c: Likewise.
10550         * tests/test-xvasprintf.c: Likewise.
10551         * tests/uniname/test-uninames.c: Likewise.
10552         * tests/uninorm/test-u32-nfc-big.c: Likewise.
10553         * tests/uninorm/test-u32-nfd-big.c: Likewise.
10554         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
10555         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
10556         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10557         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10558         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10559         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10560         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10561         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10562         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10563         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10564         * tests/test-c-stack.c: (program_name): Do not define.
10565         (main): Do not set program_name.
10566         * tests/test-closein.c: Likewise.
10567         * tests/test-xstrtol.c: Likewise.
10568         * tests/test-yesno.c: Likewise.
10570 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
10572         Port modules to use getprogname explicitly, instead of requiring
10573         progname to be used (or program_name to be provided).
10574         * lib/argmatch.c: Do not include progname.h.
10575         [TEST] (program_name): Do not define.
10576         [TEST] (main): Call getprogname instead of using program_name.
10577         * lib/c-stack.c: Do not include progname.h.
10578         (program_name): Do not define.
10579         (die): Call getprogname instead of using program_name.
10580         * lib/chdir-long.c: Do not include progname.h.
10581         [TEST_CHDIR] (main): Do not set program_name.
10582         * lib/error.c [!_LIBC]: Include progname.h.
10583         [!_LIBC] (program_name): Define using getprogname.
10584         * lib/euidaccess.c: Do not include progname.h.
10585         [TEST] (main): Do not set program_name.
10586         * lib/git-merge-changelog.c: Include getprogname.h instead of
10587         progname.h.
10588         (usage): Call getprogname instead of using program_name.
10589         (main): Likewise.  Stop calling set_program_name.
10590         * lib/group-member.c: Do not include progname.h.
10591         [TEST] (main): Do not set program_name.
10592         * modules/argmatch (Depends-on): Add getprogname.
10593         * modules/c-stack (Depends-on): Likewise.
10594         * modules/error (Depends-on): Likewise.
10595         * modules/git-merge-changelog (Depends-on): Likewise.
10596         Also remove progname.
10598 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
10600         * NEWS: Document the deprecation of the 'progname' module.
10602 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
10604         getprogname: new module
10605         This provides a LGPL module for getting the name of the current
10606         program, using the same API found on *BSD systems.
10607         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
10608         * modules/getprogname: New files.
10609         * MODULES.html.sh (Misc): Add getprogname.
10611 2016-09-02  Jim Meyering  <meyering@fb.com>
10613         manywarnings: add -fno-common
10614         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
10615         to the list.  Quoting the manual, "Compiling with -fno-common is
10616         useful on targets for which it provides better performance, or if
10617         you wish to verify that the program will work on other systems that
10618         always treat uninitialized variable declarations this way [putting
10619         it in the data section]."  If diffutils had been using this sooner,
10620         it would have prevented this duplicate declaration issue:
10621         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
10623 2016-08-31  Simon Josefsson  <simon@josefsson.org>
10625         parse-datetime: Fix typo.
10626         * lib/parse-datetime.y (parse_datetime2): Fix typo.
10628 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10630         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
10631         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
10632         GCC 5 and 6 that have __builtin_sub_overflow but not
10633         __builtin_sub_overflow_p.  With the recent changes, these
10634         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
10635         implementation than with INT_SUBTRACT_OVERFLOW implementation,
10636         since the former needs just one runtime comparison whereas the
10637         latter needs two.
10639         strverscmp: sync with glibc
10640         Although this doesn't exactly synchronize with glibc
10641         byte-for-byte, it makes the code behave the same as glibc.
10642         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
10643         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
10644         difference shouldn't matter in practical use.  All uses changed
10645         back to isdigit.
10646         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
10647         (next_state): Now unsigned char array; redo elements.
10648         (result_type): Now signed char array; redo elements.
10649         (__strverscmp): Fix glibc bug 9913 by using new states.
10650         * tests/test-strverscmp.c (main): Test glibc bug 9913.
10652 2016-08-29  Jim Meyering  <meyering@fb.com>
10654         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
10655         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
10656         similarly to how it was done to intprops.h.
10658 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10660         intprops.h: port recent changes to GCC 6.2.0
10661         * lib/intprops.h (__has_builtin): Move earlier.
10662         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
10663         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
10664         the last argument can be null.  All uses changed.
10665         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
10666         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
10667         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
10668         and it's not clear which GCC versions it works for.
10669         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
10670         its definiens.
10672         intprops.h: use __typeof__ with GCC 7
10673         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
10674         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
10675         This avoids computing the expression's value (which might overflow!).
10677 2016-08-29  Jim Meyering  <meyering@fb.com>
10679         intprops.h, xalloc-oversized.h: work with gcc 7
10680         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
10681         __builtin_mul_overflow each accept a NULL pointer as the third
10682         argument.  However in gcc 7, that is no longer accepted.
10683         Instead, one must use the "_p"-suffixed names, with which, the
10684         third parameter is no longer a pointer.
10685         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
10686         the definition: not true for gcc 7 and subsequent.
10687         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
10688         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
10689         Provide new definitions for gcc 7 and subsequent.
10690         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
10691         that works with gcc-7.
10693         intprops.h: fix missing-backslash problems
10694         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
10695         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
10697 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10699         intprops: fix paren typo on old platforms
10700         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
10701         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
10702         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
10703         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
10704         && !defined LLONG_MAX]:
10705         Remove stray paren.
10707         intprops: port to OpenVMS
10708         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
10709         * doc/posix-headers/limits.texi: Document the problem.
10710         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
10711         Define if not already defined.
10713 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
10715         parse-datetime: improve debug implementation
10716         Follow-up to commit 12ad79069 ("add optional debug printing").
10717         Improve parse-datetime's debug implementation: remove macros,
10718         replace global debug flag variable with a function parameter,
10719         use nstrftime for formatting.
10720         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
10721         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
10722         (parse_datetime2): New function, accepts 'flags' parameter, supporting
10723         debug flag. Existing interface 'parse_datetime' left unmodified.
10724         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
10725         (struct parser_control): add 'parse_datetime_debug' member variable.
10726         (parse_datetime): Call new function 'parse_datetime2' without debug.
10727         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
10728         pc.parse_datetime_debug variable as needed.
10729         (to_year): Accept new flags parameter, instead of using global variable.
10730         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
10731         use struct 'debug' variable instead of global variable.
10732         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
10733         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
10734         correspnding functions directly instead of using macros.
10735         * modules/parse-datetime: Add gnulib's strftime module.
10737 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
10739         c-strcase-tests: port to EBCDIC
10740         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
10741         which assume ASCII encoding semantics to run only in ASCII
10742         mode, as they fail in EBCDIC.
10744         sigpipe-tests: fix typo
10745         * tests/test-sigpipe.sh: C, not B.
10747 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10749         canonicalize-lgpl: fix errno after malloca fails
10750         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
10751         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
10752         * lib/canonicalize-lgpl.c (__realpath):
10753         Don't assume malloca sets errno on failure.
10755 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
10757         strtod: port errno handling to z/OS
10758         * lib/strtod.c (strtod): Save and restore errno more reliably.
10760 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
10762         strtod: port to z/OS
10763         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
10764         implementation.
10766 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
10768         strtod: port to z/OS
10769         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
10770         implementation.
10772         regex, string: rename to avoid '__string'
10773         * lib/regex.h, lib/string.in.h: Do not use the identifier
10774         '__string', as it is effectively reserved by string.h on z/OS.
10776         c-strcase-tests, wcwidth-tests: depend on c-ctype
10777         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
10778         Add c-ctype.
10780 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
10782         thread: port to z/OS
10783         * lib/glthread/thread.c, lib/glthread/thread.h:
10784         Rudimentary gl_thread support for z/OS.
10786         maint: port tests to z/OS errno behavior
10787         * tests/test-nonblocking-reader.h:
10788         * tests/test-nonblocking-writer.h:
10789         Accommodate z/OS errno code preferences. (I believe this should
10790         still be within spec; IBM is good at following the letter if not
10791         the spirit of such things.)
10793         maint: preprocessor changes to support z/OS
10794         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
10795         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
10796         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
10797         * tests/test-nonblocking-pipe.h:
10799         fclose, strstr-simple, wchar: port to z/OS
10800         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
10801         Changes to the Autoconf M4 code to support z/OS.  Note that
10802         fclose() is broken in a different way on z/OS than it is on other
10803         systems, thus the special-case in fclose.m4.
10805         iconv_open-utf-tests, iconv-tests: port to EBCDIC
10806         * tests/test-iconv-utf.c, tests/test-iconv.c:
10807         Added appropriately conditional #pragmas so that the test strings
10808         in test-iconv-utf.c are correctly interpreted in ASCII instead of
10809         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
10810         addressed in a more portable way by simply rewriting all the ASCII
10811         literal characters as octal escapes, but then you would lose the
10812         partial readability that the strings have now. Also, iconv_open()
10813         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
10815         c-strcase-tests, wcwidth-tests: port to EBCDIC
10816         * tests/test-c-strcasecmp.c: Include c-ctype.h.
10817         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
10818         * tests/test-wcwidth.c: Likewise.
10820 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
10822         stdbool: don't require _Bool for C++
10823         Problem reported by David Seifert in:
10824         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
10825         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
10826         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
10827         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
10828         stricter about checking that bool and _Bool are compatible in C.
10830 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
10832         getdelim: remove dependency on realloc-posix
10833         * lib/canonicalize-lgpl.c (alloc_failed)
10834         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
10835         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
10836         Use __set_errno where needed, for consistency.
10837         * lib/getdelim.c (alloc_failed): New function.
10838         (getdelim): Use it.
10840 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
10842         parse-datetime: add optional debug printing
10843         Print parsing information, warnings, and errors to stderr.
10844         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
10845         * lib/parse-datetime.y:
10846         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
10847         (PROGRESS*): Same as DEBUG, for progress reporting.
10848         (dbg_printf): Print message to stderr, with 'date' prefix.
10849         (struct parser_control): Add 'debug_*_seen' variables.
10850         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
10851         (debug_print_current_time, debug_print_relateive_time): Prints the
10852         current/relative date/time value of parser_control.
10853         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
10854         (to_year): Warn about 2-digit year parsing.
10855         (yylex):   Warn about unrecognized words.
10856         (get_effective_timezone): Returns current timezone in minutes.
10857         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
10858         clearly and unambigiously as possible.
10859         (debug_mktime_not_ok): Print detailed information about failed
10860         date/time values.
10861         (parse_datetime): Add DEBUG messages for failures, warnings. Add
10862         PROGRESS messages for status messages.
10863         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
10865 2016-08-06  Jim Meyering  <meyering@fb.com>
10867         tests/init.sh: exclude dash with bad "local" semantics
10868         * tests/init.sh (gl_shell_test_script_): Add a function to
10869         eliminate a shell like "dash" (unlike bash, zsh) that has
10870         surprising/risky "local var='...'" semantics.  Inspired by
10871         the problem and discussion in https://bugs.gnu.org/24116#11.
10873 2016-08-02  Ján Tomko  <jtomko@redhat.com>
10875         maint.mk: expand the prohibit_doubled_word regex
10876         This check has a static list of words that are checked for
10877         repetitions.  Expand it before running the perl script to
10878         avoid using expensive captures.  This decreases the cost
10879         for libvirt from 1.66s to 0.66s.
10880         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
10881         (sc_prohibit_doubled_word): Use it.
10883 2016-07-26  Ján Tomko  <jtomko@redhat.com>
10885         useless-if-before-free: skip non-matching lines early
10886         * build-aux/useless-if-before-free: First match each line with the
10887         simple/quick /\bif\b/ and reject if there is no match. This often
10888         saves the cost of the much more involved regular expression.
10889         For libvirt, this decreases the cost from 1.44s to 1.02s.
10891 2016-07-26  Ján Tomko  <jtomko@redhat.com>
10893         maint.mk: speed up sc_po_check
10894         sc_po_check would skip files based on their names, or on the
10895         existence of files with derived names. Rewrite it to use perl
10896         instead of shell to make the check faster.
10897         * top/maint.mk (perl_translatable_files_list_): Define.
10898         (sc_po_check): Use it.
10900 2016-07-30  Ján Tomko  <jtomko@redhat.com>
10902         maint.mk: speed up require_config_h_first
10903         Instead of spawning three processes per file,
10904         rewrite the check in perl and run it once for all the files.
10905         * top/maint.mk (perl_config_h_first_): Define.
10906         (sc_require_config_h_first): Use it in place of shell code.
10908 2016-07-26  Ján Tomko  <jtomko@redhat.com>
10910         maint.mk: speed up sc_po_check
10911         sc_po_check would skip files based on their names, or on the
10912         existence of files with derived names. Rewrite it to use perl
10913         instead of shell to make the check faster.
10914         * top/maint.mk (perl_translatable_files_list_): Define.
10915         (sc_po_check): Use it.
10917 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10919         obstack: pacify GCC 6 with -Wnull-dereference
10920         Problem reported by Assaf Gordon in:
10921         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
10922         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
10923         Declare with __attribute_noreturn__.
10924         * lib/obstack.h (__attribute_noreturn__): New macro.
10926 2016-07-13  Eric Blake  <eblake@redhat.com>
10928         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
10929         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
10930         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
10932 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
10934         doc: mention glibc SSIZE_MAX buglet
10935         * doc/posix-headers/limits.texi (limits.h): Document the bug.
10937 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
10939         printf-posix: Fix mingw build
10940         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
10941         expression for detecting C symbol prefixes but forgot to qoute square
10942         brackets in the command line arguments for grep.  That way when
10943         building with mingw the condition was false although it ought to be
10944         true instead.  In particular scenarios this led to the following
10945         compile error:
10947             Cannot export rpl_printf: symbol not found
10948             Cannot export rpl_scanf: symbol not found
10949             collect2: error: ld returned 1 exit status
10951         Fix this by properly quoting square brackets.
10953 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
10955         mktime: call tzset as per POSIX
10956         Problem reported by Ludovic Courtès in:
10957         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
10958         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
10959         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
10961 2016-06-26  Pádraig Brady  <P@draigBrady.com>
10963         fts: handle readdir() errors
10964         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
10965         but also upon error when it will also set errno.  Therefore
10966         flag the error case from readdir().  We treat the case where
10967         no items are read the same as if the dir can't be accessed,
10968         i.e. by setting fts_errno to FTS_DNR.
10970 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
10972         intprops: port better to GCC 7
10973         GCC 7 __builtin_add_overflow supports a new usage form, where the
10974         last argument is a null pointer, and which merely returns 1 if an
10975         overflow would occur.  This is a constant expression if all
10976         arguments are constants, and should generate faster code when code
10977         needs to be generated.
10978         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
10979         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
10980         Use builtin operations if available.
10981         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
10982         operations are available, as it's almost surely faster.
10984 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10986         intprops-test: port to GCC 6
10987         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
10988         since the bug is not fixed in GCC 6.1.
10990 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10992         xalloc-oversized: port to GCC 7; fewer warnings
10993         GCC 7 will have a better way to deal with integer overflow.
10994         Plus, fix a warnings problem reported by Tim Ruehsen in:
10995         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
10996         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
10997         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
10998         For GCC 5, use __xalloc_oversized if both args are constants,
10999         or if pedantic.
11001 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
11003         regex: port to Sun C
11004         Reported by Daiki Ueno.
11005         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
11006         __restrict, in prototype.  This fixes a problem I introduced in
11007         the 2016-02-19 merge from glibc.
11009 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
11011         stdbool: Restore __bool_true_false_are_defined check
11012         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
11013         __bool_true_false_are_defined is still defined, even with C++11.
11015 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
11017         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
11018         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
11020 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
11022         Use GCC_LINT, not lint
11023         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
11024         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
11025         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
11026         Document problem with lint and _Noreturn.
11027         * lib/diffseq.h (IF_LINT, IF_LINT2):
11028         * lib/fts.c (sccsid):
11029         * lib/getndelim2.c (IF_LINT):
11030         * lib/gl_anylinked_list2.h (gl_linked_iterator)
11031         (gl_linked_iterator_from_to):
11032         * lib/gl_anytree_list2.h (gl_tree_iterator)
11033         (gl_tree_iterator_from_to):
11034         * lib/gl_anytree_oset.h (gl_tree_iterator):
11035         * lib/gl_array_list.c (gl_array_iterator)
11036         (gl_array_iterator_from_to):
11037         * lib/gl_array_oset.c (gl_array_iterator):
11038         * lib/gl_carray_list.c (gl_carray_iterator)
11039         (gl_carray_iterator_from_to):
11040         * lib/idcache.c:
11041         * lib/inet_ntop.c (IF_LINT):
11042         * lib/regcomp.c (build_charclass_op, create_tree):
11043         * lib/regex_internal.c (re_acquire_state)
11044         (re_acquire_state_context):
11045         * lib/trigl.c (rcsid):
11046         * lib/trim.c (IF_LINT):
11047         * lib/vasnprintf.c (IF_LINT):
11048         * lib/verify.h (assume):
11049         Treat GCC_LINT like lint.
11051 2016-05-29  Bruno Haible  <bruno@clisp.org>
11053         secure_getenv: Port to many more platforms.
11054         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
11055         functions.
11056         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
11057         for non-BSD Unix platforms and for native Windows.
11058         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
11059         Prompted by a request from Nikos Mavrogiannopoulos.
11061 2016-05-27  Eric Blake  <eblake@redhat.com>
11063         canonicalize: Fix broken probe for realpath.
11064         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
11065         in logic introduced in 54615b95.
11067 2016-05-26  Eric Blake  <eblake@redhat.com>
11069         unsetenv: relax to LGPLv2+
11070         * modules/unsetenv (License): Match setenv license.
11072 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
11074         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
11075         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
11076         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
11077         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
11078         (commonarg, dirargs, dirs, infoarg, generate_ascii)
11079         (generate_html, generate_info, generate_tex, outdir)
11080         (source_extra, split, srcfile, texarg): Move above 'version'.
11081         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
11083 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11085         manywarnings: update for GCC 6.1
11086         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
11087         Add GCC 6.1 options that apply to C.
11088         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
11089         do not apply to C, are obsolescent, etc.
11091 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
11093         glob: size_t overflow checks
11094         * lib/glob.c (__has_builtin): New macro.
11095         (size_add_wrapv, glob_use_alloca): New static functions.
11096         (glob, glob_in_dir): Check for size_t overflow in several places,
11097         and fix some size_t checks that were not quite right.
11099         glob: don't assume INT_MAX < SIZE_MAX
11100         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
11101         latter is not portable to (probably theoretical) hosts where
11102         SIZE_MAX <= INT_MAX.
11104 2016-05-09  Bruno Haible  <bruno@clisp.org>
11106         Fix undefined behaviour in gettext.h.
11107         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
11108         pointer's value after the storage it points to has been freed.
11109         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
11110         Spotted by Coverity.
11112 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11114         git-version-gen: avoid undefined shift
11115         Problem reported by Mosè Giordano in:
11116         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
11117         * build-aux/git-version-gen: Avoid undefined behavior if invoked
11118         with --prefix or --fallback but without a later argument.  While
11119         we're at it, omit unnecessary quotes.
11121 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
11123         glob: merge glibc changes into lib/glob.c
11124         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
11125         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
11126         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
11127           struct dirent [BZ #19779]
11128         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
11129           callback gl_readdir
11130         2015-10-20 Convert miscellaneous function definitions to prototype style
11131         2015-10-20 Convert 113 more function definitions to prototype style
11132           (files with assertions)
11133         2015-06-12 Fix getlogin_r namespace (bug 18527).
11134         2014-02-10 Use glibc_likely instead __builtin_expect.
11135         2013-10-20 When glob pattern contains a trailing slash match only
11136           directories. Fixes bug 10278.
11137         2013-09-04 glob: silence -Wattribute warnings
11138         2013-06-07 Avoid use of "register" as optimization hint.
11139         2012-09-25 Use size_t instead of int for internal variables in glob
11140           (bug 14621)
11141         2011-07-20 Check for overflows in expressions
11142         2011-05-28 Remove unused variable
11143         2011-05-22 Add a few more alloca size checks
11144         2010-03-27 Whitespace fixes
11145         2010-03-27 Fix one more issue with the glob patch
11146         2010-03-24 Fix glob with empty pattern
11147         2008-05-27 Remove useless more "if" tests before "free"
11148         * modules/glob (Depends-on): Add stdint.
11150 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11152         mktime: port to stricter signed overflow checking
11153         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
11154         (long_int): Require width for INT_MAX * 3 * (seconds per year),
11155         instead of merely for INT_MAX * 2.  In practice platforms that
11156         do the latter also do the former.
11157         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
11158         (shr): New static function, replacing SHR.  All uses changed.
11159         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
11160         and TIME_T_MAX.  All uses changed.
11161         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
11162         Use long_int, not time_t.
11163         (long_int_avg): New static function, replacing time_t_avg.
11164         All uses changed.  Round toward positive infinity, as that
11165         generates slightly better code.
11166         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
11167         by INT_ADD_WRAPV.
11168         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
11169         (convert_time): New static function.
11170         (ranged_convert): Use it
11171         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
11172         Use simpler test for loop exit.
11173         (__mktime_internal): Store negative of guessed offset, to simplify
11174         overflow checking.  Remove no-longer-needed test for small time_t
11175         overflows.
11177         mktime: speed up DEBUG_MKTIME benchmarks
11178         Call tzset just once, at the start, rather than for every test
11179         case.  This lets us measure the CPU cost of mktime as opposed to
11180         that of tzset.  This is relevant when TZ is not set and glibc is
11181         being used.  This speeds up tests by a factor of 40 on my Fedora
11182         23 x86-64 platform.
11183         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
11184         to call tzset and as a sanity check.  Later on, use localtime_r
11185         instead of localtime.
11187         mktime: resurrect DEBUG_MKTIME testing
11188         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
11189         Include <string.h>, for strcmp.
11191         mktime: simplify DEBUG_MKTIME
11192         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
11193         Simplify later usage accordingly.
11195         Port mktime_internal offset to unsigned time_t
11196         This avoids some assumptions about wraparound arithmetic on
11197         signed integer overflow.
11198         * lib/mktime-internal.h (mktime_offset_t): New type.
11199         (mktime_internal): Use it in decl.
11200         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
11202         * lib/mktime.c (__mktime_internal, localtime_offset):
11203         * lib/timegm.c (timegm): Use it.
11204         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
11205         (gl_FUNC_MKTIME): Require it.
11207 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
11209         xstrtol: prohibit monstrosities like "1bB"
11210         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
11211         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
11212         "B" only if the first suffix needs a base.
11213         * tests/test-xstrtol.sh: Test this.
11215 2016-04-21  Pádraig Brady  <P@draigBrady.com>
11217         xstrtod: reinstate setting of *result upon ERANGE
11218         * lib/xstrtod.c (XSTRTOD): The user may decide to use
11219         the returned limits upon ERANGE, so allow and document that.
11221 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
11223         xstrtod: modify *result only if no errors
11224         * lib/xstrtod.c (XSTRTOD).
11226 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
11228         btowc: document problems in C locale
11229         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
11230         with mbrtowc.  See: http://bugs.gnu.org/23269#32
11232 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
11234         mktime: improve integer overflow checking
11235         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
11236         (WRAPV): Remove; no longer needed.
11237         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
11238         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
11239         Remove.  Use intprops.h defns instead.
11240         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
11241         Use bool for Boolean, for clarity.
11242         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
11243         detect integer overflow.
11244         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
11246         intprops: check two's complement assumption
11247         Suggested by Eric Blake in:
11248         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
11249         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
11250         short, int, long, and (if available) long long are two's complement.
11251         * modules/intprops (Depends-on): Add 'verify'.
11253         intprops, mktime, strtol: assume two's complement
11254         These macros were not portable to every conforming C11 ones'
11255         complement platform.  It's not worth the hassle of porting to some
11256         platforms that use ones' complement or signed magnitude, as such
11257         platforms are almost purely theoretical nowadays and porting even
11258         to some of them makes the code harder to review for little
11259         practical benefit.  Problem reported by Florian Weimer in:
11260         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
11261         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
11262         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
11263         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
11264         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
11265         (TYPE_SIGNED_MAGNITUDE):
11266         Remove.  All uses rewritten to assume two's complement, which is
11267         all we can reasonably test nowadays anyway.
11268         * top/maint.mk (_intprops_names): Remove the removed macros.
11270 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
11272         stdint: port to strict C11 left shift
11273         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
11274         Pacify clang -Wshift-negative-value, which should be an issue only
11275         on clang setups where stdint.h does not conform to C11 or to C++11.
11276         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
11278 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
11280         mbrtowc: work around glibc bug#19932
11281         Fix mbrtowc so that it never returns -1 in the C locale,
11282         as this conflicts with a future version of POSIX
11283         http://austingroupbugs.net/view.php?id=663#c2738
11284         and causes problems with GNU grep: http://bugs.gnu.org/23234
11285         See glibc bug 19932:
11286         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
11287         * doc/posix-functions/mbrlen.texi (mbrlen):
11288         * doc/posix-functions/mbrtowc.texi (mbrtowc):
11289         Document the glibc bug.
11290         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
11291         Include hard-locale.h, locale.h.
11292         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
11293         if the bug is possible.
11294         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
11295         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
11296         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
11297         * modules/mbrtowc (Depends-on): Add hard-locale.
11298         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
11299         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
11300         * tests/test-mbrtowc5.sh: New file.
11302 2016-04-03  Pedro Alves  <palves@redhat.com>
11304         stdint: detect good enough pre-C++11 stdint.h in C++ mode
11305         When gnulib is configured in C++ mode for a system with a working C99
11306         implementation of stdint.h that predates C++11, gnulib ends up
11307         substituting stdint.h anyway.  This works on most targets, but on e.g.,
11308         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
11309         MinGW is LLP64.  Instead of trying to detect the right types, detect
11310         good-enough-pre-C++11 stdint.h and in such case define
11311         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
11312         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
11313         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
11314         conforms to C99.  If it does, check whether it hides symbols
11315         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
11316         does, define those macros in config.h.
11318 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
11320         argp: merge changes from glibc
11321         Among other things, this should fix problems found by a Coverity
11322         scan and reported by Andrei Borzenkov:
11323         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
11324         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
11325         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
11326         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
11327         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
11328         * lib/argp.h:
11329         Merge changes from glibc.
11330         * tests/test-argp-2.sh: Adjust to match new behavior.
11332 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
11334         stddef: support configuring with g++
11335         Problem reported by Ángel González in:
11336         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
11337         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
11338         Do not define if _GCC_MAX_ALIGN_T is defined.
11340 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
11342         test-framework-sh: minor cleanups
11343         * tests/init.sh (testdir_prefix_): Output a trailing newline,
11344         since strictly speaking POSIX requires this.
11345         (setup_): Do not use the variable 'fail', as that makes the
11346         trace output harder to read ('fail' is typically used by
11347         tests to mean the test failed).  Treat // portably.
11348         Check that new directory is not merely a sibling of the tmp dir.
11349         Avoid unnecessary invocation of tr.
11351         test-framework-sh: revert port to NetBSD 7.0
11352         It was a false alarm; I misinterpreted Assaf Gordon's report.
11353         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
11354         Restore.
11355         (test_dir_): Adjust to mktempd_ change.
11356         (mktempd_): Restore 2nd arg.  Use -t again.
11357         (base_template_, template_, nx_): Resurrect old code.
11359         Port better to Alpine Linux
11360         Its diff implementation does not support -c, but does support -U3.
11361         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
11362         * tests/init.sh (diff_opt_): New var.
11363         (compare_): Prefer diff -U3 to diff -c to plain diff.
11365 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11367         test-framework-sh: port to NetBSD 7.0
11368         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
11369         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
11370         Remove.  All uses removed.
11371         (test_dir_): Adjust to mktempd_ change.
11372         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
11373         (base_template_, template_, nx_): Simplify by hardcoding.
11375 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
11377         gitlog-to-changelog: suppress ignored chatter
11378         * build-aux/gitlog-to-changelog: Do not warn about skipping
11379         an SHA if it would have been ignored anyway.
11381 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
11383         setlocale: add "sv" to Windows language table
11384         * lib/setlocale.c (language_table) [W32]: Add "sv".
11385         Reported in <https://savannah.gnu.org/bugs/?44588>.
11387 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
11389         sys_select: port to new Cygwin
11390         Problem reported by Ken Brown in:
11391         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
11392         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
11393         diagnostics.
11395 2016-03-17  Jim Meyering  <meyering@fb.com>
11397         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
11398         * tests/test-userspec.c (main): Remove unnecessary braces and fix
11399         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
11400           test-userspec.c:176:9: error: statement is indented as if it were \
11401             guarded by... [-Werror=misleading-indentation]
11402                    {
11403                    ^
11404           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
11405                  if (!diag && !T[i].result)
11406                  ^~
11408 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
11410         time_rz: port to clang -Wunused-const-variable
11411         * lib/time_rz.c (TZ): Remove.  All uses removed.
11413         std-gnu11: improve clang support
11414         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
11415         2016-03-15 Also try clang
11416         2016-03-15 Port C11 and C++11 testing to clang
11418         select: port more to Intel 2016.1.150 compiler
11419         Problem reported by Balázs Hajgató in:
11420         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
11421         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
11423 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
11425         select: try to port to 2016.1.150 compiler
11426         Problem reported by Balázs Hajgató in:
11427         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
11428         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
11429         POSIX specifies 'restrict'.
11431 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
11433         localename-tests: memory allocation fixes
11434         * tests/test-localename.c (test_locale_name)
11435         (test_locale_name_thread): Don't call freelocale on a locale
11436         that was the base of a successful newlocale, as that
11437         results in a double free.  Problem reported by Assaf Gordon.
11438         (test_locale_name_thread): Free saved names after use, to pacify
11439         gcc -fsanitize=address.
11441 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
11443         intprops: make .h file license match module
11444         * lib/intprops.h: Change the license wording to match glibc format.
11445         This is what is in modules/intprops anyway.  See:
11446         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
11448 2016-03-08  Eric Blake  <eblake@redhat.com>
11450         acl: fix missing return on Cygwin
11451         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
11452         fall off end of function. Fixes http://bugs.gnu.org/22949
11454 2016-03-05  Bruno Haible  <bruno@clisp.org>
11456         extern-inline: port to PGI CC
11457         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
11458         keyword 'inline'.
11459         Reported by Adam James Stewart in:
11460         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
11462 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
11464         signbit: port back to pre-C++11 GCC
11465         * lib/math.in.h (signbit): Do previous change only if
11466         __cplusplus < 201103.  See Jonathan Wakely in:
11467         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
11469 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
11471         mountlist: recognize autofs-mounted remote file systems, too
11472         Originally reported at: https://bugzilla.redhat.com/1309247
11473         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
11474         "-hosts" because it is used by autofs to mount remote file systems.
11476 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
11478         signbit: port to C++ with GCC 6
11479         * lib/math.in.h (signbit) [__cplusplus]:
11480         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
11481         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
11483         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
11485         regex: make it closer to libc
11486         Make Idx a signed type, rather than possibly unsigned.
11487         The unsignedness was not really buying us anything, since the code
11488         overflows for other reasons before getting to PTRDIFF_MAX.  Making
11489         it signed allows us to use -1 and -2 with abandon, like libc does,
11490         thus lessening the number of differences between gnulib and libc.
11491         Also, it should help avoid gratuitous warnings like the one
11492         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
11493         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
11496         regex: merge patches from libc
11498         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
11499         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
11500         Convert miscellaneous function definitions to prototype style.
11501         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
11502         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
11503         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
11504         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
11505         (re_search_internal):
11506         Convert to prototype-style function definition.
11507         Use internal_function for internal functions.
11509 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
11511         stdalign: port to older HP and IBM cc
11512         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
11513         C compilers, by checking their version numbers.  These version
11514         numbers appear in MariaDB and in Qt code that dates way back and
11515         that conditiionally uses the 'aligned' attribute.
11517 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11519         stdalign: port to clang 3.7.0
11520         Problem reported by Herbert J. Skuhra in:
11521         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
11522         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
11523         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
11524         https://llvm.org/bugs/show_bug.cgi?id=26547
11526 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11528         readdir_r: now obsolescent
11529         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
11530         * lib/mountlist.c (read_file_system_list): Add a FIXME.
11532 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11534         misc: port better to gcc -fsanitize=address
11535         Without these patches, ./configure CFLAGS='-fsanitize=address'
11536         would compute incorrect values.  This patch fixes some (but not all)
11537         test failures with recent glibc, with this configuration.
11538         * m4/acl.m4 (gl_ACL_GET_FILE):
11539         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
11540         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
11541         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
11542         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
11543         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
11544         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
11545         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
11546         * m4/getline.m4 (gl_FUNC_GETLINE):
11547         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
11548         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
11549         * m4/regex.m4 (gl_REGEX):
11550         * m4/strndup.m4 (gl_FUNC_STRNDUP):
11551         * tests/test-calloc-gnu.c (main):
11552         * tests/test-duplocale.c (main):
11553         * tests/test-getgroups.c (main):
11554         * tests/test-getline.c (main):
11555         * tests/test-inttostr.c (main):
11556         * tests/test-localename.c (test_locale_name)
11557         (test_locale_name_thread, test_locale_name_environ)
11558         (test_locale_name_default):
11559         * tests/test-regex.c (main):
11560         * tests/test-setlocale1.c (main):
11561         * tests/test-stat.h (test_stat_func):
11562         Free heap-allocated storage before exiting.
11563         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
11564         Don't match *_foo symbols inserted by AddressSanitizer.
11565         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
11567 2016-02-02  Jim Meyering  <meyering@fb.com>
11569         verify-tests: also remove stray test-verify.Tpo
11570         * modules/verify-tests (Makefile.am): Arrange for "make clean"
11571         to remove the test-verify.Tpo file that is left behind by
11572         the automake-generated rule upon compilation failure.
11573         Otherwise, that .Tpo file would cause a failed "make distcheck"
11574         at least for grep.
11576 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
11578         std-gnu11: new module
11579         This makes it easier for applications to prefer C11 and C++11
11580         to older variants, when compiling C and C++ code.
11581         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
11582         a nontrivial chunk of GPLed Autoconf source code.
11583         * COPYING: Mention the m4/*.m4 copyright situation.
11584         * MODULES.html.sh (std-gnu11): New module.
11585         * m4/std-gnu11.m4, modules/std-gnu11: New files.
11587 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
11589         get-permissions, strftime: fix grammar in comments
11590         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
11591         some grammar fixes Alan Mackenzie made to GNU Emacs.
11593 2016-01-25  Daiki Ueno  <ueno@gnu.org>
11595         gettext: mark as obsolete
11596         Suggested by Paul Eggert in:
11597         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
11598         * modules/gettext (Status): Mark as obsolete.
11599         (Notice): Suggest to use 'gettext-h' instead.
11600         * modules/gettext-h (Description): Suggest GNU gettext, instead of
11601         the 'gettext' module.
11603 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
11605         gnulib-tool: don't give up on ln -s so easily
11606         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
11607         because an earlier one failed.  The targets could be on different
11608         file systems.  Problem reported by KO Myung-Hun in:
11609         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
11611         closedir: fix OS/2-related typos
11612         Problem reported by KO Myung-Hun in:
11613         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
11614         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
11615         in the last couple of changes.
11617 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
11619         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
11620         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
11621         copying a directory.
11623 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
11625         regex: treat [x] as x if x is a unibyte encoding error
11626         Problem reported by Aharon Robbins in:
11627         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
11628         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
11629         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
11631         closedir, dirfd, opendir: port to OpenSolaris 5.10
11632         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
11633         * m4/dirfd.m4 (gl_FUNC_DIRFD):
11634         * m4/opendir.m4 (gl_FUNC_OPENDIR):
11635         Don't use ${word##pat} substitution, as it doesn't work in
11636         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
11637         http://bugs.gnu.org/22443#11
11639 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11641         bootstrap: use American spelling
11642         * build-aux/bootstrap: Honor American spelling.
11644 2016-01-22  Karl Berry  <karl@freefriends.org>
11646         * doc/posix-functions/localtime.texi,
11647         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
11649 2016-01-21  Bruno Haible  <bruno@clisp.org>
11651         hash-pjw-bare: fix comment
11652         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
11654         wcwidth: Replace also on OpenBSD 5.8
11655         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
11656         * doc/posix-functions/wcwidth.texi: Update.
11658 2016-01-20  Pádraig Brady  <P@draigBrady.com>
11660         gnu-web-doc-update: fix addition of new files
11661         If there were already added (emnpty) dirs,
11662         then cvs aborts the add with the message:
11663           cvs [add aborted]: there is a version in <./dirname> already
11664         * build-aux/gnu-web-doc-update: Add directories separately
11665         to the addition of files, to avoid the above issue
11666         impacting the addition of files.
11668 2016-01-19  Daiki Ueno  <ueno@gnu.org>
11670         utimens-tests: avoid pulling gettext .m4 files
11671         Although this is not the right fix to the original problem:
11672         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
11673         it makes it possible again for consumer projects to use arbitrary
11674         version of gettext, through the steps described at:
11675         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
11676         See here for details:
11677         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
11678         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
11679         'gettext'.
11680         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
11681         'gettext'.
11683 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11685         regex: pacify static checkers
11686         Problem and draft fix reported by Aharon Robbins in:
11687         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
11688         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
11689         Clear memory to pacify static checkers.
11691         regex: fix [ diagnostic
11692         Problem and fix reported by Aharon Robbins in:
11693         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
11694         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
11696         regex: fix memory leaks
11697         Problem and draft fix reported by Aharon Robbins in:
11698         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
11699         * lib/regcomp.c (build_range_exp, build_charclass_op)
11700         * lib/regex_internal.c (re_dfa_add_node):
11701         Fix memory leak on failure.
11703 2016-01-18  Pádraig Brady  <P@draigBrady.com>
11705         fts: don't unconditionally use leaf optimization for NFS
11706         NFS st_nlink are not accurate on all implementations,
11707         leading to aborts() if that assumption is made.
11708         See <https://bugzilla.redhat.com/1299169>
11709         * lib/fts.c (leaf_optimization_applies): Remove NFS from
11710         the white list, and document the issue.
11712 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
11713             KO Myung-Hun  <komh@chollian.net>
11715         gnulib-tool: don't assume ln -s works
11716         * gnulib-tool (func_ln_s): New function.
11717         (func_ln): Use it.
11719 2016-01-15  KO Myung-Hun  <komh@chollian.net>
11721         utimes: detect utimes() correctly on OS/2 kLIBC
11722         utimes() of OS/2 kLIBC has some limitations.
11723         1. OS/2 itself supports a file date since 1980 year in local time.
11724         2. OS/2 itself supports only even seconds for a file time.
11725         3. utimes() of OS/2 kLIBC does not work on an opened file.
11726         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
11727         * doc/posix-functions/utimes.texi: Document the above limitations of
11728         utimes() on OS/2 kLIBC.
11730 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
11731             KO Myung-Hun  <komh@chollian.net>
11733         openat_proc_name: port to OS/2 kLIBC
11734         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
11735         instead of /proc/self/fd.
11736         * lib/openat-proc.c (openat_proc_name):
11737         Don't assume file name length is less than INT_MAX.
11738         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
11740 2016-01-14  KO Myung-Hun  <komh@chollian.net>
11742         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
11743         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
11744         definitions of intptr_t and uintptr_t (which use int and unsigned)
11745         to avoid clashes with declarations of system functions like sbrk.
11746         * lib/stdint.in.h (intptr_t, uintptr_t): Check
11747         _INTPTR_T_DECLARED before defining them.
11749         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
11750         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
11751         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
11752         Declare on kLIBC.
11753         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
11754         fd associated with dirp.
11755         (_gl_register_dirp_fd): New. Register fd associated with dirp to
11756         dirp_fd_list.
11757         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
11758         (dirfd): Implemented for kLIBC.
11759         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
11760         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
11761         succeeds.
11762         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
11763         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11764         (REPLACE_DIRFD): Define to 1 if replaced.
11765         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
11766         * modules/closedir (Depends-on): Add dirfd.
11767         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
11768         condition.
11769         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
11770         * modules/opendir (Depends-on): Add dirfd.
11772         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
11773         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
11774         * lib/dup.c (dup_nothrow): New.
11775         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
11776         (klibc_dup2): New.
11777         * lib/fcntl.c (klibc_fcntl): New.
11778         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
11779         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
11780         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
11781         fd.
11783         pipe_filter_ii_execute: port to OS/2 kLIBC
11784         Pipes on kLIBC do not support O_NONBLOCK like Win32.
11785         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
11786         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
11787         Reuse Win32 code on OS/2 kLIBC.
11788         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
11789         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
11791         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
11792         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
11793         static inline function.  The implementation of wcwidth in wcwidth.c
11794         causes a "conflicting types" error.
11795         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
11797         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
11798         spawn() on OS/2 kLIBC is not silly like one on Windows
11799         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
11800         empty string on OS/2 kLIBC.
11802         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
11803         On OS/2 kLIBC, select() works only on sockets.
11804         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
11806         binary-io: don't put fd in binary mode if it is a console on EMX
11807         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
11808         a console on EMX.
11810 2016-01-15  Pádraig Brady  <P@draigBrady.com>
11812         doc: mention unfixed issues with unsupported localtime() values
11813         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
11814         returns nonsense for localtime(2^56).
11815         * doc/posix-functions/localtime_r.texi: Likewise.
11817 2016-01-14  Pádraig Brady  <P@draigBrady.com>
11819         doc: mention setlocale() issues on OpenBSD
11820         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
11821         never fails, and the need to check categories individually.
11823 2016-01-14  Pádraig Brady  <P@draigBrady.com>
11825         sig2str: list all signals on FreeBSD >= 7
11826         FreeBSD >= 7 is contravening POSIX by not defining NSIG
11827         to the maximal statically defined signal value.
11828         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
11829         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
11830         where available, even when NSIG is defined.
11832 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
11834         acl-permissions: port to USE_ACL==0 platforms
11835         I ran into this problem when building bleeding-edge GNU Emacs
11836         with gcc -fsanitize=address on Fedora 23.  On this platform
11837         the ACL library does not pass the 'configure' test and Emacs
11838         then does not build due in part to what appear to be typos in the
11839         ACL part of Gnulib.
11840         * lib/acl-internal.c (free_permission_context):
11841         * lib/acl-internal.h (struct permission_context):
11842         Test whether USE_ACL is nonzero, not whether it is defined.
11844 2016-01-12  Martin Sebor  <msebor@redhat.com>
11846         mktime: rename macro to avoid glibc clash
11847         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
11848         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
11850 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
11852         Port "$@" to OpenIndiana ksh93
11853         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
11854         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
11855         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
11856         bug long-dead shells, so remove the workaround.
11857         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
11858         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
11859         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
11860         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
11861         Use "$@" instead of ${1+"$@"}.
11863         Port Universal Time settings to strict POSIX
11864         * build-aux/announce-gen, build-aux/bootstrap:
11865         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
11866         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
11867         * build-aux/gnupload, build-aux/mkinstalldirs:
11868         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
11869         * build-aux/update-copyright, build-aux/useless-if-before-free:
11870         * build-aux/vc-list-files, tests/test-strftime.c:
11871         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
11872         but POSIX says the behavior of TZ="UTC" is undefined.
11874 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
11876         msvc-inval: fix problem with unset shell var
11877         Problem reported by Karl Berry in:
11878         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
11879         * modules/msvc-inval (Depends-on):
11880         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
11881         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
11883 2016-01-01  Pádraig Brady  <P@draigBrady.com>
11885         tests: for compare_(), use cmp -s where available
11886         * tests/init.sh (compare_): Only fall back to cmp without
11887         the POSIX defined -s option, where this is not available.
11889 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
11891         version-etc: new year
11892         * build-aux/gendocs.sh (version):
11893         * doc/gendocs_template:
11894         * doc/gendocs_template_min:
11895         * doc/gnulib.texi:
11896         * lib/version-etc.c (COPYRIGHT_YEAR):
11897         Update copyright dates by hand in templates and the like.
11898         * all files: Run 'make update-copyright'.
11900 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
11902         human: fix output buffer overrun by 1
11903         * lib/human.c (human_readable): Fix off-by-one typo in buffer
11904         calculation that could lead to a one-byte buffer overrun.
11906 2015-12-28  Daiki Ueno  <ueno@gnu.org>
11908         maint: fix operator precedence in mbrtowc test
11909         This is a fix for test breakage introduced by commit 45228d96; the
11910         equality expression must be parenthesized when negated with '!',
11911         otherwise we always get:
11913           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
11915         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
11916         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
11918 2015-12-23  James Youngman  <jay@gnu.org>
11920         regexprops-generic: update from regex.h
11921         * doc/regexprops-generic.texi: update by running the regexprops binary
11922         from findutils (the command line is 'regexprops "Regular Expressions"
11923         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
11924         gnulib with GNU grep had made this document out-of-date.
11926 2015-12-23  Pádraig Brady  <P@draigBrady.com>
11928         strftime-tests: avoid false failure on OS X
11929         * tests/test-strftime.c (struct localtime_rz_test): Add an
11930         ahistorical member which is used to warn rather than fail
11931         when tm_isdst isn't set for such entries.  This is the case for
11932         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
11934 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
11936         fts: ensure leaf optimization is used for NFS
11937         NFS provides usable dirent.d_type but not necessarily for all entries
11938         of large directories.  See <https://bugzilla.redhat.com/1252549>
11939         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
11941 2015-12-20  Pádraig Brady  <P@draigBrady.com>
11943         fts: enable leaf optimization for XFS
11944         XFS provides usable dirent.d_type only for DT_DIR,
11945         but the noleaf optimization still applies.
11946         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
11948 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11950         intprops: comment fix
11951         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
11952         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
11954         intprops-test: work around GCC bug 68971
11955         Problem reported by Pádraig Brady in:
11956         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
11957         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
11958         (main): Add a case that better tests 64-bit long in this area.
11960 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
11962         gnulib-tool: allow multiple --local-dir usage
11963         * gnulib-tool: Use --local-dir to construct compound
11964         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
11965         PATH_SEPARATOR early.
11966         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
11967         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
11968         func_determine_path_separator because that needs to be detected
11969         earlier now.
11970         (func_determine_path_separator): New function.
11971         (func_path_foreach, func_path_foreach_inner): New functions.
11972         (func_path_prepend, func_path_append): Likewise.
11973         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
11974         (func_lookup_file, func_all_modules): Use new functions to work
11975         with local_gnulib_path.
11976         (func_modules_in_dir, func_exists_module): New callbacks for
11977         func_path_foreach.
11978         (func_exists_module, func_get_tests_module): Likewise.
11979         (func_is_local_file, func_should_symlink): New helper methods.
11980         (func_add_file, func_update_file): Use new func_should_symlink
11981         instead, DRY.
11982         (func_reconstruct_cached_local_gnulib_path): New helper.
11983         (func_reconstruct_cached_dir): New callback.
11984         (func_import): The cached_local_gnulib_dir renamed to
11985         cached_local_gnulib_path similarly to local_gnulib_dir.
11986         Use new func_reconstruct_cached_local_gnulib_path.
11987         (func_count_relative_local_gnulib_path): New sub-method.
11988         (func_create_testdir): Use func_should_symlink, DRY.
11989         (func_create_megatestdir): Use new functions to work with
11990         local_gnulib_path correctly.
11991         (func_append_local_dir): New helper.
11993 2015-12-08  Pádraig Brady  <P@draigBrady.com>
11995         fix freadptr to work with ungetc on all uClibc configs
11996         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
11997         where GNU coreutils cut(1) generates invalid output on uClibc
11998         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
11999         * lib/freadptr.c (freadptr): Return NULL if there are
12000         ungotten chars.  In this case freadseek() will iterate
12001         again to process the ungotten character.
12003 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
12005         xalloc-oversized: improve performance with GCC 5
12006         * lib/xalloc-oversized.h (xalloc_oversized):
12007         Improve performance with GCC 5 by using __builtin_mul_overflow.
12009 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
12011         intprops: new public macro EXPR_SIGNED
12012         Emacs can use this macro, so make it public.
12013         * doc/intprops.texi (Arithmetic Type Properties): Rename from
12014         'Integer Type Determination', since some of these macros apply
12015         to non-integer types.  Clarify what kinds of constant expressions
12016         these macros return.  Say when the arguments can be non-integers.
12017         Mention newly published macro EXPR_SIGNED.
12018         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
12019         make it public.  All uses changed.
12021         intprops: fix typo in clang port
12022         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
12023         '__builtin_add_overflow' that is not caught by compiler.
12025 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
12027         test-timespec: fix typo in previous change
12028         * tests/test-timespec.c (main): Fix typo that reduced test quality.
12030         timespec-sub: fix overflow bug; add tests
12031         * lib/timespec-add.c (timespec_add):
12032         * lib/timespec-sub.c (timespec_sub):
12033         Work even if time_t is narrower than int (a theoretical
12034         possibility).  Redo code for a bit more clarity.
12035         * lib/timespec-sub.c (timespec_sub):
12036         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
12037         * modules/timespec-tests, tests/test-timespec.c: New files.
12039         intprops-test: suppress -Woverlength-strings
12040         Problem reported by Pádraig Brady in:
12041         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
12042         It is not worth the hassle to port this test to compilers that
12043         cannot handle long strings in diagnostics.
12044         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
12046 2015-11-03  Pádraig Brady  <P@draigBrady.com>
12048         quotearg: add quotearg_n_style_colon()
12049         This quotes with default options of the specified style,
12050         but with quoting enabled for instances of ':'.
12051         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
12052         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
12054 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
12056         intprops: revise _WRAPV macros, revert _OVERFLOW
12057         The incompatible changes to the _OVERFLOW macros were too much of
12058         a hassle in practice, so revert them.  Instead, change the new
12059         _WRAPV macros to make them closer in behavior to GCC 5's new
12060         builtin_add_overflow etc. functions.  No other software was using
12061         these newly-added macros yet, so this should be OK.
12062         * NEWS: Revert previous change, since the incompatible change
12063         has been reverted, and nobody used the incompatible version.
12064         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
12065         Document revised behavior.
12066         (Integer Range Overflow): Adjust example to match above revisions.
12067         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
12068         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
12069         these can be used in integer constant expressions again.
12070         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
12071         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
12072         needed.
12073         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
12074         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
12075         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
12076         Remove, as they did not seem that useful.
12077         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
12078         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
12079         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
12080         Support new semantics.
12081         (__has_builtin): New macro, if not alreay defined.
12082         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
12083         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
12084         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
12085         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
12086         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
12087         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
12088         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
12089         New macros.
12090         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
12092 2015-11-03  Jim Meyering  <meyering@fb.com>
12094         intprops: add parentheses for when OP has precedence lower than "-"
12095         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
12096         "a OP b" must be parenthesized for when OP is like "<<", which has
12097         lower precedence than the following "-". Reported by Pádraig Brady.
12099 2015-11-03  Pádraig Brady  <P@draigBrady.com>
12101         quotearg: constify get_quoting_style parameters
12102         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
12103         * lib/quotearg.c (get_quoting_style): Likewise.
12105 2015-11-02  Pádraig Brady  <P@draigBrady.com>
12107         quotearg: add support for $'' shell escaping
12108         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
12109         items and descriptions.
12110         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
12111         above types by quoting like "shell", but using $'...' syntax
12112         for non printable characters, which should provide unambiguous
12113         printable output for any input.
12114         * tests/test-quotearg-simple.c: Update accordingly.
12116 2015-11-02  Pádraig Brady  <P@draigBrady.com>
12118         maint: use a more standard return from mbrtowc test
12119         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
12120         from the test program as this is non standard and often
12121         indicates an unhandled case in the test program.
12122         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
12124 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
12126         intprops: add WRAPV and const flavors for GCC 5
12127         If available, use GCC 5's builtin functions for efficient integer
12128         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
12129         and safely compute the low-order bits of the correct answer.
12130         A downside of these efficient functions is that they cannot be
12131         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
12132         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
12133         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
12134         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
12135         Document the changes.
12136         (Wraparound Arithmetic): New section.
12137         (Integer Range Overflow):
12138         Put this subsection last, since it's least useful.
12139         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
12140         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
12141         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
12142         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
12143         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
12144         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
12145         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
12146         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
12147         New macros.
12148         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
12149         Generate calls to GCC builtins if available, for speed.
12150         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
12151         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
12152         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
12153         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
12154         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
12155         (CHECK_QUOTIENT, CHECK_REMAINDER):
12156         Test WRAPV and CONST flavors (when available) too.
12158 2015-10-30  Pádraig Brady  <P@draigBrady.com>
12160         doc: use extended timezone format in iso-8601 example
12161         * doc/parse-datetime.texi: The standard states that extended format
12162         is to be used consistently throughout.
12163         Note that lib/parse-datetime.y can handle either tz format.
12165 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
12167         stdalign: port to Sun C 5.9
12168         * doc/posix-headers/stdalign.texi: Document this.
12169         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
12170         __attribute__ ((__aligned__ (...))).
12172 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
12174         time_rz: fix comment about tzalloc
12175         * lib/time_rz.c (tzalloc): Fix comment.
12177 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
12179         stdalign: work around pre-4.9 GCC x86 bug
12180         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
12181         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
12182         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
12184 2015-10-18  Pádraig Brady  <P@draigBrady.com>
12186         maint.mk: sc_tight_scope: remove extraneous expressions
12187         * top/maint.mk (tight_scope): This is not really required since
12188         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
12189         that matches all nm entries.  But it does remove extraneous entries
12190         that may be confusing or cause issue in future maintenance.
12192 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
12194         time_rz: return NULL if localtime_r fails
12195         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
12196         while still attempting to pacify bleeding-edge GCC.
12198         fts: port to C11 alignof
12199         * doc/posix-headers/stdalign.texi (stdalign.h):
12200         Document the C11 restriction.
12201         * lib/fts.c: Include stddef.h, for max_align_t.
12202         (fts_alloc): Align using max_align_t, not FTSENT.
12203         * modules/fts (Depends-on): Add stddef.
12205 2015-10-18  Jim Meyering  <meyering@fb.com>
12207         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
12208         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
12209         would see this:
12211         lib/time_rz.c: In function 'localtime_rz':
12212         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
12213           [-Werror=nonnull]
12214                    if (tm && !save_abbr (tz, tm))
12215                        ^
12217         That was complaining about "tm" because it is a parameter that was
12218         declared with the __nonnull__ attribute.
12219         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
12220         result of localtime_r.
12222 2015-10-17  Jim Meyering  <meyering@fb.com>
12224         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
12225         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
12226         name-extraction regexp mistakenly used \S+, and would mistakenly
12227         extract "*F" from "extern int *F()" rather than the desired "F".
12228         Use \w+ instead.
12230 2015-10-17  Jim Meyering  <meyering@fb.com>
12232         maint.mk: sc_tight_scope: factor and support OS X
12233         * top/maint.mk (_gl_tight_scope): Address three issues:
12234         - factor out four instances of code that wraps a string in "^...$"
12235         - allow nm-reported symbol names to have an optional leading "_"
12236         - add "main" to the list of ignored variable names, because on os x,
12237         "main" has nm-reported type "S" in the variable-checking section.
12239 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
12241         safe-alloc-tests: fix typo in license header
12242         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
12244 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
12246         copy-file: fix mem leak in error case
12247         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
12248         upon error opening or performing I/O to the src and dest files.
12250 2015-10-15  Mike Frysinger  <vapier@chromium.org>
12252         localename: control langinfo.h inclusion
12253         This header is only used to work around buggy behavior in old
12254         versions of glibc, so do not include it all the time.  Otherwise
12255         we get build failures on systems that do not provide langinfo.h.
12256         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
12257         in the source later on.
12258         The patch was originally submitted to gettext as:
12259         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
12261 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12263         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
12264         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
12265         * lib/u64.c, lib/unistd.c:
12266         Append 'typedef int dummy;', to pacify compilers that are picky
12267         about empty translation units.
12269 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
12271         accept4-tests: fix to avoid non portable flags
12272         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
12273         as they are the only documented ones, and passing others may trigger
12274         EINVAL (seen on FreeBSD 10.1-RELEASE).
12275         * doc/glibc-functions/accept4.texi: Mention that we don't provide
12276         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
12278 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
12280         gnulib-tool: fix tests of 'extensions' module
12281         This complements f8fe25fab60e3c687a124 commit.
12282         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
12283         emitting of initial gl_EARLY macros.
12284         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
12285         replaced with func_emit_pre_early_macros call.
12287 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
12289         unicase/locale-language: fix typo in utf-8 cookie
12290         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
12291         Problem reported by Zbigniew Jędrzejewski-Szmek.
12293 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
12295         xalloc: do not worry about GCC 5 warning on 32 bit
12296         * lib/xalloc.h: Revert previous change.
12297         I found a better way to fix this in coreutils.
12299 2015-10-02  Pádraig Brady  <P@draigBrady.com>
12301         xalloc: avoid GCC 5.1 warning on 32 bit
12302         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
12303         xalloc_oversized(), which was seen to give this warning
12304         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
12305         when simplifying conditional".
12307 2015-10-02  Daiki Ueno  <ueno@gnu.org>
12309         uniname/uniname-tests: avoid compiler warnings
12310         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
12311         unused local variables.
12312         (test_alias_lookup): Fix alias name display in failure cases.
12314 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12316         c-ctype: do not worry about EBCDIC + char signed
12317         Drop support for EBCDIC with char being signed, as this breaks too
12318         many programs.  Problem reported by Ben Pfaff in:
12319         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
12320         * lib/c-ctype.h: Verify that we are not using EBCDIC with
12321         char being signed.
12322         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
12323         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
12324         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
12325         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
12326         * tests/test-c-ctype.c (test_all):
12327         Simplify by assuming standard char values cannot be negative.
12328         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
12330 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
12332         c-ctype: port better to z/OS EBCDIC
12333         Problems reported by Daniel Richard G. in:
12334         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
12335         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
12336         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
12337         (_C_CTYPE_OTHER_CNTRL): New macro.
12338         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
12339         from SCHAR_MIN, as the functions are defined only from values
12340         promoted from char or from unsigned char, not necessarily from
12341         signed char.
12343 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
12345         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
12347         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
12348         and ARFLAGS variables.  Doing this unconditionally could break
12349         later Automake's AM_PROG_AR invocation (at least it's
12350         AC_CHECK_TOOLS call to detect correct 'ar' binary).
12352         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
12353         Amsterdam Compiler Kit, so make the previous code to have effects
12354         only on ACK, and rather automatically call the Automake's
12355         AM_PROG_AR as soon as possible to decide other cases.
12357         References:
12358         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
12360         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
12361         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
12362         is possible, keep setting AR/ARFLAGS to reasonable defaults.
12363         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
12364         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
12365         'extensions' module is used.
12366         * modules/extensions (configure.ac-early): Remove as this snippet
12367         is added to gnulib-comp.m4 earlier anyway.
12369 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
12371         sockets: MS Windows initalization fixes
12372         Problem reported by Test User in:
12373         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
12374         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
12375         Correct the endianness.
12376         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
12377         number mismatch, not just on <.  Cleanup before any such failure.
12379 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
12381         gc: fix detection of installed libgcrypt version
12382         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
12383         at least as recent as 1.4.4.  The previously used macro is not
12384         available now, since modules were removed in version 1.6.0.
12386 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
12388         c-ctype: rewrite to use inline functions
12389         This simplifies maintenance, since it makes for just one
12390         implementation of each function, letting the compiler have the fun
12391         of optimization.  In practice this works well nowadays with GCC.
12392         E.g., c_isascii might need only three instructions even though the
12393         source code lists every ASCII character individually in a large
12394         switch statement.
12395         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
12396         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
12397         * NEWS: Document the API change.
12398         * lib/c-ctype.c: Drastically simplify, since this now just expands
12399         inline functions.
12400         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12401         (C_CTYPE_INLINE): New macro.
12402         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
12403         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
12404         Verify that either ASCII or EBCDIC is being used.
12405         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
12406         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
12407         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
12408         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
12409         New private macros.
12410         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
12411         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
12412         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
12413         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
12414         (c_tolower, c_toupper): When converting, return the unsigned char,
12415         as that is what z/OS does.
12416         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
12417         of some c-ctype.h macros.
12418         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
12419         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
12420         c_tolower promotion to be compatible with z/OS.
12422 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
12424         gitlog-to-changelog: trim only trailing whitespaces
12425         This is fix for --format regression introduced by commit
12426         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
12427         doubled %n string) had no effect anymore.  This format
12428         specification has been used e.g. by GNU paxuitils (commit
12429         edfd8bcc3).
12431         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
12432         newlines in commmit messages.
12434 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12436         Test that c_iscntrl agrees with iscntrl, etc.
12437         Suggested by Daniel Richard G. in:
12438         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
12439         * modules/c-ctype-tests (Depends-on): Add ctype.
12440         * tests/test-c-ctype.c: Include <ctype.h>.
12441         (NCHARS): New constant.
12442         (test_agree_with_C_locale): New function.
12443         (main): Use it.
12444         (test_all): Use named constants.
12446         c-ctype: improve c_isascii testing
12447         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
12448         Add a test to count the number of ASCII characters.
12450 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12452         savewd: remove SAVEWD_CHDIR_READABLE
12453         It was problematic in the light of file systems that ignore umask.
12454         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
12455         * NEWS: Document this.
12456         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
12457         successful, -1 (setting errno) on failure, rather than something
12458         more complicated than that.
12459         * lib/mkdir-p.c (make_dir_parents):
12460         Do not use SAVEWD_CHDIR_READABLE.
12461         * lib/savewd.c (savewd_chdir):
12462         Remove support for SAVEWD_CHDIR_READABLE.
12463         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
12465         c-ctype: port better to EBCDIC
12466         Problems reported by Daniel Richard G. in
12467         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
12468         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
12469         Include "verify.h".
12470         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
12471         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
12472         Define as enum constants with value false, if not defined, so that
12473         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
12474         code more portable, as both branches of the 'if' are compiled on
12475         all platforms.
12476         (C_CTYPE_EBCDIC): New constant.
12477         Verify that the character set is either ASCII or EBCDIC.
12478         (to_char): New static function.
12479         (c_isascii, c_iscntrl):
12480         Assume standard control-character assignments for EBCDIC.
12481         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
12482         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
12483         Rewrite to use 'if' instead of 'ifdef'.
12484         Use to_char if non-ASCII.  Prefer <= to >=.
12485         Prefer true and false to 1 and 0, for booleans.
12486         (c_iscntrl): Use 'if', not 'ifdef'.
12487         * modules/c-ctype (Depends-on): Add verify.
12488         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
12489         (to_char): New function.
12490         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
12492 2015-09-21  Pádraig Brady  <P@draigBrady.com>
12494         nanosleep: fix return code for interrupted replacement
12495         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
12496         that we return -1 in the case the call is interrupted by a signal,
12497         rather than the current value of 1.
12498         Diagnosed and tested by Daniel Richard G.
12500 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
12502         Diagnose ERE '()|\1'
12503         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
12504         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
12505         track of the set of previously-completed subexpressions available
12506         before the first alternative, and restore this set just before
12507         parsing each subsequent alternative.  This lets us diagnose the
12508         invalid back-reference in the ERE '()|\1'.
12510         regex: merge patches from libc
12512         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
12513         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
12514         * lib/regex_internal.h:
12515         Include <libc-lock.h> instead of <bits/libc-lock.h>.
12517         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
12518         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
12519         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
12520         wcscoll.
12521         * lib/regexec.c (check_node_accept_bytes): Likewise.
12523         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
12524         Fix regex wcrtomb namespace (bug 18496).
12525         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
12526         instead of wcrtomb.
12528         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
12529         Fix regex wctype namespace (bug 18495).
12530         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
12531         instead of towlower.
12532         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
12533         instead of iswlower.  Call __towupper instead of towupper.
12534         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
12535         instead of iswalnum.
12537         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
12538         * lib/regcomp.c (parse_bracket_exp): Initialize type to
12539         COLL_SYM in a couple of places to avoid uninitialized variable
12540         wanings on tilegx gcc 4.8.2.
12542         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
12543         * lib/regex_internal.h: Remove NOT_IN_libc.
12545         2014-11-17  Andreas Schwab  <schwab@suse.de>
12546         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
12548         2014-09-11  Roland McGrath  <roland@hack.frob.com>
12549         Move findidx nested functions to top-level.
12550         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
12551         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
12552         Pass new arguments to findidx.
12553         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
12554         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
12555         Don't #include it inside the function.  Pass new arguments to findidx.
12556         * lib/regex_internal.h:
12557         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
12558         (re_string_elem_size_at): Don't #include it inside the function.
12559         Pass new arguments to findidx.
12561         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
12562         Check if DEBUG is defined in regex_internal.c
12563         * lib/regex_internal.c: Check if DEBUG is defined and is set.
12565 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
12567         ceill: detect buggy OpenBSD implementation
12568         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
12569         which returns zero for small values.  Discussed here:
12570         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
12572 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
12574         mountlist: add me_mntroot field on Linux machines
12575         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
12576         mount_entry so Linux machines based on /proc/self/mountinfo can
12577         distinguish between bind mounts and original mounts.  In reality bind
12578         mounts aren't treated differently than mountroot=/ mounts by the
12579         kernel, but the user often wants these bind mounts distinguished.
12580         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
12581         More details at https://pad.lv/1432871
12583 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
12585         doc: Describe to use multiple instances of gnulib
12586         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
12587         instances of gnulib with different modules can be used, for example one
12588         for a lib and another one for associated tools.
12590 2015-09-01  Pádraig Brady  <P@draigBrady.com>
12592         base32: mark function as __attribute__ const
12593         * lib/base32.h (isbase32): Mark __attribute__ const as
12594         suggested by GCC, and consistent with the base64 module.
12596 2015-08-20  Daiki Ueno  <ueno@gnu.org>
12598         gnulib-tool: don't transform binary files with sed
12599         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
12600         .mo and .class files.
12601         Reported by Denis Denisov.
12603 2015-08-10  Daiki Ueno  <ueno@gnu.org>
12605         gperf: respect silent rules
12606         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
12607         V_GPERF_0 for silent rules.
12608         * modules/iconv_open (Makefile.am): Use V_GPERF.
12609         * modules/unicase/locale-language (Makefile.am): Likewise.
12610         * modules/unicase/special-casing (Makefile.am): Likewise.
12611         * modules/unictype/category-byname (Makefile.am): Likewise.
12612         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
12613         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
12614         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
12615         * modules/unictype/property-byname (Makefile.am): Likewise.
12616         * modules/unictype/scripts (Makefile.am): Likewise.
12617         * modules/uninorm/composition (Makefile.am): Likewise.
12619 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
12621         Improve port of stdalign to C++11
12622         Problem reported by Sundaram in:
12623         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
12624         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
12625         (__alignas_is_defined): Define if C++11 or newer.
12627 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
12629         pmccabe2html: fix gawk regex escaping
12630         * build-aux/pmccabe2html: Add one more backslash to properly
12631         escape the gsub replacement value.  Fixes this error:
12632         gawk: ./build-aux/pmccabe2html:425: \
12633         warning: escape sequence `\&' treated as plain `&'
12635 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
12637         time_rz: port to pedantic memcpy
12638         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
12639         that reject memcpy (..., NULL, 0).
12641 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
12643         time_rz: port better to MinGW
12644         Don't change tzname, as this makes MinGW dump core (Bug#21020).
12645         Instead, store the tzname copy in the struct tm_zone object.
12646         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
12647         * lib/strftime.c [!_LIBC]:
12648         * lib/time_rz.c: Include time-internal.h.
12649         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
12650         name from *TZ rather than from TZNAME, doable because *TZ now has
12651         a tzname_copy member.
12652         * lib/time-internal.h: New file, with contents taken from
12653         lib/time_rz.c.  It's separate because strftime.c now accesses
12654         struct tm_zone members.
12655         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
12656         New member tzname_copy.
12657         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
12658         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
12659         Initialize tzname_copy member.
12660         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
12661         in tzname_copy member.
12662         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
12663         (restore_tzname): Remove; no longer needed.  All calls removed.
12664         * modules/time_rz (Files): Add lib/time-internal.h.
12666         time: port __need_time_t to MinGW
12667         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
12668         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
12670 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12672         strftime: fix newly-introduced bug on Solaris
12673         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
12674         consistently at the start, rather than doing some of the setup at
12675         the start and some in the %Z format spec.  This is cleaner, and
12676         works better with time_rz on platforms like Solaris where struct
12677         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
12678         mktime_z and localtime_rz can mess up the tzname cache.
12680         test-strftime: test for Solaris bug
12681         * modules/strftime-tests (Depends-on): Add strerror.
12682         * tests/test-strftime.c: Include <errno.h>.
12683         (posixtm_test): New function, containing the old 'main'.
12684         (struct tzalloc_test, struct localtime_rz_test): New types.
12685         (TZ, LT): New static vars.
12686         (tzalloc_test): New function.
12687         (main): Rewrite in terms of posixtm_test and tzalloc_test.
12689         time_rz: port to Solaris etc.
12690         Works around a tzname problem on platforms like Solaris that have
12691         tzname but not tm_zone, by setting tzname at the appropriate time
12692         and restoring it later.
12693         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
12694         New static vars.
12695         (save_abbr) [HAVE_TZNAME]: Set them.
12696         (revert_tz) [HAVE_TZNAME]: Clear or use them.
12697         (restore_tzname): New function.
12698         (localtime_rz, mktime_z): Use it.
12700         time_rz: now LGPL
12701         * modules/time_rz (License): Now LGPL, because strftime depends on it.
12703         time_rz: make a constant 'const'
12704         * lib/time_rz.c (local_tz): Now const.
12706         time_rz: fix off-by-one typo
12707         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
12709 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
12711         fprintftime, strftime: use timezone_t args
12712         * NEWS: Document the change.
12713         * lib/fprintftime.h (fprintftime):
12714         * lib/strftime.c (extra_args) [my_strftime]:
12715         * lib/strftime.h (nstrftime):
12716         Time zone arg is now of type timezone_t, not int.
12717         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
12718         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
12719         (my_strftime) [emacs && !my_strftime]:
12720         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
12721         Remove; Emacs doesn't need this any more.
12722         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
12723         fprintftime and nstrftime to call tzset.
12724         (ut) [!my_strftime]: Remove, replacing with ...
12725         (tz) [!my_stftime]: ... this new macro.  All uses changed.
12726         (strftime_case_): Use localtime_rz and mktime_z instead
12727         of localtime_r and mktime.
12728         * modules/fprintftime (Depends-on): Add time_rz.
12729         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
12730         * tests/test-strftime.c (main): Adjust to new nstrftime API.
12732         time_rz: new module
12733         * MODULES.html.sh: Add time_rz.
12734         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
12735         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
12736         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
12737         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
12738         New var HAVE_TIMEZONE_T (default 0).
12739         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
12740         New var GNULIB_TIME_RZ (default 0).
12741         * modules/time (time.h): Substitute the new vars.
12743         flexmember: license is now unlimited
12744         * modules/flexmember (License): Change to unlimited,
12745         since its only source file gives an unlimited license.
12747 2015-07-15  Eric Blake  <eblake@redhat.com>
12749         maint: update copyright paper procedures
12750         * config/srclist.txt: Drop outdated files.
12751         * doc/Copyright/conditions.txt: Update to latest.
12752         * doc/Copyright/assign.changes.manual: Delete.
12753         * doc/Copyright/assign.future.manual: Likewise.
12754         * doc/Copyright/assign.manual: Likewise.
12755         * doc/Copyright/assign.translation.manual: Likewise.
12756         * doc/Copyright/disclaim.changes.manual: Likewise.
12757         * doc/Copyright/disclaim.manual: Likewise.
12758         * doc/Copyright/disclaim.program: Likewise.
12760 2015-07-07  Daiki Ueno  <ueno@gnu.org>
12762         localename: fix link error on Illumos
12763         Illumos defines __sun, but does not have getlocalename_l nor the
12764         equivalent.  This partially reverts commit 387c214.
12765         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
12766         available, as well as uselocale.
12767         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
12768         use getlocalename_l if it is not available.
12770 2015-07-07  Daiki Ueno  <ueno@gnu.org>
12772         unistr/uN-strtok-tests: avoid a trivial leak
12773         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
12774         input and delim after the multibyte delimiter tests.
12776 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
12778         file-has-acl, acl-permissions: fix HP-UX typos
12779         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
12780         * lib/file-has-acl.c (file_has_acl):
12781         * lib/set-permissions.c (context_acl_from_mode)
12782         (context_aclv_from_mode, set_acls):
12783         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
12784         They were introduced by the recent ACL changes.
12786         regex: match current GNU grep behavior
12787         These symbols have not matched GNU grep behavior for quite some time.
12788         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
12789         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
12790         Change to match current GNU behavior.
12791         Simplify by expressing it as differences from POSIX BREs and EREs.
12792         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
12794 2015-07-03  Jim Meyering  <meyering@fb.com>
12796         set-permissions.c: adjust acl_from_mode's cpp guard
12797         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
12798         directives identical to those guarding the sole use.
12799         Otherwise, on some systems, we'd get a warning about
12800         the function being defined but not used.
12801         Also, filter through cppi to correct misleading indentation
12802         of cpp directives.
12804 2015-07-03  Pádraig Brady  <P@draigBrady.com>
12806         tests: restrict shells to those that support 'local'
12807         The local keyword is very widely supported and used
12808         in tests in coreutils and grep at least.  Therefore
12809         restrict to testing with shells that support it.
12810         This mainly excludes /bin/sh on Solaris.
12811         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
12813 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
12814         and Daiki Ueno  <ueno@gnu.org>
12816         unistr/uN-strtok: handle multibyte delimiters
12817         Previously, uN_strtok moved PTR to the next unit to the token end.
12818         When DELIM contained a multibyte character, the new position could
12819         be a middle of a multibyte character.
12820         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
12821         after the token.
12822         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
12823         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
12824         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
12825         * modules/unistr/u8-strtok (Depends-on): Depend on
12826         unistr/u8-strmblen.
12827         * modules/unistr/u16-strtok (Depends-on): Depend on
12828         unistr/u16-strmblen.
12829         * modules/unistr/u32-strtok (Depends-on): Depend on
12830         unistr/u32-strmblen.
12831         * tests/unistr/test-u-strtok.h: New file.
12832         * tests/unistr/test-u8-strtok.c: New file.
12833         * tests/unistr/test-u16-strtok.c: New file.
12834         * tests/unistr/test-u32-strtok.c: New file.
12835         * modules/unistr/u8-strtok-tests: New file.
12836         * modules/unistr/u32-strtok-tests: New file.
12837         * modules/unistr/u16-strtok-tests: New file.
12839 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
12841         update-copyright: fix test failure with perl >= 5.22 (trivial)
12842         * build-aux/update-copyright: Escape a literal left curly bracket,
12843         required with perl >= 5.22
12845 2015-07-02  Daiki Ueno  <ueno@gnu.org>
12847         u{16,32}-strstr-tests: relax timeout condition
12848         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
12849         tests can take longer than 5 seconds to complete.
12850         Reported by Dagobert Michelsen in:
12851         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
12852         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
12853         seconds to 10 seconds.
12854         * tests/unistr/test-u32-strstr.c (main): Likewise.
12856 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
12858         gnulib-common.m4: change the ARFLAGS default to 'cr'
12859         In some GNU/Linux distributions people started to compile 'ar'
12860         binary with --enable-deterministic-archives (binutils project).
12861         That, however, in combination with previous autotools long time
12862         working default AR{_,}FLAGS=cru causes warnings on such
12863         installations:
12864         ar: `u' modifier ignored since `D' is the default (see `U')
12865         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
12866         set already.
12868 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
12870         selinux-h: avoid double free after *getfilecon()
12871         Originally reported by Ben Shelton on bug-tar:
12872         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
12873         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
12874         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
12875         param should be freed by freecon(3) (regardless the return value).
12877 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
12879         fix pty related tests issues on Windows (trivial)
12880         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
12881         however it's still present in tests/ subdirectory of the final project.
12882         Therefore avoid it to pass `make check`.
12883         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
12884         will just return -ENOSYS, so avoid this non applicable test allowing
12885         the build to proceed.
12887 2015-07-01  Pádraig Brady  <P@draigBrady.com>
12889         acl: fix definition of acl_from_mode on FreeBSD
12890         This was causing basic coreutils copy operations to fail
12891         with ENOTSUP or ENOENT error messages.
12892         * lib/acl-internal.h (acl_from_mode): Only define when
12893         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
12894         of acl_from_mode() defined in lib/set-permissions.c to
12895         be used on FreeBSD at least.
12896         * lib/set-permissions.c: Fix up comment spelling,
12897         and a redundant variable assignment; noticed in passing.
12899 2015-06-30  Pádraig Brady  <P@draigBrady.com>
12901         readutmp: port to FreeBSD >= 9
12902         * lib/readutmp.h: Map utmpxname() to setutxdb().
12903         With that coreutils who(1) and pinky(1) tests pass.
12905 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12907         mgetgroups: port to strict OS X
12908         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
12909         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
12910         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
12911         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
12913 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
12915         mgetgroups: port to strict OS X
12916         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
12917         Document the getgrouplist problem.
12918         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
12919         New macro.
12920         (mgetgroups): Use it.
12921         * m4/mgetgroups.m4 (gl_MGETGROUPS):
12922         Check for OS X signature for getgrouplist.
12924 2015-06-29  Jim Meyering  <meyering@fb.com>
12926         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
12927         It started like this when building coreutils' latest on OS X,
12928         invoking ./configure with a nonempty --cache=.cache:
12930           lib/linkat.c:46:42: error: operator '||' has no right operand
12931           lib/linkat.c: In function 'rpl_linkat':
12932           lib/linkat.c:330:27: error: #if with no expression
12934         Here's linkat.c's line 46:
12936           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
12938         Here's some context:
12940           $ grep linkat_nofoll .cache
12941           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
12942           $ grep LINKAT_SYM lib/config.h
12943           #define LINKAT_SYMLINK_NOTSUP
12945         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
12946         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
12947         but that violates a tenet of AC_CACHE_CHECK: it must
12948         have no side effect other than setting its cache variable.
12950         What happens is that when the cache is set, we'd skip the
12951         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
12952         defined to whatever value it happened to have in configure's
12953         environment.  In my case, it was not defined, so this later code:
12955           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
12956             [Define to 1 if linkat can create hardlinks to symlinks])
12958         would emit code with an empty RHS.
12960         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
12961         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
12963 2015-06-28  Jim Meyering  <meyering@fb.com>
12965         mountlist: avoid an unused-label warning on OS X
12966         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
12967         Building on OS X, I saw a warning about the "free_then_fail" label
12968         being unused.  Give it the _GL_UNUSED_LABEL attribute.
12970         error.c: correct printf-style format: %d -> %u
12971         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
12972         rather than %d, to match the type of "line_number", unsigned int.
12974 2015-06-25  Pádraig Brady  <P@draigBrady.com>
12976         fts: avoid reading beyond the heap allocation
12977         GCC 5.1.1 with -O2 and -fsanitize=address reports
12978         a read of size 4 from a heap object of size 3 is indeed invalid,
12979         though this may be due to incorrect padding assumptions by GCC, see:
12980         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
12981         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
12982         * modules/fts: Depend on stdalign.
12984 2015-06-24  Pádraig Brady  <P@draigBrady.com>
12986         savedir: avoid undefined behavior in qsort call
12987         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
12988         "runtime error: null pointer passed as argument 1,
12989          which is declared to never be null"
12990         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
12992 2015-06-24  Pádraig Brady  <P@draigBrady.com>
12994         userspec: avoid undefined behavior in gettext call
12995         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
12996         "runtime error: null pointer passed as argument 2,
12997          which is declared to never be null"
12998         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
13000 2015-06-20  Glenn Morris  <rgm@gnu.org>
13002         gitlog-to-changelog: improve gitmerge.el commits
13003         Let the Emacs ChangeLog generation process exclude "skipped"
13004         messages from merge commits (Bug#20717).
13005         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
13007 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13009         wchar: fix MinGW compilation warnings
13010         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
13011         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
13012         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
13014 2015-06-20  Daiki Ueno  <ueno@gnu.org>
13016         uniname/uniname-tests: use pristine data files
13017         For copyright and maintenance reasons, use the data files from UCD
13018         without modification.
13019         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
13020         (getfield): Remove.
13021         (aliases_count): New global variable.
13022         (fill_names): Skip comments and empty lines in the input.  Don't
13023         use getfield.
13024         (fill_aliases): Likewise.
13025         (main): Change the expected command line arguments to:
13026         NAMES... ["--" ALIASES...].
13027         * tests/uniname/test-uninames.sh: Adjust to the change in
13028         test-uninames.c.
13029         * tests/uniname/UnicodeDataNames.txt: Remove.
13030         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
13031         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
13032         file from Unicode 8.0.0.
13034 2015-06-19  Pádraig Brady  <P@draigBrady.com>
13036         linked-list, linkedhash-list: avoid compiler warnings
13037         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
13038         -Werror=suggest-attribute=pure (from GCC 5.1.1).
13040 2015-06-19  Daiki Ueno  <ueno@gnu.org>
13042         libunistring: bump minimum version to 0.9.6
13043         * all modules depending on updated Unicode data: Regenerate.
13044         The modules are listed by a script that does:
13045         - for each file listed by: git show --oneline --name-only 705f4efc
13046           - deduce the containing modules, based on "Files:"
13047         - deduce the modules which depend on the containing modules, based
13048           on "Depends-on:"
13050 2015-06-18  Daiki Ueno  <ueno@gnu.org>
13052         uniname/uniname: update to Unicode 8.0.0
13053         * lib/uniname/uninames.h: Regenerate.
13054         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
13055         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
13057 2015-06-18  Daiki Ueno  <ueno@gnu.org>
13059         libunistring: update to Unicode 8.0.0
13060         * lib/gen-uni-tables.c (SIZEOF): New macro.
13061         (output_numeric): Increase the maximum number of fractions from
13062         128 to 160.  Increase the level3 value width from 7 bits to 8
13063         bits.  Use SIZEOF instead of a hard-coded integer.
13064         (output_blocks): Decrease the cut-off threshold from 0x30000 to
13065         0x28000.
13066         (fill_blocks): Increase the maximum number of blocks from 256 to
13067         384.  Use SIZEOF instead of a hard-coded integer.
13068         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
13069         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
13070         value width.
13071         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
13072         a new case added to LBP22.
13073         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
13074         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
13075         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
13076         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
13077         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
13078         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13079         lib/uniwidth/width.c.
13080         * all generated files under lib/uni* and tests/uni*: Regenerate.
13082 2015-06-16  Pádraig Brady  <P@draigBrady.com>
13084         gnu-web-doc-update: add --mirror to remove stale files
13085         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
13086         out of date files from the CVS server.  Since this is usually
13087         appropriate, a prompt is given when the option is not specified,
13088         along with the `cvs remove` command that would be run.
13090 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13092         acl-permissions: pacify -Wsuggest-attribute=const
13093         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
13094         * lib/acl-internal.h (free_permission_context):
13095         Declare with attribute const if ! (defined USE_ACL &&
13096         (HAVE_ACL_GET_FILE || defined GETACL)).
13098         fsync: document AIX misbehavior
13099         * doc/posix-functions/fsync.texi (fsync):
13100         Document failure on AIX with read-only file descriptor.
13102 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
13104         stdio: Don't redefine gets when using C++
13105         * lib/stdio.in.h (gets): Disable warning on C++.
13107 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
13109         acl-permissions: port to AIX, C89 HP-UX
13110         Problems reported by Michael Felt.
13111         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
13112         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
13113         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
13114         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
13115         Add cast for AIX, whose system calls are declared to accept
13116         char * even though the arguments are really char const *.
13117         * lib/get-permissions.c (get_permissions):
13118         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
13119         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
13120         that broke a build.
13121         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
13122         Rework types to pacify xlc.
13124 2015-06-03  Pádraig Brady  <P@draigBrady.com>
13126         vasprintf-posix: avoid compiling vasnprintf where possible
13127         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
13128         module where not required.  For example on a GNU/Linux system
13129         when gnulib-tool is run with the --conditional-dependencies option.
13131 2015-06-02  Pádraig Brady  <P@draigBrady.com>
13133         file-has-acl: fix build on Mac OS X 10
13134         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
13135         which has an incompatible 6 parameter getxattr() call.
13136         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
13137         call on Mac OS X >= 10.4.
13138         * doc/glibc-functions/fgetxattr.texi: Likewise.
13139         * lib/file-has-acl.c: Revert to more complete combined check.
13140         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
13141         Reported by Jack Howarth.
13143 2015-06-02  Pádraig Brady  <P@draigBrady.com>
13145         prefix-gnulib-mk: remove no longer needed special case
13146         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
13147         continued lib_SOURCES lines are no longer present,
13148         so special case handling of such entries is not required.
13150 2015-06-01  Pádraig Brady  <P@draigBrady.com>
13152         acl: don't depend on the deprecated qacl module
13153         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
13155 2015-06-01  Pádraig Brady  <P@draigBrady.com>
13157         gnulib-tool: concatenate lib_SOURCES to a single line
13158         * gnulib-tool: Refactor the line merging sed logic,
13159         and use that to output a single lib_SOURCES line for each module.
13160         gnulib using projects often postprocess this output to prepend
13161         subdir paths to each item, and having a single line simplifies this
13162         processing allowing better decoupling from the gnulib-tool output.
13164 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
13166         pthread_sigmask: discount system version if a simple macro (trivial)
13167         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
13168         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
13169         function to ensure it's available.
13171 2015-05-31  Pádraig Brady  <P@draigBrady.com>
13173         readlinkat: avoid OS X 10.10 trailing slash bug
13174         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
13175         has this bug.
13176         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
13177         that OS X 10.10 has this function.
13178         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
13179         as done for readlink().
13180         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
13181         trailing slash bug, and assume readlinkat() has the same issue.
13182         Also fix a typo where $gl_cv_decl_readlink_works was tested,
13183         rather than the correct $gl_cv_decl_readlinkat_works.
13185 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
13187         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
13188         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
13189         module rewrite.
13191         acl-permissions: Fix build on Solaris and Cygwin
13192         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
13193         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
13194         ace_entries variables have moved into struct permission_context but
13195         they were still accessed as local variables here.
13197 2015-05-29  Pádraig Brady  <P@draigBrady.com>
13199         linkat: avoid OS X 10.10 trailing slash with symlink bug
13200         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
13201         causes the symlink to be dereferenced, and if it points
13202         to a non existent file, that file will be created as
13203         a hard link to "path1".
13204         This fixes a test failure in test-linkat.c.
13205         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
13206         this case.  The existing workaround in linkat.c for
13207         trailing slash issues, suffices for this case.
13208         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
13209         the list of platforms with trailing slash issues.
13211 2015-05-28  Pádraig Brady  <P@draigBrady.com>
13213         unlinkat: handle ignoring of ".." on Darwin 14
13214         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
13215         on Mac OS X 10.10, where it ignores paths with a trailing "..",
13216         so handle in the same manner.
13217         * m4/unlinkat.m4: Comment on this Darwin issue.
13218         * doc/posix-functions/unlink.texi: Update the latest version
13219         where the issue was seen.
13220         * doc/posix-functions/unlinkat.texi: Mention this issue.
13221         Fixes a test failure in test-unlinkat.c.
13223 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13225         qacl: split into qcopy-acl and qset-acl
13226         Emacs needs the former, but not the latter.
13227         * modules/acl-permissions: New file, containing most of the old qacl.
13228         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
13229         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
13230         * modules/qcopy-acl, modules/qset-acl: New files.
13231         * MODULES.html.sh (File system functions):
13232         Mention the new modules, and mention qacl while we're at it.
13234 2015-05-27  Glenn Morris  <rgm@gnu.org>
13236         gitlog-to-changelog: new option --ignore-line
13237         (This patch is imported from the GNU Emacs master.)
13238         This option ignores individual commit lines matching a pattern.
13239         * build-aux/gitlog-to-changelog: Add --ignore-line option.
13241 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
13243         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
13244         Implement get_permissions and set_permissions primitives for getting all
13245         the permissions of a file, storing them, and later setting them. (In the
13246         minimal case, the permissions consist only of a file mode.) Reimplement
13247         qset_acl and qcopy_acl based on these new primitives: this avoids code
13248         duplication and makes error handling more consistent.
13249         The Solaris and Cygwin code still uses duplicate code paths for setting
13250         a file mode while making sure that no acls exist and setting an explicit
13251         acl; this is no worse than before, but could be cleaned up.  The AIX
13252         code still doesn't read ACLs, it only makes sure that acls don't get in
13253         the way when setting a file mode.
13254         * lib/acl-internal.h (struct permission_context): New data structure.
13255         (get_permissions, set_permissions, free_permission_context): Declare.
13256         * lib/acl-internal.c (free_permission_context): New helper function.
13257         * lib/get-permissions.c (get_permissions): New helper function split off
13258         from qcopy_acl.
13259         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
13260         AIX, set a file's permissions based only on a file mode.
13261         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
13262         other platforms construct a temporary acl from the file mode and set
13263         that acl in the same way as setting an acl read from the source file.
13264         This should help avoid code duplication and inconsistent / buggy
13265         behavior.
13266         (set_acls): New helper function Split off from qcopy_acl.
13267         (chmod_or_fchmod): Moved here from qset-acl.c.
13268         (set_permissions): New helper function.
13269         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
13270         set_permissions.
13271         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
13272         * modules/qacl: Add get-permissions.c and set-permissions.c.
13274         file-has-acl: Split feature tests again (Bug#20667)
13275         * lib/file-has-acl.c: Instead of testing for
13276         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
13277         define them when needed.
13278         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
13279         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
13281 2015-05-27  Pádraig Brady  <P@draigBrady.com>
13283         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
13284         This avoids a conflict with "FORTIFY_SOURCE" variants
13285         of the string functions when they're replaced on NetBSD-6.0.1
13286         and Darwin-14.3.0 at least.
13287         * lib/string.in.h: Avoid including our "lib/string.h" while
13288         including the system <string.h>.
13290 2015-05-26  Eric Blake  <eblake@redhat.com>
13292         stdio: limit __gnu_printf__ witness to gcc 4.4+
13293         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
13294         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
13296         error: use correct printf attributes on mingw
13297         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
13299         inttypes: force correct mingw PRIdMAX even without <stdio.h>
13300         * modules/inttypes (Depends-on): Require extensions, so that mingw
13301         always uses GNU style inttypes.
13302         * lib/inttypes.in.h: On mingw, include <stdio.h>.
13304         stdio: fix probe on mingw under gcc 5.1
13305         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
13306         around new gcc preprocessor rules.
13308 2015-05-07  Glenn Morris  <rgm@gnu.org>
13310         gitlog-to-changelog: parse "Tiny-change"
13311         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
13312         "Copyright-paperwork-exempt".  (Bug#20324)
13314 2015-05-06  Pádraig Brady  <P@draigBrady.com>
13316         doc: document glibc posix_fallocate() issues
13317         * doc/posix-functions/posix_fallocate.texi: Mention the
13318         glibc efficiency problems and issues with NFS.
13320 2015-05-05  Karl Berry  <karl@freefriends.org>
13322         * build-aux/gendocs.sh (usage): document new css default
13323         for HTML (--htmlarg).
13325 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
13327         extern-inline: no need for workaround in GCC 5.1
13328         * doc/extern-inline.texi (extern inline):
13329         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
13330         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
13331         around these bugs in GCC 5.1 and later.  Maybe in a decade or
13332         two we can remove these workarounds.
13334 2015-04-28  Pádraig Brady  <P@draigBrady.com>
13336         eealloc, pagealign_alloc, xalloc: avoid clang warnings
13337         Avoid [-Wunknown-attributes] warnings like:
13338         warning: unknown attribute '__alloc_size__' ignored
13339         * lib/xalloc.h: Don't use the __alloc_size__  attribute
13340         with clang, as support has been fully removed as of clang 3.5:
13341         https://github.com/llvm-mirror/clang/commit/c047507a
13342         * lib/eealloc.h: Likewise.
13343         * lib/pagealign_alloc.h: Likewise.
13345 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
13347         tests: pacify GCC 5.1's stricter printf checking
13348         * tests/test-dirname.c (main):
13349         * tests/test-getaddrinfo.c (simple):
13350         * tests/test-getlogin.c (main):
13351         * tests/test-getndelim2.c (main):
13352         * tests/test-inttostr.c (CK):
13353         * tests/test-md5.c (main):
13354         * tests/test-read-file.c (main):
13355         * tests/test-sha1.c (main):
13356         Fix mismatches between printf format and value signedness.
13357         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
13358         Remove, as CAST_VAL always returned a value of type uintmax_t.
13360         fts: port to GCC 5.1 with --enable-gcc-warnings
13361         Without this fix, GCC 5.1 (correctly) warns about a subscript
13362         error on the fts_name component of FTSENT.  It's actually a
13363         flexible member, so define it that way on C99 or later hosts.
13364         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
13365         structure that now has a flexible array member.
13366         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
13367         (FTSENT): fts_name is now flexible on C99-or-later platforms.
13368         * modules/fts (Depends-on): Add flexmember.
13370 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
13372         file-has-acl: port to CentOS 6
13373         Problem reported by Tom G. Christensen in:
13374         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
13375         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
13376         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
13377         HAVE_GETXATTR.
13378         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
13379         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
13380         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
13381         file-has-acl.c actually needs.
13383 2015-04-26  Pádraig Brady  <P@draigBrady.com>
13385         file-has-acl: always return false when ACLs aren't supported
13386         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
13387         change the GNU/Linux getxattr path, to transform "not supported"
13388         errors to a false return rather than an error.  This is handled
13389         within file_has_acl() due to the platform specific tests to
13390         determine if ACLs are not supported.
13392 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13394         gettext: propagate po/Makefile.in.in too
13395         * build-aux/po/Makefile.in.in: Copy from latest gettext.
13396         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
13397         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
13398         between Makefile.in.in and the gettext-runtime m4 files.
13400 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13402         file-has-acl: new module, split from acl
13403         And add a new module file-has-acl-tests to match.
13404         I ran into a problem with the recent changes to the acl module,
13405         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
13406         When using the fixed version with Emacs, I discovered that
13407         file-has-acl wasn't separated out well enough for Emacs (e.g., it
13408         had multiple libraries, but needed only one), so I fixed that too.
13409         * NEWS: Document this incompatible change.
13410         * modules/file-has-acl, modules/file-has-acl-tests: New files.
13411         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
13412         Initialize gl_need_lib_has_acl.
13413         (gl_FUNC_ACL): Require it.
13414         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
13415         Move the file-has-acl.c-relevant stuff to ...
13416         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
13417         use_xattrs = 0' typo, and omit some needless work.  Set
13418         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
13419         when gl_FUNC_ACL is called.
13420         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
13421         (Link): Remove $(LIB_HAS_ACL).
13422         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
13423         (check_PROGRAMS): Move stuff relevant to file-has-acl to
13424         modules/file-has-acl-tests.
13425         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
13427         manywarnings: add GCC 5.1 warnings
13428         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
13429         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
13430         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
13431         -Wsuggest-override, -Wuse-without-only.  Change
13432         -Wnormalized=... operands to match 5.1.
13433         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
13434         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
13435         -Wdiscarded-qualifiers, -Wformat-signedness,
13436         -Wincompatible-pointer-types, -Wint-conversion,
13437         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
13438         -Wshift-count-negative, -Wshift-count-overflow,
13439         -Wsizeof-array-argument, -Wsuggest-final-methods,
13440         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
13441         and add -Warray-bounds=2 as a special case.
13443 2015-04-21  Simon Josefsson  <simon@josefsson.org>
13445         doc: update FDL template to match FDL examples.
13446         * doc/alloca-opt.texi:
13447         * doc/alloca.texi:
13448         * doc/c-ctype.texi:
13449         * doc/c-strcase.texi:
13450         * doc/c-strcaseeq.texi:
13451         * doc/c-strcasestr.texi:
13452         * doc/c-strstr.texi:
13453         * doc/c-strtod.texi:
13454         * doc/c-strtold.texi:
13455         * doc/ctime.texi:
13456         * doc/error.texi:
13457         * doc/gcd.texi:
13458         * doc/gnulib-tool.texi:
13459         * doc/inet_ntoa.texi:
13460         * doc/intprops.texi:
13461         * doc/lib-symbol-visibility.texi:
13462         * doc/maintain.texi:
13463         * doc/parse-datetime.texi:
13464         * doc/quote.texi:
13465         * doc/regexprops-generic.texi:
13466         * doc/standards.texi: Remove spurious 'with' in FDL license
13467         template.
13469 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
13471         lstat: fix cross-compilation 'ln -s' problem
13472         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
13473         Have the test program call 'symlink' rather than a separate
13474         script run 'ln -s'; this is more likely to work in
13475         cross-compilation environments.  Reported by Pavel Fedin in:
13476         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
13478 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
13480         gendocs.sh: default to a common CSS style sheet for HTML output
13481         * build-aux/gendocs.sh (htmlarg): Change default value.
13483 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
13485         gnulib-tool: output bold attribute more portably
13486         * gnulib-tool (func_show_module_list): Change hexadecimal
13487         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
13488         encoded numbers as arguments to `printf' is not portable,
13489         and is not claimed by POSIX.  This is the case with FreeBSD.
13491 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
13493         qacl: Simplify HP-UX acl_nontrivial check
13494         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
13495         acl_nontrivial. Check if the acl has at most three entries instead (it must
13496         have exactly three entries according to the HP-UX documentation). Ignore
13497         uids and gids as long as an entry is either for a user (i.e., the owner),
13498         a group (i.e., the owning group), or others.
13499         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
13500         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
13502 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
13504         acl: On Linux, check for acls without libacl
13505         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
13506         library function to check for the presence of acls, avoiding a library.
13507         * lib/file-has-acl.c: Include xattr headers if we have them.
13508         (file_has_acl): On Linux, use getxattr().
13509         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
13510         file_has_acl(). Check for xattr headers and getxattr().
13512 2015-04-14  Ángel González  <keisial@gmail.com>
13514         tempname: avoid unused parameter warnings (trivial)
13515         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
13516         (try_nocreate): Likewise.
13518 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
13520         fseeko: fix build failure on NetBSD >= 6 (trivial)
13521         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
13522         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
13524 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13526         gitlog-to-changelog: port to MS-Windows
13527         * build-aux/gitlog-to-changelog (git_dir_option):
13528         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
13529         MS-Windows Perl.  Reported by Eli Zaretskii in:
13530         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
13532 2015-04-07  Karl Berry  <karl@gnu.org>
13534         gendocs: new option --tex for passing args to texi2dvi.
13535         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
13536         (TEXI2DVI): cut to just command name.
13537         (usage): mention new option, and update copyright.
13538         <generate_tex>: use it.
13540 2015-04-07  Karl Berry  <karl@gnu.org>
13542         * config/srclistvars.sh (GETTEXT): new definition.
13543         * config/srclist.txt: use it for gettext .m4 files.
13544         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
13545         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
13546         and continuing into April.
13548 2015-04-07  Daiki Ueno  <ueno@gnu.org>
13550         uniname/uniname-tests: fix failure due to alias
13551         Reported by Jack Howarth in:
13552         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
13553         * tests/uniname/test-uninames.c (name_has_alias): New function.
13554         (test_inverse_lookup): Exclude character name with valid alias,
13555         from randomly generated character names.
13556         (main): Fill unicode_aliases before calling test functions.
13558 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
13560         hash: remove deprecated hash_insert0 function
13561         * lib/hash.h (hash_insert0): Remove deprecated function.
13562         * lib/hash.c (hash_insert0): Likewise.
13564 2015-04-02  Pádraig Brady  <P@draigBrady.com>
13566         mountlist: remove dependency on libmount
13567         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
13568         directly, rather than depending on libmount, which has many
13569         dependencies due to its dependence on libselinux, as detailed at:
13570         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
13571         Note we restrict this to __linux__ as that's probably where this
13572         interface will remain.  If ever porting, it would be best
13573         to first pull the makedev() wrapper from coreutils to a gnulib module.
13574         Note also we don't add a getline dependency to the mountlist module,
13575         as all Linux versions are sufficient.
13577 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
13579         stddef: port to pre-C11 GCC on x86
13580         On this platform, max_align_t should have an alignment of 8 even
13581         though the storage alignments of double, long, etc. max out at 4.
13582         Inspired by a comment of Andreas Schwab's here:
13583         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
13584         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
13585         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
13586         * tests/test-stddef.c: Test __alignof__ too, if available.
13588 2015-03-24  Pádraig Brady  <P@draigBrady.com>
13590         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
13591         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
13593 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
13595         yesno: make EOL optional in ENABLE_NLS case also (trival)
13596         * lib/yesno.c (yesno): Check for EOL before replacing.
13597         * tests/test-yesno.sh: Add a test case (test along with gettext).
13599 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
13601         fdopendir-tests: test it does not close its arg
13602         * tests/test-fdopendir.c (main): Test that fdopendir does not
13603         close its argument.  From a suggestion by David Grayson in:
13604         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
13606 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13608         gitlog-to-changelog: trim trailing white space
13609         * build-aux/gitlog-to-changelog (main):
13610         Trim trailing white space from commit message lines.
13611         This is helpful for processing the GNU Emacs repository,
13612         which dates back to 1985 and contains a lot of such lines.
13614         gitlog-to-changelog: new option --ignore-matching
13615         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
13616         Support new option --ignore-matching=PAT, which ignores all
13617         commit messages whose first line matches PAT.
13619 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13621         fdopendir: port better to MinGW
13622         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
13623         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
13624         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
13625         * modules/fdopendir (Depends-on): Add dirfd.
13627 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
13629         fdopendir: fix typo in comment
13630         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
13632 2015-03-09  Eric Blake  <eblake@redhat.com>
13634         error: document all entry points provided
13635         * doc/glibc-functions/error_print_progname.texi
13636         (error_print_progname): Mention the error module.
13637         * doc/glibc-functions/error_at_line.texi (error_at_line):
13638         Likewise.
13639         * doc/glibc-functions/error_message_count.texi
13640         (error_message_count): Likewise.
13641         * doc/glibc-functions/error_one_per_line.texi
13642         (error_one_per_line): Likewise.
13644 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
13646         vasnprintf: pacify clang 3.5.0
13647         Problem reported by Werner Lemberg in:
13648         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
13649         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
13650         The casts aren't needed, since the characters in question are ASCII.
13652 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13654         glob, etc.: port to MSVC v18 on MS-Windows 8.1
13655         * lib/dirent--.h (GNULIB_defined_opendir):
13656         * lib/dirent.in.h (GNULIB_defined_opendir)
13657         (GNULIB_defined_closedir):
13658         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
13659         #undef only if Gnulib defined it.
13661         poll: port to MSVC v18 on MS-Windows 8.1
13662         Problem reported by Gisle Vanem in:
13663         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
13664         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
13665         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
13666         Add sys_socket.
13668 2015-02-24  Pádraig Brady  <P@draigBrady.com>
13670         tests: support stderr verification with returns_()
13671         * tests/init.sh (returns_): Disable tracing for this wrapper
13672         function, so that stderr of the wrapped command is unchanged,
13673         allowing for verification of the contents.
13675 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
13677         passfd: avoid valgrind uninitalised data warning
13678         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
13679         to include just the fd we've initialized, rather than including
13680         the extra space used for alignment.
13682 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
13684         uniwbrk/u32-wordbreaks-tests: fix copyright
13685         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
13687         dup2: doc and test for Android bug
13688         Reported by Kevin Cernekee in:
13689         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
13690         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13691         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
13693 2015-02-23  Kevin Cernekee  <cernekee@google.com>
13695         Replace dup2() on Android
13696         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
13697         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
13698         fails.  Using rpl_dup2() fixes this because it has an explicit test
13699         for this condition.
13701 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
13703         Android doesn't define RLIM_SAVED_*
13704         Portability problem reported by Kevin Cernekee in:
13705         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
13706         * doc/posix-headers/sys_resource.texi (sys/resource.h):
13707         Mention the portability problem.
13708         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
13709         Define if not defined.
13710         * m4/dup2.m4 (gl_FUNC_DUP2):
13711         * m4/fcntl.m4 (gl_FUNC_FCNTL):
13712         Likewise.
13714 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
13716         vasnprintf-posix-tests: use consistent test
13717         * tests/test-vasnprintf-posix.c (test_function):
13718         Use "<" in assert instead of "<=", for consistency with other tests.
13720 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
13722         printf, isinf, etc.: noncanonical != NaN
13723         Do not require that isinf, printf, etc. treat noncanonical
13724         values as NaNs.  Instead, require only that they do not crash.
13725         Problem reported by Joseph Myers in:
13726         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
13727         * doc/posix-functions/dprintf.texi (dprintf):
13728         * doc/posix-functions/fprintf.texi (fprintf):
13729         * doc/posix-functions/isfinite.texi (isfinite):
13730         * doc/posix-functions/isinf.texi (isinf):
13731         * doc/posix-functions/isnan.texi (isnan):
13732         * doc/posix-functions/printf.texi (printf):
13733         * doc/posix-functions/snprintf.texi (snprintf):
13734         * doc/posix-functions/sprintf.texi (sprintf):
13735         * doc/posix-functions/vdprintf.texi (vdprintf):
13736         * doc/posix-functions/vfprintf.texi (vfprintf):
13737         * doc/posix-functions/vprintf.texi (vprintf):
13738         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13739         * doc/posix-functions/vsprintf.texi (vsprintf):
13740         Document this.
13741         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
13742         * m4/isinf.m4 (gl_ISINFL_WORKS):
13743         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
13744         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
13745         * tests/test-isfinite.c (test_isfinitel):
13746         * tests/test-isinf.c (test_isinfl):
13747         * tests/test-isnan.c (test_long_double):
13748         * tests/test-isnanl.h (main):
13749         * tests/test-snprintf-posix.h (test_function):
13750         * tests/test-sprintf-posix.h (test_function):
13751         * tests/test-vasnprintf-posix.c (test_function):
13752         * tests/test-vasprintf-posix.c (test_function):
13753 o       Test only that noncanonical values do not cause crashes, not that
13754         they are treated as NaNs.  In some cases this means a larger
13755         output buffer is needed.
13757 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
13759         fts: remove redundant close() (trivial)
13760         * lib/fts.c (fts_read): Remove redundant call to close().
13761         Spotted by coverity.
13763 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
13765         getdtablesize: port better for Android
13766         Problem reported by Kevin Cernekee in:
13767         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
13768         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
13769         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
13770         Instead, just use getrlimit, taking care to avoid Cygwin bug.
13772         poll: fixes for large fds
13773         * lib/poll.c (poll): Don't check directly for NFD too large.
13774         Don't rely on undefined behavior in FD_SET when an arg exceeds
13775         FD_SETSIZE.  Always set revents afterwards, even if to zero.
13776         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
13777         as that makes the test a bit stricter.
13779 2015-02-19  Kevin Cernekee  <cernekee@google.com>
13781         fcntl: Fix cross compiling
13782         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
13783         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
13785 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13787         dup2, fcntl: cross-compile better for Android
13788         Problem reported by Kevin Cernekee in:
13789         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
13790         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
13791         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
13792         there's little need to cross-compile for older kernels nowadays.
13793         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
13794         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
13796 2015-02-18  Pádraig Brady  <P@draigBrady.com>
13798         getopt: don't crash on memory exhaustion
13799         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
13800         memory exhaustion.  In the _LIBC case we use alloca() as is
13801         already done in glibc, so we don't need to consider the separate
13802         error path in that awkward case.  Also fix a memory leak when
13803         ambiguous options are present.
13804         Reported by Tobias Stoeckmann
13806 2015-02-17  Mike Miller  <mtmiller@ieee.org>
13808         tempname: allow compilation with C++ (trivial)
13809         * lib/tempname.h [C++]: Specify extern "C" linkage.
13810         * lib/tempname.h (try_tempname):
13811         * lib/tempname.c (__try_tempname, __gen_tempname):
13812         Rename 'try' to 'tryfunc'.
13814 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13816         dup2, fcntl: port to AIX
13817         * m4/dup2.m4 (gl_FUNC_DUP2):
13818         * m4/fcntl.m4 (gl_FUNC_FCNTL):
13819         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
13820         The former works on AIX 7.1 but the latter does not.
13821         Also, this may work better with Android; see:
13822         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
13824 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13826         getdtablesize, dup2, fcntl: port to Android
13827         Problem reported by Kevin Cernekee in:
13828         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
13829         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
13830         Mention that getdtablesize doesn't work on Android.
13831         * lib/getdtablesize.c: Use getrlimit substitute only if
13832         getdtablesize is declared.  This should suffice for Cygwin
13833         while not breaking Android.
13834         * m4/dup2.m4 (gl_FUNC_DUP2):
13835         * m4/fcntl.m4 (gl_FUNC_FCNTL):
13836         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
13837         standardized but the latter is not, and sysconf works on Android.
13838         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
13839         Also check that getdtablesize is declared.
13840         This removes the need for a special case for Android.
13842 2015-02-16  Kevin Cernekee  <cernekee@google.com>
13844         localename: Implement gl_locale_name_thread_unsafe for Android
13845         * lib/localename.c: Android API level >= 21 supports two hardcoded
13846         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
13847         the internal __locale_t struct.
13849 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
13851         fts: avoid crash when a cycle is added while traversing
13852         This could be triggered by auto-mounting a recursive bind mount.
13853         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
13854         * lib/fts.c (fts_read): Avoid removing the original hash table item
13855         when leaving a directory that caused a cycle, and preserve the FTS_DC
13856         flag.
13858 2015-02-16  Daiki Ueno  <ueno@gnu.org>
13860         uniname/uniname: support character alias
13861         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
13862         Generate one-way mapping from aliases to codepoints in the
13863         generated tables.  Special case variation selectors to reduce
13864         table size.
13865         * lib/uniname/uniname.c (unicode_character_name): Special case
13866         variation selectors.
13867         (unicode_name_character): Special case variation selectors and
13868         their aliases.
13869         * lib/uniname/uninames.h: Regenerate.
13870         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
13871         * modules/uniname/uniname-tests (Files): Add
13872         tests/uniname/NameAliases.txt.
13873         * tests/uniname/test-uninames.c: Mark as static.
13874         (ALIASLEN): Define.
13875         (struct unicode_alias): New struct.
13876         (unicode_aliases): New variable.
13877         (fill_aliases): New function.
13878         (test_alias_lookup): New test function.
13879         (main): Run the 'test_alias_lookup' test if the second argument is
13880         given.
13881         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
13882         second argument.
13884 2015-02-11  Kevin Cernekee  <cernekee@google.com>
13886         Fix FILE struct compatibility with Android API level >= 21
13887         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
13888         __sferror.  Recent versions of Bionic's stdio.h no longer define
13889         __sferror.
13890         * lib/fbufmode.c: Likewise.
13891         * lib/fflush.c: Likewise.
13892         * lib/fpurge.c: Likewise.
13893         * lib/freadable.c: Likewise.
13894         * lib/freadahead.c: Likewise.
13895         * lib/freading.c: Likewise.
13896         * lib/freadptr.c: Likewise.
13897         * lib/freadseek.c: Likewise.
13898         * lib/fseeko.c: Likewise.
13899         * lib/fseterr.c: Likewise.
13900         * lib/fwritable.c: Likewise.
13902         Assume unbroken ungetc() on Android
13903         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
13904         test case passed when running on an Android host, and the code
13905         hasn't really changed since 2009.
13907         getdtablesize: Fix Android build
13908         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
13909         versions have this symbol in the .so library (at least 32-bit
13910         platforms) but are missing the declaration in the header file,
13911         causing the m4 logic to guess incorrectly.
13913         localename: Fix Android build
13914         * modules/localename (Depends-on): Add langinfo.
13916         getugroups: Fix Android build
13917         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
13918         functions.
13920         euidaccess: Fix Android build
13921         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
13922         AT_EACCESS gets declared.
13924         linkat_nofollow: Add fallback case for cross compiling
13925         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
13927         net_if: Handle content-free <net/if.h> system headers
13928         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
13929         struct if_nameindex.  If not, enable the replacement header.
13931         signal_h: Fix Android build
13932         * lib/signal.in.h: Add Android to the list of platforms that declare
13933         pthread_sigmask() in <pthread.h> instead of <signal.h>.
13935         duplocale: Fix Android build of duplocale-tests
13936         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
13937         is included by test-duplocale.c (but not by duplocale.c).
13938         * modules/duplocale-tests (configure.ac): Check for monetary.h.
13939         * tests/test-duplocale.c: Skip test if monetary.h is absent.
13940         * doc/posix-headers/monetary.texi: Add Android to the list of
13941         platforms missing monetary.h.
13943 2015-02-11  Pádraig Brady  <P@draigBrady.com>
13945         tests: avoid recent -Werror=unused-variable regression in test-locale
13946         * tests/test-locale.c (main): Reference the variable to avoid the
13947         "unused variable" warning.
13949 2015-02-11  Pádraig Brady  <P@draigBrady.com>
13951         maint: various whitespace cleanups in tempname
13952         * lib/tempname.c: Normalize spacing and line length.
13953         * lib/tempname.h: Likewise.
13954         * modules/tempname: Likewise.
13956 2015-02-11  Pádraig Brady  <P@draigBrady.com>
13958         tests: provide returns_() to simplify exit status checking
13959         * tests/init.sh (returns_): A new function for use in tests,
13960         to allow for easier checking of return values, where you expect
13961         a command to exit with failure status.  By checking for a particular
13962         exit code, you don't hide any crashes for example.
13964 2015-02-11  Pádraig Brady  <P@draigBrady.com>
13966         mountlist: only use libmount when specified
13967         There are currently many shared libs dependencies introduced by
13968         libmount with associated runtime and virt mem overhead.
13969         Therefore don't enable by default.
13970         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
13972 2015-02-08  Daiki Ueno  <ueno@gnu.org>
13974         uniname/unimame-tests: don't link with -lunistring
13975         * modules/uniname/uniname-tests (Makefile.am): Don't link against
13976         $(LIBUNISTRING).  Document the rationale why we need to
13977         conditionalize the test.
13979 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
13981         fstrcmp: don't assume strlen < INT_MAX
13982         * lib/fstrcmp.c: Include stddef.h and stdint.h.
13983         (uintptr_t): Remove, as we're now assuming stdint.
13984         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
13985         Prefer ptrdiff_t to int when the value could exceed INT_MAX
13986         if the input string is long.
13987         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
13988         uintptr_t to size_t when the underlying value is a pointer casted
13989         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
13990         * modules/fstrcmp (Depends-on): Add stdint.
13992         diffseq: prefer ptrdiff_t to ssize_t
13993         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
13994         ptrdiff_t is the natural type for signed indexes.
13995         On a few older platforms, ssize_t is narrower than size_t.
13997         xalloc: fix typo that suppressed warnings
13998         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
13999         This typo, introduced a couple of years ago, mistakenly suppressed
14000         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
14001         -Wmissing-declarations warnings.
14003         full-read: fix license notice typo
14004         * lib/full-read.h: Remove a stray line in the license notice.
14005         Reported by Sam Ellis in: http://bugs.gnu.org/19808
14007         crypto/gc: fix a -Wswitch warning
14008         Reported by Bruce Korb in:
14009         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
14010         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
14012 2015-02-03  Pádraig Brady  <P@draigBrady.com>
14014         gnulib-tool: fix handling of patch(1) diagnostics
14015         * gnulib-tool: Send diagnostics from patch(1) to stderr,
14016         as otherwise gnulib-tool will reparse that output and attempt
14017         to lookup modules.
14019 2015-02-03  Pádraig Brady  <P@draigBrady.com>
14021         bootstrap: exit immediately upon gnulib-tool failure
14022         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
14023         This was noticed when gnulib-tool exited early due to failure
14024         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
14025         but various confusing errors were then given as the build proceeded.
14027 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
14029         symlinkat: include all required header files
14030         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
14031         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
14032         Reported at https://savannah.gnu.org/bugs/index.php?44151
14033         and by Jack Howarth.
14035 2015-01-29  Pádraig Brady  <P@draigBrady.com>
14037         localename: support Solaris 12 and illumos
14038         * lib/localename.c (gl_locale_name_thread_unsafe): call
14039         getlocalename_l() on newer __sun platforms.
14040         Reported by Alexander Pyhalov.
14041         Fix suggested by Rich Burridge.
14043 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
14045         locale: fix tests on illumos (trivial)
14046         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
14047         so move from global scope to main().
14049 2015-01-24  Daiki Ueno  <ueno@gnu.org>
14051         unictype: avoid undefined left-shift behavior
14052         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
14053         gcc's -fsanitize=shift and running its tests triggered:
14054           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
14055             places cannot be represented in type 'int'
14056         Cast LHS to 'unsigned int' after integer promotion.
14057         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
14058         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
14060 2015-01-20  Daiki Ueno  <ueno@gnu.org>
14062         libunistring: bump version of unitypes dependants
14063         Due to the header file search order, all the headers which depend
14064         on unitypes.h need to be generated, when the preinstalled
14065         libunistring is older.
14066         * modules/unicase/base (configure.ac): Bump minimum version to
14067         0.9.4.
14068         * modules/uniconv/base (configure.ac): Likewise.
14069         * modules/unilbrk/base (configure.ac): Likewise.
14070         * modules/uninorm/base (configure.ac): Likewise.
14071         * modules/unistdio/base (configure.ac): Likewise.
14072         * modules/unistr/base (configure.ac): Likewise.
14073         * modules/uniwbrk/base (configure.ac): Likewise.
14074         * modules/uniwidth/base (configure.ac): Likewise.
14076 2015-01-20  Daiki Ueno  <ueno@gnu.org>
14078         unictype/category-none: fix link with libunistring
14079         Since _UC_CATEGORY_NONE is not a public symbol, it will be
14080         prefixed with "libstring_" when compiled as part of libunistring.
14081         To avoid undefined symbol at link time, increase the minimum
14082         version when the dependant modules are updated.
14083         * modules/unictype/category-none (configure.ac): Bump minimum
14084         version to 0.9.5.
14086 2015-01-20  Daiki Ueno  <ueno@gnu.org>
14088         unitypes: fix build with installed libunistring
14089         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
14090         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
14091         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
14093 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
14095         time: port to MinGW32 3.21
14096         Problem reported by Eli Zaretskii in:
14097         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
14098         * lib/time.in.h:
14099         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
14100         * modules/time (Depends-on):
14101         Fall back on unistd.h if the other include files don't define
14102         struct timespec.
14104         update-copyright: apply to self
14105         * build-aux/update-copyright: Fix copyright date.  How ironic!
14107 2015-01-15  Daiki Ueno  <ueno@gnu.org>
14109         libunistring: update to Unicode 7.0.0
14110         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
14111         Manichaean names.
14112         * lib/unictype/joininggroup_name.h: Likewise.
14113         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
14114         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
14115         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
14116         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
14117         (fill_arabicshaping, joining_group_as_c_identifier): Support those
14118         enum values.
14119         (is_property_alphabetic): Accept newly added characters to
14120         cuneiform numeric signs.
14121         (is_property_default_ignorable_code_point): Reject U+0605.
14122         (FIELDLEN): Increase from 120 to 160.
14123         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
14124         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
14125         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
14126         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
14127         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
14128         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
14129         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
14130         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
14131         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
14132         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
14133         U+1E8D0..U+1E8D6.
14134         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
14135         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14136         lib/uniwidth/width.c.
14137         * all generated files under lib/uni* and tests/uni*: Regenerate.
14139 2015-01-14  Daiki Ueno  <ueno@gnu.org>
14141         libunistring: update to Unicode 6.3.0
14142         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
14143         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
14144         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
14145         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
14146         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
14147         Update WB5, WB9, WB10, WB13a, and WB13b.
14148         * tests/uniwbrk/test-uc-wordbreaks.c
14149         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
14150         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
14151         (UC_BIDI_PDI): New enumeration values.
14152         (bidi_category_byname): Support those enum values.
14153         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
14154         dedicated property assigned.
14155         (is_property_case_ignorable): Check 0x0027.
14156         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
14157         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
14158         (output_wbp): Support those enum values.
14159         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
14160         (UC_BIDI_PDI): New enumeration values.
14161         * lib/unictype/bidi_byname.gperf: Add those property names.
14162         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
14163         U+180E, U+1A1B, and U+2066..U+2069.
14164         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14165         lib/uniwidth/width.c.
14166         * all generated files under lib/uni* and tests/uni*: Regenerate.
14168 2015-01-14  Daiki Ueno  <ueno@gnu.org>
14170         libunistring: update to Unicode 6.2.0
14171         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
14172         (unilbrk_table): Adjust table size.
14173         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
14174         for LBP_RI.
14175         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
14176         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
14177         Normalize table index skipping ignored properties.
14178         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
14179         WBP_EXTEND and WBP_FORMAT, which are now computed without using
14180         the table.
14181         * lib/uniwbrk/wbrktable.h: Adjust table size.
14182         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
14183         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
14184         Support rule GB8a.
14185         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
14186         * tests/unigbrk/test-uc-is-grapheme-break.c
14187         (graphemebreakproperty_to_string): Support GBP_RI.
14188         * tests/uniwbrk/test-uc-wordbreaks.c
14189         (wordbreakproperty_to_string): Support WBP_RI.
14190         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
14191         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
14192         (output_lbp): Support LBP_RI.  Adjust some characters changed from
14193         LBP_AL to LBP_ID.
14194         (output_lbp): Support LBP_RI.
14195         (WBP_RI): New enumeration value.
14196         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
14197         (output_wbp): Support WBP_RI.
14198         (GBP_RI): New enumeration value.
14199         (output_gbp_test, fill_org_gbp): Support GBP_RI.
14200         * all generated files under lib/uni* and tests/uni*: Regenerate.
14202 2015-01-14  Daiki Ueno  <ueno@gnu.org>
14204         libunistring: update to Unicode 6.1.0
14205         * lib/gen-uni-tables.c (output_joining_group): Switch to
14206         3-level table to accommodate joining groups defined with higher
14207         codepoint value.  Since there are only 88 groups defined in
14208         Unicode 7.0.0, use 7-bit packed format for level3 entries.
14209         (get_lbp): Update for Unicode 6.1.0.
14210         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
14211         3-level table.
14212         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
14213         joining group name.
14214         * lib/unictype/joininggroup_name.h: Likewise.
14215         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
14216         (unilbrk_table): Adjust table size.
14217         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
14218         for LBP_HL.
14219         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
14220         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
14221         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
14222         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
14223         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
14224         U+302E..U+302F.
14225         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14226         lib/uniwidth/width.c.
14227         * all generated files under lib/uni* and tests/uni*: Regenerate.
14228         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
14230 2015-01-15  Daiki Ueno  <ueno@gnu.org>
14232         uniwbrk/u32-wordbreaks-tests: add conformance test
14233         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
14234         tests/uniwbrk/test-uc-wordbreaks.c,
14235         tests/uniwbrk/test-uc-wordbreaks.sh, and
14236         tests/uniwbrk/WordBreakTest.txt.
14237         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
14238         test-uc-wordbreaks to $(check_PROGRAMS), and define
14239         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
14240         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
14241         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
14243 2015-01-15  Daiki Ueno  <ueno@gnu.org>
14245         uniwbrk: ignore Extended/Format characters at BOL not BOS
14246         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
14247         characters if the previous character property is one of
14248         WBP_NEWLINE, WBP_CR, and WBP_LF.
14250 2015-01-11  Jim Meyering  <meyering@fb.com>
14252         test-strstr.c: avoid a trivial leak
14253         * tests/test-strstr.c (main): Free haystack.
14255         update-copyright: recognize groff's \(co marker
14256         * build-aux/update-copyright (circle_c_re): Also accept
14257         uses of \(co, as found in gzip.1.
14259 2015-01-08  Pádraig Brady  <P@draigBrady.com>
14261         maint.mk: fix compatibility with OS X nm
14262         * top/maint.mk (_gl_tight_scope): Use the -g option to
14263         show exported items rather than the -e option which is
14264         ignored on all platforms except OS X where it gives an error.
14265         Reported by Assaf Gordon.
14267 2015-01-07  KO Myung-Hun  <komh@chollian.net>
14269         localcharset: improve charset detection on OS/2
14270         Use system codepage when appropriate.  Map OS/2 codepages to
14271         GNU canonical charset names if possible.
14272         * lib/config.charset: Don't output aliases if "$os" is os2*.
14273         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
14274         result for OS/2.
14275         (locale_charset) [OS2]: Use system codepage if codeset is omitted
14276         from the locale name which is neither "C" nor "POSIX".
14278 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
14280         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
14281         This reverts the last patch but one, as it shouldn't be needed now
14282         that the typo is fixed.
14283         * lib/count-leading-zeros.h (count_leading_zeros_ll):
14284         * lib/count-trailing-zeros.h:
14285         * lib/count-one-bits.h:
14286         Go back to using 64-bit intrinsics.
14288         count-leading-zeros: fix pragma typos
14289         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
14290         Fix typos in declaration of intrinsics when _MSC_VER.
14292 2015-01-06  Pádraig Brady  <P@draigBrady.com>
14294         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
14295         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
14296         intrinsics in this case.
14297         * lib/count-trailing-zeros.h: Likewise.
14298         * lib/count-one-bits.h: Likewise.
14300 2015-01-06  Daiki Ueno  <ueno@gnu.org>
14302         uniname/uniname: update to Unicode 7.0.0
14303         To accommodate new characters added since Unicode 5.1.0, this
14304         changes the internal representation of codepoint ranges.
14305         Previously, we grouped codepoint ranges by manually assigned 4-bit
14306         tag, which only allowed 16 groups.  This removes the limitation by
14307         switching to binary search on a table.  For the detail rationale
14308         and the benchmark results, see:
14309         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
14310         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
14311         to INDEX, as it no longer represents a codepoint.
14312         (range): New struct.
14313         (main): Switch to intervals list from a bit-pattern based
14314         classification.
14315         * lib/uniname/uninames.h: Regenerate.
14316         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
14317         * modules/uniname/base (configure.ac): Bump minimum version to
14318         0.9.5.
14319         * modules/uniname/uniname (configure.ac): Bump minimum version to
14320         0.9.5.
14322 2015-01-05  Eric Blake  <eblake@redhat.com>
14324         doc: update INSTALL from autoconf
14325         * doc/install.texi: Resync from autoconf.
14326         * doc/INSTALL: Reflect recent autoconf update.
14327         * doc/INSTALL.ISO: Likewise.
14328         * doc/INSTALL.UTF-8: Likewise.
14330         stdio: fix use of PRIdMAX on modern mingw
14331         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
14332         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
14333         to work with modern mingw.
14335 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
14337         pthread: detect git mingw builds with only partial pollution
14338         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
14339         pollution, as seen temporarily in Fedora 21.
14341 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
14343         lib-symbol-versions: cache script check
14344         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
14345         Cache the check for linker version scripts.
14346         From a suggestion by Christophe Curis in:
14347         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
14349 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
14351         maint: fix grammar nits in propername (trivial change)
14352         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
14353         and use an adequate verb and tense.
14355 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
14357         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
14358         * module/gendocs: Add 'doc/gendocs_template_min'.
14360         * build-aux/gendocs.sh: Change email addresses and upstream URLs
14361         from to Gnulib's.
14362         (scripturl, templateurl): Adjust accordingly.
14364 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
14366         gendocs: copyright date and version fix
14367         Reported by Karl Berry in:
14368         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
14369         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
14370         Fix copyright date.
14371         * build-aux/gendocs.sh (scriptversion): Update.
14373 2015-01-01  Karl Berry  <karl@gnu.org>
14375         * doc/install.texi,
14376         * build-aux/mdate-sh,
14377         * build-aux/depcomp,
14378         * build-aux/config.guess,
14379         * build-aux/config.sub,
14380         * build-aux/ar-lib,
14381         * build-aux/compile: revert copyright updates (some from last
14382         year) in slaved files.
14384 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
14386         version-etc: new year
14387         * doc/gnulib.texi:
14388         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
14389         * all files: Run 'make update-copyright'.
14391 2014-12-30  Pádraig Brady  <P@draigBrady.com>
14393         xstrtol: ensure errno is reset
14394         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
14395         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
14397         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
14399 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14401         utimens: fix dependency typo
14402         * modules/utimens (Depends-on): Remove 'assure'.
14403         This bug was introduced in the recent 'assure' patch.
14405 2014-12-22  Eric Blake  <eblake@redhat.com>
14407         docs: mention why libgen.h is bad
14408         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
14410 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14412         assure: new module
14413         This works better than 'assert' when compiling with -DNDEBUG,
14414         as it avoids some compiler diagnostics in that case.
14415         Reported by Norihiro Tanaka in:
14416         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
14417         * MODULES.html.sh (func_all_modules): Add 'assure'.
14418         * lib/assure.h, modules/assure: New files.
14419         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
14420         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
14421         Prefer 'assure' to 'assert'.
14422         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
14423         * modules/chdir-long, modules/cycle-check, modules/fchdir:
14424         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
14425         Depend on 'assure'.
14427 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
14429         stdalign: port better to HP compilers
14430         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
14431         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
14433         stdalign: work around Apple GCC 4.0 bug
14434         Reported by David Fang in:
14435         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
14436         * lib/stdalign.in.h (_Alignas):
14437         * m4/stdalign.m4 (gl_STDALIGN_H):
14438         Do not use aligned attribute with GCC 4.0 on Apple.
14440 2014-12-16  Pádraig Brady  <P@draigBrady.com>
14442         getcwd: fix test failure on OS X 10.9
14443         * m4/getcwd-path-max.m4: Avoid the replacement if it
14444         won't be effective due to the PATH_MAX limitation of lstat().
14445         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
14446         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
14447         for this case for use in tests, and also exclude this
14448         case when setting REPLACE_GETCWD.
14449         * tests/test-getcwd.c (test_long_name): Restrict the
14450         tested path length so that lstat() will not be passed
14451         a path greater than PATH_MAX.
14452         Also key a test condition on HAVE_OPENAT_SUPPORT rather
14453         than AT_FDCWD, since the latter is set unconditionally
14454         since Sep 2009 in commit 52c658e9.
14456 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
14458         parse-datetime: avoid a compiler warning with byacc (trivial)
14459         * lib/parse-datetime.y (yylex): Use the same prototype in the
14460         function definition as the declaration, to avoid a -Wstrict-prototypes
14461         warning seen when using byacc.
14463 2014-12-12  Daiki Ueno  <ueno@gnu.org>
14465         unicase/locale-language-tests: fix LOCALE_FR test
14466         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
14467         a French locale with traditional encoding.
14468         Reported by umerqayam in:
14469         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
14471 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
14473         stddef: support C11's max_align_t
14474         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
14475         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
14476         Do not undef, as that might cause max_align_t to be defined twice.
14477         Instead, change use to check for _GL_STDDEF_WINT_T too.
14478         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
14479         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
14480         Check for max_align_t.
14481         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
14482         * modules/stddef-tests (Depends-on): Add stdalign.
14483         * tests/test-stddef.c: Test max_align_t.
14485 2014-12-11  Daiki Ueno  <ueno@gnu.org>
14487         unistd: fix iOS check conditional
14488         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
14489         as 0 or 1 in <TargetConditionals.h>, and the previous check always
14490         yielded true on non-iOS environment.
14491         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
14492         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
14493         they are defined.
14495 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
14497         posixtm: avoid compiler warning in a better way
14498         * lib/posixtm.c (IF_LINT): Remove.
14499         (year, posix_time_parse):
14500         Return true (not 0) if successful.  All callers changed.
14501         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
14503 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
14505         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
14506         started with '/' on EMX.
14508 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
14510         freopen: workaround freopen() on OS/2 kLIBC
14511         * lib/freopen.c (rpl_freopen): Workaround.
14512         * m4/freopen.m4: Add os2* case.
14514         get_shared_library_fullname: port to EMX
14515         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
14516         on EMX, respectively.
14517         (_DLL_InitTerm): New on EMX.
14518         (get_shared_library_fullname): Implement on EMX.
14520         find_executable: port to EMX
14521         * lib/progreloc.c (find_executable): Implement on EMX.
14523         sched: check struct sched_param in spawn.h as well
14524         * lib/sched.in.h: Include spawn.h on kLIBC.
14525         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
14527 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
14529         bootstrap: Allow perl modules in $buildreq
14530         * build-aux/bootstrap: Add case for perl modules.
14532 2014-12-08  Pádraig Brady  <P@draigBrady.com>
14534         apply _GL_ATTRIBUTE_PURE to some inline functions
14535         clang 3.4.2 flagged these inline functions as pure
14536         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
14537         * lib/sig-handler.h (get_handler): Likewise.
14538         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
14539         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
14541 2014-12-06  Pádraig Brady  <P@draigBrady.com>
14543         vasnprintf: fix potential use after free
14544         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
14545         flagged by clang-analyzer 3.4.2.
14547 2014-12-05  Pádraig Brady  <P@draigBrady.com>
14549         filevercmp, posixtm: avoid compiler warnings with -O3
14550         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
14551         * lib/posixtm.c: (IF_LINT): Define.
14552         (posix_time_parse): Use it to void a "may be used uninitialized"
14553         warning, seen only with -O3.
14555 2014-12-05  Bruno Haible  <bruno@clisp.org>
14557         Fix LDBL80_WORDS macro on big endian platforms.
14558         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
14559         LDBL80_WORDS macro.
14560         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
14561         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14562         * tests/test-isfinite.c (test_isfinitel): Likewise.
14563         * tests/test-isinf.c (test_isinfl): Likewise.
14564         * tests/test-isnan.c (test_long_double): Likewise.
14565         * tests/test-isnanl.h (main): Likewise.
14566         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
14567         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
14568         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
14569         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
14570         Reported by Pádraig Brady.
14572 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
14574         git-version-gen: do not print new line characters
14575         * build-aux/git-version-gen: Use printf instead of echo and tr.
14577         gnulib-tool: recognize x:* as an absolute path
14578         * gnulib-tool (func_gnulib_dir): Add ?:* case.
14579         (func_relconcat): Likewise.
14581 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
14583         argp: avoid extraneous translation and mem leak with empty pre doc
14584         * lib/argp-help.c (argp_doc): Never translate the empty string,
14585         when "\v" is the first or last character of the string, as that
14586         has a reserved meaning to return the header info from a po file.
14587         This also fixes a small memory leak in the !post case.
14588         The issue can be seen with this command for example:
14589         LC_MESSAGES=en_US grub2-mknetdir --help
14591 2014-11-27  Daiki Ueno  <ueno@gnu.org>
14593         uniname/uniname-tests: skip if system's libunistring is used
14594         * modules/uniname/uniname-tests (Makefile.am): Skip test if
14595         uniname/uniname module is not compiled.
14597 2014-11-27  Pádraig Brady  <P@draigBrady.com>
14599         printf: fix configure check on big endian systems
14600         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
14602 2014-11-22  Daiki Ueno  <ueno@gnu.org>
14604         pipe-filter-gi, pipe-filter-ii: port to AIX
14605         On AIX 7.1, 'select' is defined as static and cannot be referred
14606         to from inline function.
14607         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
14608         the definition...
14609         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
14610         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
14612 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
14614         gitlog-to-changelog: add --until
14615         * build-aux/gitlog-to-changelog: Support new --until option.
14616         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
14618 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
14620         extern-inline: update commentary about GCC bugs
14621         * m4/extern-inline.m4: Add another GCC bug number to comments.
14623 2014-11-13  Daiki Ueno  <ueno@gnu.org>
14625         gen-uni-tables: untabify
14626         * lib/gen-uni-tables.c: Untabify.
14628 2014-11-13  Daiki Ueno  <ueno@gnu.org>
14630         gen-uni-tables: check out-of-range values added to 3-level tables
14631         * lib/gen-uni-tables.c (output_category, output_bidi_category)
14632         (output_joining_type, output_ident_category): Check out-of-range
14633         values added to 3-level tables.
14635 2014-11-13  Daiki Ueno  <ueno@gnu.org>
14637         gen-uni-tables: utilize 'assert'
14638         * lib/gen-uni-tables.c: Include <assert.h>.
14639         (output_category, output_combclass, output_decimal_digit_test)
14640         (output_decimal_digit, output_digit_test, output_digit)
14641         (output_numeric, get_mirror_value, fill_properties)
14642         (fill_property30, is_property_alphabetic)
14643         (is_property_default_ignorable_code_point)
14644         (is_property_uppercase, is_property_lowercase)
14645         (is_property_cased, is_property_case_ignorable)
14646         (is_property_changes_when_lowercased, is_property_iso_control)
14647         (is_property_math, fill_arabicshaping, output_joining_group)
14648         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
14649         (output_wbp, fill_org_gbp, get_decomposition)
14650         (output_decomposition, fill_composition_exclusions)
14651         (debug_output_composition_tables, output_composition_tables)
14652         (redistribute_casefolding_rules, output_casing_rules): Use
14653         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
14654         reporting.
14656 2014-11-13  Daiki Ueno  <ueno@gnu.org>
14658         gen-uni-tables: cosmetic improvements
14659         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
14660         variables specification.
14661         (is_outdigit): Remove unused function.
14663 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
14665         fcntl-h-tests: port to PA-RISC GNU/Linux
14666         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
14668 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
14670         fts: port to C89
14671         Problem reported for MSVC 16 by Gisle Vanem in:
14672         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
14673         * lib/fts.c (fts_build): Avoid declaration before statement.
14675 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
14677         unistd: port to iOS
14678         Problem reported by André Klitzing in:
14679         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
14680         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
14682 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
14684         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
14685         Problem reported by Alan Modra in:
14686         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
14687         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
14688         Always cast the function arg, reverting this part of the previous
14689         change.
14691 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
14693         obstack: avoid potentially-nonportable function casts
14694         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
14695         Remove, replacing with ...
14696         (call_chunkfun, call_freefun): New static functions.
14697         All uses changed.  Avoid potentially-nonportable casts.
14698         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
14699         (_obstack_begin_worker): Omit last two args, since they
14700         rely on potentially-nonportable casts.  All callers changed.
14701         * lib/obstack.h (_OBSTACK_CAST): New macro.
14702         Use it everywhere the old API used a potentially-nonportable cast.
14703         The new API doesn't cast.
14704         (struct obstack): Use unions rather than requiring
14705         potentially-nonportable casts.
14706         (obstack_chunkfun, obstack_freefun): Return void.
14708 2014-11-03  Alan Modra  <amodra@gmail.com>
14710         obstack: fix macro return values
14711         * lib/obstack.h (obstack_next_free): Return void *.
14712         (obstack_1grow_fast, obstack_blank_fast): Return void.
14713         For __GNUC__ macros:
14714         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
14715         For !__GNUC__ macros:
14716         (obstack_make_room, obstack_grow, obstack_grow0)
14717         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
14719 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
14721         obstack: do not assume system-supplied obstack is size_t safe
14722         * m4/obstack.m4: New file.
14723         * modules/obstack (Files): Add it.
14725         obstack: port to platforms that #define __alignof__
14726         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
14727         not if !_LIBC.  We don't know of any platforms that #define
14728         __alignof__, but it might be useful in tests.  Conversely,
14729         glibc assumes GCC.
14731 2014-11-03  Pádraig Brady  <P@draigBrady.com>
14733         linkat: don't unconditionally replace on GNU/Linux
14734         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
14735         was redundant for a few reasons.  It was present to support compiling
14736         on new systems but running on the old narrow window of Linux 2.6.1[67].
14737         It setup and cleaned up test files which weren't actually used.
14738         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
14739         implicit in the following check.
14741 2014-11-03  Pádraig Brady  <P@draigBrady.com>
14743         linkat: wrap to handle symlinks on OS X 10.10
14744         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
14745         but not usable because it doesn't support creating hardlinks
14746         to symlinks.  Therefore add a generic test for this capability
14747         and fallback to our emulation if linkat() fails with ENOTSUP.
14749 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
14751         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
14752         * doc/posix-functions/open.texi (open):
14753         * doc/posix-functions/openat.texi (openat):
14754         Document that these functions do not set errno to ELOOP when
14755         a symlink is opened with O_NOFOLLOW.
14757 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
14759         obstack: add NEWS entry for recent incompatible changes
14760         * NEWS: Describe recent changes.
14762 2014-10-30  Pádraig Brady  <P@draigBrady.com>
14764         mountlist: don't use libmount to decide on dummy/remote
14765         * lib/mountlist.c (read_file_system_list): Don't use the libmount
14766         routines to determine whether a file system is dummy or remote,
14767         as they're not currently compatible.  For example the remoteness
14768         is determined on file system type (for which the list seems incomplete),
14769         rather than simply checking for a ':' in the device name.
14770         Also libmount currently determines that 'tmpfs' is a dummy file system
14771         even though it has associated storage.
14773 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
14775         obstack: prefer __alignof__ to alignof
14776         This is for portability to pre-4.7 GCC when compiling glibc.
14777         See Joseph S. Myers in:
14778         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
14779         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
14780         New macro, defined by including and using <alignof.h>.
14781         (MAX): New macro.
14782         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
14783         Do not use enums as they are not portable to some broken compilers.
14784         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
14786         obstack: prefer alignof to calculating alignments by hand
14787         * lib/obstack.c: Include <stdalign.h>.
14788         (struct fooalign): Remove.
14789         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
14790         * modules/obstack (Depends-on): Add stdalign.
14792 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
14794         obstack: use size_t alignments and check for overflow
14795         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
14796         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
14797         * lib/obstack.h (struct obstack.alignment_mask):
14798         Use _OBSTACK_SIZE_T, not int, for alignments.
14799         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
14800         overflows, e.g., when adding the alignment.
14802 2014-10-29  Alan Modra  <amodra@gmail.com>
14804         obstack: 64-bit obstack support, part 3
14805         This finally enables full 64-bit obstack support.  The glibc
14806         shared library specific code is removed from obstack.c too, and
14807         the error handling code conditionally compiled under control of
14808         another macro, _OBSTACK_NO_ERROR_HANDLER.
14809         * lib/obstack.h: Include string.h earlier.
14810         (_OBSTACK_INTERFACE_VERSION): Define.
14811         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
14812         * lib/obstack.c: Don't include shlib-compat.h.
14813         (OBSTACK_INTERFACE_VERSION): Delete.
14814         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
14815         glibc code is compatible with version 2.  Don't include stdio.h for
14816         __GNU_LIBRARY.
14817         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
14818         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
14819         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
14820         glibc shared library specific source.
14822         obstack: 64-bit obstack support, part 2
14823         This gets us 4G obstack support, without changing ABI
14824         compatibility, apart from possibly introducing some
14825         signed/unsigned comparison warnings in code that uses obstack.h.
14826         a) Replace "int" size parameters, return values, and macro local vars
14827            with _OBSTACK_SIZE_T, an "unsigned int" for now.
14828         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
14829         c) Make all obstack macros checking available room use obstack_room.
14830            "next_free + desired > chunk_limit" may wrap the lhs for chunks
14831            allocated near the top of memory.
14832         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
14833         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
14834         in place of "int" size parameters, return values and local vars.
14835         (_CHUNK_SIZE_T): Define.
14836         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
14837         union use an _OBSTACK_SIZE_T integer type.
14838         For __GNUC__ versions of the following macros...
14839         (obstack_room): Rename local var.
14840         (obstack_make_room): Use obstack_room.
14841         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
14842         obstack_int_grow, obstack_blank): Likewise.
14843         (obstack_finish): Use unsigned comparison when comparing aligned
14844         next_free against chunk_limit.
14845         (obstack_free): Cast OBJ to remove possible const qualifier.
14846         For !__GNUC__ versions of the following macros...
14847         (obstack_make_room): Use obstack_room.
14848         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
14849         obstack_int_grow, obstack_blank): Likewise.
14850         (obstack_finish): Use unsigned comparision when comparing aligned
14851         next_free against chunk_limit.
14852         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
14853         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
14854         _OBSTACK_SIZE_T.
14855         (_obstack_begin, _obstack_begin_1): Likewise.
14856         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
14857         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
14859         obstack: 64-bit obstack support, part 1
14860         a) Correct calls to alloc function, to use a size_t arg.  "long" is
14861            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
14862            and "size_t" 64 bits.
14863         b) Consolidate _obstack_begin and _obstack_begin1 code.
14864         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
14865         use "size_t" rather than "long".
14866         (_obstack_begin, _obstack_begin1): Likewise.
14867         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
14868         obstack_chunkfun): Update alloc function casts.
14869         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
14870         (chunkfun_type, freefun_type): New typdefs.
14871         (_obstack_begin_worker): Split out from ..
14872         (_obstack_begin, _obstack_begin_1): ..here.
14874         obstack: tidy part 2
14875         a) Don't be concerned about "not polluting the namespace with stddef.h
14876            symbols" in obstack.h, since gnulib string.h includes stddef.h
14877            anyway, and it seems unlikely that anyone would care.
14878         b) Don't roll our own slow memcpy in _obstack_newchunk.
14879         c) Rename obstack_free to _obstack_free.  This makes the naming
14880            consistent with other obstack functions and obviates the need for
14881            __obstack_free.  Ancient obstack.c defined both obstack_free and
14882            _obstack_free.  We continue to do that for _LIBC via an alias.
14883         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
14884            is clever, but nowadays gcc warns on undefined macros.  You'll get
14885            an undefined macro warning if simulating an old gcc with -U__GNUC__
14886            -U__GNUC_MINOR__ -D__GNUC__=1.
14887         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
14888         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
14889         (__obstack_free): Delete, update refs.
14890         (_obstack_free): Rename from obstack_free.
14891         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
14892         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
14893         * lib/obstack.c: Don't include stddef.h.
14894         (COPYING_UNIT): Delete.
14895         (_obstack_begin): Formatting fix.
14896         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
14897         (_obstack_free): Rename from __obstack_free, update alias.  Move
14898         undef of obstack_free to where it is needed.
14900         obstack: tidy part 1
14901         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
14902            to me, and result in overlong lines after later patches.
14903         b) Move error handling code, to avoid a forward declaration and to
14904            simplify later patches in this series.
14905         * lib/obstack.h (struct obstack <temp>): Rename fields of union
14906         and update all uses.
14907         * lib/obstack.c: Include stdlib.h earlier.
14908         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
14909         in file.
14910         (print_and_abort): Remove now redundant forward declaration.
14912 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
14914         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
14915         Without this change, in bleeding-edge fileutils Autoconf complains
14916         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
14917         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
14918         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
14919         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
14921 2014-10-24  Daiki Ueno  <ueno@gnu.org>
14923         iconv: avoid false detection of non-working iconv
14924         The INBUF arguments of iconv can be either 'const char **'
14925         or 'char **'.  If CC is g++, the difference causes a compile error
14926         and thus leads to a false detection of non-working iconv.
14927         Reported by Eli Zaretskii and Werner LEMBERG in:
14928         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
14929         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
14930         iconv.  Bump serial number.
14932 2014-10-23  Pádraig Brady  <P@draigBrady.com>
14934         bootstrap: print more diagnostics for missing programs
14935         * build-aux/bootstrap: only suppress stderr when checking for
14936         alternative program names.  This supports programs issuing non
14937         standard error messages.
14939 2014-10-23  Pádraig Brady  <P@draigBrady.com>
14941         bootstrap: only update the gnulib submodule
14942         * build-aux/bootstrap: Restrict the "submodule update" command
14943         to the gnulib path.
14945 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
14947         symlinkat: port to AIX 7.1
14948         * doc/posix-functions/symlinkat.texi (symlinkat):
14949         Mention AIX porting problem.
14950         * lib/symlinkat.c: Always include errno.h.
14951         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
14952         * lib/unistd.in.h (symlinkat): Add replacement machinery.
14953         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
14954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
14955         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
14956         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
14957         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
14959         readlinkat: port to AIX 7.1
14960         * doc/posix-functions/readlink.texi (readlink):
14961         * doc/posix-functions/readlinkat.texi (readlinkat):
14962         Mention AIX porting problem.
14963         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
14964         New function.
14965         * lib/unistd.in.h (readlinkat): Add replacement machinery.
14966         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
14967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
14968         * modules/readlinkat (configure.ac): Also compile replacement
14969         if REPLACE_READLINKAT.
14970         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
14972 2014-10-12  Karl Berry  <karl@gnu.org>
14974         * doc/posix-functions/dirname.texi: remove spurious {.
14976 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
14978         basename, dirname: Improve documentation.
14979         * doc/posix-functions/basename.texi: Mention dirname module and
14980         base_name() function.
14981         * doc/posix-functions/dirname.texi: Mention dir_name() and
14982         mdir_name() functions.
14983         Suggested by Werner LEMBERG <wl@gnu.org>.
14985 2014-09-24  Jim Meyering  <meyering@fb.com>
14987         exclude: declare exclude_patopts static
14988         * lib/exclude.c (exclude_patopts): Declare static,
14989         to avoid triggering a -Wmissing-prototypes warning.
14990         The alternative (declaring it in the .h file) would
14991         require publicizing the private "struct patopts".
14993 2014-09-21  Werner Lemberg  <wl@gnu.org>
14995         dirname: support compilation with C++
14996         * lib/dirname.h: Add necessary C linkage declarations.
14998 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
15000         qsort_r: include <config.h>
15001         Problem reported by Tom G. Christensen in:
15002         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
15003         * lib/qsort.c [!_LIBC]: Include <config.h> first.
15005 2014-09-16  Dylan Cali  <calid1984@gmail.com>
15007         avltree-list: avoid compiler warnings (trivial)
15008         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
15009         -Werror=suggest-attribute=pure.
15010         * lib/gl_array_list.c: Likewise.
15011         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
15012         declaration to avoid -Werror=missing-prototypes.  This is not added
15013         to a header as only exported for tests.  Add (void) to the
15014         check_invariants() call to indicate we're discarding the result
15015         in this context which avoids -Werror=unused-value.  Note we don't
15016         use ignore_value here to avoid a dependency as we know we'll not
15017         be adding __attribute__((warn_unused_result)) to check_invariants().
15018         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
15020 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
15022         qsort_r: new module, for GNU-style qsort_r
15023         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
15025 2014-09-15  Werner LEMBERG  <wl@gnu.org>
15027         strerror_r-posix: support compilation with C++
15028         * lib/strerror_r.c: Add necessary C linkage declarations.
15030 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
15032         fcntl-h: fix compilation with Intel C++ compiler (trivial)
15033         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
15035 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
15037         mountlist: use /proc/self/mountinfo when available
15038         Use libmount to propagate device IDs provided by Linux in
15039         /proc/self/mountinfo.  This will give more accurate output when
15040         using df in chroot'ed environments as the device IDs are not
15041         determined by stat() which may be inaccurate within the chroot.
15042         * lib/mountlist.c (read_file_system_list): Use the libmount routines
15043         from util-linux to parse "/proc/self/mountinfo" or fall back to
15044         standard getmntent() processing.
15045         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
15046         getmntent() is used, as is the case on GNU/Linux.
15048 2014-09-07  Eric Wong  <normalperson@yhbt.net>
15050         users.txt: add cmogstored
15051         cmogstored has used gnulib since the beginning in 2012 to support
15052         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
15054 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
15056         Trivial change.
15057         * gnulib-tool: Use same options as build-aux/bootstrap to download
15058         PO files.
15060 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
15062         Trivial change.
15063         * gnulib-tool: Fallback to wget when rsync of PO files fails.
15065 2014-09-04  Eric Blake  <eblake@redhat.com>
15067         maintainer-makefile: add syntax check for useless ';;'
15068         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
15070 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
15072         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
15073         Problem reported by Assaf Gordon in:
15074         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
15075         Apparently Ubuntu is doing some fancy link-time optimization
15076         that doesn't work with -lpthread but does work with -pthread.
15077         Work around the bug by preferring -pthread to -lpthread.
15078         * m4/pthread.m4 (gl_PTHREAD_CHECK):
15079         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
15080         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15081         Treat -pthread like -lpthread.
15083 2014-09-04  Eric Blake  <eblake@redhat.com>
15085         error: drop spurious semicolon
15086         * lib/error.c (__error_at_line): Fix ';;'.
15088 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15090         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
15091         * m4/gnulib-common.m4 (AC_C_RESTRICT):
15092         Override AC_C_RESTRICT unconditionally.
15093         Update from autoconf, incorporating:
15094         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
15095         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
15097 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15099         manywarnings: add GCC 4.9 warnings
15100         Also, make it easier to maintain this in the future.
15101         * build-aux/gcc-warning.spec: Add -Wabi-tag,
15102         -Wconditionally-supported, -Wdelete-incomplete,
15103         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
15104         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
15105         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
15106         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
15107         only for older GCC versions that need them.  Handle
15108         -Wnormalized=nfc specially, so that the 'comm' command used
15109         for maintenance doesn't get confused.
15111 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15113         vasnprintf: fix bugs in width computation
15114         * lib/vasnprintf.c (VASNPRINTF):
15115         Rework previous change, which introduced a bug,
15116         to avoid the warning in a different way.
15117         Avoid undefined behavior if the width arg is less than -INT_MAX.
15118         Avoid unnecessary use of HAS_WIDTH local.
15120 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
15122         vasnprintf: Avoid signed/unsigned comparison warning.
15123         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
15124         compare end addr of generated string w/ maximum end addr.
15126 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
15128         parse-datetime: Avoid pointer difference.
15129         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
15130         instead of calculating difference of pointers.  This removes an
15131         annoying warning, devoid of any use.
15133 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
15135         qsort_r: new module, for GNU-style qsort_r
15136         This works even on FreeBSD, which has an incompatible qsort_r API.
15137         * MODULES.html.sh: Add it.
15138         * doc/glibc-functions/qsort_r.texi: It's now supported.
15139         * lib/qsort.c: New file, taken from glibc with minor changes
15140         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
15141         removed.
15142         * lib/qsort_r.c: New file, compiled only on FreeBSD.
15143         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
15144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
15145         * modules/qsort_r, modules/qsort_r-tests: New files.
15146         * modules/stdlib (Makefile): Set up its defaults.
15147         * tests/test-qsort_r.c: New file.
15149 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
15151         vla: new module
15152         GNU RCS can use this, mostly for documentation I expect.  See:
15153         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
15154         * MODULES.html.sh: Add vla.
15155         * lib/vla.h, modules/vla: New files.
15157 2014-08-07  Daiki Ueno  <ueno@gnu.org>
15159         localename: make gl_locale_name_thread really thread-safe on Windows
15160         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
15161         "glthread/lock.h".
15162         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
15163         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
15165 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
15167         getpass: don't assume struct termios
15168         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
15169         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
15170         * lib/getpass.c (getpass): Port to systems lacking struct termios.
15172         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
15173         Problem reported by Jonas 'Sortie' Termansen in:
15174         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
15175         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
15176         Implement via sysconf for platforms that lack getdtablesize.
15178         vararrays: modernize AC_C_VARARRAYS for C11
15179         This backports a change I recently made to Autoconf.
15180         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
15181         VLAs are not supported, as this is what C11 does.  The old macro
15182         HAVE_C_VARARRAYS is still defined if they are supported, but is
15183         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
15185 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
15187         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
15188         * build-aux/install-reloc (func_create_wrapper): Also wrap
15189         strerror-override, stat, stat.
15191 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
15193         sys_select: fix FD_ZERO problem on Solaris 10
15194         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
15195         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
15196         to expand to an expression that invoked memset without necessarily
15197         including <string.h>.  The problem was that the first include
15198         defined _SYS_TIME_H, causing the second include to short-circuit.
15199         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
15200         Also, fix what appears to be a cut-and-paste typo, by replacing
15201         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
15202         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
15204         accept: document Solaris 10 type glitch
15205         * doc/posix-functions/accept.texi (accept): Mention that
15206         Solaris 10 'accept' takes void * last arg, not socklen_t *.
15208 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
15210         extern-inline: port to FreeBSD, DragonFly
15211         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
15212         is present if either __DragonFly__ or __FreeBSD__ is defined.
15213         FreeBSD problem reported by Andrey Borzenkov in:
15214         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
15215         Also, worry about __APPLE__ only if __MACH__ is also defined,
15216         as this is more consistent with the rest of gnulib.
15217         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
15218         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
15220 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
15222         regex: Make #if/#ifdef usage consistent for DEBUG
15223         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
15224         of the inconsistent usage of #if and #ifdef as that works with
15225         both Glibc and Gnulib's style.
15227 2014-07-31  Eric Blake  <eblake@redhat.com>
15229         openat-die: use _Noreturn markup
15230         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
15231         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
15232         _Noreturn.
15234 2014-07-30  Eric Blake  <eblake@redhat.com>
15236         test-open: port to cygwin, which lacks Fortify
15237         * tests/test-open.h (ALWAYS_INLINE): New macro.
15238         (__always_inline): Don't abuse internal symbol on non-glibc.
15240 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
15242         localename: Enforce declarations before statements.
15243         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
15244         first statement.
15246 2014-07-18  Jim Meyering  <meyering@fb.com>
15248         test-userspec: don't look up numeric user names
15249         * tests/test-userspec.c: I found a system for which getpwnam("0")
15250         returned a pointer to a non-root user's entry, and that made the
15251         test fail.
15252         (T): Prefix each numeric input with "+", to inhibit lookup.
15254 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
15256         localcharset, localename: MS-Windows support for non-default locales
15257         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
15258         falling back on the default system codepage, try extracting
15259         the codepage from what 'setlocale' returns.  This allows to
15260         take into account changes of the codeset due to non-default
15261         locale set by a previous call to 'setlocale'.
15262         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
15263         Define if not already defined.
15264         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
15265         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
15266         current locale by calling 'setlocale', then converting the
15267         locale name into LCID by calling 'get_lcid'.  This allows to
15268         take into account changes in the current locale from the
15269         default one, in contrast to GetThreadLocale.
15271 2014-07-14  Daiki Ueno  <ueno@gnu.org>
15273         announce-gen: avoid failure when Digest::SHA is installed
15274         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
15275         Digest::SHA1->new in print_checksums fails.
15276         * build-aux/announce-gen (digest_classes): New associative array
15277         for available message digest implementations.
15278         (print_locations): Use it.
15280 2014-07-13  Pádraig Brady  <P@draigBrady.com>
15282         gettext: revert "update macros to version 0.19"
15283         This reverts commit 9b9370ca, as it currently requires that
15284         developers of any project that explicitly uses the gettext module
15285         or implicitly uses it through the utimens-tests or
15286         futimens-tests modules, use gettext >= 0.19.
15287         However there are some stability and availablity issues with
15288         that version at present.  We can reinstate this soon, when stability
15289         is addressed and packages are more readily available.
15291 2014-07-12  Jim Meyering  <meyering@fb.com>
15293         regex: don't deref NULL upon heap allocation failure
15294         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
15295         failure in one more place.
15296         To trigger the segfault, configure grep -with-included-regex,
15297         build it, and run these commands:
15298         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
15299         I discovered this while replying to a private report from
15300         Jens Schleusener about excessive memory consumption by grep
15301         when using a regular expression like the one above.
15303 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
15305         regex: fix memory leak in compiler
15306         Fix by Andreas Schwab in:
15307         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
15308         * lib/regcomp.c (parse_reg_exp): Deallocate partially
15309         constructed tree before returning error.
15311 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
15313         announce-gen: avoid perl warnings
15314         * build-aux/announce-gen: add two minor checks to avoid
15315         "use of uninitialized value" warnings when command-line parameters are
15316         missing.
15318 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
15320         localename: avoid -Wsuggest-attribute={const,pure} warnings
15321         * lib/localename.c (string_has): Tag internal function as pure.
15322         * lib/localename.h (gl_locale_name_default): Tag extern declaration
15323         as const when appropriate.
15325 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
15327         nl_langinfo: Fix last change.
15328         * lib/nl_langinfo.c (includes): Drop redundant include.
15330 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15332         error: Fix -Wundef warnings in glibc
15333         * lib/error.c [_LIBC]: Define default macros for
15334         glibc.
15335         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
15336         Check _LIBC before STRERROR_R_CHAR_P.
15338         error: Sync from glibc master
15339         * lib/error.c [_LIBC]: Remove INTUSE usage.
15340         (error_tail): Remove unused macro ALLOCA_LIMIT.
15341         Fix potential buffer overflow.  Fix potential NULL dereference
15342         in strcmp.
15344 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
15346         nl_langinfo: fix build under mingw
15347         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
15349 2014-07-09  Andrew D Warshall  <warshall@99main.com>
15351         mountlist: do not classify a bind-mounted dir entry as "dummy"
15352         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
15353         1-argument getmntent() (instead of assuming absence).
15355 2014-07-08  Eric Blake  <eblake@redhat.com>
15357         maint.mk: less syntax-check noise when SIGPIPE is ignored
15358         * top/maint.mk (_sc_header_without_use)
15359         (sc_require_config_h_first): Parse full list.
15361 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
15362             Paul Eggert  <eggert@cs.ucla.edu>
15364         nl_langinfo: CODESET on MS-Windows and more items from localeconv
15365         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
15366         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
15367         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
15368         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
15369         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
15370         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
15371         Include <stdio.h> if Microsoft Windows.
15372         Include <time.h> if !REPLACE_NL_LANGINFO.
15373         (ctype_codeset): New function, taken from rpl_nl_langinfo,
15374         and with improvements for Microsoft Windows.
15375         (rpl_nl_langinfo): Use it.
15376         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
15377         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
15378         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
15379         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
15380         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
15381         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
15382         corresponding values returned by 'localeconv'.  Compute the values
15383         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
15384         'strftime' with a suitable struct tm value.
15386 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15388         Bruno Haible has stepped down as maintainer.
15389         See Karl Berry in:
15390         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
15391         Daiki Ueno has volunteered to maintain libunistring; see:
15392         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
15393         * modules/gen-uni-tables, modules/libunistring:
15394         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
15395         * modules/unicase/base, modules/unicase/cased:
15396         * modules/unicase/empty-prefix-context:
15397         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
15398         * modules/unicase/locale-language, modules/unicase/special-casing:
15399         * modules/unicase/tocasefold, modules/unicase/tolower:
15400         * modules/unicase/totitle, modules/unicase/toupper:
15401         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
15402         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
15403         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
15404         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
15405         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
15406         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
15407         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
15408         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
15409         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
15410         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
15411         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
15412         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
15413         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
15414         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
15415         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
15416         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
15417         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
15418         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
15419         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
15420         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
15421         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
15422         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
15423         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
15424         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
15425         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
15426         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
15427         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
15428         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
15429         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
15430         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
15431         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
15432         * modules/unicase/ulc-casexfrm, modules/unicodeio:
15433         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
15434         * modules/uniconv/u16-conv-to-enc:
15435         * modules/uniconv/u16-strconv-from-enc:
15436         * modules/uniconv/u16-strconv-from-locale:
15437         * modules/uniconv/u16-strconv-to-enc:
15438         * modules/uniconv/u16-strconv-to-locale:
15439         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
15440         * modules/uniconv/u32-strconv-from-enc:
15441         * modules/uniconv/u32-strconv-from-locale:
15442         * modules/uniconv/u32-strconv-to-enc:
15443         * modules/uniconv/u32-strconv-to-locale:
15444         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
15445         * modules/uniconv/u8-strconv-from-enc:
15446         * modules/uniconv/u8-strconv-from-locale:
15447         * modules/uniconv/u8-strconv-to-enc:
15448         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
15449         * modules/unictype/bidicategory-all:
15450         * modules/unictype/bidicategory-byname:
15451         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
15452         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
15453         * modules/unictype/bidiclass-byname:
15454         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
15455         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
15456         * modules/unictype/block-all, modules/unictype/block-list:
15457         * modules/unictype/block-of, modules/unictype/block-test:
15458         * modules/unictype/category-C, modules/unictype/category-Cc:
15459         * modules/unictype/category-Cf, modules/unictype/category-Cn:
15460         * modules/unictype/category-Co, modules/unictype/category-Cs:
15461         * modules/unictype/category-L, modules/unictype/category-LC:
15462         * modules/unictype/category-Ll, modules/unictype/category-Lm:
15463         * modules/unictype/category-Lo, modules/unictype/category-Lt:
15464         * modules/unictype/category-Lu, modules/unictype/category-M:
15465         * modules/unictype/category-Mc, modules/unictype/category-Me:
15466         * modules/unictype/category-Mn, modules/unictype/category-N:
15467         * modules/unictype/category-Nd, modules/unictype/category-Nl:
15468         * modules/unictype/category-No, modules/unictype/category-P:
15469         * modules/unictype/category-Pc, modules/unictype/category-Pd:
15470         * modules/unictype/category-Pe, modules/unictype/category-Pf:
15471         * modules/unictype/category-Pi, modules/unictype/category-Po:
15472         * modules/unictype/category-Ps, modules/unictype/category-S:
15473         * modules/unictype/category-Sc, modules/unictype/category-Sk:
15474         * modules/unictype/category-Sm, modules/unictype/category-So:
15475         * modules/unictype/category-Z, modules/unictype/category-Zl:
15476         * modules/unictype/category-Zp, modules/unictype/category-Zs:
15477         * modules/unictype/category-all, modules/unictype/category-and:
15478         * modules/unictype/category-and-not, modules/unictype/category-byname:
15479         * modules/unictype/category-longname, modules/unictype/category-name:
15480         * modules/unictype/category-none, modules/unictype/category-of:
15481         * modules/unictype/category-or, modules/unictype/category-test:
15482         * modules/unictype/category-test-withtable:
15483         * modules/unictype/combining-class:
15484         * modules/unictype/combining-class-all:
15485         * modules/unictype/combining-class-byname:
15486         * modules/unictype/combining-class-longname:
15487         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
15488         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
15489         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
15490         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
15491         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
15492         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
15493         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
15494         * modules/unictype/digit, modules/unictype/joininggroup-all:
15495         * modules/unictype/joininggroup-byname:
15496         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
15497         * modules/unictype/joiningtype-all:
15498         * modules/unictype/joiningtype-byname:
15499         * modules/unictype/joiningtype-longname:
15500         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
15501         * modules/unictype/mirror, modules/unictype/numeric:
15502         * modules/unictype/property-all, modules/unictype/property-alphabetic:
15503         * modules/unictype/property-ascii-hex-digit:
15504         * modules/unictype/property-bidi-arabic-digit:
15505         * modules/unictype/property-bidi-arabic-right-to-left:
15506         * modules/unictype/property-bidi-block-separator:
15507         * modules/unictype/property-bidi-boundary-neutral:
15508         * modules/unictype/property-bidi-common-separator:
15509         * modules/unictype/property-bidi-control:
15510         * modules/unictype/property-bidi-embedding-or-override:
15511         * modules/unictype/property-bidi-eur-num-separator:
15512         * modules/unictype/property-bidi-eur-num-terminator:
15513         * modules/unictype/property-bidi-european-digit:
15514         * modules/unictype/property-bidi-hebrew-right-to-left:
15515         * modules/unictype/property-bidi-left-to-right:
15516         * modules/unictype/property-bidi-non-spacing-mark:
15517         * modules/unictype/property-bidi-other-neutral:
15518         * modules/unictype/property-bidi-pdf:
15519         * modules/unictype/property-bidi-segment-separator:
15520         * modules/unictype/property-bidi-whitespace:
15521         * modules/unictype/property-byname:
15522         * modules/unictype/property-case-ignorable:
15523         * modules/unictype/property-cased:
15524         * modules/unictype/property-changes-when-casefolded:
15525         * modules/unictype/property-changes-when-casemapped:
15526         * modules/unictype/property-changes-when-lowercased:
15527         * modules/unictype/property-changes-when-titlecased:
15528         * modules/unictype/property-changes-when-uppercased:
15529         * modules/unictype/property-combining:
15530         * modules/unictype/property-composite:
15531         * modules/unictype/property-currency-symbol:
15532         * modules/unictype/property-dash:
15533         * modules/unictype/property-decimal-digit:
15534         * modules/unictype/property-default-ignorable-code-point:
15535         * modules/unictype/property-deprecated:
15536         * modules/unictype/property-diacritic:
15537         * modules/unictype/property-extender:
15538         * modules/unictype/property-format-control:
15539         * modules/unictype/property-grapheme-base:
15540         * modules/unictype/property-grapheme-extend:
15541         * modules/unictype/property-grapheme-link:
15542         * modules/unictype/property-hex-digit:
15543         * modules/unictype/property-hyphen:
15544         * modules/unictype/property-id-continue:
15545         * modules/unictype/property-id-start:
15546         * modules/unictype/property-ideographic:
15547         * modules/unictype/property-ids-binary-operator:
15548         * modules/unictype/property-ids-trinary-operator:
15549         * modules/unictype/property-ignorable-control:
15550         * modules/unictype/property-iso-control:
15551         * modules/unictype/property-join-control:
15552         * modules/unictype/property-left-of-pair:
15553         * modules/unictype/property-line-separator:
15554         * modules/unictype/property-logical-order-exception:
15555         * modules/unictype/property-lowercase, modules/unictype/property-math:
15556         * modules/unictype/property-non-break:
15557         * modules/unictype/property-not-a-character:
15558         * modules/unictype/property-numeric:
15559         * modules/unictype/property-other-alphabetic:
15560         * modules/unictype/property-other-default-ignorable-code-point:
15561         * modules/unictype/property-other-grapheme-extend:
15562         * modules/unictype/property-other-id-continue:
15563         * modules/unictype/property-other-id-start:
15564         * modules/unictype/property-other-lowercase:
15565         * modules/unictype/property-other-math:
15566         * modules/unictype/property-other-uppercase:
15567         * modules/unictype/property-paired-punctuation:
15568         * modules/unictype/property-paragraph-separator:
15569         * modules/unictype/property-pattern-syntax:
15570         * modules/unictype/property-pattern-white-space:
15571         * modules/unictype/property-private-use:
15572         * modules/unictype/property-punctuation:
15573         * modules/unictype/property-quotation-mark:
15574         * modules/unictype/property-radical:
15575         * modules/unictype/property-sentence-terminal:
15576         * modules/unictype/property-soft-dotted:
15577         * modules/unictype/property-space:
15578         * modules/unictype/property-terminal-punctuation:
15579         * modules/unictype/property-test, modules/unictype/property-titlecase:
15580         * modules/unictype/property-unassigned-code-value:
15581         * modules/unictype/property-unified-ideograph:
15582         * modules/unictype/property-uppercase:
15583         * modules/unictype/property-variation-selector:
15584         * modules/unictype/property-white-space:
15585         * modules/unictype/property-xid-continue:
15586         * modules/unictype/property-xid-start:
15587         * modules/unictype/property-zero-width, modules/unictype/scripts:
15588         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
15589         * modules/unictype/syntax-c-whitespace:
15590         * modules/unictype/syntax-java-ident:
15591         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
15592         * modules/unigbrk/u16-grapheme-breaks:
15593         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
15594         * modules/unigbrk/u32-grapheme-breaks:
15595         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
15596         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
15597         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
15598         * modules/unigbrk/uc-is-grapheme-break:
15599         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
15600         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
15601         * modules/unilbrk/u16-width-linebreaks:
15602         * modules/unilbrk/u32-possible-linebreaks:
15603         * modules/unilbrk/u32-width-linebreaks:
15604         * modules/unilbrk/u8-possible-linebreaks:
15605         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
15606         * modules/unilbrk/ulc-possible-linebreaks:
15607         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
15608         * modules/uniname/uniname, modules/uninorm/base:
15609         * modules/uninorm/canonical-decomposition:
15610         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
15611         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
15612         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
15613         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
15614         * modules/uninorm/nfkc, modules/uninorm/nfkd:
15615         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
15616         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
15617         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
15618         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
15619         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
15620         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
15621         * modules/unistdio/base, modules/unistdio/u-printf-args:
15622         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
15623         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
15624         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
15625         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
15626         * modules/unistdio/u16-u16-sprintf:
15627         * modules/unistdio/u16-u16-vasnprintf:
15628         * modules/unistdio/u16-u16-vasprintf:
15629         * modules/unistdio/u16-u16-vsnprintf:
15630         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
15631         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
15632         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
15633         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
15634         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
15635         * modules/unistdio/u32-u32-asnprintf:
15636         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
15637         * modules/unistdio/u32-u32-sprintf:
15638         * modules/unistdio/u32-u32-vasnprintf:
15639         * modules/unistdio/u32-u32-vasprintf:
15640         * modules/unistdio/u32-u32-vsnprintf:
15641         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
15642         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
15643         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
15644         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
15645         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
15646         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
15647         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
15648         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
15649         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
15650         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
15651         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
15652         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
15653         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
15654         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
15655         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
15656         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
15657         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
15658         * modules/unistr/u16-check, modules/unistr/u16-chr:
15659         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
15660         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
15661         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
15662         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
15663         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
15664         * modules/unistr/u16-move, modules/unistr/u16-next:
15665         * modules/unistr/u16-prev, modules/unistr/u16-set:
15666         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
15667         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
15668         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
15669         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
15670         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
15671         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
15672         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
15673         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
15674         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
15675         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
15676         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
15677         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
15678         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
15679         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
15680         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
15681         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
15682         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
15683         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
15684         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
15685         * modules/unistr/u32-next, modules/unistr/u32-prev:
15686         * modules/unistr/u32-set, modules/unistr/u32-startswith:
15687         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
15688         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
15689         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
15690         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
15691         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
15692         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
15693         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
15694         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
15695         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
15696         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
15697         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
15698         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
15699         * modules/unistr/u8-check, modules/unistr/u8-chr:
15700         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
15701         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
15702         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
15703         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
15704         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
15705         * modules/unistr/u8-next, modules/unistr/u8-prev:
15706         * modules/unistr/u8-set, modules/unistr/u8-startswith:
15707         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
15708         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
15709         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
15710         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
15711         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
15712         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
15713         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
15714         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
15715         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
15716         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
15717         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
15718         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
15719         * modules/uniwbrk/base, modules/uniwbrk/table:
15720         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
15721         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
15722         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
15723         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
15724         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
15725         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
15726         * modules/uniwidth/width, modules/utf16-ucs4:
15727         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
15728         * modules/utf8-ucs4-unsafe:
15729         Change maintainer from Bruno Haible to Daiki Ueno.
15730         This is my guess at the libunistring modules; please feel free
15731         to fix if I guessed incorrectly.
15732         * modules/accept4, modules/acl, modules/acos, modules/acosf:
15733         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
15734         * modules/areadlink, modules/array-list, modules/array-mergesort:
15735         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
15736         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
15737         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
15738         * modules/binary-io, modules/bison-i18n, modules/btowc:
15739         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
15740         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
15741         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
15742         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
15743         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
15744         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
15745         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
15746         * modules/closedir, modules/concat-filename, modules/copy-file:
15747         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
15748         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
15749         * modules/csharpcomp-script, modules/csharpexec:
15750         * modules/csharpexec-script, modules/ctype, modules/diffseq:
15751         * modules/dprintf, modules/dprintf-posix, modules/dup:
15752         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
15753         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
15754         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
15755         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
15756         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
15757         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
15758         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
15759         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
15760         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
15761         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
15762         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
15763         * modules/findprog, modules/findprog-lgpl, modules/floor:
15764         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
15765         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
15766         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
15767         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
15768         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
15769         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
15770         * modules/freadable, modules/freadahead, modules/freadptr:
15771         * modules/freadseek, modules/freopen, modules/frexp:
15772         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
15773         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
15774         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
15775         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
15776         * modules/ftello, modules/full-read, modules/full-write:
15777         * modules/fwritable, modules/fwriteerror, modules/gcd:
15778         * modules/get-rusage-as, modules/get-rusage-data:
15779         * modules/getdtablesize, modules/getrusage, modules/gettext:
15780         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
15781         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
15782         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
15783         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
15784         * modules/iconv, modules/iconv-h, modules/iconv_open:
15785         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
15786         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
15787         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
15788         * modules/integer_length_ll, modules/ioctl, modules/isatty:
15789         * modules/isblank, modules/isnand, modules/isnand-nolibm:
15790         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
15791         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
15792         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
15793         * modules/javaexec, modules/javaexec-script, modules/javaversion:
15794         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
15795         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
15796         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
15797         * modules/lib-symbol-visibility, modules/libsigsegv:
15798         * modules/linked-list, modules/linkedhash-list, modules/list:
15799         * modules/localcharset, modules/locale, modules/localeconv:
15800         * modules/localename, modules/lock, modules/log, modules/log-ieee:
15801         * modules/log10, modules/log10-ieee, modules/log10f:
15802         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
15803         * modules/log1p, modules/log1p-ieee, modules/log1pf:
15804         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
15805         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
15806         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
15807         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
15808         * modules/logf, modules/logf-ieee, modules/login_tty:
15809         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
15810         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
15811         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
15812         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
15813         * modules/mbscspn, modules/mbsinit, modules/mbslen:
15814         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
15815         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
15816         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
15817         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
15818         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
15819         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
15820         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
15821         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
15822         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
15823         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
15824         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
15825         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
15826         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
15827         * modules/posix_spawn, modules/posix_spawn-internal:
15828         * modules/posix_spawn_file_actions_addclose:
15829         * modules/posix_spawn_file_actions_adddup2:
15830         * modules/posix_spawn_file_actions_addopen:
15831         * modules/posix_spawn_file_actions_destroy:
15832         * modules/posix_spawn_file_actions_init:
15833         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
15834         * modules/posix_spawnattr_getpgroup:
15835         * modules/posix_spawnattr_getschedparam:
15836         * modules/posix_spawnattr_getschedpolicy:
15837         * modules/posix_spawnattr_getsigdefault:
15838         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
15839         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
15840         * modules/posix_spawnattr_setschedparam:
15841         * modules/posix_spawnattr_setschedpolicy:
15842         * modules/posix_spawnattr_setsigdefault:
15843         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
15844         * modules/pow, modules/powf, modules/printf-frexp:
15845         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
15846         * modules/progname, modules/propername, modules/pselect:
15847         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
15848         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
15849         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
15850         * modules/read, modules/readdir, modules/readlink:
15851         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
15852         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
15853         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
15854         * modules/relocatable-script, modules/remainder:
15855         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
15856         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
15857         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
15858         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
15859         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
15860         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
15861         * modules/setlocale, modules/sh-quote, modules/shutdown:
15862         * modules/signal, modules/signbit, modules/sigpipe:
15863         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
15864         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
15865         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
15866         * modules/snippet/link-warning, modules/snippet/unused-parameter:
15867         * modules/snprintf, modules/snprintf-posix, modules/spawn:
15868         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
15869         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
15870         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
15871         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
15872         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
15873         * modules/streq, modules/strerror_r-posix, modules/striconv:
15874         * modules/striconveh, modules/striconveha, modules/strncat:
15875         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
15876         * modules/sublist, modules/sys_resource, modules/sys_utsname:
15877         * modules/sys_wait, modules/system-posix, modules/system-quote:
15878         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
15879         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
15880         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
15881         * modules/truncf, modules/truncf-ieee, modules/truncl:
15882         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
15883         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
15884         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
15885         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
15886         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
15887         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
15888         * modules/wait-process, modules/waitpid, modules/wcpcpy:
15889         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
15890         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
15891         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
15892         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
15893         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
15894         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
15895         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
15896         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
15897         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
15898         * modules/write, modules/xconcat-filename, modules/xlist:
15899         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
15900         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
15901         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
15902         * modules/y0, modules/y1, modules/yn:
15903         Remove Bruno Haible as maintainer; if he's the sole maintainer,
15904         change the maintainer to 'all'.  Let's hope someone volunteers.
15906 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
15908         mktime: merge #if/#ifdef usage from glibc
15909         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
15910         as that works with both Glibc's and Gnulib's style.
15911         See thread starting at Siddhesh Poyarekar's bug report at:
15912         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
15914 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
15916         git-version-gen: improve option descriptions
15917         * build-aux/git-version-gen: Mention that --prefix and --fallback
15918         have a mandatory argument.
15920 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
15922         regex: fix memory leak in compiler
15923         Fix by Andreas Schwab in:
15924         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
15925         * lib/regcomp.c (parse_expression): Deallocate partially
15926         constructed tree before returning error.
15928         regex: merge patch from libc
15929         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
15930         Combine __USE_BSD and __USE_SVID into __USE_MISC.
15931         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
15933 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
15935         acl: port to gcc -Wredundant-decls
15936         From a request by Dmitry Antipov in:
15937         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
15938         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
15939         "#ifndef _GL_ACL_H".
15941 2014-06-11  Bruce Korb  <bkorb@gnu.org>
15942         Jim Meyering  <meyering@fb.com>
15944         parse-duration: eliminate 68-year duration limit
15945         * lib/parse-duration.c: Include "intprops.h".
15946         (TIME_MAX): Rename to MAX_DURATION and define to
15947         TYPE_MAXIMUM(time_t).
15948         * modules/parse-duration (Depends-on): Add intprops.
15949         Reported by Jonas 'Sortie' Termansen.
15951 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
15953         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
15954         * modules/pthread (Depends-on): Add 'extensions', as it defines
15955         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
15956         (configure.ac-early): New section.
15957         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
15958         it is no longer needed.
15960 2014-06-14  Pádraig Brady  <P@draigBrady.com>
15962         pthread: define thread-safe macros on some platforms
15963         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
15964         for thread-safe operation on some platforms.
15966 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15968         regex: don't be multithreaded if USE_UNLOCKED_IO.
15969         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
15970         * lib/regex_internal.h: Do not use multithreaded version if
15971         USE_UNLOCKED_IO is defined.  This is a hack, but it works
15972         around a porting bug with coreutils 8.22 on AIX 7.1.
15974 2014-06-11  Daiki Ueno  <ueno@gnu.org>
15976         gettext: update macros to version 0.19
15977         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
15978         depend on gl_EXTERN_INLINE and drop support for older Bison
15979         versions.
15981 2014-06-10  Pádraig Brady  <P@draigBrady.com>
15983         select,poll: fix console handle check on windows 8
15984         lib/poll.c (IsConsoleHandle): Change from testing the lower
15985         2 bits of the handle to the more expensive but accurate syscall.
15986         lib/select.c: Likewise.
15988 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
15990         select: fix waiting on anonymous pipes on MS-Windows
15991         * lib/select.c (rpl_select): Fall back to polling when select()
15992         indicates there is nothing to check, while due to the timeout not
15993         expiring, activity is indicated on one of the handles.
15994         Also clear the TIMEOUT argument if the timer does expire.
15996 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
15998         times: fix to return non constant value on MS-Windows
15999         * lib/times.c (times): Don't use the process creation time,
16000         rather clock() which on windows returns the number of
16001         clock ticks since the process started.
16003 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
16005         isatty: fix to work on windows 8
16006         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
16007         2 bits of the handle to the more expensive but accurate syscall.
16009 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16011         maint: fix typo in fdl.texi
16012         * doc/fdl.texi: Fix typo (missing '@').
16013         Somehow this was in fdl.texi but not fdl-1.3.texi.
16015 2014-06-06  Ben Walton  <bdwalton@gmail.com>
16017         mountlist: avoid hasmntopt const type warning on solaris
16018         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
16019         with char * instead of const char *.  Passing the constant string
16020         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
16021         to avoid the warning.
16023 2014-06-04  Eric Blake  <eblake@redhat.com>
16025         maintainer-makefile: delete obsolete code
16026         * top/maint.mk (build_aux): Drop old code, as threatened.
16028         maintainer-makefile: avoid spurious error messages
16029         * top/maint.mk (syntax-check): Guard definition and use of
16030         $(shell) by whether Makefile is present.
16032 2014-06-03  Ben Walton  <bdwalton@gmail.com>
16034         rename: avoid unused-but-set-variable compiler warning
16035         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
16036         it is possible that dst_exists may be set but not used.  Mark it with
16037         the unused attribute to avoid compiler warnings.
16039 2014-06-02  Ben Walton  <bdwalton@gmail.com>
16041         rename: mark a label as potentially unused
16042         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
16043         by marking the out label as potentially unused.
16044         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
16046 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16048         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
16049         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
16051 2014-06-02  Ben Walton  <bdwalton@gmail.com>
16053         acl: apply pure attribute to two functions
16054         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
16055         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
16057 2014-06-01  Pádraig Brady  <P@draigBrady.com>
16059         gnulib-common.m4: add _GL_UNUSED_LABEL
16060         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
16061         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
16063 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
16065         dup2, fcntl, fcntl-h: port to AIX 7.1
16066         This fixes some porting problems discovered when testing the latest
16067         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
16068         in grep but it could be important for other applications.
16069         * doc/posix-functions/dup2.texi:
16070         * doc/posix-functions/fcntl.texi:
16071         * doc/posix-headers/fcntl.texi:
16072         Document AIX bugs.
16073         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
16074         Define to 0 if outside 'int' range.
16075         * m4/dup2.m4 (gl_FUNC_DUP2):
16076         * m4/fcntl.m4 (gl_FUNC_FCNTL):
16077         Check for getdtablesize.  If it's available, test a value just
16078         outside its range instead of testing 1000000.  When cross-compiling,
16079         guess that AIX will fail this improved test.
16081 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16083         printf, config.rpath: Port to FreeBSD 10.
16084         Problem reported by Tijl Coosemans in:
16085         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
16086         * build-aux/config.rpath (hardcode_libdir_flag_spec)
16087         (hardcode_direct): Simplify FreeBSD configuration.
16088         (library_names_spec): Don't mishandle FreeBSD 10+.
16089         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
16090         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
16091         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
16092         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
16093         Don't mishandle FreeBSD 10+ when cross-compiling.
16095         ftoastr: work around compiler bug in IBM xlc 12.1
16096         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
16097         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
16098         around a compiler bug in IBM xlc 12.1.0.0: it complains
16099         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
16100         _GL_FLT_PREC_BOUND.'
16102 2014-05-30  Kieran Colford  <colfordk@gmail.com>
16104         valgrind-tests: fixed misleading help message
16105         * m4/valgrind-tests.m4: The help message generated by configure
16106         implied that valgrind was disabled by default, which it wasn't.
16107         Adjusted the help message using s/enable/disable/ to clarify.
16109 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
16111         isfinite, isinf, isnan tests: fix for little-endian PowerPC
16112         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
16113         first double of a PowerPC "double double" pair.
16114         * tests/test-isinf.c (test_isinfl): Likewise.
16115         * tests/test-isnan.c (test_long_double): Likewise.
16116         * tests/test-isnanl.h (main): Likewise.
16117         * tests/test-signbit.c (test_signbitl): Likewise.
16119 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16121         exclude-tests: port to AIX 7.1
16122         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
16123         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
16124         the regex code uses locks.
16126 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
16128         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
16129         Without this fix, Emacs would sometimes call sigprocmask instead
16130         of pthread_sigmask, which is a no-no in multithreaded applications.
16131         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
16132         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16133         Suppress check for pthread_sigmask working without -lpthread if
16134         the application always links with -lpthread.  Do not link with
16135         $LIBMULTITHREAD if gl_THREADLIB is not defined.
16136         * m4/timer_time.m4 (gl_TIMER_TIME):
16137         Require gl_THREADLIB only if it is defined.  Do not append
16138         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
16140 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
16142         gnulib-tool: wget translations using --no-verbose rather than --quiet
16143         This allows the user to see error messages if any (--quiet hides them)
16144         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
16146 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
16148         gnulib-tool: adjust translation wget to avoid a https redirection
16149         Context: http://translationproject.org/latest/gnulib redirects to
16150            https://translationproject.org/latest/gnulib/
16151         Rationale: if the user falls back to wget, she doesn't have rsync and
16152         is probably in a minimal build environment, where packages such as
16153         'ca-certificates' are missing as well, resulting in a failed (and
16154         difficult to detect since ignored) translation initial fetch.
16155         Consequently let's avoid https if possible, and add the missing
16156         trailing slash.  This also avoids an unnecessary 302 redirection.
16157         * gnulib-tool: Add trailing slash to gnulib URL.
16159 2014-05-22  Pádraig Brady  <P@draigBrady.com>
16161         getlogin_r-tests: check return value rather than errno
16162         * tests/test-getlogin_r.c (main): As per POSIX we should be
16163         verifying the return value from getlogin_r() rather than errno.
16165 2014-05-22  Pádraig Brady  <P@draigBrady.com>
16167         getlogin_r-tests: fix various issues in recent change
16168         * tests/test-getlogin_r.c: Include required headers that were
16169         missed in recent commit eec20b4e.
16170         Also consistently check the errno rather than the return value from
16171         getlogin_r as POSIX only specifies that non zero is returned on error.
16172         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
16174 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16176         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
16177         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
16178         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
16179         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
16180         * lib/spawn-pipe.c:
16181         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
16182         and then 'int open64(const char *, int, ...);', which means the
16183         declaration for 'open' gets lost if we later '#undef open'.
16184         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
16185         where the compilation reported the non-fatal error "In function
16186         'openat_proc_name' ... warning: implicit declaration of function
16187         'open'".  In this case the error is relatively harmless, but in
16188         other cases it might not be so minor.
16190 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16192         xalloc: don't potentially generate invalid code for xmemdup calls
16193         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
16194         this function can initialize the newly-allocated storage with new
16195         pointers, which means this function is not malloc-like.  See:
16196         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
16198 2014-05-19  Pádraig Brady  <P@draigBrady.com>
16200         getlogin_r-tests: avoid false failure under sudo/ssh etc.
16201         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
16202         changes from commit 97249cf29 to not depend on environment variables.
16204 2014-05-18  Pádraig Brady  <P@draigBrady.com>
16206         getlogin-tests: avoid false failure under cron
16207         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
16208         since that's not what's under test.  Centos 6 was seen to return
16209         EINVAL for ttyname() when run from cron.
16211 2014-05-16  Jim Meyering  <meyering@fb.com>
16213         mbrtowc.m4: fix a comment typo
16214         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
16215         emitted documentation string.
16217 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16219         mbrlen, mbrtowc: fix bug with empty input
16220         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
16221         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
16222         so this is mainly for documentation.
16223         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
16224         (gl_FUNC_MBRTOWC): Use it.
16225         * tests/test-mbrtowc.c (main): Test for the bug.
16227 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
16229         doc: document mbrtowc and mbrlen problem with empty input
16230         * doc/posix-functions/mbrlen.texi (mbrlen):
16231         * doc/posix-functions/mbrtowc.texi (mbrtowc):
16232         Document portability problem when the input string is empty.  See:
16233         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
16235         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
16236         Problem reported by Eli Zaretskii in:
16237         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
16238         * doc/posix-functions/execl.texi (execl):
16239         * doc/posix-functions/execle.texi (execle):
16240         * doc/posix-functions/execlp.texi (execlp):
16241         * doc/posix-functions/execv.texi (execv):
16242         * doc/posix-functions/execve.texi (execve):
16243         * doc/posix-functions/execvp.texi (execvp):
16244         Mention spawn+exit problem on non-Cygwin Windows platforms.
16246 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
16248         getlogin-tests: avoid false failure under sudo/ssh etc.
16249         * modules/getlogin-tests (configure.ac): Check for ttyname().
16250         * tests/test-getlogin.c (main): Don't depend on environment variables
16251         to correlate with getlogin(), since sudo and ssh etc. can tamper
16252         with the LOGNAME and USER env vars.  Instead lookup the name from
16253         the uid associated with the stdin tty.
16255 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
16257         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
16258         These were found when building the latest grep snapshot on IRIX 6.5.
16259         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
16260         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
16261         never used later.
16262         * lib/quotearg.c (quoting_options_from_style):
16263         * lib/xstrtol.c (__xstrtol):
16264         Use enum instead of 0, to pacify IRIX 6.5 cc.
16266 2014-04-18  Pádraig Brady  <P@draigBrady.com>
16268         gitlog-to-changelog: revert inclusion of git-log-fix file
16269         * build-aux/git-log-fix: Delete dummy file.
16270         * modules/gitlog-to-changelog: Don't reference (overwrite)
16271         the project specific git-log-fix file.
16273 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
16275         maint.mk: Relax the copyright check to cater for non FSF projects
16276         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
16277         to not require the "Free" suffix after the copyright years.
16279 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
16281         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
16282         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
16283         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
16284         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
16285         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
16287 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
16289         exclude: port to strict C99
16290         Strict C does not allow converting a function pointer to void *
16291         and vice versa.  Pass a pointer to a function pointer instead.
16292         * lib/exclude.c (add_exclude_file):
16293         Pass the address of the function pointer.
16294         (call_addfn): And deference the address here, to match.
16296 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
16298         regex: do not depend on malloc-gnu
16299         * modules/regex (Depends-on): Remove malloc-gnu.
16300         It's no longer needed, because of the 2012-12-29 patch
16301         "regex: port to hosts where malloc (0) == NULL".
16302         Reported by Nathan Kennedy in:
16303         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
16305 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
16307         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
16308         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
16309         * doc/posix-functions/expl.texi: Mention the workaround.
16311 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
16313         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
16314         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
16315         size to be zero even when the pointer is nonnull.  This
16316         accommodates the use case where P is malloc (0) and *PN is 0 on a
16317         host where malloc (0) yields nonnull.
16319 2014-04-09  Eric Blake  <eblake@redhat.com>
16321         fts: avoid unnecessary strlen calls
16322         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
16324 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16326         fts: avoid unnecessary strlen calls
16327         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
16328         when that can be faster than strlen.
16330 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
16332         fts: avoid unnecessary strlen calls
16333         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
16334         (fts_build): Store the length of the dp->d_name entry in a local variable
16335         instead of calling strlen() several times via the above, removed macro.
16336         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
16337         run by ~4%, yet this reduces the execution time by about a third if run
16338         via "ltrace -c rm -rf some-dir".
16340 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
16342         obstack: Remove ancient NeXTSTEP gcc support conditional
16343         This change will ease merging with glibc.  The "#if ... __NEXT__"
16344         causes a warning with -Wundef which glibc now enables by default.
16345         Problem reported by Will Newton in
16346         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
16347         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
16348         so go with that.
16349         * lib/obstack.h (__extension__):
16351 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
16353         obstack: merge with glibc changes
16354         * lib/obstack.c, lib/obstack.h: Merge from glibc.
16355         This is mostly indenting and commentary changes.
16356         Instances of 'register' have been removed.
16358 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
16360         strftime: wrap macros in "do {...} while(0)"
16361         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
16362         this macro in "do {...} while(0)" to prevent false use as a
16363         single statement, e.g., in an un-braced "{}" else-block.
16364         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
16365         (strftime_case_): Remove 'else' after 'goto' - which was the
16366         only non-fatal, un-braced use of one of the above macros.
16367         Spotted by coverity (NESTING_INDENT_MISMATCH).
16369 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
16371         modechange: avoid memory leaks for invalid octal modes
16372         * lib/modechange.c (mode_compile): During the parsing of
16373         notations like +40, free the 'mc' buffer for invalid mode
16374         strings like +17777 (greater than the maximum octal mode),
16375         =18 (bad octal mode characters) or u=1 ('affected' with
16376         octal modes).
16377         Reproducer, e.g.:
16378             $ valgrind --leak-check=full chmod +17777 file
16379         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
16380         add notations +40, 00440, etc.".
16381         Spotted by coverity (RESOURCE_LEAK).
16383 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
16385         gitlog-to-changelog: include a dummy git-log-fix file
16386         Problem reported by Nathan Stratton Treadway in:
16387         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
16388         * build-aux/git-log-fix: New file.
16390 2014-03-13  Jim Meyering  <meyering@fb.com>
16392         gitlog-to-changelog: also include the file, git-log-fix
16393         * modules/gitlog-to-changelog (Files): Add git-log-fix.
16394         Reported by Assaf Gordon.
16396 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
16398         regex: port to OS X 10.8.5 en_US.UTF-8 locale
16399         This fixes a bug when ignoring case and when comparing the
16400         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
16401         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
16402         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
16403         titlecase letter is neither lowercase nor uppercase, but
16404         uppercasing the titlecase letter (via towupper) yields the
16405         uppercase letter, so the two letters should match when ignoring case.
16406         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
16407         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
16408         Don't test whether a character is lowercase before uppercasing it.
16410 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
16412         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
16413         This is basically one of the options Bruno Haible proposed in:
16414         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
16415         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
16416         * lib/stdint.in.h: Use it.
16417         * modules/stdint (Depends-on): Add sys_types.
16419 2014-02-26  Pádraig Brady  <P@draigBrady.com>
16421         parse-datetime: fix crash or infloop in TZ="" parsing
16422         * lib/parse-datetime.y (parse_datetime): Break out of the
16423         TZ="" parsing loop once the second significant " is found.
16424         Also skip over any subsequent whitespace to be consistent
16425         with the non TZ= case.
16426         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
16428 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
16430         savedir: new symbol for fast-read version
16431         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
16432         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
16433         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
16434         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
16436 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
16438         unistd: port readlink to Mac OS X 10.3.9
16439         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
16440         around self-include problem in Mac OS X 10.3.9 when combined with
16441         readlink module.  Problem reported by Klaus Zietler in
16442         <http://bugs.gnu.org/16825>.
16444 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
16446         diffseq: remove TOO_EXPENSIVE heuristic
16447         Problem with diffutils reported by Vincent Lefevre in
16448         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
16449         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
16450         Although appropriate for circa-1993 hardware, these days the heuristic
16451         seems to be more trouble than it's worth.
16452         * lib/diffseq.h: Modernize citations.
16453         (struct context): Remove member too_expensive.
16454         All uses changed.
16455         (struct partition): Remove members lo_minimal, hi_minimal.
16456         All uses changed.
16457         (diag, compareseq): Remove arg find_minimal.  All uses changed.
16458         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
16459         1993 to make 'diff' run faster (but not as well) on large inputs.
16460         These days, computers are fast enough that it's typically better
16461         to run slower but more accurately.
16462         * lib/fstrcmp.c: Remove duplicate comment.
16463         * lib/fstrcmp.c (strcmp_bounded):
16464         * lib/git-merge-changelog.c (compute_differences):
16465         Adjust to diffseq.h changes.
16466         * NEWS: Document the change.
16468         savedir: simplify by using stpcpy
16469         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
16470         (streamsavedir): Use stpcpy instead.
16471         * modules/savedir (Depends-on): Add stpcpy.
16473 2014-02-21  Pádraig Brady  <P@draigBrady.com>
16475         spawn: fix link error on uclibc
16476         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
16477         to incorporate -lrt if needed (on uclibc for example).
16478         * modules/posix_spawn: Reference the substituted LIB.
16480 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
16481         timer: fix uClibc detection of threading
16482         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
16483         enabled in uClibc.
16485 2014-02-21  Eric Blake  <eblake@redhat.com>
16487         maintainer-makefiles: provide AC_PROG_SED for older autoconf
16488         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
16490 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
16492         exclude: add support for posix regexps
16494         This commit adds support for POSIX extended regular expressions
16495         and fixes a long-standing memory leak (pattern buffer was never
16496         freed).  It also implements a new interface function to read
16497         exclude patterns from a FILE, which passes an additional parameter
16498         to its callback function, thereby allowing to preserve its state
16499         between invocations.
16501         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
16502         (pattern_buffer): New struct.
16503         (exclude): New member patbuf.
16504         (exclude_add_pattern_buffer): New function.
16505         (free_exclude_segment): Free regexps.
16506         (free_exclude): Free allocated pattern buffers.
16507         (exclude_patopts): New function.
16508         (file_pattern_matches): Use exclude_patopts.
16509         (add_exclude): support regexps.
16510         (add_exclude_fp): New function.
16511         (add_exclude_file): Rewrite using add_exclude_fp.
16512         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
16513         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
16514         (add_exclude_fp)
16515         (add_exclude_file): Rewrite using add_exclude_fp.
16516         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
16517         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
16518         (add_exclude_fp)
16519         (exclude_add_pattern_buffer): New prototypes.
16520         * modules/exclude: Depends on regex and filename.
16522 2014-02-20  Eric Blake  <eblake@redhat.com>
16524         maintainer-makefiles: use $(SED) for syntax check
16525         * modules/maintainer-makefile (configure.ac): Check for sane sed.
16526         * top/maint.mk: Change sed to $(SED).
16528 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
16529             Paul Eggert  <eggert@cs.ucla.edu>
16531         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
16532         Patch based on an idea by Dick Streefland in
16533         <https://savannah.gnu.org/patch/?7892>.
16534         * NEWS: Document this.
16535         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
16536         (direntry_t, comparison_function): New types.
16537         (direntry_cmp_name): New function.
16538         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
16539         (streamsavedir, savedir): New arg OPTION.
16540         (streamsavedir): Simplify memory allocation.
16541         (fdsavedir): Remove.
16542         * lib/savedir.h (enum savedir_option): New type.
16543         (streamsavedir, savedir): New arg OPTION.
16544         (fdsavedir): Remove.
16546 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
16548         file-type: add support for doors and other less-common file types
16549         Problem with S_ISDOOR reported by Rich Burridge.
16550         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
16551         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
16552         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
16554 2014-01-23  Eric Blake  <eblake@redhat.com>
16556         pthread: work around winpthread header pollution on mingw
16557         * lib/time.in.h: Move pthread workarounds...
16558         * lib/pthread.in.h: ...here.
16559         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
16560         detect macro pollution on mingw.
16561         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
16563 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
16565         qacl: check for fchmod
16566         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
16567         and qset-acl.c both use HAVE_FCHMOD.
16569 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
16571         fdopen-tests: port to Tru64
16572         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
16573         descriptor that is not open, as POSIX doesn't specify the
16574         resulting behavior and the test does not work on Tru64.
16575         Problem reported by Steven M. Schweda in:
16576         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
16578         stdalign: port to HP-UX compilers
16579         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
16580         if __HP_cc or __HP_aCC are nonzero.
16582 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
16584         strtoimax: port to platforms lacking 'long long'
16585         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
16586         check whether strtoll is declared, which causes the C file to
16587         wrongly report an error.  Problem reported by Steven M. Schweda in:
16588         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
16589         * lib/strtoimax.c (strtoull):
16590         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
16591         (strtoll): Declare only if HAVE_LONG_LONG_INT.
16593 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
16595         relocatable-perl: fix texi syntax
16596         * doc/relocatable-maint.texi: Escape braces.
16598 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
16600         relocatable-perl: like relocatable-script, but for Perl scripts
16601         * build-aux/relocatable.pl.in: Add.
16602         * doc/relocatable-maint.texi: Add documentation.
16603         * modules/relocatable-perl: Add.
16605 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
16607         tests: fix export bug in previous patch
16608         Problem reported by Jim Meyering.
16609         * tests/init.sh (re_shell): New var, which is exported instead of
16610         re_shell_.
16612         tests: simplify porting to Solaris 10 /bin/sh
16613         Some test cases in 'grep' need a shell that groks '$(';
16614         export re_shell_ for their benefit.  Problem reported for 'grep'
16615         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
16616         * tests/init.sh (re_shell_): Export if it's used.
16618 2014-01-06  Eric Blake  <eblake@redhat.com>
16620         md5, sha1, sha256, sha512: support older autoconf
16621         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
16622         for autoconf < 2.63b.
16624         include_next: port to autoconf 2.63
16625         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
16627 2014-01-04  Jim Meyering  <meyering@fb.com>
16629         maint: add a gnulib-local rule to keep non-ascii out of .texi files
16630         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
16631         so that "make sc_maint" will ding anyone who puts non-ascii
16632         in any of gnulib's .texi files.
16634 2014-01-03  Jim Meyering  <meyering@fb.com>
16636         freadable, fwritable, fwriting: declare with the "pure" attribute
16637         * lib/freadable.h (freadable): Declare with the "pure" attribute.
16638         * lib/fwritable.h (fwritable): Likewise.
16639         * lib/fwriting.h (fwriting): Likewise.
16640         Suggested by Bruno Haible.
16642         maint.mk: adapt openat.h-include-without-use test
16643         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
16644         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
16645         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
16646         With this change, running "make sc_maint" in gnulib's top-level
16647         directory now passes for me.
16649 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16651         doc: use ASCII in .texi files where UTF-8 isn't needed
16652         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
16653         * doc/posix-functions/setkey.texi, doc/regex.texi:
16654         Use ASCII input, not UTF-8.
16656 2014-01-02  Jim Meyering  <meyering@fb.com>
16658         freading: declare with the "pure" attribute
16659         * lib/freading.h (freading): Declare with the "pure" attribute.
16661         manywarnings: remove -Wmudflap
16662         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
16663         it is no longer supported in gcc-4.9-to-be.
16665 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
16667         relocatable-script: remove unused code
16668         Problem reported by Reuben Thomas in:
16669         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
16670         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
16672 2014-01-01  Jim Meyering  <meyering@fb.com>
16674         maint: fix public-submodule-commit to work with newer git
16675         * top/maint.mk (public-submodule-commit): Remove excess quoting.
16676         We were over-quoting the test arguments, and somewhere prior to
16677         version 1.8.5.2.229, git stopped removing those excess quotes,
16678         which made the test fail, since the unexpanded strings would
16679         always differ; using GIT_TRACE=1 confirmed that the git merge-base
16680         command wasn't even being run.
16682 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
16684         doc: update main copyright year
16685         * doc/gnulib.texi: Update copyright date.
16687 2014-01-01  Eric Blake  <eblake@redhat.com>
16689         version-etc: new year
16690         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
16691         * all files: run 'make update-copyright'
16693 2013-12-24  Eric Blake  <eblake@redhat.com>
16695         passfd: give nicer error for recvfd at eof
16696         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
16697         * tests/test-passfd.c (main): Enhance test to cover this.
16699 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
16701         gettimeofday: port recent C++ fix to Emacs
16702         Without this further patch, Emacs won't build due to
16703         the portcheck failing.  Also, this simplifies the patch a bit.
16704         * lib/time.in.h (localtime, gmtime): Don't replace unless
16705         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
16706         * lib/time.in.h (localtime, gmtime):
16707         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
16708         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
16709         * modules/time (time.h):
16710         Don't worry about the possibility of localtime and gmtime
16711         being absent; they're present in all C libraries we know about.
16712         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
16713         Don't assume sys_time is present and has been initialized.
16714         Instead, use a hack that should work even if it hasn't been.
16715         Don't use a portcheck for gmtime or localtime; this supports
16716         the hack.
16717         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
16719 2013-12-17  John W. Eaton  <jwe@gnu.org>
16721         gettimeofday: fix C++ crosscompilation
16723         Never replace gmtime and localtime by macros when compiling with
16724         C++, this prevents <ctime> from being included.
16726         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
16727         define gmtime and localtime as preprocessor macros.  Instead
16728         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
16729         REPLACE_LOCALTIME substitutions.
16730         * lib/time.in.h: Declare gmtime and localtime when needed.
16731         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
16732         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
16733         * modules/time: Depend on gettimeofday, and substitute the above
16734         variables in time.h.
16736 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
16738         qacl: port to Windows better
16739         See Eli Zaretskii in
16740         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
16741         * lib/file-has-acl.c (acl_access_nontrivial):
16742         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
16743         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
16745 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
16747         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
16748         * lib/gl_openssl.h: Cast void pointers to a specific type.
16750 2013-12-07  Pádraig Brady  <P@draigBrady.com>
16752         open-tests: fix build failure with -Werror=old-style-declaration
16753         * tests/test-open.h: Reorder the inline to avoid the issue.
16755 2013-12-07  Pádraig Brady  <P@draigBrady.com>
16757         md5, sha1, sha256, sha512: fix link error with partial libcrypto
16758         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
16759         init time, so that if early checks find crypto routines,
16760         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
16761         avoiding link failures.
16763 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
16765         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
16766         This provides a new way to specify the default for
16767         gl_CRYPTO_CHECK, one that is reflected in the --help message.
16768         Emacs uses this, as well as the old way.
16769         This attempts to implement a suggestion by Pádraig Brady in
16770         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
16771         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
16772         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
16774         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
16775         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
16776         Add support for a new option, --with-openssl=auto, which causes
16777         the library to be used if available and silently ignored if not.
16778         Add support to allow configure.ac to specify its own
16779         default, by setting with_openssl_default before invoking gl_INIT.
16781 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
16783         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
16784         Problem reported by Daiki Ueno in:
16785         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
16786         * tests/test-open.h (__always_inline):
16787         New macro, if not already defined.
16788         (test_open): Use it.
16790 2013-12-04  Eric Blake  <eblake@redhat.com>
16792         include_next: minimize code duplication
16793         * modules/include_next (Depends-on): Add absolute-header.
16794         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
16795         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
16797 2013-12-04  Pádraig Brady  <P@draigBrady.com>
16799         getcwd: fix compile error in configure check
16800         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
16802 2013-12-04  Pádraig Brady  <P@draigBrady.com>
16804         regex: suppress core dumps from detection code
16805         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
16806         to suppress core dumps that may well occur on glibc systems.
16807         These core dumps might not be cleaned up automatically, or could
16808         trigger some system core dump handling logic.
16810 2013-12-03  Pádraig Brady  <P@draigBrady.com>
16812         md5, sha1, sha256, sha512: support mandating use of openssl
16813         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
16814         description, to list the now 3 separate options.  also don't
16815         mention the default=no, since this is implicit given the option
16816         is described as --with-openssl rather than --without-openssl.
16817         If projects change the default they're free to document that.
16818         with --with-openssl[=yes] we now error out when the specified
16819         hash algorithm is not available in libcrypto.
16821 2013-12-03  Ivailo  <xakepa10@gmail.com>
16823         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
16824         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
16825         -Wformat-nonliteral checks, as these edge cases are part of the test.
16827 2013-12-03  Eric Blake  <eblake@redhat.com>
16829         regex: avoid glibc deadlock during configure
16830         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
16831         glibc bug 15078 in turn triggers bug 16159.
16832         Reported by Michal Privoznik.
16834 2013-12-02  Pádraig Brady  <P@draigBrady.com>
16836         md5, sha1, sha256, sha512: use openssl routines if available.
16837         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
16838         routines will be used if available, requiring apps to link @LIB_CRYPTO@
16839         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
16840         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
16841         in the standard system location.
16842         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
16843         * m4/sha256.m4: Likewise with SHA256.
16844         * m4/sha512.m4: Likewise with SHA512.
16845         * m4/md5.m4: Likewise with MD5.
16846         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
16847         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
16848         * lib/sha256.h: Likewise with SHA256.
16849         * lib/sha512.h: Likewise with SHA512.
16850         * lib/md5.h: Likewise with MD5.
16851         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
16852         * lib/sha256.c: Likewise with SHA256.
16853         * lib/sha512.c: Likewise with SHA512.
16854         * lib/md5.c: Likewise with MD5.
16855         * modules/crypto/sha1 (Link:): Add the new optional lib.
16856         (Depends-on:): Add dependency on extern-inline.
16857         * modules/crypto/sha256: Likewise.
16858         * modules/crypto/sha512: Likewise.
16859         * modules/crypto/md5: Likewise.
16860         * modules/crypto/sha1-tests: Reference the lib here too.
16861         * modules/crypto/md5-tests: Likewise.
16862         * modules/crypto/gc-des-tests: Likewise.
16863         * modules/crypto/gc-hmac-md5-tests: Likewise.
16864         * modules/crypto/gc-hmac-sha1-tests: Likewise.
16865         * modules/crypto/gc-hmac-sha256-tests: Likewise.
16866         * modules/crypto/gc-hmac-sha512-tests: Likewise.
16867         * modules/crypto/gc-md5-tests: Likewise.
16868         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
16869         * modules/crypto/gc-sha1-tests: Likewise.
16870         * modules/crypto/gc-tests: Likewise.
16871         * modules/crypto/hmac-md5-tests: Likewise.
16872         * modules/crypto/hmac-sha1-tests: Likewise.
16873         * modules/crypto/hmac-sha256-tests: Likewise.
16874         * modules/crypto/hmac-sha512-tests: Likewise.
16876 2013-11-29  RV1971  <rv1971@web.de>
16878         base64: (trivial) fix compilation regression on some compilers
16879         * lib/base64.c: Don't return the void function,
16880         instead split to a separate return statement.
16882 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16884         ignore-value: revert previous code change
16885         * lib/ignore-value.h (ignore_value): Use __extension__ and
16886         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
16887         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
16888         Change the comment to try to explain this better.
16890 2013-11-27  Pádraig Brady  <P@draigBrady.com>
16892         selinux-h: improve stub types and add more stub functions
16894         * lib/se-selinux.in.h: Change security_context_t to a typedef
16895         rather than a define, as it's a pointer type and so is better
16896         as a typedef to avoid issues declaring multiple variables
16897         with the comma operator.  Also add stub for string_to_security_class().
16898         * lib/se-context.in.h: Add stub functions for
16899         context_{type,range,role,user}_get().
16901 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
16903         ignore-value: prefer GCC version back through 2.0
16904         The code didn't match the comments, so I did a bit of software
16905         archaeology.  GCC 2.0 seems to support __extension__ and
16906         __typeof__, so fix both code and comments to use 2.0.
16907         * lib/ignore-value.h (ignore_value): Use __extension__ and
16908         __typeof__ for GCC 2.0 through 3.3, too.
16910 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
16912         pty: Activate the signature wrapper of forkpty.
16913         The intended preprocessor macro HAVE_FORKPTY is
16914         never defined, yet `lib/forkpty.c' depends on it.
16916         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
16917         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
16918         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
16920 2013-11-18  Jim Meyering  <meyering@fb.com>
16921         and Paul Eggert  <eggert@cs.ucla.edu>
16923         quotearg: don't attempt to store 1 << 31 into an "int"
16924         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
16925         gcc's new -fsanitize=undefined and running its tests triggered some
16926         new test failures due to undefined behavior, all with this diagnostic:
16927           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
16928             cannot be represented in type int
16929         Rather than shifting "1" left to form a mask, shift the bits right and
16930         simply use "1" as the mask.
16932 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
16934         error: depend on stdio
16935         Problem reported by Nikos Mavrogiannopoulos in
16936         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
16937         * modules/error (Depends-on): Add stdio.
16939 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
16941         * doc/relocatable-maint.texi (Supporting Relocation): Improve
16942         wording.
16943         Reported by Reuben Thomas <rrt@sc3d.org>.
16945 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
16947         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
16948         New function and macro, to work around _DARWIN_C_SOURCE problem.
16949         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
16951 2013-11-11  Pádraig Brady  <P@draigBrady.com>
16953         base64: provide a fast path for encoding well sized buffers
16954         Avoid conditionals in the base64 encoding loop,
16955         which was seen to give 60% better throughput.
16956         * lib/base64.c (base64_encode_fast): A new function to be called
16957         when we don't want to NUL terminate, and we have enough space
16958         in the output to encode the given input.
16959         (base64_encode): Call the _fast() version when appropriate.
16960         Also remove a redundant mask with 0x3F on the first encoded byte.
16962 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
16964         extern-inline: port better to OS X 10.9
16965         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
16966         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
16967         OS X 10.9, except for g++ where the bug is still present.
16968         See <http://trac.macports.org/ticket/41033>.
16970 2013-11-08  Eric Blake  <eblake@redhat.com>
16972         fpending: fix regression on DragonFly BSD
16973         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
16974         * lib/fpending.h (__fpending): Don't declare twice.
16975         Reported by GW in
16976         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
16978 2013-11-05  Jim Meyering  <meyering@fb.com>
16980         hash: relax license to LGPLv2+, for libguestfs
16981         * modules/hash (License): Change from GPL to LGPLv2+.
16983 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16985         intprops: port to Oracle Studio c99
16986         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
16987         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
16989 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
16991         obstack: pacify HP C
16992         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
16993         warning "conversion from pointer to smaller integer" from HP
16994         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
16995         C89 or later nowadays, so cast to void instead of int.  Privately
16996         reported by H.Merijn Brand.  Also, change header to match glibc's,
16997         to make checking against glibc easier.
16999 2013-10-29  Jim Meyering  <meyering@fb.com>
17001         maint.mk: prefer gpgv2 over gpgv
17002         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
17003         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
17004         Reported by Gary Vaughan.
17006 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17008         isnan: port to VAX
17009         Reported by John Klos for NetBSD-5/VAX in
17010         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
17011         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
17012         (FUNC): Use it.
17014 2013-10-28  Jim Meyering  <meyering@fb.com>
17016         gnulib-tool: protect against CDPATH
17017         * gnulib-tool: Many "cd" built-in functions print a directory name
17018         to stdout when CDPATH is set, e.g.,
17019           $ bash -c 'CDPATH=/; cd tmp'
17020           /tmp
17021         Unset it, when possible.  Prompted by a comment from Bruce Korb.
17023         maint.mk: restore functionality removed by recent change...
17024         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
17025         the context of a shallow-cloned gnulib repository: "git describe"
17026         would fail in such a directory.  However, that change made it so
17027         the reported gnulib revision no longer includes the version number
17028         or a commit count, even when run from a full clone.
17029         * top/maint.mk (gnulib-version): Use the full "git describe"
17030         output when possible, e.g., the form above, rather than the
17031         abbreviated, no-tag, no-commit-count string, and fall back to
17032         using a 10-byte hash, rather than the default minimal-length
17033         hash prefix, since while the minimal-length one may be fine today,
17034         it is likely not to be unique for very long.
17036 2013-10-26  Jim Meyering  <meyering@fb.com>
17038         maint.mk: fix "release" target to build _version
17039         This fixes a bug in README-release whereby following the outlined
17040         steps, one would publish a tarball whose programs would report
17041         --version output not consistent with the package version number.
17042         This bug caused grep-2.15 to produce a grep program whose
17043         --version option made it print 2.14.56-1e3d rather than 2.15.
17044         * top/maint.mk (release): Making this target build "_version"
17045         ensures that the new version number is reflected in configure.
17047 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
17049         install-reloc: Support multi-binary installation.
17050         * build-aux/install-reloc: Support installing multiple programs in
17051         one invocation, as done by Automake starting with commit
17052         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
17053         Haible <bruno@clisp.org>, archived at
17054         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
17055         Reported by Sylvain <beuc@gnu.org>.
17057 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
17059         selinux-h: Really build without selinux when library is missing.
17060         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
17061         continue without selinux, as already told in the warning message.
17063 2013-10-21  Jim Meyering  <meyering@fb.com>
17065         regex: also remove dependency on HAVE_WCSCOLL
17066         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
17068 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
17070         xfreopen: Fix typo. s/frepoen/freopen/
17071         * lib/xfreopen.c: Fix description.
17072         * modules/xfreopen: Likewise.
17074 2013-10-21  Jim Meyering  <meyering@fb.com>
17076         regex: don't depend on wcscoll
17077         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
17078         It is no longer used.
17080 2013-10-20  Jim Meyering  <meyering@fb.com>
17082         error: add the printf attribute to a static function
17083         * lib/error.c (error_tail): Add the printf attribute, to placate
17084         gcc's -Werror=suggest-attribute=format option.
17086 2013-09-30  Jim Meyering  <meyering@fb.com>
17088         fpending, obstack, strerror-override: use pure+const function attrs
17089         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
17090         * lib/obstack.c (_obstack_allocated_p): Likewise.
17091         * lib/obstack.h (_obstack_memory_used): Likewise.
17092         (_obstack_memory_used): Likewise.
17093         * lib/strerror-override.h (strerror_override): Declare with
17094         the "const" attribute.
17096 2013-10-18  Eric Blake  <eblake@redhat.com>
17098         extern-inline: make safe for -Wundef usage
17099         Reported by Vladimir 'phcoder' Serbinenko in
17100         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
17101         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
17103 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
17105         mkfifo-tests, etc.: allow HP-UX 11.11 bug
17106         Problem reported by Daniel Richard G. in
17107         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
17108         * doc/posix-functions/mkfifo.texi (mkfifo):
17109         * doc/posix-functions/mkfifoat.texi (mkfifoat):
17110         * doc/posix-functions/mknod.texi (mknod):
17111         * doc/posix-functions/mknodat.texi (mknodat):
17112         Document the HP-UX 11.11 bug.
17113         * tests/test-mkfifo.h (test_mkfifo):
17114         Allow the HP-UX 11.11 bug.
17116 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
17118         acl: allow cross-compilation to Gentoo
17119         Problem reported by Gabriel Marcano in
17120         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
17121         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
17122         test only whether it links.
17124 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17126         mgetgroups: remove dependency on realloc-gnu
17127         The dependency violates the comment in realloc-gnu, which
17128         says that tests can't depend on realloc-gnu; some tests depend
17129         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
17130         Problem reported by Daniel Richard G. in
17131         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
17132         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
17133         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
17134         not realloc-gnu.
17136 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
17138         regex-tests: port to HP-UX 11.11
17139         Problem reported by Daniel Richard G. in
17140         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
17141         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
17143 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17145         verify: document some 'assume' pitfalls
17146         * doc/verify.texi (Compile-time Assertions):
17147         Mention that 'assume (E)' can sometimes slow things down.
17148         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
17150 2013-10-10  Eric Blake  <eblake@redhat.com>
17152         strtoumax: fix typo in previous commit.
17153         * modules/strtoumax (Depends-on): Fix typo.
17154         * modules/strtoimax (Depends-on): Likewise.
17156 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17158         strtoumax: port to Solaris 8
17159         This problem was introduced in the recent HP-UX patch.
17160         Reported by Tom G. Christensen in
17161         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
17162         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
17163         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
17165 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
17167         strtoimax, strtoumax: port to HP-UX 11.11
17168         Problem reported by Daniel Richard G. in
17169         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
17170         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
17171         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
17172         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
17173         REPLACE_STRTOUMAX.
17174         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
17175         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
17176         Replace the function if defined as a macro but not as a function.
17177         * modules/inttypes-incomplete (inttypes.h): Substitute
17178         REPLACE_STRTOUMAX.
17179         * modules/strtoumax (configure.ac): Replace strtoumax if
17180         REPLACE_STRTOUMAX.
17182 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17184         strtoimax: port to HP-UX 11.11
17185         Problem reported by Daniel Richard G.
17186         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
17187         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
17188         they might clash with inttypes.h.
17190 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
17192         New module 'count-trailing-zeros'.
17193         * MODULES.html.sh: Mention it.
17194         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
17195         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
17196         * modules/count-trailing-zeros-tests:
17197         * tests/test-count-trailing-zeros.c:
17198         New files.
17200         count-leading-zeros: port to MSC; support types wider than 64 bits
17201         The ideas behind the MSC port are stolen from Emacs.
17202         * lib/count-leading-zeros.h:
17203         Don't include verify.h: it's no longer needed, as types wider than
17204         64 bits are now supported.
17205         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
17206         performance with MSC.  All uses changed.  Do not assume that TYPE
17207         has at most 64 bits.
17208         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
17209         All uses changed.  Fold the subtraction from 31 into the table.
17211         count-one-bits: port to MSC; support types wider than 64 bits
17212         The ideas behind the MSC port are stolen from Emacs.
17213         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
17214         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
17215         Don't include verify.h: it's no longer needed, as types wider than
17216         64 bits are now supported.
17217         (COUNT_ONE_BITS_GENERIC): New macro.
17218         (popcount_supported) [_MSC_VER]: New inline function.
17219         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
17220         performance with MSC.  All uses changed.  Do not assume that TYPE
17221         has at most 64 bits.
17222         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
17224 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
17226         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
17227         * lib/mountlist.c (read_file_system_list): fix leak of directory
17228         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
17230 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
17232         tests: improve diagnostic when an assertion fails
17233         * tests/macros.h (ASSERT): Report the assertion that failed.
17235 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
17237         verify: new macro 'assume'
17238         This is taken from Emacs, and should be generally useful.
17239         * doc/verify.texi (assume): Document it.
17240         * lib/verify.h (assume): New macro.
17241         (__has_builtin): Expand to 0 if not defined.
17243 2013-09-26  Eric Blake  <eblake@redhat.com>
17245         dup2, dup3: work around another cygwin crasher
17246         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
17247         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
17248         * tests/test-dup2.c (main): Likewise.
17249         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
17250         * lib/dup3.c (dup3): Likewise.
17251         * doc/posix-functions/dup2.texi (dup2): Document it.
17252         * doc/glibc-functions/dup3.texi (dup3): Likewise.
17254         getdtablesize: work around cygwin issue
17255         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
17256         * modules/getdtablesize (configure.ac): Build replacement.
17257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
17258         * modules/unistd (Makefile.am): Expose the witness.
17259         * lib/unistd.in.h (getdtablesize): Declare replacement.
17260         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
17261         * tests/test-getdtablesize.c (main): Test it.
17262         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
17264 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
17266         pmccabe2html: escaping of special characters
17267         Escape all '<', '>', and '&' in HTML output.
17268         * build-aux/pmccabe2html (html_fnc): Call gsub()
17269         instead of sub() to capture all '<', '>', and '&'.
17270         Neither of '<' and '>' is special in a regexp,
17271         so first arguments to gsub() are corrected. Also,
17272         in replacement strings, ampersand must be escaped.
17273         Finally, '&' must be handled first, then '<' and '>'.
17275 2013-09-24  Eric Blake  <eblake@redhat.com>
17277         manywarnings: enable nicer gcc warning messages
17278         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
17279         some -f options for optimal warnings.
17281 2013-09-21  Jim Meyering  <meyering@fb.com>
17283         timespec: use the new TIMESPEC_RESOLUTION in a few more places
17284         * lib/timespec-add.c (timespec_add): Also replace 999999999
17285         with TIMESPEC_RESOLUTION - 1.
17286         * lib/timespec-sub.c (timespec_sub): Likewise.
17288 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
17290         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
17291         Problem reported by Dagobert Michelsen via Eric Blake in
17292         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
17293         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
17294         not AC_COMPILE_IFELSE.
17296 2013-09-23  Eric Blake  <eblake@redhat.com>
17298         configmake: support new --runstatedir option
17299         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
17300         even if autoconf was too old to provide the command line option.
17301         * modules/configmake (Makefile.am): Propagate it to .h file.
17303 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17305         ctype, string: depend on extern-inline
17306         This is needed to complete the recent OS X fixes.
17307         Also, fix related documentation as suggested by Eric Blake.
17308         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
17309         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
17310         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
17311         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
17312         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
17313         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
17314         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
17315         * doc/posix-functions/toupper.texi:
17316         List the 'ctype' gnulib module.
17317         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
17318         * doc/posix-functions/strncpy.texi:
17319         List the 'string' gnulib module.
17320         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
17321         Add string.
17322         * modules/ctype, modules/string (Depends-on): Add extern-inline.
17324 2013-09-19  Pádraig Brady  <P@draigBrady.com>
17326         userspec: support optional parameters to parse_user_spec()
17327         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
17328         then avoid group processing and treat the full spec as a user.
17329         (parse_with_separator): Allow the USERNAME and GROUPNAME to
17330         be optional params (NULL), in which case they're ignored.
17332 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
17334         timespec: new function make_timespec, and new constants
17335         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
17336         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
17337         (make_timespec): New function.
17338         * lib/dtotimespec.c (dtotimespec):
17339         * lib/timespec-add.c (timespec_add):
17340         * lib/timespec-sub.c (timespec_sub):
17341         * lib/utimens.c (validate_timespec):
17342         * lib/utimensat.c (rpl_utimensat):
17343         Use these new constants and functions.
17345         stdio: OS X port of putc_unlocked + extern inline
17346         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
17347         * doc/posix-functions/putc_unlocked.texi:
17348         * doc/posix-functions/putchar_unlocked.texi:
17349         Document this portability problem.
17351         signal: OS X port of sigaddset etc. + extern inline
17352         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
17353         (sigismember): #undef on problematic Apple platforms.
17354         * doc/posix-functions/sigaddset.texi:
17355         * doc/posix-functions/sigdelset.texi:
17356         * doc/posix-functions/sigemptyset.texi:
17357         * doc/posix-functions/sigfillset.texi:
17358         * doc/posix-functions/sigismember.texi:
17359         Document this portability problem.
17361         extern-inline: do not always suppress extern inline on OS X
17362         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
17363         extern inline on Apple only if the particular compile-time
17364         configuration is known to have the problem.
17365         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
17366         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
17367         other Gnulib modules.
17369         extern-inline: document fixes for ctype and wctype macros
17370         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
17371         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
17372         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
17373         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
17374         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
17375         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
17376         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
17377         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
17378         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
17379         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
17380         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
17381         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
17382         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
17383         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
17384         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
17385         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
17386         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
17387         * doc/posix-functions/strncpy.texi:
17388         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
17389         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
17390         Document that Gnulib fixes portability problems with these
17391         functions on OS X 10.8 and earlier when called from plain inline
17392         or extern inline functions.
17394 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
17396         fflush, freadahead, fseeko: Fix for Android
17397         Suggested by Bruno Haible in:
17398         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
17399         * lib/stdio-impl.h: Use local __sfileext definition.
17401 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
17403         pmccabe2html: Portability to other awk versions.
17404         The functions systime() and strftime() are available
17405         in Gawk only.  Properly close two HTML-tags 'style'
17406         and 'span'.
17407         * build-aux/pmccabe2html (BEGIN): Store timing
17408         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
17409         systime() in HTML_COMMENT.
17410         (html_header): Correctly close tag 'style'.
17411         (END): Replace strftime() by CHRONOS_TIME.  Close
17412         tag 'span' correctly, not as 'div'.
17414 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
17416         getgroups: statement without effect
17417         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
17418         Change equality conditional to expected assignment.
17420 2013-09-09  Eric Blake  <eblake@redhat.com>
17422         glob: fix compilation
17423         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
17425 2013-09-07  Eric Blake  <eblake@redhat.com>
17427         glob: fix build for platforms without __THROW
17428         * lib/glob.in.h (__THROW): Add definition again.
17430 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
17432         regex-quote: fix buffer access out of bounds
17433         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
17434         * lib/regex-quote.c (regex_quote_spec_pcre):
17435         Fix typo that resulted in an out-of-bounds read.
17437 2013-09-04  Eric Blake  <eblake@redhat.com>
17439         glob: avoid -Wattribute warnings on glibc
17440         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
17441         __THROWNL, not __THROW, on static functions.
17442         * lib/glob.in.h (__THROW): Adjust...
17443         (__THROWNL): ...accordingly.
17445 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
17447         headers: check that _GL_INLINE_HEADER_BEGIN is defined
17448         Suggested by Bruce Korb in:
17449         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
17450         * doc/extern-inline.texi (extern inline):
17451         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
17452         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
17453         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
17454         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
17455         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
17456         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
17457         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
17458         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
17459         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
17460         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
17461         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
17462         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
17463         * lib/xtime.h:
17464         Check that _GL_INLINE_HEADER_BEGIN is defined.
17466 2013-08-29  Pádraig Brady  <P@draigBrady.com>
17468         bootstrap: remove the --version requirement from ancillary tools
17469         * build-aux/bootstrap (check_exists): A new refactored function to
17470         determine if a command exists.
17471         (find_tool): Use the new function which does not require the
17472         --version option to be supported.
17473         (check_versions): Use the new function.
17475 2013-08-26  Simon Josefsson  <simon@josefsson.org>
17477         gc: support HMAC-SHA256 and HMAC-SHA512.
17478         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
17479         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
17480         functions.
17481         (gc_hmac_md5): Use symbolic constant.
17482         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
17483         (gc_hmac_sha256, gc_hmac_sha512): New functions.
17484         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
17485         * m4/sha256.m4: Protect against empty expansion.
17486         * m4/sha512.m4: Likewise.
17487         * lib/hmac-sha256.c: New file.
17488         * lib/hmac-sha512.c: Likewise.
17489         * m4/gc-hmac-sha256.m4: Likewise.
17490         * m4/gc-hmac-sha512.m4: Likewise.
17491         * m4/gc-sha256.m4: Likewise.
17492         * m4/gc-sha512.m4: Likewise.
17493         * modules/crypto/gc-hmac-sha256: Likewise.
17494         * modules/crypto/gc-hmac-sha256-tests: Likewise.
17495         * modules/crypto/gc-hmac-sha512: Likewise.
17496         * modules/crypto/gc-hmac-sha512-tests: Likewise.
17497         * modules/crypto/hmac-sha256: Likewise.
17498         * modules/crypto/hmac-sha256-tests: Likewise.
17499         * modules/crypto/hmac-sha512: Likewise.
17500         * modules/crypto/hmac-sha512-tests: Likewise.
17501         * tests/test-gc-hmac-sha256.c: Likewise.
17502         * tests/test-gc-hmac-sha512.c: Likewise
17503         * tests/test-hmac-sha256.c: Likewise.
17504         * tests/test-hmac-sha512.c: Likewise
17506 2013-08-24  Daiki Ueno  <ueno@gnu.org>
17508         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
17509         of AC_CHECK_DECLS.
17511 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17513         selinux-at: omit unnecessary include
17514         * lib/selinux-at.c: Don't include dosname.h; not needed, since
17515         this source file doesn't use its macros, and subsidiary files that
17516         use the macros already include it.
17518 2013-08-21  Eric Blake  <eblake@redhat.com>
17520         d-ino: avoid false negative on symlink
17521         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
17522         Reported by Stephane Chazelas.
17524 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
17526         bootstrap: port to OpenBSD sed
17527         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
17528         does not interpret `-' as a file argument to mean stdin.
17530 2013-08-15  Eric Blake  <eblake@redhat.com>
17532         warnings: minor optimization
17533         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
17535         warnings: check -Wfoo rather than -Wno-foo
17536         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
17537         -Wno-, test if the compiler recognizes the positive form instead.
17539 2013-08-15  Karl Berry  <karl@gnu.org>
17541         * config/srclist-update: add option "doclicense" to placate
17542         pulling *.texi files from Emacs.  Write terse usage
17543         documentation at the top.
17545 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
17547         xvasprintf-tests: port to GCC with hardening flags
17548         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
17549         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
17550         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
17552 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
17554         fpending: port to recent Cygwin change to stdio_ext.h
17555         Reported by LRN in
17556         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
17557         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
17558         just declare __fpending unless it's a macro.
17559         A duplicate decl shouldn't hurt.
17560         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
17561         call compiles and links, instead of separately checking for
17562         decl and lib function.
17563         * modules/fpending (configure-ac):
17564         Adjust to fpending.m4's renaming of shell variable.
17566 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17568         sys_time: port to OpenBSD
17569         * lib/sys_time.in.h: Simply delegate to the system's header
17570         in the BSDish cases as well.  Problem reported by Mike Miller in
17571         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
17572         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
17573         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
17574         wider than time_t.
17576 2013-08-09  Pádraig Brady  <P@draigBrady.com>
17578         bootstrap: support checksum utils having -c but not --status
17579         * build-aux/bootstrap: Only look for sha1sum if updating po files.
17580         Add sha1 to the list of supported checksum utils since it's now
17581         supported through adjustments below.
17582         (update_po_files): Remove the use of --status
17583         in a way that will suppress all error messages, but since this is
17584         only used to minimize updates, it shouldn't cause an issue.
17585         Exit early if there is a problem updating the po file checksums.
17586         (find_tool): Remove the check for --version support as this
17587         is optional as per commit 86186b17.  Don't even check for the
17588         presence of the command as if that is needed, it's supported
17589         through configuring prerequisites in bootstrap.conf.
17590         Prompt that when a tool isn't found, one can define an environment
17591         variable to add to the hardcoded search list.
17593 2013-08-05  Jim Meyering  <meyering@fb.com>
17595         regex: port to non-glibc/lock-using systems
17596         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
17597         system with GNULIB_LOCK would fail due to absence of the
17598         included "glthread/lock.h".  This would affect any package
17599         for which the "lock" module is used only by the regex module,
17600         and not explicitly used.
17601         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
17602         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
17603         Add a dependency on the "lock" module.
17605 2013-07-20  Daiki Ueno  <ueno@gnu.org>
17607         localecharset: make locale_charset thread-safe on Mac OS X
17608         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
17609         instead of MB_CUR_MAX.
17611 2013-07-20  Daiki Ueno  <ueno@gnu.org>
17613         gettext: update to version 0.18.3
17614         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
17615         require AC_PROG_SED to allow user to specify custom sed command when
17616         generating en@quot PO file.
17618 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
17620         bootstrap: use correct source when copying build-aux files
17621         * build-aux/bootstrap (gnulib_extra_files): This variable is
17622         relative to upstream gnulib layout, not downstream.
17624 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
17626         tmpdir: fix bug in VMS port
17627         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
17628         See Steven M. Schweda in
17629         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
17631 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
17633         tmpdir: port to VMS, to // != /, and to long dirs
17634         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
17635         __secure_getenv, so that we're more like the glibc version.
17636         All uses changed.
17637         (path_search): Don't put slash after directory if __VMS.
17638         Problem reported by Steven M. Schweda in
17639         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
17640         Simplify code to add slash; no need for a loop.
17641         Do not remove trailing slash from "//".
17642         Do not assume dlen <= INT_MAX.
17644 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
17646         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
17647         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
17648         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
17649         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
17651         accept4, dup3, pipe2: port to Cygwin
17652         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
17653         * lib/accept4.c (accept4) [O_BINARY]:
17654         * lib/dup3.c (dup3) [O_BINARY]:
17655         * lib/pipe2.c (pipe2) [O_BINARY]:
17656         Use set_binary_mode, not setmode.
17657         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
17658         * modules/binary-io (Depends-on): Remove module indicator.
17659         These last two bits undo the previous change to pipe2 and binary-io.
17661 2013-07-09  Pádraig Brady  <P@draigBrady.com>
17663         mountlist: add support for deallocating returned list entries
17664         * lib/mountlist.c (free_mount_entry): A new exported function
17665         to deallocate a mount list entry.
17666         (read_file_system_list): Refactor to use the new deallocation function.
17667         Suggested by Anton Ovchinnikov.
17669 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
17671         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
17672         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
17673         * lib/stdalign.in.h (_Alignas, _Alignof):
17674         Port to FreeBSD 9.1, and to C11 and C++11.
17675         (_Alignas): Also support ICC.
17676         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
17677         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
17679 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17681         fnmatch: don't goto over declaration
17682         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
17683         undefined behavior for goto over a declaration.
17684         Problem reported by Charlie Brown in
17685         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
17687         pipe2: decouple from binary-io a bit
17688         This is for Emacs, which needs pipe2 but not binary-io.
17689         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
17690         * modules/binary-io (Depends-on): Add module indicator.
17692 2013-07-03  Eric Blake  <eblake@redhat.com>
17694         mgetgroups: relax license to LGPLv2+
17695         * modules/getugroups (License): Change from GPLv3+.
17696         * modules/mgetgroups (License): Likewise.
17697         * modules/getgroups (License): Change from LGPLv3+.
17699         xalloc-oversized: relax license to LGPLv2+
17700         * modules/xalloc-oversized (License): Change from GPLv3+.
17702         nproc: relax license to LGPLv2+
17703         * modules/nproc (License): Change from LGPLv3+.
17705         bootstrap: honor --no-git
17706         * build-aux/bootstrap: Don't even try to use git when user is
17707         pointing to a static checkout.
17709 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
17711         ignore-value: port to gcc -pedantic
17712         * lib/ignore-value.h (ignore_value):
17713         Port to gcc -pedantic, by using __extension__.
17714         Reindent as per usual gnulib style nowadays.
17715         Simplify GCC version check.
17717 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
17719         extern-inline: port to gcc -std=c89
17720         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
17721         Do not use __gnu_inline__ if pedantic and pre-C99.
17723 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
17725         doc: document extern-inline
17726         * doc/extern-inline.texi: New file.
17727         * doc/gnulib.texi (alloca-opt): Include it.
17728         * m4/extern-inline.m4: Move some comments to documentation,
17729         and others closer to what they describe.
17731         doc: chatter less
17732         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
17733         (updated-stamp): Use it.  This causes 'make' to output just
17734         one file name rather than zillions.
17736         fflush, fseeko: port to musl cross-compiles
17737         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
17738         on some implementation that (1) is not known to be buggy,
17739         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
17740         cross-compiled to so we can't easily check for lack of
17741         conformance.  This is for cross-compiling to musl.
17742         Reported by Rich Felker in
17743         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
17744         * m4/fclose.m4 (gl_FUNC_FCLOSE):
17745         * m4/fflush.m4 (gl_FUNC_FFLUSH):
17746         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
17747         Adjust to above change.
17748         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
17749         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
17750         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
17751         known not to work, or unknown.
17753 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
17755         msvc-inval: port to mingw-w64
17756         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
17757         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
17758         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
17760 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
17762         getcwd-lgpl: port to Tru64
17763         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
17764         Problem reported by Steven M. Schweda in
17765         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
17767         tests: port large-fd POSIX spawn tests to OS X
17768         Problem reported by Daiki Ueno in
17769         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
17770         * tests/test-posix_spawn_file_actions_addclose.c:
17771         * tests/test-posix_spawn_file_actions_adddup2.c:
17772         * tests/test-posix_spawn_file_actions_addopen.c:
17773         Include <limits.h>, for OPEN_MAX, if available.
17774         (big_fd): New static function.
17775         (main): Use it.
17777 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
17779         tests/nap.h: use an adaptive delay to avoid ctime update issues
17780         The recent change in nap.h (5191133e) decreased the probability of lost
17781         races to about a third, however such problems could still be observed
17782         in virtual machines and openSUSE's OBS.
17783         Before, nap() detected the needed time once empirically and then used
17784         that delay (together with a small correction multiplier) in further
17785         calls.  This problem has been reported and discussed several times,
17786         including guesses about possible kernel issues:
17787         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
17788         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
17789         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
17790         http://bugs.gnu.org/12820
17791         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
17792         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
17793         Now, nap() avoids the race alltogether by verifying on a reference
17794         file whether a timestamp difference has happened.
17795         * tests/nap.h (nap_fd): Define file descriptor variable for the
17796         witness file.
17797         (nap_works): Change return value to bool.  Change passing
17798         the old file's status by value instead of by reference as this function
17799         does no longer update that timestamp; rename the function argument from
17800         st to old_st.  Remove the local variables cdiff and mdiff because that
17801         function now returns true/false instead of the precise delay.
17802         (guess_delay): Remove function.
17803         (clear_tmp_file): Add new function to close and unlink the witness file.
17804         (nap): Instead of re-using the delay which has been calculated during
17805         the first call, avoid the race by actually verifying that a timestamp
17806         difference can be observed on the current file system.  Use an adaptive
17807         approach for the delay to minimize execution time.  Assert that the
17808         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
17809         = 2^31 - 1 = 2.1s.
17810         Use atexit to call clear_tmp_file when the process terminates.
17812 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
17814         sig2str: port to C++
17815         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
17816         Reported by Daniel J Sebald in
17817         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
17819 2013-05-30  Eric Blake  <eblake@redhat.com>
17821         docs: mention cygwin shortcoming in <sys/un.h>
17822         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
17824         vasnprintf: silence mingw compiler warning
17825         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
17827 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17829         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
17830         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
17831         This fixes a porting bug I recently reintroduced in regex, and
17832         some other instances that I discovered while testing the fix.
17833         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
17834         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
17835         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
17836         with an empty argument if this is a pedantic pre-C99 GCC.
17837         * lib/verify.h: Do not use _Static_assert if this is a pedantic
17838         pre-C11 GCC.
17840         regex: adapt to locking regime instead of depending on pthread
17841         Instead of depending on pthread, adapt to whatever thread
17842         modules are in use.  Problem reported by Ludovic Courtès in
17843         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
17844         and by Mats Erik Andersson in
17845         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
17846         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
17847         Support either the 'lock' module, or the 'pthread' module, or
17848         no module.
17849         (lock_lock, lock_unlock): New macros.
17850         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
17851         * modules/lock, modules/pthread (configure.ac): Add module indicator.
17852         * modules/regex (Depends-on): Remove pthread.
17854 2013-05-22  Eric Blake  <eblake@redhat.com>
17856         getgroups: document portability issues
17857         * doc/glibc-functions/initgroups.texi (initgroups): Mention
17858         multithread safety.
17859         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
17860         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
17861         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
17862         getugroups.
17863         * doc/posix-functions/getgroups.texi (getgroups): Mention
17864         multithread safety and mgetgroups.
17866 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
17868         test-lchown, test-chown: also skip test if chown fails with EPERM
17869         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
17870         skip this test, to handle FAT file systems.
17871         * tests/test-chown.h (test_chown): Likewise.
17873 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17875         regex: fix dfa race in multithreaded uses
17876         Problem reported by Ludovic Courtès in
17877         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
17878         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
17879         New macros.  All uses of __libc_lock_define, __libc_lock_init
17880         changed to use the first two of these.
17881         (__libc_lock_lock, __libc_lock_unlock): New macros, for
17882         non-glibc platforms.
17883         (struct re_dfa_t): Define the lock unconditionally.
17884         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
17885         '#ifdef _LIBC"s.
17886         * modules/regex (Depends-on): Add pthread, if we use the
17887         included regex.
17889         * lib/regcomp.c: Do actions that are not needed for glibc,
17890         but may be needed elsewhere.
17891         (regfree, re_compile_internal): Destroy the lock.
17892         (re_compile_internal): Check for lock-initialization failure.
17894         malloca: port to compilers that reject size-zero arrays
17895         This fixes a bug introduced in my previous patch.
17896         * lib/malloca.c (struct preliminary_header): Use an int
17897         rather than a character array of size int; that's simpler.
17898         (struct header): Remove, replacing with ...
17899         (union header): New type.  This avoids the need for declaring a
17900         character array of size zero, which is not allowed on some platforms.
17901         All uses changed.
17903 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
17905         parse-datetime, tests: don't use "string" + int
17906         Recent versions of 'clang' complain about C source code that
17907         uses expressions of the form '"string literal" + integer',
17908         I guess on the theory that it's confusing for readers who are
17909         used to C++.  On those grounds I suppose it's OK to make this
17910         minor style change.
17911         * lib/parse-datetime.y (parse_datetime):
17912         * tests/test-fchdir.c (main):
17913         * tests/test-snprintf-posix.h (test_function):
17914         * tests/test-snprintf.c (main):
17915         * tests/test-vasnprintf-posix.c (test_function):
17916         * tests/test-vasnprintf.c (test_function):
17917         * tests/test-vsnprintf.c (main):
17918         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
17919         Rewrite '"str" + E' to '&"str"[E]'.
17921 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
17923         argmatch: port to C++
17924         * lib/argmatch.h [__cplusplus]: Add extern "C".
17926         argp: typo fix
17927         * lib/argp-help.c: Typo in comment.
17929 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
17931         manywarnings: update for GCC 4.8.0
17932         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
17933         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
17934         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
17935         -Wmissing-noreturn, as they are duplicates of other warnings.
17936         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
17937         was documented to be flaky in earlier versions of GCC.
17939         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
17940         * tests/test-spawn.c (main):
17941         * tests/test-sys_socket.c (main):
17942         * tests/test-sys_wait.c (main):
17943         Don't have a switch value that isn't covered by a case.
17945         getaddrinfo-tests: port --enable-gcc-warnings to clang
17946         * tests/test-getaddrinfo.c (simple):
17947         Avoid casts from looser to stricter-aligned pointers.
17949         thread: port --enable-gcc-warnings to clang
17950         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
17951         Include <signal.h>, to pacify a warning about pthread_sigmask.
17953         stdio: use __REDIRECT for fwrite, fwrite_unlocked
17954         * lib/stdio.in.h (fwrite):
17955         When working around bug 11959, use __REDIRECT rather than '#define
17956         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
17957         fix the -Wunused-value issue with clang, and it works with GCC too.
17958         Problem with targeting reported by Eric Blake in
17959         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
17960         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
17961         debugging the fwrite issue.
17963         stdio: port --enable-gcc-warnings to clang
17964         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
17965         since the GCC workaround for fwrite does not pacify clang.
17967         sig2str: port --enable-gcc-warnings to clang
17968         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
17970         obstack: port --enable-gcc-warnings to clang
17971         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
17972         Avoid casts from looser to stricter-aligned pointers.
17974         memchr2: port --enable-gcc-warnings to clang
17975         * lib/memchr2.c (memchr2):
17976         Avoid casts from looser to stricter-aligned pointers.
17978         mbsstr: port --enable-gcc-warnings to clang
17979         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
17980         Avoid casts from looser to stricter-aligned pointers.
17982         malloca: port --enable-gcc-warnings to clang
17983         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
17984         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
17986         inttostr: port --enable-gcc-warnings to clang
17987         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
17989         warnings: port to clang
17990         Problem reported by Daniel P. Berrange via Eric Blake in
17991         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
17992         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
17993         (gl_WARN_ADD): Use it.
17995 2013-05-11  Jim Meyering  <meyering@fb.com>
17997         quotearg: do not read beyond end of buffer
17998         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
17999         end of an ARG for which no length was specified.  With an N-byte
18000         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
18001         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
18002         via coreutils' misc/sort-debug-keys.sh test and detected by running
18003         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
18004         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
18005         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
18006         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
18007         characters correctly."
18009 2013-05-11  Daiki Ueno  <ueno@gnu.org>
18011         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
18012         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
18013         compilation target is Mac OS X 10.6.
18014         Problem reported by parafin and Andoni Morales in
18015         <http://savannah.gnu.org/bugs/?37844> and
18016         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
18018 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
18020         mkdir-p: remove assumptions about umask and mode
18021         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
18022         umask is 0, or that MODE is a subset of MODE_BITS.
18024 2013-05-10  Eric Blake  <eblake@redhat.com>
18026         maint.mk: catch more abuse of HAVE_DECL in syntax-check
18027         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
18029 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
18031         deps: require Automake >= 1.9.6 in generated Makefile fragments
18033         That is the same minimal version required in the DEPENDENCIES file.
18034         Moreover, the old code generated a requirement of Automake >= 1.5,
18035         and that is an insanely outdated version.
18037         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
18038         * tests/havelib/rpathlx/Makefile.am: Likewise.
18039         * tests/havelib/rpathly/Makefile.am: Likewise.
18040         * tests/havelib/rpathlyx/Makefile.am: Likewise.
18041         * tests/havelib/rpathlz/Makefile.am: Likewise.
18042         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
18043         * tests/havelib/rpathx/Makefile.am: Likewise.
18044         * tests/havelib/rpathy/Makefile.am: Likewise.
18045         * tests/havelib/rpathz/Makefile.am: Likewise.
18047 2013-05-08  Eric Blake  <eblake@redhat.com>
18049         bootstrap: AC_INIT may have more than four parameters
18050         * build-aux/bootstrap (extract_package_name): Correctly extract
18051         non-empty tarname field.  Avoid range in regex.
18052         Based on a report by Sami Kerola <kerolasa@iki.fi>.
18054 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18056         qacl: port to MS-Windows port of GNU Emacs
18057         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
18058         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
18059         port of GNU Emacs.  Problem reported by Eli Zaretskii in
18060         <http://bugs.gnu.org/14295#14>.
18062 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
18064         acl: include quote.h
18065         * lib/copy-acl.c: Include quote.h.
18066         * lib/set-acl.c: Likewise.
18068 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
18070         fchownat, renameat, unlinkat: update statat dependencies
18071         These modules use statat and lstatat, not fstatat; so depend on
18072         the statat module, which was split out recently from fstatat.
18073         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
18074         * modules/renameat: Likewise.  Also delete fstat.
18075         URL: http://bugs.gentoo.org/468790
18077 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
18079         Assume gnulib is checked out from Git, not CVS
18081         In fact, access to the gnulib repository through CVS has been
18082         disabled, or more precisely, got broken and was never restored; see:
18083         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
18085         Note that support for CVS is not removed completely and unthinkingly
18086         by this change: only support for CVS checkouts of gnulib itself is
18087         removed.  For example, the 'bootstrap' script still cater to .cvsingore
18088         files and CVS directories, for the benefit of those poor gnulib clients
18089         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
18091         * gnulib-tool: Simplify accordingly.
18092         * posix-modules: Likewise.
18093         * MODULES.html.sh: Likewise.
18094         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
18095         repository.
18096         * doc/gnulib-intro.texi: Likewise.
18097         * doc/gnulib-readme.texi: Likewise.
18098         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
18099         sample '.gitignore' file rather than a sample '.cvsignore'.
18100         * NEWS: Update.
18101         * m4/extensions.m4: While at it, remove a comment mistakenly referring
18102         to "CVS Autoconf" rather than "git Autoconf".
18104 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
18106         utimensat-tests, etc.: try to fix some races
18107         Problem reported by Bernhard Voelker in
18108         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
18109         I don't know whether this patch fixes that race condition, but it
18110         fixes *some* race conditions, so it should be a win.
18111         * modules/chown-tests (Depends-on):
18112         * modules/fchownat-tests (Depends-on):
18113         * modules/fdutimensat-tests (Depends-on):
18114         * modules/futimens-tests (Depends-on):
18115         * modules/lchown-tests (Depends-on):
18116         * modules/stat-time-tests (Depends-on):
18117         * modules/utimens-tests (Depends-on):
18118         * modules/utimensat-tests (Depends-on):
18119         Depend on nanosleep, not usleep.
18120         * modules/chown-tests (test_chown_LDADD):
18121         * modules/lchown-tests (test_lchown_LDADD):
18122         * modules/stat-time-tests (test_stat_time_LDADD):
18123         New macro.
18124         * modules/fchownat-tests (test_fchownat_LDADD):
18125         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
18126         * modules/futimens-tests (test_futimens_LDADD):
18127         * modules/utimens-tests (test_utimens_LDADD):
18128         * modules/utimensat-tests (test_utimensat_LDADD):
18129         Add $(LIB_NANOSLEEP).
18130         * modules/stat-time-tests (Files): Add tests/nap.h.
18131         * tests/nap.h: Include <limits.h>, for INT_MAX.
18132         (lt_mtime): Remove.
18133         (diff_timespec): New function.
18134         (get_stat): Rename from get_mtime.  All callers changed.
18135         (nap_works): Determine the needed delay by inspecting the
18136         file system's timestamp jumps; this should be more reliable.
18137         Look at both mtime and ctime, and take the maximum of the two jumps.
18138         (nap_works, guess_delay):
18139         Return a nanosecond count, not a microsecond count.
18140         All callers changed.
18141         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
18142         failure.
18143         (nap): Multiply the guess by 1.125, to accommodate the case where
18144         the file system's clock is a bit slower than nanosleep's clock.
18145         * tests/test-stat-time.c (BASE): New macro.
18146         Include nap.h.
18147         (nap): Remove; nap.h now defines this.  This removes a duplicate
18148         implementation of 'nap'.
18150         utimens, utimensat: work around Solaris UTIME_OMIT bug
18151         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
18152         Linux kernel 2.6.32 does.  Work around it in the same way.
18153         * doc/posix-functions/futimens.texi (futimens):
18154         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
18155         * lib/utimens.c (fdutimens, lutimens):
18156         * lib/utimensat.c (rpl_utimensat): Work around the bug.
18158         gettext: now it's your responsibility to add -I$(top_builddir)/intl
18159         Formerly, it was your responsibility to do this for all Makefile.ams
18160         other than Gnulib's.  Now it's your responsibility to do it for
18161         Gnulib's Makefile.am, too.
18162         * NEWS: Document this.
18163         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
18165         acl: include errno.h to get errno
18166         Reported by Daiki Ueno in
18167         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
18168         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
18170 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
18172         tests: don't assume getdtablesize () <= 10000000
18173         * modules/cloexec-tests:
18174         * modules/dup2-tests:
18175         * modules/dup3-tests:
18176         * modules/nonblocking-tests:
18177         * modules/posix_spawn_file_actions_addclose-tests:
18178         * modules/posix_spawn_file_actions_adddup2-tests:
18179         * modules/posix_spawn_file_actions_addopen-tests:
18180         * modules/unistd-safer-tests:
18181         Depend on the getdtablesize module.
18182         * tests/test-cloexec.c:
18183         * tests/test-dup-safer.c:
18184         * tests/test-dup2.c:
18185         * tests/test-dup3.c:
18186         * tests/test-fcntl.c:
18187         * tests/test-nonblocking.c:
18188         * tests/test-posix_spawn_file_actions_addclose.c:
18189         * tests/test-posix_spawn_file_actions_adddup2.c:
18190         * tests/test-posix_spawn_file_actions_addopen.c:
18191         Don't assume getdtablesize () <= 10000000.
18193 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
18195         extern-inline: work around bug in Sun c99
18196         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
18197         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
18199 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
18201         qacl: new module, broken out from the acl module
18202         This is for GNU Emacs, which wants the acl functions but does
18203         not want 'error' invoked when they fail.
18204         * lib/acl-internal.h: Do not include error.h, quote.h.
18205         (ENOSYS, ENOTSUP): Remove; no longer needed.
18206         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
18207         * lib/acl.h: Include <stdbool.h>.
18208         (acl_errno_valid): New function.
18209         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
18210         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
18211         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
18212         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
18213         (ACL_INTERNAL_INLINE): Remove; no longer needed.
18214         * lib/file-has-acl.c (file_has_acl):
18215         * lib/qcopy-acl.c (qcopy_acl):
18216         * lib/qset-acl.c (qset_acl):
18217         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
18218         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
18219         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
18220         lib/file-has-acl.c, m4/acl.m4 to qacl module.
18221         Add lib/set-acl.c.
18222         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
18223         Add qacl.
18224         (configure.ac): Move gl_FUNC_ACL to qacl module.
18225         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
18226         Rename set-mode-acl.c to set-acl.c.
18227         * lib/acl-errno-valid.c: New file.
18228         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
18229         copy_acl function remains in copy-acl.c.
18230         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
18231         (_): Remove; not needed.
18232         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
18233         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
18234         * modules/qacl: New file, moved from the old modules/acl.
18235         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
18236         Remove set-mode-acl.c, copy-acl.c.
18237         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
18239         alignof, intprops, malloca: port better to IBM's C compiler
18240         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
18241         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
18242         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
18244 2013-04-25  Daiki Ueno  <ueno@gnu.org>
18246         wctype-h: fix gettext link error on mingw
18247         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
18248         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
18249         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
18250         rpl_towupper and rpl_towupper.
18252 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
18254         regex-tests, regex: allow glibc re_search behavior
18255         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
18256         re_search input data to make the multi-character collating element
18257         in it clearly visible, and treat re_search return code 0 as valid.
18258         * m4/regex.m4 (gl_REGEX): Likewise.
18260 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
18262         stdalign: doc fix
18263         * doc/posix-headers/stdalign.texi (stdalign.h):
18264         Gnulib doesn't support '_Alignof expr'.
18266 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
18268         stdalign: port to stricter ISO C11
18269         ISO C11 says that _Alignof's operand must be a parenthesized type.
18270         Problem reported by Eli Zaretskii in
18271         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
18272         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
18273         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
18275 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
18277         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
18278         Problem reported by Marco Atzeri in
18279         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
18280         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
18281         Simply delegate to the system <sys/select.h> in this case too.
18282         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
18283         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
18284         be needed on Solaris either.
18285         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
18286         Simply delegate to the system <sys/time.h> in this case.
18288 2013-03-19  Karl Berry  <karl@gnu.org>
18290         * build-aux/gnupload: check for erroneous (with gnupload) use of
18291         ftp-upload.gnu.org, tweak help.
18293 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18295         copy-file, rpmatch: fix problems found by cppcheck
18296         Reported by Arno Onken in
18297         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
18298         * lib/rpmatch.c (try): Fix memory leak.
18299         * lib/copy-file.c: Include "ignore-value.h".
18300         (qcopy_file_preserving): Ignore chown value.
18301         * modules/copy-file (Depends-on): Add ignore-value.
18303 2013-01-27  Jim Meyering  <jim@meyering.net>
18305         prefix-gnulib-mk: give better diagnostics
18306         * build-aux/prefix-gnulib-mk: Don't just "die".
18307         Give better diagnostics upon failure.
18309 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
18311         putenv: port to Solaris 10
18312         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
18313         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
18314         is not what is wanted here.
18315         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
18316         declaration, not for its existence.
18318 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
18320         mktime: fix configure typo
18321         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
18323 2013-03-12  Eric Blake  <eblake@redhat.com>
18325         regex-tests: skip UTF-8 test on mingw
18326         * modules/regex-tests (Depends-on): Add localcharset.
18327         * tests/test-regex.c (main): Use it to skip test on mingw.
18329 2013-03-11  Eric Blake  <eblake@redhat.com>
18331         tests: make it easier to bypass alarm time in debugger
18332         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
18333         * tests/test-memmem.c (main): Likewise.
18334         * tests/test-passfd.c (main): Likewise.
18335         * tests/test-ptsname.c (main): Likewise.
18336         * tests/test-ptsname_r.c (main): Likewise.
18337         * tests/test-strcasestr.c (main): Likewise.
18338         * tests/test-strstr.c (main): Likewise.
18340         regex: port to mingw's recent addition of undeclared alarm
18341         * doc/posix-functions/alarm.texi (alarm): Document that alarm
18342         exists but still doesn't work in newer mingw.
18343         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
18344         not existence.  Ensure SIGALRM is not trapped.
18345         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
18346         * m4/regex.m4 (gl_REGEX): Likewise.
18347         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
18348         * tests/test-regex.c (main): Use correct probe for alarm.
18350         putenv: avoid compilation warning on mingw
18351         * lib/putenv.c (_unsetenv): Protect variable declaration.
18352         (putenv): Fix indentation.
18354 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
18356         unistd: don't prevent Tru64 Unix from using gnulib strtod.
18357         * lib/unistd.in.h: be careful not to include un-needed system
18358         stdlib.h from here, because that prevents gnulib stdlib.h from
18359         defining rpl_strtod correctly.
18361 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
18363         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
18364         changesets, but for the 'precision 0' test.
18365         * tests/test-vasprintf-posix.c (test_function): Don't insist on
18366         round-to-even, since POSIX says rounding is implementation-defined
18367         and OS X 10.8.2 rounds 1.51 to 1 here.
18369         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
18370         changeset.
18371         * tests/test-vasprintf-posix.c (test_function): Don't insist on
18372         round-to-even, since POSIX says rounding is implementation-defined
18373         and OS X 10.8.2 rounds 1.5 to 1 here.
18375 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
18377         vasnprintf-posix-tests: allow rounding 1.5 to 1
18378         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
18379         round-to-even, since POSIX says rounding is implementation-defined
18380         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
18381         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
18383         bootstrap: port to FreeBSD
18384         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
18385         that treat '--' differently.  Reported by Mats Erik Andersson in
18386         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
18388 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
18390         regex: rename remaining __attribute calls to __attribute__.
18391         2012-02-25 changed definition of __attribute, but left some uses
18392         unchanged, preventing compilation of regex module on most non-gcc
18393         environments.
18394         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
18395         (lookup_collation_sequence_value, build_range_exp)
18396         (build_collating_symbol): Set attributes with newly renamed
18397         __attribute__ decorator.
18398         * lib/regex_internal.c (re_string_peek_byte_case)
18399         (re_node_set_compare, re_node_set_contains): Likewise.
18400         * lib/regexec.c (acquire_init_state_context): Likewise.
18402 2013-03-06  Bruno Haible  <bruno@clisp.org>
18404         execute: Revert last change, but use a different condition.
18405         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
18406         on Windows.
18408 2013-03-05  Eric Blake  <eblake@redhat.com>
18410         execute: drop dead code
18411         * lib/execute.c (nonintr_close, nonintr_open): Delete.
18413 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
18415         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
18416         * m4/non-recursive-gnulib-prefix-hack.m4
18417         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
18418         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
18419         <http://bugs.gnu.org/10305#237>.
18421 2013-03-04  Eric Blake  <eblake@redhat.com>
18423         test-getsockopt: avoid compiler warning
18424         * tests/test-getsockopt.c (includes): Ensure close is declared.
18426 2013-03-02  Bruno Haible  <bruno@clisp.org>
18428         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
18429         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
18431 2013-03-02  Bruno Haible  <bruno@clisp.org>
18433         gettext: Update to version 0.18.2.
18434         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
18435         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
18436                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
18438 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18440         regex: merge patches from libc
18442         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
18443         * lib/regex_internal.h (__attribute__): Rename from __attribute.
18444         All uses changed.
18445         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
18446         (re_string_wchar_at, re_string_elem_size_at):
18447         Mark function as possibly unused.
18449         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
18450         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
18451         elements compare against the byte sequence of it, not its name.
18453 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
18455         putenv: port better to native Windows
18456         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
18457         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
18458         (_unsetenv): Use _putenv if available.
18459         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
18460         a bit less likely to cause damage.
18461         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
18462         Fix the wrong value with SetEnvironmentVariable.
18463         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
18464         code better.
18466 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
18468         regex: ignore old-style-definition warnings
18469         * lib/regex.c: Add pragma to ignore these warnings.
18470         Problem reported for GNU tar by Pavel Raiskup.
18472 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
18474         getcwd: support coreutils better
18475         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
18476         but this might not be correct in coreutils, which disables
18477         the raw decl checks.  Problem reported by Nagendra in
18478         <http://bugs.gnu.org/10305#192>.
18479         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
18480         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
18481         Test the getcwd function, not any macro, since getcwd.c wants the
18482         function.
18483         * m4/getcwd.m4 (gl_FUNC_GETCWD):
18484         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
18485         compile, as might happen if there's a macro but no function.
18487         strtod: support coreutils better
18488         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
18489         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
18490         disables the raw decl checks.  This assumes there is an underlying
18491         strtod, but that's a safe assumption these days.
18492         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
18494         mountlist: port to HP NonStop
18495         Reported by Joachim Schmitz in
18496         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
18497         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
18498         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
18500 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18502         extern-inline: avoid compilation error with HP-UX cc
18503         Reported by Richard Lloyd in
18504         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
18505         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
18506         Suppress extern inline with HP-UX cc.  This should be safe,
18507         though it may hurt performance.  Perhaps someone with some HP-UX
18508         experience can come up with a higher-performance fix.
18510 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
18512         putenv: fix heap corruption with mixed putenv/_putenv
18513         Problem reported by Michael Goffioul in
18514         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
18515         * lib/putenv.c (putenv) [HAVE__PUTENV]:
18516         Rely on _putenv to allocate the new environment.
18517         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
18518         * modules/putenv (configure.ac): Use it.
18520 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
18522         unsetenv etc.: port to Solaris 11 + GNU Emacs
18523         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
18524         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
18525         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
18526         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
18527         idea but is too painful to fix right now), and without this gnulib
18528         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
18529         compiling unsetenv.c on Solaris 11.  Fix the problem for
18530         unsetenv.c, and fix other similar occurrences.
18532 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
18534         secure_getenv: fix C++ declaration typo
18535         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
18536         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
18537         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
18539 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
18541         careadlinkat: stop exporting careadlinkatcwd
18542         Only Emacs used it directly, and Emacs no longer needs it.
18543         * NEWS: Document this simplification.
18544         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
18545         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
18546         for readlink.
18547         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
18548         Don't include stdlib.h; no longer needed.
18549         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
18550         * lib/relocwrapper.c: Adjust comment to match new dependencies.
18551         * modules/areadlink (Depends-on): Add readlink.
18552         (Maintainer): Add self.
18553         * modules/careadlinkat (Depends-on): Remove readlink.
18555         extensions: port better to HP-UX
18556         This is merged from git Autoconf.
18557         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
18558         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
18559         so that it's compatible with the value used when compiling.
18561         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
18562         Problem reported by Mats Erik Andersson in
18563         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
18564         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
18565         openpty function exists, not merely when we intend to replace it.
18566         This corrects the 2013-01-31 patch, which mistakenly defined
18567         HAVE_OPENPTY even on hosts that lacked it.
18569 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
18571         secure_getenv: fix include typo
18572         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
18574         secure_getenv: port better to FreeBSD and Solaris
18575         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
18576         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
18577         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
18578         This works better on BSDish platforms.
18579         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
18580         Test for issetugid if __secure_getenv is missing.
18582 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
18584         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
18585         Some of these changes are merged in from git Autoconf.
18586         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
18587         When deciding whether to define _XOPEN_SOURCE, inspect the
18588         preprocessor macro __hpux instead of the more-heavyweight
18589         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
18590         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
18591         as the key for __EXTENSIONS__.
18593         unistd: avoid namespace pollution on non-glibc systems
18594         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
18595         This avoids namespace pollution on non-glibc systems, by causing
18596         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
18597         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
18598         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
18600 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
18602         tmpdir: use secure_getenv
18603         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
18604         Define to secure_getenv, not getenv.
18605         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
18606         as that's now secure_getenv's job.
18607         * modules/tmpdir (Depends-on): Add secure_getenv.
18609         tempname: use secure_getenv
18610         * lib/tempname.c (__secure_getenv) [!_LIBC]:
18611         Define to secure_getenv, not getenv.
18612         * modules/tempname (Depends-on):
18613         Add secure_getenv.
18615         secure_getenv: new module
18616         * MODULES.html.sh (Extra functions based on ANSI C 89):
18617         Add secure_getenv.
18618         * doc/glibc-functions/secure_getenv.texi: New file.
18619         * doc/gnulib.texi: Include it.
18620         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
18621         New files.
18622         * lib/stdlib.in.h (secure_getenv): New decl.
18623         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
18624         * modules/stdlib (stdlib.h):
18625         Add secure_getenv checks.
18627 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
18629         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
18630         Reported for OS X 10.8.2 by Assaf Gordon in
18631         <http://bugs.gnu.org/13516>.
18632         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
18633         !HAVE_OPENAT && !HAVE_FDOPENDIR.
18634         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
18635         so that they can be kept in sync more easily.  Avoid PATH_MAX
18636         test on the Hurd.  Sync from test-getcwd.c for errno tests after
18637         mkdir or chdir failure.
18638         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
18639         lib/getcwd.c.
18640         (test_abort_bug): Do not test for the deep directory bug unless we
18641         have openat support.  Avoid PATH_MAX test on the Hurd.
18643         regex-tests, regex: fix bug: memset undeclared
18644         * tests/test-regex.c: Don't include regex.h twice.  Include
18645         string.h, to declare memset.  Christensen's report also mentioned
18646         this issue.
18647         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
18648         test-regex.c, to avoid future problems like this.  Remove
18649         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
18650         twice.
18652         regex-tests: fix link errors on older Solaris
18653         These need to link with @LIBINTL@ to get libintl_gettext.
18654         Problem reported by Tom G. Christensen in
18655         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
18656         * modules/regex-tests (test_regex_LDADD): New macro.
18658 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
18660         regex-tests: new module
18661         * modules/regex-tests, tests/test-regex.c: New files.
18663         regex: fix off-by-one error in configure test
18664         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
18666 2013-01-31  Eric Blake  <eblake@redhat.com>
18668         regex: avoid infinite configure test
18669         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
18671 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
18673         openpty: fix bug where HAVE_OPENPTY wasn't defined
18674         See the thread starting at:
18675         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
18676         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
18677         openpty function exists, not merely when we intend to replace it.
18679 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
18681         sys_time: port to Solaris 2.6
18682         There is a circularity problem on Solaris 2.6, where <time.h> includes
18683         <sys/time.h> for struct timespec.  The include nesting is gnulib
18684         <time.h>, system <time.h>, gnulib <sys/time.h>, system
18685         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
18686         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
18687         <sys/siginfo.h>; the last, innermost file needs struct
18688         timestruc_t, which is defined in <sys/time.h>, which has not been
18689         fully parsed.  Problem reported by Tom G. Christensen in
18690         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
18691         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
18692         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
18693         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
18694         uses split double-inclusion guards.
18696 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
18698         regex: test for buffer overrun
18699         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
18700         for the just-fixed regex bug.
18702 2013-01-29  Andreas Schwab  <schwab@suse.de>
18704         regex: fix buffer overrun in regexp matcher [BZ #15078]
18705         * lib/regexec.c (extend_buffers): Add parameter min_len.
18706         (check_matching): Pass minimum needed length.
18707         (clean_state_log_if_needed): Likewise.
18708         (get_subexp): Likewise.
18710 2013-01-28  Pádraig Brady  <P@draigBrady.com>
18712         mountlist: don't consider "devtmpfs" as dummy
18713         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
18714         as there is storage associcated with it.
18716 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
18718         futimens-tests, utimens-tests: Depend on gettext.
18719         This works around a problem introduced in my 2013-01-12 patch,
18720         which added @LIBINTL@ to these modules.
18721         * modules/futimens-tests (Depends-on):
18722         * modules/utimens-tests (Depends-on): Add gettext.
18724 2013-01-26  Eric Blake  <eblake@redhat.com>
18726         test-getpeername: fix typo
18727         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
18729 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
18731         bootstrap: remove the need for a sorted .gitignore file
18732         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
18733         rename to insert_if_absent(), so that we don't need or generate
18734         a sorted .gitignore file.  We do require a .gitignore with no
18735         existing duplicate entries and enforce that.
18736         (sort_patterns): Remove this function as we now use the simpler
18737         technigue of inserting blacklist entries at the top of the file,
18738         assuming gnulib won't be inserting !whitelist entries.
18740 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18742         readlinkat: don't depend on gl_FUNC_OPENAT
18743         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
18744         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
18745         renameat.m4, symlinkat.m4; but one thing at a time.
18747         statat: new module, split out from fstatat
18748         GNU Emacs needs the POSIX-specified fstatat, but not the
18749         gnulib-specified statat and lstat.  Split the latter two into a
18750         new module 'statat'.
18751         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
18752         * lib/openat.h, lib/statat.c (STATAT_INLINE):
18753         Rename from FSTATAT_INLINE. All uses changed.
18754         * modules/fstatat (Files): Remove lib/statat.c.
18755         (gl_MODULE_INDICATOR([fstatat])): Remove.
18756         (lib_SOURCES): Remove.
18757         (Maintainer): Add self.
18758         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
18759         * tests/test-fstatat.c (BASE): Don't define if already defined.
18760         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
18762 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
18764         tests: don't assume fd 99 is closed
18765         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
18766         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
18767         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
18768         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
18769         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
18770         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
18771         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
18772         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
18773         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
18774         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
18775         * tests/test-fwrite.c, tests/test-getpeername.c:
18776         * tests/test-getsockname.c, tests/test-getsockopt.c:
18777         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
18778         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
18779         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
18780         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
18781         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
18782         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
18783         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
18784         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
18785         * tests/test-unlinkat.c, tests/test-unlockpt.c:
18786         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
18787         Close file descriptor 99, instead of assuming it's already closed.
18789 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
18791         stpncpy: port to OS X 10.8
18792         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
18793         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
18795 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
18797         unistd: port to recent mingw
18798         * lib/unistd.in.h: Remove special invocation convention for mingw,
18799         which breaks for the latest mingw version.  See John W. Eaton in
18800         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
18802         largefile: port better to Mac OS X 10.5
18803         This patch is backported from Autoconf git.
18804         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
18805         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
18806         with ino_t size being different for configuration time versus
18807         build/run time.  Problem reported by PHO in
18808         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
18810 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
18812         doc: clarify -Werror
18813         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
18814         clarify that it's intended for developers, not for ordinary builds,
18815         and mention --enable-gcc-warnings as one possible use.
18817 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
18819         stdint: fix build with Android's Bionic fox x86
18820         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
18821         was already included as _SSIZE_T_DEFINED_ might also be defined
18822         in include/machine/_types.h, which is included by stdio.h
18824 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
18826         net_if-tests: port to Solaris 7 + GCC 3.4.6
18827         Problem reported by Tom G. Christensen in
18828         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
18829         * tests/test-net_if.c (ni): Move to next the code that uses it,
18830         so that it's declared only if needed.
18832 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
18834         net_if-tests: port to older Solaris
18835         Problem reported by Tom G. Christensen in
18836         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
18837         * modules/net_if-tests (NET_IF_LIB): New substitution.
18838         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
18839         (HAVE_IF_NAMEINDEX): New C macro.
18840         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
18842         system-quote-tests: port to older Solaris
18843         Problem reported by Tom G. Christensen in
18844         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
18845         * tests/test-system-quote-child.c (fopen, fread): Undef.
18847         c-xvasprintf etc.: fix link errors on older Solaris
18848         These need to link with @LIBINTL@ to get libintl_gettext.
18849         Problem reported by Tom G. Christensen in
18850         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
18851         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
18852         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
18853         * modules/futimens-tests (test_futimens_LDADD):
18854         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
18856 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
18858         locale: port to Solaris 2.6 and 7 + GNU gettext
18859         * lib/locale.in.h: Just include_next <locale.h> when
18860         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
18861         when combining the localename module with GNU gettext 0.18.2.
18862         Problem reported by Tom G. Christensen in
18863         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
18865 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
18867         stdlib: port to Solaris 2.6
18868         Also, the code worked on Solaris 7 through 9 only by accident.
18869         Problem reported by Tom G. Christensen in
18870         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
18871         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
18872         simply include the system stdlib.h.
18873         * lib/getopt.in.h (__need_system_stdlib_h):
18874         * lib/pthread.in.h (__need_system_stdlib_h):
18875         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
18876         Define when including <stdlib.h>, to avoid problems at least for
18877         the pthread case on Solaris 2.6 and 7.  These .h files can get by
18878         with the system stdlib.h.
18880 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
18882         doc: update main copyright year
18883         * doc/gnulib.texi: Update copyright date.
18885         doc: improve ISO 8601 discussion
18886         * doc/parse-datetime.texi (Combined date and time of day items):
18887         Specify more carefully what formats are supported and what is
18888         done with excess precision.
18890 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
18892         doc: avoid small caps
18893         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
18894         they're more trouble than they're worth.  Suggested by Karl Berry
18895         in <http://bugs.gnu.org/13360>.
18897         regex: conform to strict C
18898         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
18899         From Aharon Robbins.
18901         gnulib-tool: fix incompatibility with autopoint 0.18.2
18902         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
18903         Problem reported by Tom G. Christensen in
18904         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
18906 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18908         fprintftime: bring back and reword fwrite comment
18909         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
18911         stdio: remove now-unnecessary stdio.c
18912         Since stdio.in.h no longer uses inline functions, we no longer
18913         need to compile the extern versions.
18914         * lib/stdio.c: Remove.
18915         * modules/stdio (Files): Remove lib/stdio.c.
18916         (lib_SOURCES): Remove.
18918         unicodeio: depend on stdio, not ignore-value
18919         * lib/unicodeio.c: Do not include ignore-value.h.
18920         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
18921         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
18923         fprintftime: depend on stdio, not ignore-value
18924         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
18925         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
18926         since the stdio module arranges to silence that warning now.
18927         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
18929 2012-10-04  Simon Josefsson  <simon@josefsson.org>
18931         stdint-tests: Fix expanded-before-required-warning.
18932         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
18934 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
18936         fwrite: silence __wur only for older glibc versions
18937         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
18938         This will help us remove this workaround some time in the far future.
18940 2013-01-03  Eric Blake  <eblake@redhat.com>
18942         fwrite: silence __wur without using inline
18943         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
18944         just gcc, and in a way that avoids inline issues.
18945         * modules/stdio (Depends-on): Drop extern-inline.
18947 2013-01-03  Jim Meyering  <jim@meyering.net>
18949         update-copyright: avoid copyright notice date corruption
18950         Given a sequence of copyright year numbers in which the final
18951         one was a two-digit number that happened to be a substring of
18952         a preceding four-digit year number, we would mistakenly update
18953         the substring (from two- to four-digit) rather than the two-digit
18954         number at the end, which, combined with the addition of the current
18955         4-digit year number would yield two 5-digit year numbers, e.g.,
18956         here, it would convert the first "99" to "1999, 2013" rather than
18957         the final one:
18958           1991, 99
18959           11999, 20131, 1999
18960         * build-aux/update-copyright: Tighten a regexp.
18961         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
18962         Reported by Joseph Myers in
18963         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
18965 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
18967         regex: omit needless signed-pointer casts
18968         * lib/regcomp.c (build_charclass, build_charclass_op):
18969         Use char *, not unsigned char *, for class name and extra.
18970         The char values are always nonnegative so there's no need to
18971         insist on unsigned char * here, and using char * removes the need
18972         for casts.  Reported by Aharon Robbins in
18973         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18975         regex: support Gawk, which never uses alloca
18976         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
18977         Do not include in this case.  Gawk doesn't supply a substitute
18978         alloca.h and doesn't need one.
18980         regex: port __libc_lock_define usage to C89
18981         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
18982         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
18983         does not conform to C89, as it has an empty macro argument.
18984         Reported by Aharon Robbins in
18985         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18987 2013-01-01  Eric Blake  <eblake@redhat.com>
18989         maint: update all copyright year number ranges
18990         Run "make update-copyright".
18992         version-etc: bump copyright year reported in --version
18993         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
18995 2012-12-31  Eric Blake  <eblake@redhat.com>
18997         sigprocmask-tests: skip test if pid is unexpectedly large
18998         * tests/test-sigprocmask.c (main): Add range check.
19000         git-version-gen: avoid test -z portability glitch
19001         * build-aux/git-version-gen: Prefer portable test spelling, since
19002         git-version-gen is run on more than just developer machines.
19004 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
19006         git-version-gen: add --fallback option to use if git is not present
19007         * build-aux/git-version-gen: Add support for the new option --fallback,
19008         which comes into play when there is no $tarball_version_file and
19009         git is not working.
19010         (scriptversion): Update.
19012         maint.mk: handle missing git with more grace
19013         * top/maint.mk (no-submodule-changes, public-submodule-commit):
19014         Quietly proceed if git is not present.
19016 2012-12-31  Eric Blake  <eblake@redhat.com>
19018         dup2: work around cygwin bug
19019         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
19020         * lib/dup2.c (rpl_dup2): Work around it.
19021         * doc/posix-functions/dup2.texi (dup2): Document it.
19023 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
19025         regex: remove unnecessary dependency on localcharset.h
19026         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
19027         hasn't been needed for years.
19028         * modules/regex (Depends-on): Remove localcharset.
19030         regex: revert single-byte change
19031         * lib/regexec.c (check_node_accept_bytes): Revert previous change
19032         to this function.  This was alredy fixed in a different way, at
19033         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
19034         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
19035         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
19037         regex: simplify based on Gawk version
19038         * lib/regex_internal.c (re_dfa_add_node): Simplify.
19039         Reported by Aharon Robbins in
19040         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19042 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19044         regex: check that pattern char is single-byte
19045         Reported by Aharon Robbins in
19046         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19047         * lib/regexec.c (check_node_accept_bytes):
19048         Return 0 if the pattern string has a multibyte character here.
19050         regex: implement rational ranges
19051         Reported by Aharon Robbins in
19052         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19053         * lib/regcomp.c (build_range_exp) [!_LIBC]:
19054         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
19055         Implement rational ranges.
19057         regex: avoid redefining __wctype
19058         Reported by Aharon Robbins in
19059         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19060         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
19061         #undef before defining.
19063         regex: port to hosts where malloc (0) == NULL
19064         Reported by Aharon Robbins in
19065         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19066         * lib/regex_internal.c (re_node_set_alloc):
19067         Don't assume that malloc (0) yields nonnull.
19068         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
19069         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
19070         * modules/regex (Files): Add m4/eealloc.m4.
19072         regex: port to C89
19073         Reported by Aharon Robbins in
19074         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19075         * lib/regcomp.c (init_word_char): Declaration before statement.
19077         regex: merge glibc changes
19078         Also, copy the license wording from glibc.  This simplifies
19079         merging changes.  gnulib-tool will change the wording to GPL as
19080         appropriate, when importing it to other packages.  The only
19081         glibc change made since the last merge, which needs merging, is:
19082         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
19083         * lib/regex_internal.h (gettext): Remove use of INTUSE.
19085         * users.txt: Add Emacs.
19087         doc: omit mention of version when not needed
19088         * doc/gnulib-intro.texi (Portability and Application Code):
19089         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
19090         Don't mention particular dates or versions when not necessary, so
19091         that the documentation won't go out of date so quickly.
19093         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
19095 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
19097         bootstrap: pass --force to autoreconf.
19098         * build-aux/bootstrap (AUTORECONFFLAGS): New.
19099         Add "--force" so that Automake's ylwrap and other such tools
19100         be updated at each bootstrap invocation.
19101         Use it.
19103 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19105         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
19106         The earlier patch forgot to update one of the #if conditions, causing
19107         a problem on Debian testing i386 reported by Mats Erik Andersson
19108         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
19109         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
19110         (__argp_fmtstream_puts, argp_fmtstream_puts)
19111         (__argp_fmtstream_write, argp_fmtstream_write)
19112         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
19114         * doc/gnulib-readme.texi: Minor fixups.
19115         (Portability guidelines): Modernize URLs.  Remove some repetition.
19116         (Indent with spaces not TABs): Reword to avoid too-long lines.
19117         Remove some '@ifset standalone' stuff that isn't used.
19119         * doc/gnulib-readme.texi (Portability guidelines):
19120         ctype.h, not ctime.h.
19122         Correct name of POSIX.1-2001.
19123         * doc/posix-functions/fgetc.texi (fgetc):
19124         * doc/posix-functions/fgets.texi (fgets):
19125         * doc/posix-functions/fread.texi (fread):
19126         * doc/posix-functions/fscanf.texi (fscanf):
19127         * doc/posix-functions/getc.texi (getc):
19128         * doc/posix-functions/getchar.texi (getchar):
19129         * doc/posix-functions/scanf.texi (scanf):
19130         POSIX.1-2001, not POSIX-2001.
19132         doc: move README into manual
19133         * README: Move contents to new file doc/gnulib-readme.texi.
19134         Replace with a one-line summary.
19135         * doc/gnulib.texi (Brief Overview): New section,
19136         with old intro preface.  Include gnulib-readme.texi for contents.
19137         (Philosophy): Rename from "Introduction", since this
19138         section no longer introduces the rest.  Write a new preface.
19139         * doc/gnulib-readme.texi: New file, with the old contents of
19140         README texinfo-ized.  This way, the README info appears
19141         in the online and printed manual.
19143 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
19145         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
19146         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
19147         c_vasprintf() prototype.
19149 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
19151         c-vasprintf: Fix "empty declaration" warning reported by GCC.
19152         * lib/c-vasprintf.h: Remove stray semicolon.
19154 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19156         gettext: avoid obsolete macro AM_PROG_MKDIR_P
19157         It is obsolete and is planned to be removed from Automake 1.14; see
19158         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
19159         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
19160         (installdirs-data, installdirs-data-yes):
19161         Use $(MKDIR_P), not $(mkdir_p).
19162         * m4/intl.m4 (AM_INTL_SUBDIR):
19163         * m4/po.m4 (AM_PO_SUBDIRS):
19164         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
19166 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19168         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
19169         On this platform, we are not optimizing but we are using
19170         the substitute for extern inlines, so compile as if
19171         C99-style extern inline, or a substitute, is available.
19172         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
19173         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
19174         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
19175         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
19176         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
19177         Declare as ARGP_FS_EI, not as extern.
19178         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
19179         (__option_is_short, _option_is_end, __option_is_end)
19180         [!_LIBC && __USE_EXTERN_INLINES]:
19181         Declare as ARGP_EI, not as extern.
19183 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19185         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
19186         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
19187         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
19188         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
19189         ...), as the latter is fatal with older Autoconfs.
19190         Problem reported and fix suggested by Eric Blake in thread starting at
19191         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
19193 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
19195         AC_PROG_MKDIR_P: don't workaround if not buggy
19196         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
19197         Define only for Autoconf versions before 2.62.
19198         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
19199         undocumented m4_PACKAGE_VERSION, for consistency with the
19200         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
19201         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
19202         was introduced in 2.62.
19204 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
19206         New 'c-*printf' modules for formatted output in C locale.
19208         New module 'c-vasnprintf'.
19209         * modules/c-vasnprintf: New file.
19210         * lib/c-vasnprintf.c: New file.
19211         * lib/c-vasnprintf.h: New file.
19213         New module 'c-snprintf'.
19214         * modules/c-snprintf: New file.
19215         * modules/c-snprintf-tests: New file.
19216         * lib/c-snprintf.c: New file.
19217         * lib/c-snprintf.h: New file.
19218         * tests/test-c-snprintf.c: New file.
19219         * tests/test-c-snprintf.sh: New file.
19221         New module 'c-vsnprintf'.
19222         * modules/c-vsnprintf: New file.
19223         * modules/c-vsnprintf-tests: New file.
19224         * lib/c-vsnprintf.c: New file.
19225         * lib/c-vsnprintf.h: New file.
19226         * tests/test-c-vsnprintf.c: New file.
19227         * tests/test-c-vsnprintf.sh: New file.
19229         New module 'c-vasprintf'.
19230         * modules/c-vasprintf: New file.
19231         * modules/c-vasprintf-tests: New file.
19232         * lib/c-asprintf.c: New file.
19233         * lib/c-vasprintf.c: New file.
19234         * lib/c-vasprintf.h: New file.
19235         * tests/test-c-vasprintf.c  +: New file.
19236         * tests/test-c-vasprintf.sh: New file.
19238         New module 'c-xvasprintf'.
19239         * modules/c-xvasprintf: New file.
19240         * modules/c-xvasprintf-tests: New file.
19241         * lib/c-xasprintf.c: New file.
19242         * lib/c-xvasprintf.c: New file.
19243         * lib/c-xvasprintf.h: New file.
19244         * tests/test-c-xvasprintf.c: New file.
19245         * tests/test-c-xvasprintf.sh: New file.
19247 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19249         argp: better 'inline'
19250         Use extern-inline module to declare extern inline functions.
19251         This avoids some bogus warning diagnostics.  Problem discovered
19252         when modifying GNU tar to use the manywarnings module.
19253         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
19254         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
19255         Define based on extern-inline.
19256         * modules/argp (Depends-on): Add extern-inline.
19258 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
19260         filemode, sys_stat: Handle MPX files a la AIX.
19261         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
19262         * lib/sys_stat.in.h (S_ISMPX): New macro.
19263         * tests/test-sys_stat.c: Add tests for MPX files.
19265 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19267         x-to-1: honor $PERL
19268         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
19269         a chance to use his preferred version of Perl.  This is typically
19270         required by Darwin users whose default /usr/bin/perl does not have all
19271         the libraries required by help2man, and who need to use their MacPorts
19272         installation of Perl instead.
19274 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
19276         gnu-web-doc-update: add all the new files, even in new directories
19277         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
19278         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
19279         Use it.
19280         (main): Don't use cvsutils to get the list of unknown files,
19281         just add all the existing files and directories.
19283 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
19285         gnu-web-doc-update: improve --help
19286         * build-aux/gnu-web-doc-update: Move comments into --help.
19288 2012-12-07  Eric Wong  <normalperson@yhbt.net>
19290         mountlist: recognize more "dummy" file systems
19291         * lib/mountlist.c (ME_DUMMY_0):
19292         Add these dummy FS names to the list:
19293         - "debugfs" virtual filesystem for kernel debugging
19294         - "devpts" PTY slave filesystem
19295         - "devtmpfs" device filesystem on top of tmpfs/ramfs
19296         - "fusectl" control filesystem for FUSE
19297         - "mqueue" enumerates POSIX message queues
19298         - "rpc_pipefs" kernel <-> userspace bridge for NFS
19299         - "sysfs" is for exporting kernel objects
19300         - "devfs" device filesystem for Linux 2.4 and FreeBSD
19302 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
19304         extern-inline: avoid incompatibility with Darwin Libc
19305         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
19306         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
19307         Problem reported by Akim Demaille in
19308         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
19310 2012-12-11  Simon Josefsson  <simon@josefsson.org>
19312         gnupload: Work with GnuPG using gpg-agent (for smartcards).
19313         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
19314         let it handle password prompting.
19316 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
19318         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
19319         * lib/canonicalize.c (canonicalize_filename_mode):
19320         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
19321         fetching the current directory.  Don't overrun the beginning of
19322         rpath if there's no slashes after the MS-Windows drive letter.
19324 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
19326         maint.mk: avoid extra forks
19327         * top/maint.mk (_cfg_mk): The GNU make manual documents that
19328         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
19329         So use that instead of "$(shell test -f FILE && echo FILE)".
19331 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
19333         vasnprintf: fix ASCII_ONLY typo
19334         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
19335         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
19336         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
19337         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
19338         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
19340 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
19342         list, oset, xlist, xoset: fix extern inline issue with C99
19343         This was introduced by my recent changes for 'inline'.
19344         Problem reported for gettext by Daiki Ueno in
19345         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
19346         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
19347         (gl_list_nx_create, gl_list_size, gl_list_node_value)
19348         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
19349         (gl_list_previous_node, gl_list_get_at)
19350         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
19351         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
19352         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
19353         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
19354         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
19355         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
19356         (gl_list_iterator_free, gl_sortedlist_search)
19357         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
19358         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
19359         (gl_sortedlist_remove):
19360         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
19361         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
19362         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
19363         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
19364         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
19365         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
19366         (gl_list_add_at, gl_sortedlist_add):
19367         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
19368         Wrap these extern decls inside "#if 0", because they are implemented
19369         as inline functions, and extern inline is not what's wanted here.
19370         It would simplify these .h files to remove the extern decls entirely,
19371         although a downside would be less-clear separation between
19372         specification and implementation.
19374 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
19376         sys_stat: no 'static inline'
19377         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
19378         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
19380         extern-inline: no 'static inline'
19381         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
19382         Do not require AC_C_INLINE.
19383         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
19384         'static inline', for older compilers.
19386         snippet/warn-on-use: no 'static inline'
19387         * build-aux/snippet/warn-on-use.h:
19388         Remove unnecessary 'inline' in comment.
19390         rbtree-list, rbtreehash-list: no 'static inline'
19391         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
19392         * lib/gl_anytree_list2.h (node_at):
19393         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
19394         (gl_oset_first, add_nodes_to_buckets):
19395         Now static, not static inline.
19397         regex: no 'static inline'
19398         * lib/regex_internal.c (calc_state_hash):
19399         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
19400         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
19401         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
19402         Now static, not static inline.
19403         (inline) [__GNUC__ < 3 && _LIBC]:
19404         Remove macro; no longer needed.
19406         xvasprintf: no 'static inline'
19407         * lib/xvasprintf.c (xstrcat):
19408         Now static, not static inline.
19409         * m4/xvasprintf.m4 (gl_XVASPRINTF):
19410         Do not require AC_C_INLINE.
19412         parse-datetime, parse-duration: no 'static inline'
19413         * lib/parse-datetime.y (to_uchar):
19414         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
19415         (scale_n_add):
19416         Now static, not static inline.
19417         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
19418         * modules/parse-duration (configure.ac):
19419         Do not require AC_C_INLINE.
19421         getaddrinfo: no 'static inline'
19422         * lib/getaddrinfo.c (validate_family):
19423         Now static, not static inline.
19424         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
19425         Do not require AC_C_INLINE.
19427         ftruncate, fts, lstat, openat, raise: no 'static inline'
19428         * lib/ftruncate.c (chsize_nothrow):
19429         * lib/fts.c (opendirat, diropen):
19430         * lib/lstat.c (orig_lstat):
19431         * lib/openat.c (orig_openat):
19432         * lib/raise.c (raise_nothrow):
19433         Now static, not static inline.
19434         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
19435         * m4/fts.m4 (gl_FUNC_FTS_CORE):
19436         * m4/lstat.m4 (gl_PREREQ_LSTAT):
19437         * m4/openat.m4 (gl_PREREQ_OPENAT):
19438         * m4/raise.m4 (gl_PREREQ_RAISE):
19439         Do not require AC_C_INLINE.
19441         fflush, stat: no 'static inline'
19442         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19443         (clear_ungetc_buffer, disable_seek_optimization)
19444         (restore_seek_optimization, update_fpos_cache):
19445         * lib/stat.c (orig_stat):
19446         Now static, not static inline.
19447         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
19448         (update_fpos_cache):
19449         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
19450         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
19451         * m4/stat.m4 (gl_PREREQ_STAT):
19452         Do not require AC_C_INLINE.
19454         error, filevercmp: no 'static inline'
19455         * lib/error.c (is_open, flush_stdout):
19456         * lib/filevercmp.c (order):
19457         Now static, not static inline.
19458         * m4/error.m4 (gl_PREREQ_ERROR):
19459         * modules/filevercmp (configure.ac):
19460         Do not require AC_C_INLINE.
19462         dup, execute, fatal-signal, etc.: no 'static inline'
19463         * lib/dup.c (dup_nothrow):
19464         * lib/execute.c (nonintr_close, nonintr_open):
19465         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
19466         * lib/fopen.c (orig_fopen):
19467         * lib/freadseek.c (freadptrinc):
19468         * lib/freopen.c (orig_freopen):
19469         * lib/fstat.c (orig_fstat, fstat_nothrow):
19470         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
19471         (get_rusage_as_via_iterator):
19472         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
19473         * lib/getdtablesize.c (_setmaxstdio_nothrow):
19474         * lib/isatty.c (_isatty_nothrow):
19475         * lib/open.c (orig_open):
19476         * lib/read.c (read_nothrow):
19477         * lib/sigprocmask.c (signal_nothrow):
19478         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
19479         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
19480         * lib/wait-process.c (unregister_slave_subprocess):
19481         * lib/write.c (write_nothrow):
19482         Now static, not static inline.
19483         * lib/spawn-pipe.c (nonintr_open): Define only if
19484         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
19485         * m4/dup.m4 (gl_PREREQ_DUP):
19486         * m4/execute.m4 (gl_EXECUTE):
19487         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
19488         * m4/fopen.m4 (gl_PREREQ_FOPEN):
19489         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
19490         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
19491         * m4/fstat.m4 (gl_PREREQ_FSTAT):
19492         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
19493         * m4/isatty.m4 (gl_PREREQ_ISATTY):
19494         * m4/open.m4 (gl_PREREQ_OPEN):
19495         * m4/read.m4 (gl_PREREQ_READ):
19496         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
19497         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
19498         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
19499         * m4/wait-process.m4 (gl_WAIT_PROCESS):
19500         * m4/write.m4 (gl_PREREQ_WRITE):
19501         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
19502         Do not require AC_C_INLINE.
19504         c-strtod, memcoll, readutmp: no 'static inline'
19505         * lib/c-strtod.c (c_locale):
19506         * lib/memcoll.c (strcoll_loop):
19507         * lib/readutmp.c (desirable_utmp_entry):
19508         Now static, not static inline.
19509         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
19510         * m4/memcoll.m4 (gl_MEMCOLL):
19511         * m4/readutmp.m4 (gl_READUTMP):
19512         Do not require AC_C_INLINE.
19514         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
19515         * lib/arctwo.c (to_uchar):
19516         * lib/md4.c (set_uint32):
19517         * lib/md5.c (set_uint32):
19518         * lib/sha1.c (set_uint32):
19519         * lib/sha256.c (set_uint32):
19520         * lib/sha512.c (set_uint64):
19521         Now static, not static inline.  This is a bit simpler, and doesn't
19522         affect performance with GCC and default optimization.
19523         * m4/arctwo.m4 (gl_ARCTWO):
19524         * m4/md4.m4 (gl_MD4):
19525         * m4/md5.m4 (gl_MD5):
19526         * m4/sha1.m4 (gl_SHA1):
19527         * m4/sha256.m4 (gl_SHA256):
19528         * m4/sha512.m4 (gl_SHA512):
19529         Do not require AC_C_INLINE.
19531         cond, lock, thread: better 'inline'
19532         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
19533         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
19534         New macros.  Use them instead of static inline, for header functions.
19535         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
19536         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
19537         * lib/glthread/lock.c (gl_waitqueue_init)
19538         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
19539         * lib/glthread/thread.c (get_current_thread_handle):
19540         Change 'static inline' to 'inline'.
19541         * lib/glthread/cond.h, lib/glthread/thread.h:
19542         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19543         * m4/cond.m4 (gl_COND):
19544         * m4/lock.m4 (gl_PREREQ_LOCK):
19545         * m4/thread.m4 (gl_THREAD):
19546         Do not require AC_C_INLINE.
19547         * modules/cond, modules/thread (Depends-on): Add extern-inline.
19549         chdir-long, cycle-check, savewd: better 'inline'
19550         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
19551         (find_non_slash):
19552         * lib/cycle-check.c (is_zero_or_power_of_two):
19553         * lib/savewd.c (savewd_delegating):
19554         Change 'static inline' to 'inline'.
19555         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
19556         Replace all remaining uses of 'static inline' with it.
19557         * lib/savewd.h:
19558         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19559         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
19560         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
19561         * m4/savewd.m4 (gl_SAVEWD):
19562         Do not require AC_C_INLINE.
19563         * modules/savewd (Depends-on): Add extern-inline.
19565         base32, base64: no need for 'inline'
19566         * lib/base32.c (to_uchar, get_8, decode_8):
19567         * lib/base64.c (to_uchar, get_4, decode_4):
19568         Change 'static inline' to 'inline'.
19569         * m4/base32.m4 (gl_PREREQ_BASE32):
19570         * m4/base64.m4 (gl_PREREQ_BASE64):
19571         Do not require AC_C_INLINE.
19573         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
19574         * lib/gl_array_oset.c (gl_array_nx_add_at):
19575         (gl_array_remove_at):
19576         * lib/gl_linkedhash_list.c (hash_resize_after_add)
19577         (add_to_bucket, remove_from_bucket):
19578         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
19579         Change 'static inline' to 'static', as it's simpler to omit
19580         'inline' unless there's a significant performance advantage.
19582         list, oset, xlist, xoset, xsublist: simplify via extern inline
19583         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
19584         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
19585         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
19586         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
19587         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
19588         New macro.  Replace all uses of 'static inline' with it.
19589         [HAVE_INLINE]: Implement functions as *_INLINE functions,
19590         instead of as macros FOO that are defined to static inline
19591         functions FOO_inline.
19592         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
19593         * lib/gl_xsublist.c:
19594         Reimplement from scratch, by defining the corresponding *_INLINE
19595         macro and including the corresponding .h file.  This is simpler.
19596         * modules/list, modules/oset, modules/xlist, modules/xoset:
19597         (Files): Remove m4/gl_list.m4.
19598         (configure.ac): Remove gl_LIST.
19599         * m4/gl_list.m4: Remove.
19600         * modules/list, modules/oset, modules/xlist, modules/xoset:
19601         * modules/xsublist:
19602         (Depends-on): Depend on extern-inline, not inline.
19604         xalloc: better 'inline'
19605         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
19606         New macro.  Replace all uses of 'static inline' with it.
19607         (static_inline): Remove.
19608         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
19609         Let 'extern inline' do the work automatically, instead of doing
19610         it by hand.
19611         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
19612         Remove.  All uses removed.
19613         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
19615         gethrxtime: better 'inline'
19616         * lib/xtime.c: New file.
19617         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
19618         * lib/xtime.h (XTIME_INCLUDE):
19619         New macros.  Replace all uses of 'static inline' with them.
19620         * lib/gethrxtime.c (gethrxtime): Define only if
19621         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
19622         this source file is now always compiled, because of the extern inline.
19623         * lib/gethrxtime.h, lib/xtime.h:
19624         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19625         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
19626         if gethrtime works, as they're not needed in that case.
19627         (gl_XTIME): Do not require AC_C_INLINE.
19628         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
19629         compiled now.  Move the check into gl_GETHRXTIME.
19630         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
19631         (Depends-on): Add extern-inline.
19632         (configure.ac): gethrxtime is always compiled now.
19633         (lib_SOURCES): Add gethrxtime.c.
19635         wctype-h: better 'inline'
19636         * lib/wctype-h.c: New file.
19637         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
19638         New macro.  Replace all uses of 'static inline' with it.
19639         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19640         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
19641         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
19642         (Depends-on): Add extern-inline.
19644         unistd: better 'inline'
19645         * lib/unistd.c: New file.
19646         * lib/unistd.in.h (_GL_UNISTD_INLINE):
19647         New macro.  Replace all uses of 'static inline' with it.
19648         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19649         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
19650         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
19651         (Depends-on): Add extern-inline.
19653         sys_socket: better 'inline'
19654         * lib/sys_socket.c: New file.
19655         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
19656         New macro.  Replace all uses of 'static inline' with it.
19657         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19658         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
19659         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
19660         (Depends-on): Add extern-inline.
19662         stdio: better 'inline'
19663         * lib/stdio.c: New file.
19664         * lib/stdio.in.h (_GL_STDIO_INLINE):
19665         New macro.  Replace all uses of 'static inline' with it.
19666         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19667         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
19668         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
19669         (Depends-on): Add extern-inline.
19671         sigaction: better 'inline'
19672         * lib/sig-handler.c: New file.
19673         * lib/sig-handler.h (SIG_HANDLER_INLINE):
19674         New macro.  Replace all uses of 'static inline' with it.
19675         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19676         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
19677         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
19678         (Depends-on): Add extern-inline.
19680         selinux-h: better 'inline'
19681         * lib/se-context.c, lib/se-selinux.c: New files.
19682         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
19683         * lib/se-context.in.h (SE_CONTEXT_INLINE):
19684         New macro.  Replace all uses of 'static inline' with it.
19685         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19686         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
19687         New macro.  Replace all uses of 'static inline' with it.
19688         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19689         * modules/selinux-h (Files, lib_SOURCES):
19690         Add lib/se-context.c, lib/se-selinux.c.
19691         (Depends-on): Add extern-inline.
19692         (configure.ac): Do not require AC_C_INLINE.
19694         pthread: better 'inline'
19695         * lib/pthread.c: New file.
19696         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
19697         New macro.  Replace all uses of 'static inline' with it.
19698         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19699         * m4/pthread.m4 (gl_PTHREAD_CHECK):
19700         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
19701         * modules/pthread (Files): Add lib/pthread.c.
19702         (Depends-on): Add extern-inline.
19704         math: better 'inline'
19705         * lib/math.c: New file.
19706         * lib/math.in.h (_GL_MATH_INLINE):
19707         New macro.  Replace all uses of 'static inline' with it.
19708         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19709         * m4/math_h.m4 (gl_MATH_H):
19710         Do not require AC_C_INLINE.
19711         * modules/math (Files, lib_SOURCES):
19712         Add lib/math.c.
19713         (Depends-on): Add extern-inline.
19715         count-one-bits: better 'inline'
19716         * lib/count-one-bits.c: New file.
19717         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
19718         New macro.  Replace all uses of 'static inline' with it.
19719         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19720         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
19721         Do not require AC_C_INLINE.
19722         * modules/count-one-bits (Files, lib_SOURCES):
19723         Add lib/count-one-bits.c.
19724         (Depends-on): Add extern-inline.
19726         count-leading-zeros: better 'inline'
19727         * lib/count-leading-zeros.c: New file.
19728         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
19729         New macro.  Replace all uses of 'static inline' with it.
19730         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19731         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
19732         Do not require AC_C_INLINE.
19733         * modules/count-leading-zeros (Files, lib_SOURCES):
19734         Add lib/count-leading-zeros.c.
19735         (Depends-on): Add extern-inline.
19737         bitrotate: better 'inline'
19738         * lib/bitrotate.c: New file.
19739         * lib/bitrotate.h (BITROTATE_INLINE):
19740         New macros.
19741         Replace all uses of 'static inline' with them.
19742         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19743         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
19744         (Depends-on): Add extern-inline.
19745         (configure.ac): Do not require AC_C_INLINE.
19747 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
19749         maint.mk: avoid gratuitous failure
19750         Reported by Stefano Lattarini in
19751         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
19752         * top/maint.mk (public-submodule-commit): Quote more safely.
19754 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
19756         canonicalize, canonicalize-lgpl: support MS-Windows file names
19757         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
19758         for test cases, which it'd be nice to add at some point.
19759         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
19760         * lib/canonicalize.c (canonicalize_filename_mode):
19761         * lib/canonicalize-lgpl.c (__realpath):
19762         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
19763         slash is at the beginning of the file name.  Use ISSLASH, instead
19764         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
19765         the first character with '/'.  Test for
19766         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
19767         with a drive letter.
19768         * lib/canonicalize.c (SLASHES): New macro.
19769         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
19771 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
19773         fts: introduce FTS_VERBATIM
19774         * lib/fts_.h (FTS_VERBATIM): New bit flag.
19775         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
19776         * lib/fts.c (fts_open): Honor it.
19778 2012-11-09  Pádraig Brady  <P@draigBrady.com>
19780         getlogin-tests: allow errno == ENXIO
19781         * tests/test-getlogin.c (main): Skip tests if getlogin fails
19782         with errno == ENXIO (No controlling tty).
19783         getlogin_r-tests: Likewise. Also allow errno == ENOENT
19784         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
19785         with errno == ENOENT.  This was reported to happen in various
19786         situations on GNU/Linux.
19788 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19790         getlogin-tests: allow errno == ENOENT
19791         * tests/test-getlogin.c (main): Skip tests if getlogin fails
19792         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
19793         when running a test in an Emacs shell buffer.
19795 2012-11-08  Jim Meyering  <jim@meyering.net>
19797         tests/nap.h: avoid warning about unused variable
19798         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
19800         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
19801         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
19802         white space before each of the special-cased file names, to avoid
19803         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
19804         in http://bugs.gnu.org/12830.
19806 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
19808         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
19809         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
19810         fails with errno == EBADF when fd is opened with O_PATH.
19811         Reported by Jim Meyering in
19812         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
19813         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
19814         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
19816 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19818         test-utimens: speed up by taking shorter naps
19819         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
19820         New functions.
19821         (nap): Use them, to do a better job of guessing the delay.
19822         On Fedora 17 with ext4 atop md atop hard disks, this made
19823         test-utimens run 10x faster, because the test napped for
19824         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
19825         <http://bugs.gnu.org/12820#11>.
19827 2012-11-07  Jim Meyering  <jim@meyering.net>
19829         mountlist.c: fix a compilation failure
19830         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
19831         I introduced while transforming commit v0.0-7683-g613bcb6
19833 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
19835         errno: port to LynxOS 178 2.2.2
19836         Problem reported by Joel Brobecker in
19837         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
19838         * doc/posix-headers/errno.texi (errno.h): Document this.
19839         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
19840         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
19841         Supply a string for EILSEQ.
19842         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
19844 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
19846         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
19847         Linux kernel 2.6.39 introduced O_PATH (see
19848         <http://lwn.net/Articles/433854/>) and this is a better fallback
19849         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
19850         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
19851         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
19852         * lib/fcntl.in.h (O_ACCMODE):
19853         * tests/test-fcntl-h.c (main):
19854         Do not reject O_ACCMODE merely because it has more than the
19855         minimal number of bits, as POSIX allows extensions here.
19857 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
19859         mountlist: do not classify a bind-mounted dir entry as "dummy"
19860         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
19861         the "none"-testing clause.
19862         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
19863         exception for bind-mounted directories.
19865 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
19867         quote: provide a means to escape strings with nul characters
19868         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
19869         (quote, quote_n): Rename formal arguments for consistency with
19870         quotearg.
19872 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
19874         test-raise: don't assume 199 is an invalid signal
19875         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
19877         sh-quote-tests: port to Solaris 9
19878         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
19879         Problem reported by Dagobert Michelsen in
19880         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
19882 2012-10-28  Jim Meyering  <jim@meyering.net>
19884         maint.mk: rename a new configurable variable
19885         * top/maint.mk (_gl_translatable_string_re): Rename from
19886         translation-markers: _gl_ prefix to insulate from user Makefile code,
19887         and the _re suffix to inform that it's a regular expression.
19889 2012-10-26  Eric Blake  <eblake@redhat.com>
19891         maint.mk: let packages tweak sc_po_check pattern
19892         * top/maint.mk (sc_po_check): Add translation-markers, to allow
19893         finding files with other translation markers.
19895 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19897         euidaccess: speed up 'configure' on GNU hosts
19898         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
19899         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
19900         it's needed only in this case.  Use AC_CHECK_DECLS, not
19901         AC_CHECK_DECLS_ONCE.
19902         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
19903         or AC_REQUIRE for AC_FUNC_GETGROUPS.
19905         * lib/regexec.c (re_search_internal): Fix grammar in comment.
19907 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
19909         fchmodat, fchownat, fstatat: port to non-inlining compilers
19910         Problem reported for FreeBSD 9 by Jim Meyering in
19911         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
19912         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
19913         New files, which define FCHMODAT_INLINE etc.
19914         * lib/fchmodat.c (FCHMODAT_INLINE):
19915         * lib/fchownat.c (FCHOWNAT_INLINE):
19916         * lib/fstatat.c (FSTATAT_INLINE):
19917         Remove, as chmodat.c etc. now do this.
19918         * modules/fchmodat (Files): Add lib/chmodat.c.
19919         * modules/fchownat (Files): Add lib/chownat.c.
19920         * modules/fstatat (Files): Add lib/statat.c.
19922 2012-10-15  Jim Meyering  <jim@meyering.net>
19924         fchmodat.c, fchownat.c: compile-impeding typos
19925         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
19926         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
19927         Introduced in commit v0.0-7636-gd202279.
19929 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
19931         fcntl-h: support GNU flags like O_IGNORE_CTTY
19932         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
19933         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
19934         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
19935         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
19936         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
19937         Define to 0 if not already defined.
19938         * tests/test-fcntl-h.c: Test these new flags.
19940 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
19942         faccessat, etc.: support AT_FDCWD-only use
19943         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
19944         this function only if its first argument is AT_FDCWD.
19945         Emacs wants faccessat for AT_EACCESS but not for any first-arg
19946         values other than AT_FDCWD, so it doesn't want all the openat
19947         machinery with fchdir etc.
19948         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
19949         * modules/fstatat, modules/mkdirat, modules/openat (Files):
19950         * modules/unlinkat (Files):
19951         Remove lib/openat-priv.h, as at-internal supplies this file.
19952         Removing this file here allows us to support programs like Emacs
19953         that avoid at-internal.
19955         faccessat: speed up 'configure' on mainstream hosts
19956         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
19957         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
19958         since it's only on unusual platforms that we need to check for
19959         'access', and it's better not to slow 'configure' down on all
19960         platforms.
19962         faccessat: port to Solaris 10
19963         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
19964         Needed on Solaris 10, which doesn't have AT_EACCESS,
19965         so we need the Gnulib fcntl.h, which defines it.
19967 2012-10-14  Pádraig Brady  <P@draigBrady.com>
19968         canonicalize: fix C89 compilation
19969         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
19970         declarations so C89 is supported.  Also remove the comment
19971         referencing memorty allocation as the suggested feature could
19972         not be implemented as suggested.
19973         Reported by Michael Goffioul.
19975 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
19977         group-member: omit unnecessary dependencies
19978         This is for Emacs, which has its own allocator and where we
19979         don't want to use xalloc.
19980         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
19981         since we no longer use xmalloc.  Do not include stdbool.h, since
19982         the changes below happen to remove the only use of bool.
19983         (GROUPBUF_SIZE): New constant.
19984         (struct group_info): Remove n_groups member.  Add groupbuf member.
19985         This lets us get the groups without using malloc, usually.
19986         (free_group_info, get_group_info): Adjust to this.
19987         (get_group_info): Return the number of groups found, or -1 on error.
19988         Use plain malloc not xmalloc, and treat its failure as if there
19989         are no groups, as the user already loses in case of error.
19990         (group_member): Simplify, based on changes to get_group_info.
19991         * modules/group-member (Depends-on): Remove dependencies on
19992         xalloc and stdbool.  Add dependency on xalloc-oversized.
19994 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
19996         gethrxtime: port to C++
19997         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
19999 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
20001         ptsname: fix macro-name typo
20002         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
20004 2012-10-03  Simon Josefsson  <simon@josefsson.org>
20006         inttostr: Relax license.
20007         * modules/inttostr (License): Change from LGPL to LGPLv2+.
20009 2012-10-03  Eric Blake  <eblake@redhat.com>
20011         ptsname_r: support ptys returned by FreeBSD posix_openpt
20012         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
20013         lives in /dev/pts/.
20015 2012-10-02  Eric Blake  <eblake@redhat.com>
20017         pselect: reject invalid file descriptors
20018         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
20019         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
20020         * modules/pselect (Depends-on): Add dup2.
20021         * doc/posix-functions/pselect.texi (pselect): Document this.
20023         select: reject invalid file descriptors
20024         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
20025         * lib/select.c (rpl_select) [!win32]: Work around it.
20026         * modules/select (Depends-on): Add dup2.
20027         * doc/posix-functions/select.texi (select): Document this.
20029         select: enhance test
20030         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
20031         New functions.
20032         (test_function): Enhance test.
20033         (do_select_bad_fd): Avoid any stale errno values.
20035         ptsname: reject invalid file descriptors
20036         http://www.austingroupbugs.net/view.php?id=503
20037         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
20038         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
20039         * modules/stdlib (Makefile.am): Replace witness.
20040         * lib/stdlib.in.h (ptsname): Allow for replacement.
20041         * modules/ptsname (configure.ac): Trigger replacement.
20042         * doc/posix-functions/ptsname.texi (ptsname): Document this.
20044 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
20046         hash-pjw-bare: new module
20047         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
20048         * lib/hash-pjw-bare.h: Likewise.
20049         * modules/hash-pjw-bare: New file.
20050         * MODULES.html.sh (Misc): Add it.
20052 2012-10-02  Eric Blake  <eblake@redhat.com>
20054         manywarnings: cater to more gcc infelicities
20055         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
20056         -Wuninitialized without -O.
20058 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
20060         select, poll tests: Make setsockopt invocation effective.
20061         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
20062         the bind() call.
20063         * tests/test-select.h (open_server_socket): Likewise.
20065 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
20067         sockets, sys_stat: restore AC_C_INLINE
20068         This undoes the 2012-09-22 patch.
20069         * m4/sockets.m4 (gl_SOCKETS):
20070         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
20071         Restore AC_C_INLINE, since MSVC requires __inline or _inline
20072         and does not support plain 'inline'.  Reported by Bruno Haible in
20073         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
20075 2012-09-30  Bruno Haible  <bruno@clisp.org>
20077         localeconv tests: Avoid test failure on OpenIndiana.
20078         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
20079         skip the 'grouping' and 'mon_grouping' tests.
20080         Reported by Jim Meyering.
20082 2012-09-30  Bruno Haible  <bruno@clisp.org>
20084         havelib: Follow libtool developments.
20085         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
20086         Suggested by Simon Josefsson.
20088 2012-09-29  Jim Meyering  <meyering@redhat.com>
20090         fstatat.c: fix a compile-impeding typo
20091         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
20092         Introduced in commit v0.0-7636-gd202279.
20093         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
20095 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
20097         extern-inline: provide a -Wundef safe config.h
20098         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
20099         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
20100         to produce a -Wundef warning free config.h.
20102 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
20104         hash-pjw: relax license to LGPLv2+
20105         * modules/hash-pjw (License): Relax, with consent of author.
20107 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
20109         maint.mk: fix strict vs. lazy variable issues with RELEASE
20110         * top/maint.mk (_equal): New function.
20111         (member_check): Strip the result to avoid spurious spaces.
20112         (url_dir_list): Do not use ifeq, which is strict, as it will
20113         require RELEASE_TYPE to be defined.
20114         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
20115         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
20116         (announcement_Cc_alpha,announcement_mail_headers_alpha)
20117         (announcement_Cc_beta,announcement_mail_headers_beta)
20118         (announcement_Cc_stable,announcement_mail_headers_stable): these.
20119         (release): Do not depend on $(release-type), as it forces its
20120         evaluation.  Bounce to it.
20122 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
20124         maint.mk: formatting changes
20125         * top/maint.mk: Indent bodies of if's.
20127 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
20129         maint.mk: factor the validation of RELEASE_TYPE
20130         With help from Jim Meyering.
20131         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
20132         * top/maint.mk (_empty, _sp): Move their definition earlier.
20133         (member-check, release-type): New.
20134         Use the latter instead of $(RELEASE_TYPE).
20135         Remove now useless local checks.
20137 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
20139         maint.mk: provide "make upload" to ease uploading
20140         See
20141         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
20142         Do not depend simply on the current $(VERSION), as there may have been
20143         new commits since the tarball generation.  Rather, rely on $(RELEASE),
20144         as "make release-commit" already does.
20146         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
20147         "make TYPE".
20149         * top/maint.mk (upload_command, upload, release): New.
20150         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
20151         (VERSION): first word of $(RELEASE) is always right.
20152         (emit_upload_commands): Adjust.
20153         * top/README-release: Update.
20155 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
20157         maint.mk: silent rules
20158         With help from Stefano Lattarini.
20159         * top/maint.mk (writable-files): Use $(AM_V_GEN).
20160         (announcement): Use $(AM_V_at).
20162 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
20164         localename: port gl_locale_name_thread_unsafe to FreeBSD
20165         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
20166         and use the simpler FreeBSD implementation on Mac OS X as well.
20167         Original idea suggested by Ed Maste in
20168         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
20170 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20172         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
20173         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
20174         * lib/mbuiter.c, lib/xsize.c: New files.
20175         * lib/binary-io.h (BINARY_IO_INLINE):
20176         * lib/eealloc.h (EEALLOC_INLINE):
20177         * lib/mbfile.h (MBFILE_INLINE):
20178         * lib/mbiter.h (MBITER_INLINE):
20179         * lib/mbuiter.h (MBUITER_INLINE):
20180         * lib/xsize.h (XSIZE_INLINE):
20181         New macros.
20182         Replace all uses of 'static inline' with them.
20183         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20184         * m4/eealloc.m4 (gl_EEALLOC):
20185         * m4/mbfile.m4 (gl_MBFILE):
20186         * m4/mbiter.m4 (gl_MBITER):
20187         * m4/xsize.m4 (gl_XSIZE):
20188         Do not require AC_C_INLINE.
20189         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
20190         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
20191         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
20192         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
20193         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
20194         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
20195         * modules/binary-io, modules/eealloc, modules/mbfile:
20196         * modules/mbiter, modules/mbuiter:
20197         (Depends-on): Add extern-inline.
20199         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
20200         * lib/pipe-filter-aux.c: New file.
20201         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
20202         Replace all uses of 'static inline' with it.
20203         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20204         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
20205         (filter_retcode): No real need for inline here.
20206         * modules/pipe-filter-gi, modules/pipe-filter-ii:
20207         (Files): Add lib/pipe-filter-aux.c.
20208         (Depends-on): Add extern-inline.
20209         (configure.ac): Do not require AC_C_INLINE.
20210         (lib_SOURCES): Add pipe-filter-aux.c.
20212         fdutimensat: omit unnecessary AC_C_INLINE
20213         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
20215         fchmodat, fchownat, fstatat: use extern-inline
20216         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
20217         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
20218         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
20219         New macros.
20220         * lib/openat.h:
20221         Replace all uses of 'static inline' with them.
20222         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20223         * modules/fchmodat, modules/fchownat, modules/fstatat:
20224         * modules/openat-h:
20225         (Depends-on):
20226         Add extern-inline.
20227         (configure.ac): Remove AC_C_INLINE.
20229         acl, mbchar, priv-set: use extern-inline
20230         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
20231         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
20232         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
20233         New macros.
20234         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
20235         Replace all uses of 'static inline' with it.
20236         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20237         * m4/acl.m4 (gl_FUNC_ACL):
20238         * m4/mbchar.m4 (gl_MBCHAR):
20239         * m4/priv-set.m4 (gl_PRIV_SET):
20240         Remove AC_C_INLINE, since 'inline' is no longer used directly.
20241         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
20242         Add extern-inline.
20244         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
20245         * m4/sockets.m4 (gl_SOCKETS):
20246         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
20247         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
20248         environments where it's already guaranteed to work, so we needn't
20249         check for it at 'configure'-time.
20251         tls-tests: omit unnecessary 'inline'
20252         * tests/test-tls.c (perhaps_yield): No longer inline.
20253         Simplicity and portability trump efficiency in test cases.
20255         utimens-tests: avoid unnecessary 'inline'
20256         * modules/fdutimensat-tests (configure.ac):
20257         * modules/futimens-tests (configure.ac):
20258         * modules/utimens-tests (configure.ac):
20259         * modules/utimensat-tests (configure.ac):
20260         Remove AC_C_INLINE.
20261         * tests/test-utimens-common.h (ctime_compare):
20262         No longer inline.  Simplicity and portability trump efficiency here.
20264         misc: don't limit commentary to inline functions
20265         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
20266         * lib/xalloc-oversized.h, lib/xsize.h:
20267         Contrast macros to functions in general, not just to inline functions,
20268         when the commentary does not apply only to inline functions.
20270 2012-09-20  Jim Meyering  <meyering@redhat.com>
20272         non-recursive-gnulib-prefix-hack: new module
20273         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
20274         the file that originated in Bison.
20275         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
20276         largely copied from a snippet that resided in bison's configure.ac.
20277         * modules/non-recursive-gnulib-prefix-hack: New file.
20278         * MODULES.html.sh (Support for maintaining and releasing projects):
20279         Add it.
20281 2012-09-18  Jim Meyering  <meyering@redhat.com>
20283         maint.mk: generalize _gl_tight_scope for non-recursive make
20284         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
20285         that *.h would describe additional .h files in the directory
20286         specified by $(_gl_TS_dir).  I.e., add this...
20287         (_gl_TS_other_headers): New variable.
20289         maint.mk: exempt trailing blanks found in "binary" files
20290         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
20291         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
20292         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
20294 2012-09-17  Jim Meyering  <meyering@redhat.com>
20296         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
20297         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
20298         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
20299         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
20301 2012-09-17  Jim Meyering  <meyering@redhat.com>
20303         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
20304         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
20305         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
20306         It is not in the same category as "exit (0)" or "exit (1)", and
20307         besides, I know of no symbolic name for that 77.  Reported by
20308         Richard W.M. Jones in
20309         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
20311 2012-09-17  Jim Meyering  <meyering@redhat.com>
20313         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
20314         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
20315         all uses of #define, not just those that start in column 1.
20316         Richard W.M. Jones reported a false positive in
20317         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
20319 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
20321         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
20322         * lib/localcharset.c (locale_charset) [DARWIN7]:
20323         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
20324         as these two values are incompatible.  Problem reported by Max Horn.
20325         For more discussion, please see
20326         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
20328         doc: document sticky-EOF issue
20329         * doc/posix-functions/fgetc.texi (fgetc):
20330         * doc/posix-functions/fgets.texi (fgets):
20331         * doc/posix-functions/fread.texi (fread):
20332         * doc/posix-functions/fscanf.texi (fscanf):
20333         * doc/posix-functions/getc.texi (getc):
20334         * doc/posix-functions/getchar.texi (getchar):
20335         * doc/posix-functions/scanf.texi (scanf):
20336         Mention that glibc and default Solaris do not conform to
20337         C99 and POSIX-2001 or later, with respect to how getchar
20338         etc. behave when feof reports nonzero.
20340 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
20342         poll: fix poll(0, NULL, msec)
20343         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
20344         but nfd is 0.  In that case poll should behave like select.
20346 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
20347             Paolo Bonzini  <bonzini@gnu.org>
20349         poll: fix for systems that can't recv() on a non-socket
20350         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
20351         is readable.  In this case POLLHUP will not be supported.
20352         * doc/posix-functions/poll.texi: Document this.
20354 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
20356         poll/select: document portability problems not fixed by Gnulib.
20357         * doc/posix-functions/poll.texi: poll does not work well on
20358         pipes under Windows.  It has the same limitations as select on
20359         BeOS.
20360         * doc/posix-functions/select.texi: select does not work well
20361         on pipes under Windows.
20363 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20365         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
20366         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
20367         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
20368         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
20370 2012-09-06  Eric Blake  <eblake@redhat.com>
20372         net_if: give more details about the bug being fixed
20373         * doc/posix-headers/net_if.texi: Add clarification.
20375 2012-09-05  Eric Blake  <eblake@redhat.com>
20377         net_if: new module
20378         * modules/net_if: New module, borrowing ideas from netinet_in.
20379         * m4/net_if_h.m4: New file.
20380         * lib/net_if.in.h: Likewise.
20381         * doc/posix-headers/net_if.texi (net/if.h): Document it.
20382         * MODULES.html.sh (lacking POSIX:2008): Likewise.
20383         * tests/test-net_if.c: Make function checks conditional.
20384         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
20386 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
20388         readutmp: fix non-portable UT_PID use
20389         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
20390         Use `UT_PID (u) > 0' as absolute condition.
20392 2012-09-04  Jim Meyering  <meyering@redhat.com>
20394         fts: reduce two or more trailing spaces to just one, usually
20395         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
20396         or more slashes, trim all but the final one.  But if a name consists
20397         solely of two slashes, don't modify it.  If it consists solely of
20398         three or more slashes, strip all but one.
20400         This is part of the solution to a minor problem with rm:
20401         it would print a bogus ELOOP diagnostic when failing to remove
20402         the slash-decorated name of a symlink-to-directory:
20404             $ mkdir d && ln -s d s && env rm -r s/
20405             rm: cannot remove 's': Too many levels of symbolic links
20407         With the change below and a trivial don't-trim-trailing-slashes
20408         adjustment to remove.c, it does this:
20410             $ env rm -r s/
20411             rm: cannot remove 's/': Not a directory
20413         Improved by: Eric Blake
20415         fts: when there is no risk of overlap, use memcpy, not memmove
20416         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
20418 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
20420         stdbool: be more compatible with mixed C/C++ compiles
20421         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
20422         Define to bool, true, false, respectively, as GCC's builtin
20423         stdbool.h does.  Problem reported by Michael Goffioul in
20424         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
20426 2012-08-28  Jim Meyering  <meyering@redhat.com>
20428         revert last change: it was not needed
20429         * tests/test-vc-list-files-git.sh: There's already a test for
20430         a working git, just below.
20432 2012-08-28  Jim Meyering  <meyering@redhat.com>
20434         tests: test-vc-list-files-git.sh: skip if git is not available
20435         * tests/test-vc-list-files-git.sh: Skip this test when git is
20436         not available.
20438 2012-08-26  Bruno Haible  <bruno@clisp.org>
20440         gnulib-tool: Remove no-op option --no-changelog.
20441         * gnulib-tool (func_usage): Don't mention --no-changelog.
20442         (do_changelog): Remove variable.
20443         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
20445 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20447         doc: remove fdl-1.2.texi
20448         It is no longer used or maintained, and its use of @acronym
20449         is problematic.  See the thread containing
20450         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
20451         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
20452         * doc/old-licenses/fdl-1.2.texi: Remove.
20454         execinfo: port to FreeBSD
20455         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
20456         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
20457         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
20458         * modules/execinfo (Link): Add $(LIB_EXECINFO).
20460 2012-08-23  Jim Meyering  <meyering@redhat.com>
20462         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
20463         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
20464         to placate gcc's -Wold-style-declaration.
20466 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20468         doc: do not use @acronym
20469         * doc/inet_ntoa.texi (inet_ntoa):
20470         * doc/parse-datetime.texi (Seconds since the Epoch)
20471         (Specifying time zone rules):
20472         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
20473         Don't use @acronym.  Problem reported by John Darlington in
20474         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
20476 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20478         stdnoreturn: port to newer GCCs
20479         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
20480         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
20481         Problem reported by Jim Meyering in
20482         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
20483         Also, rename the 'test' function to a void a clash with the
20484         already-supplied 'main' function; this fixes a bug that incorrectly
20485         rejected GCC 4.7.1's <stdnoreturn.h>.
20486         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
20487         Document GCC problem.
20489 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
20491         pipe-filter: fix comment typo
20492         * lib/pipe-filter.h: Mention correct function.
20494 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
20496         execinfo: new module
20497         This is for Emacs.  Currently, it provides a no-effect stub
20498         on all platforms where it does not already work.
20499         It already works on glibc-based systems, and on Solaris 11.
20500         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
20501         New files.
20502         * doc/glibc-headers/execinfo.texi (execinfo.h):
20503         * MODULES.html.sh (Misc): Document it.
20505 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20507         extern-inline: support old GCC 'inline'
20508         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
20509         if available.  This applies to GCC versions 2.7 through 4.2, or
20510         when newer GCC is using -fgnu89-inline.  The goal is to address
20511         some of the performance issues mentioned by Bruno Haible in
20512         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
20514 2012-08-20  Eric Blake  <eblake@redhat.com>
20516         maint.mk: avoid redundant file name in message
20517         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
20518         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
20519         (sc_makefile_path_separator_check): Remove bogus $(ME).
20521 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
20523         timer-time: fix link order when static linking on glibc
20524         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
20525         _after_ -lrt so that it's significant.
20527 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20529         timespec: omit unnecessary AC_C_INLINE
20530         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
20532         stat-time: omit unnecessary AC_C_INLINE
20533         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
20534         Do not require AC_C_INLINE.
20536         ignore-value: omit unnecessary AC_C_INLINE
20537         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
20539         sys_select: avoid 'static inline'
20540         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
20542         mktime: avoid 'static inline'
20543         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
20544         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
20546 2012-08-19  Bruno Haible  <bruno@clisp.org>
20548         gnulib-tool: Improve coding style.
20549         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
20550         func_emit_lib_Makefile_am.
20551         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
20553 2012-08-19  Bruno Haible  <bruno@clisp.org>
20555         gnulib-tool: Fix indentation.
20556         * gnulib-tool (func_import): Fix indentation.
20558 2012-08-19  Bruno Haible  <bruno@clisp.org>
20560         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
20561         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
20562         on the list of removed files.
20564 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
20566         test-parse-datetime: avoid glibc leap-second glitch
20567         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
20568         with the 2012 rules.  Problem reported by Bruce Dubbs in
20569         <http://bugs.gnu.org/12206>.
20571 2012-08-14  Bruno Haible  <bruno@clisp.org>
20573         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
20574         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
20575         from argument.
20576         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
20578 2012-08-14  Eric Blake  <eblake@redhat.com>
20580         ldexp: relax license
20581         * modules/ldexp (License): Trivial relax, since the module only
20582         provides a permissively licensed m4 file.
20584 2012-08-13  Bruno Haible  <bruno@clisp.org>
20586         gnulib-tool: Fix persistence of --witness-c-macro option.
20587         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
20588         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
20590 2012-08-11  Eric Blake  <eblake@redhat.com>
20592         count-leading-zeros: use a lookup table on non-gcc compilers
20593         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
20594         alternate implementation, suggested by Jim Meyering.
20596 2012-08-10  Eric Blake  <eblake@redhat.com>
20598         count-leading-zeros: new module
20599         * modules/count-leading-zeros: New module.
20600         * m4/count-leading-zeros.m4: New file.
20601         * lib/count-leading-zeros.h: Likewise.
20602         * modules/count-leading-zeros-tests: New test.
20603         * tests/test-count-leading-zeros.c: New file.
20604         * MODULES.html.sh (Integer arithmetic functions): Document it.
20606 2012-08-07  Simon Josefsson  <simon@josefsson.org>
20607             Jim Meyering  <meyering@redhat.com>
20609         maintainer-makefile: Fix syntax error with dash.
20610         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
20611         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
20613 2012-08-05  Jim Meyering  <meyering@redhat.com>
20615         extern-inline: also ignore -Wmissing-declarations
20616         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
20617         required with gcc-4.8.0-to-be.
20619         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
20620         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
20621         for /error ?([^,]*)/.  This avoids false-positives for strings like
20622         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
20624 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
20626         gnumakefile: better interaction with Automake-NG
20627         * modules/gnumakefile [Makefile.am]: The makefiles generated by
20628         Automake-NG always contain a definition of VPATH, even in non-VPATH
20629         builds (its value being simply '.' in that case).  So, in the
20630         'clean-GNUmakefile' rule, to determine whether running under a
20631         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
20632         '$(VPATH)' expands to the empty string.
20634 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
20636         base64: Use extern C scope in header file, for C++.
20637         * lib/base64.h: Add C++ namespace protection.
20639 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
20641         stat-time, timespec, u64: support naive out-of-dir builds
20642         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
20643         Use '#include "foo.h"', not '#include <foo.h>', when including
20644         one's own interface.  This works better when configuring with
20645         out-of-directory builds, since packages need not add an
20646         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
20648 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
20650         utimens: use extern-inline
20651         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
20652         * lib/utimens.h: Add copyright notice, since this is now large enough
20653         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20654         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
20655         * modules/utimens (Depends-on): Add extern-inline.
20657         u64: use extern-inline
20658         * lib/u64.c: New file.
20659         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20660         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
20661         * modules/u64 (Files): Add lib/u64.c.
20662         (Depends-on): Add extern-inline.
20663         (configure.ac): No need to require AC_C_INLINE, since extern-inline
20664         does that now.
20665         (lib_SOURCES): Add u64.c.
20667         timespec: use extern-inline
20668         * lib/timespec.c: New file.
20669         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20670         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
20671         * modules/timespec (Files): Add lib/timespec.c.
20672         (Depends-on): Add extern-inline.
20673         (lib_SOURCES): Add timespec.c.
20675         stat-time: use extern-inline
20676         * lib/stat-time.c: New file.
20677         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20678         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
20679         * modules/stat-time (Files): Add lib/stat-time.c.
20680         (Depends-on): Add extern-inline.
20681         (lib_SOURCES): Add stat-time.c.
20683         extern-inline: new module
20684         * modules/extern-inline, m4/extern-inline.m4: New files.
20685         This is for better support of 'extern inline' a la ISO C99,
20686         with a portable alternative on compilers that do not support
20687         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
20688         of the Emacs executable, when compiled with debugging disabled,
20689         which is a typical way that Emacs is built while developing.
20691 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
20693         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
20694         * build-aux/do-release-commit-and-tag: Move variable definitions
20695         together.
20696         ($branch): Instead of defaulting to "master", default to the current
20697         branch (as gnu-web-doc-update does).
20698         (help): Display the current values of the option arguments.
20699         * top/maint.mk (release-commit): New.
20700         * top/README-release: Simplify the corresponding step.
20702 2012-07-30  Eric Blake  <eblake@redhat.com>
20704         passfd: fix comment on recvfd
20705         * lib/passfd.c (recvfd): Fix comment.
20706         Reported by Jann Horn <jannhorn@googlemail.com>.
20708 2012-07-30  Jim Meyering  <meyering@redhat.com>
20710         maint.mk: avoid a sub-shell
20711         * top/maint.mk (release-prep): Remove unneeded sub-shell.
20713 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
20715         maint.mk: use silent-rules support from Automake
20716         * top/maint.mk (news-check, vc-diff-check, announcement)
20717         (no-submodule-changes, alpha beta stable, release-prep)
20718         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
20720 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
20722         maint.mk: provide a web-manual-update target
20723         * top/maint.mk: here.
20724         * top/README-release: Use it to simplify the web manual update step.
20726 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
20728         README-release: shorten the circuit to post a news
20729         * top/README-release: Point directly to the news submission form.
20731 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
20733         gnu-web-doc-update: fix --help
20734         * build-aux/gnu-web-doc-update: The information "top level" was written
20735         twice.
20737 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
20739         maint.mk: absolute VPATH issue
20740         * top/maint.mk (release-prep): Help Git find .git/.
20741         From Jim Meyering.
20743 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
20745         gitlog-to-changelog: fix previous change
20746         * build-aux/gitlog-to-changelog: Fix condition.
20747         Add missing ";".
20749 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
20751         gitlog-to-changelog: don't expect .git to be in $srcdir
20752         Reported by Bruno Haible.
20753         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
20754         * build-aux/gitlog-to-changelog (&git_dir_option): New.
20755         Use it.
20757 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
20759         maint.mk: absolute VPATH build fix
20760         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
20761         $(srcdir) is not a parent of $(builddir).
20763 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
20765         clean-temp: Fix memory leak.
20766         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
20767         'files' members of tmpdir.
20769 2012-07-27  Jim Meyering  <meyering@redhat.com>
20771         maint.mk: new rule: refresh-gnulib-patches
20772         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
20773         Use this rule to refresh them.
20774         * top/maint.mk (refresh-gnulib-patches): New rule.
20776 2012-07-24  Bruno Haible  <bruno@clisp.org>
20778         gnulib-tool: Fix handling of inctests variable.
20779         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
20780         Reported by Nick Bowler <nbowler@elliptictech.com>.
20782 2012-07-22  Bruno Haible  <bruno@clisp.org>
20784         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
20785         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
20786         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
20787         Remove exemption for getpass.h.
20788         Suggested by Eric Blake.
20790 2012-07-20  Eric Blake  <eblake@redhat.com>
20792         verify: document conflict with -Wnested-externs
20793         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
20795         maint.mk: forbid exit(-1)
20796         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
20798 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
20800         fsusage: port back to Solaris
20801         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
20802         error (fsd not declared) on Solaris 10.  Reported privately by
20803         Andrew Borodin.
20805 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
20807         gnu-web-doc-update: fix error messages
20808         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
20810         gnu-web-doc-update: check the requirements.
20811         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
20812         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
20813         * build-aux/bootstrap (find_tool): Comment change.
20815 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
20817         maint.mk: minor simplication.
20818         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
20819         for default values.
20821 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
20823         gitlog-to-changelog: VPATH build issues
20824         If builddir is not a subdirectory of srcdir, running git from it will
20825         fail.
20826         * build-aux/gitlog-to-changelog (--srcdir): New option.
20828 2012-07-15  Bruno Haible  <bruno@clisp.org>
20830         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
20831         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
20832         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
20833         Remove exemption for fpending.h.
20834         Suggested by Eric Blake.
20836 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
20838         pthread_sigmask: fix bug on FreeBSD 9
20839         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
20840         Include string.h.
20841         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
20842         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
20843         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
20844         but pthread_sigmask (1729, NULL, NULL) returns zero.
20845         See <http://bugs.gnu.org/11884>.
20846         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
20847         by inspecting whether the main call changed the old mask.
20849 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
20851         README-release: make it more legible
20852         * top/README-release: Improve typography slightly.
20854 2012-07-15  Jim Meyering  <meyering@redhat.com>
20856         maint: require that each sc_... command start with "@"
20857         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
20858         "make sc_maint" helps us avoid this nit.
20860 2012-07-15  Jim Meyering  <meyering@redhat.com>
20862         maint.mk: add leading "@" to quiet new "make syntax-check" rule
20863         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
20865 2012-07-13  Eric Blake  <eblake@redhat.com>
20867         maint.mk: new syntax check for HAVE_DECL checks
20868         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
20869         * cfg.mk
20870         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
20871         Exempt some false positives.
20872         Based on a report by Karel Zak.
20874         argp: make HAVE_DECL usage consistent
20875         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
20876         macros, not whether they are defined.
20877         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
20878         convention with other declaration checks.
20879         Reported by Karel Zak, with suggestions from Paul Eggert.
20881         stat-time: relax license to LGPLv2+
20882         * modules/stat-time (License): Relax, with consent of all authors.
20884         strndup: fix m4 usage error
20885         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
20886         defined, to either 0 or 1.
20887         Reported by Karel Zak.
20889 2012-07-11  Jim Meyering  <meyering@redhat.com>
20891         maint: enable the sc_avoid_if_before_free syntax-check rule
20892         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
20893         (if_before_free_offenders_): Define.
20894         (if_before_free_basename_re_): Define.
20895         Exempt current files with useless if-before-free.
20897 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
20899         gettext: do not assume '#define ... defined ...' behavior
20900         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
20901         Do not use '#define FOO ... defined BAR ...', as the C standard says
20902         it's not portable to expect that this works after macro expansion.
20903         Problem reported for gzip by Steven M. Schweda in
20904         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
20906 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
20908         getloadavg: clean out old Emacs and Autoconf cruft
20909         See Glenn Morris in <http://bugs.gnu.org/11905>.
20910         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
20911         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
20912         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
20913         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
20915 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
20917         bootstrap: let warn be like tests/init.sh's warn_
20918         Reported by Jim Meyering.
20919         * build-aux/bootstrap (warn): Remove, replaced by...
20920         (warnf_, warn_): these.
20921         Adjust callers.
20922         Shorten messages that no longer fit in 80 columns.
20924 2012-07-09  Bruno Haible  <bruno@clisp.org>
20926         getopt: Simplify after Emacs changed.
20927         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
20928         (gl_GETOPT_IFELSE): Remove macro.
20930 2012-07-09  Jim Meyering  <meyering@redhat.com>
20932         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
20933         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
20935         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
20936         Bugs in both of those conspired to make the
20937         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
20938         _sc_search_regexp's handling of non-empty $in_files would filter
20939         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
20940         choice of in_files value meant there would be no match in most
20941         projects, due to the presence of two or more Makefile.in files.
20942         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
20943         Fix a bug in how a non-empty $$in_files was processed:
20944         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
20945         in spite of the name, it's a regexp, not a list of file names.
20947 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20949         getloadavg, getopt: fix commentary re configure.in
20950         Autoconf is deprecating the name 'configure.in', so change it to
20951         to the new name 'configure.ac' in a couple of places.
20952         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
20953         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
20954         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
20955         Emacs has renamed it to configure.ac, and it no longer refers
20956         to these macros anyway.
20958         timespec: mark functions with const attributes
20959         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
20960         Mark with _GL_ATTRIBUTE_CONST.
20962 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
20964         canonicalize[-lgpl]: handle "guessing" values when cross-building
20965         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
20966         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
20967         matches "*yes" instead of just "yes".  Regression introduced in commit
20968         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
20970 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
20971             Bruno Haible  <bruno@clisp.org>
20973         canonicalize: make the right guess when cross-compiling to GNU
20974         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
20975         determine whether cross-compiling to glibc systems, so as to
20976         include GNU/Hurd.
20978 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20980         timespec-sub: avoid duplicate include
20981         * lib/timespec-sub.c: Do not include <config.h> twice.
20982         Reported by Juanma Barranquero.
20984 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
20986         bootstrap: use a more consistent error reporting scheme
20987         * build-aux/bootstrap (warn, die): New.
20988         Use them.
20990 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
20992         sys_time: allow too-wide tv_sec
20993         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
20994         timeval even if tv_sec is wider than time_t.  This allows
20995         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
20996         as without this patch gnulib replaces struct timeval
20997         and OpenBSD futimes therefore has a type mismatch.
20998         * doc/posix-headers/sys_time.texi: Mention this.
21000         pthread: check for both pthread_create and pthread_join
21001         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
21002         alter the check so that it tests for both pthread_create and
21003         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
21004         Suggested by Bruno Haible and Richard Yao in
21005         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
21007         parse-datetime: doc tuneup
21008         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
21009         spacing issues.
21011 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
21013         do-release-commit-and-tag: fix the previous commit
21014         * build-aux/do-release-commit-and-tag: Actually the test was right,
21015         but the comment and the error message were misleading.
21016         Fix comment, and improve error message.
21017         Perform check first, so that NEWS is not modified uselessly.
21019         do-release-commit-and-tag: fix typo
21020         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
21021         _not_ start with a stub.
21023 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
21025         pthread: check for pthread_create, not pthread_join
21026         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
21027         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
21028         pthread_join in libc.  I hope this removes the need for all the
21029         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
21030         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
21032 2012-07-04  Jim Meyering  <meyering@redhat.com>
21034         parse-datetime: fix failure to diagnose invalid input
21035         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
21036         rather than diagnosing the invalid input.  Now it reports this:
21037         date: invalid date '\260'
21038         * lib/parse-datetime.y (to_uchar): Define.
21039         (yylex): Don't sign-extend "other" bytes.
21040         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
21041         Thanks to Bruno Haible for the patch to this file.
21042         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
21043         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
21045 2012-07-03  Jim Meyering  <meyering@redhat.com>
21047         bootstrap: do not require now-removed build-aux/missing
21048         Now that build-aux/missing is, er, missing, bootstrap would
21049         silently fail.
21050         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
21051         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
21052         no longer part of gnulib.
21053         Diagnose the failure.
21055 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
21057         alloca: add support for HP NonStop TNS/E native
21058         * lib/alloca.in.h (alloca): Support the new host.
21059         From a suggestion by Joachim Schmitz in
21060         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
21062 2012-07-02  Pádraig Brady  <P@draigBrady.com>
21064         fsusage: remove code not needed on non GNU/Linux systems.
21066         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
21067         Don't include headers no longer needed in this case.
21068         * lib/fsusage.c [STAT_STATVFS &&
21069         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
21070         STAT_STATFS2_FRSIZE to exclude code not used in this case.
21072 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
21074         fsusage: include files needed for glibc 2.6 fallback
21075         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
21076         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
21077         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
21078         Problem reported by Ludovic Courtès in
21079         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
21081         fsusage: avoid needless check on GNU/Linux
21082         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
21083         on GNU/Linux systems, since it can't possibly work.
21085 2012-07-01  Bruno Haible  <bruno@clisp.org>
21087         log: Fix an autoconf >= 2.64 warning.
21088         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
21089         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
21091 2012-06-28  Bruno Haible  <bruno@clisp.org>
21093         log10f: Fix possible configuration problem.
21094         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
21095         $LOGF_LIBM.
21096         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
21098 2012-06-28  Bruno Haible  <bruno@clisp.org>
21100         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
21101         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
21102         not gl_cv_func_unlink_works.
21103         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
21105 2012-06-27  Eric Blake  <eblake@redhat.com>
21107         config: drop scripts that automake says are not independent
21108         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
21109         * build-aux/elisp-comp: Delete.
21110         * build-aux/missing: Likewise.
21111         * build-aux/ylwrap: Likewise.
21112         * modules/elisp-comp: Likewise.
21113         * MODULES.html.sh: Drop mention of elisp-comp.
21114         * NEWS: Mention this.
21116 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
21118         root-uid: new module
21119         This is for portability to Tandem's NonStop Kernel.
21120         * lib/root-uid.h, modules/root-uid: New files.
21121         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
21122         * lib/write-any-file.c, tests/test-sethostname2.c:
21123         Include "root-uid.h".
21124         * lib/euidaccess.c (euidaccess):
21125         * lib/pt_chown.c (main):
21126         * lib/unlinkdir.c (cannot_unlink_dir):
21127         * lib/write-any-file.c (can_write_any_file):
21128         * m4/mknod.m4 (gl_FUNC_MKNOD):
21129         * tests/test-sethostname2.c (geteuid, main):
21130         Don't assume ROOT_UID == 0.
21131         * modules/euidaccess (Depends-on):
21132         * modules/pt_chown (Depends-on):
21133         * modules/sethostname-tests (Depends-on):
21134         * modules/unlinkdir (Depends-on):
21135         * modules/write-any-file (Depends-on):
21136         Add root-uid.
21138         regex: use locale-independent comparison for codeset name
21139         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
21140         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
21141         for codeset name.
21142         * lib/regex_internal.h: Do not include <strings.h>, since we
21143         no longer use strcasecmp.
21144         * modules/regex (Depends-on): Remove strcase.
21146 2012-06-23  Bruno Haible  <bruno@clisp.org>
21148         getopt-posix: No longer guarantee that option processing is resettable.
21149         * doc/posix-functions/getopt.texi: Drop description of problem with
21150         internal state. Fix info about mingw and msvc9.
21151         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
21152         option processing by getopt(). Run three test programs instead of one.
21153         Simplify cross-compilation guess.
21154         * NEWS: Mention the change.
21155         Reported by Rich Felker <dalias@aerifal.cx>.
21157 2012-06-26  Bruno Haible  <bruno@clisp.org>
21159         argp, regex: Ensure strcasecmp gets declared.
21160         * lib/argp-help.c: Include <strings.h>.
21161         * lib/regex_internal.h: Likewise.
21162         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
21164 2012-06-24  Bruno Haible  <bruno@clisp.org>
21166         ptsname_r: Make it consistent with ptsname on AIX.
21167         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
21168         implementation as for OSF/1.
21169         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
21170         a pty master.
21172         ptsname_r: Make it consistent with ptsname on OSF/1.
21173         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
21174         OSF/1.
21176 2012-06-24  Bruno Haible  <bruno@clisp.org>
21178         ttyname_r: Fix result on OSF/1, Solaris.
21179         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
21181 2012-06-24  Bruno Haible  <bruno@clisp.org>
21183         ptsname_r: Add support for Solaris.
21184         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
21185         Solaris.
21187         ptsname_r: Fix test failure on native Windows.
21188         * modules/ptsname_r (Depends-on): Add isatty.
21190         ptsname_r: Fix test failures on IRIX, Solaris.
21191         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
21192         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
21193         accordingly.
21194         * lib/ptsname_r.c: Include <fcntl.h>.
21195         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
21196         set errno if fd is invalid.
21197         * tests/test-isatty.c (main): Update comments.
21199 2012-06-24  Bruno Haible  <bruno@clisp.org>
21201         ptsname test: Extend test.
21202         * tests/test-ptsname.c: Include <errno.h>.
21203         (main): Test behaviour with invalid file descriptor.
21205 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
21207         time: fix obsolete comment
21208         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
21209         reference to HAVE_STRUCT_TIMESPEC in comment.
21211 2012-06-23  Bruno Haible  <bruno@clisp.org>
21213         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
21214         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
21215         does not handle abbreviated long options with equivalent
21216         disambiguations, set gl_replace_getopt to yes.
21217         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
21219 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
21221         time_r: fix typo that always overrode localtime_r decl
21222         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
21223         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
21224         not in a standard include.
21226 2012-06-22  Bruno Haible  <bruno@clisp.org>
21228         Write "Mac OS X" instead of "MacOS X".
21229         * README: Write "Mac OS X" instead of "MacOS X".
21230         * build-aux/bootstrap: Likewise.
21231         * build-aux/install-reloc: Likewise.
21232         * lib/acl-internal.h: Likewise.
21233         * lib/acl_entries.c: Likewise.
21234         * lib/argp-ba.c: Likewise.
21235         * lib/argp-pv.c: Likewise.
21236         * lib/config.charset: Likewise.
21237         * lib/copy-acl.c: Likewise.
21238         * lib/csharpexec.c: Likewise.
21239         * lib/euidaccess.c: Likewise.
21240         * lib/fbufmode.c: Likewise.
21241         * lib/fflush.c: Likewise.
21242         * lib/file-has-acl.c: Likewise.
21243         * lib/filemode.h: Likewise.
21244         * lib/fpurge.c: Likewise.
21245         * lib/freadable.c: Likewise.
21246         * lib/freadahead.c: Likewise.
21247         * lib/freading.c: Likewise.
21248         * lib/freadptr.c: Likewise.
21249         * lib/freadseek.c: Likewise.
21250         * lib/fseeko.c: Likewise.
21251         * lib/fseterr.c: Likewise.
21252         * lib/fsusage.c: Likewise.
21253         * lib/fwritable.c: Likewise.
21254         * lib/fwriting.c: Likewise.
21255         * lib/get-rusage-as.c: Likewise.
21256         * lib/get-rusage-data.c: Likewise.
21257         * lib/getdomainname.c: Likewise.
21258         * lib/idpriv-drop.c: Likewise.
21259         * lib/idpriv-droptemp.c: Likewise.
21260         * lib/localcharset.c: Likewise.
21261         * lib/locale.in.h: Likewise.
21262         * lib/localename.c: Likewise.
21263         * lib/mbsrtowcs-state.c: Likewise.
21264         * lib/nproc.c: Likewise.
21265         * lib/passfd.c: Likewise.
21266         * lib/posix_openpt.c: Likewise.
21267         * lib/printf-parse.c: Likewise.
21268         * lib/progreloc.c: Likewise.
21269         * lib/safe-read.h: Likewise.
21270         * lib/safe-write.h: Likewise.
21271         * lib/sched.in.h: Likewise.
21272         * lib/set-mode-acl.c: Likewise.
21273         * lib/signal.in.h: Likewise.
21274         * lib/stdint.in.h: Likewise.
21275         * lib/stdio-impl.h: Likewise.
21276         * lib/stdlib.in.h: Likewise.
21277         * lib/strtod.c: Likewise.
21278         * lib/sys_select.in.h: Likewise.
21279         * lib/tcgetsid.c: Likewise.
21280         * lib/unistd.in.h: Likewise.
21281         * lib/unlockpt.c: Likewise.
21282         * lib/vasnprintf.c: Likewise.
21283         * lib/vma-iter.c: Likewise.
21284         * lib/wcsrtombs-state.c: Likewise.
21285         * m4/acl.m4: Likewise.
21286         * m4/acosl.m4: Likewise.
21287         * m4/asinl.m4: Likewise.
21288         * m4/atanl.m4: Likewise.
21289         * m4/c-stack.m4: Likewise.
21290         * m4/cosl.m4: Likewise.
21291         * m4/expl.m4: Likewise.
21292         * m4/extensions.m4: Likewise.
21293         * m4/fdatasync.m4: Likewise.
21294         * m4/fmal.m4: Likewise.
21295         * m4/frexp.m4: Likewise.
21296         * m4/frexpf.m4: Likewise.
21297         * m4/frexpl.m4: Likewise.
21298         * m4/fsusage.m4: Likewise.
21299         * m4/getdomainname.m4: Likewise.
21300         * m4/getloadavg.m4: Likewise.
21301         * m4/getopt.m4: Likewise.
21302         * m4/gettext.m4: Likewise.
21303         * m4/gnulib-common.m4: Likewise.
21304         * m4/intdiv0.m4: Likewise.
21305         * m4/intlmacosx.m4: Likewise.
21306         * m4/largefile.m4: Likewise.
21307         * m4/ldexpl.m4: Likewise.
21308         * m4/link-follow.m4: Likewise.
21309         * m4/locale-ar.m4: Likewise.
21310         * m4/locale-fr.m4: Likewise.
21311         * m4/locale-ja.m4: Likewise.
21312         * m4/locale-tr.m4: Likewise.
21313         * m4/locale-zh.m4: Likewise.
21314         * m4/locale_h.m4: Likewise.
21315         * m4/lock.m4: Likewise.
21316         * m4/logl.m4: Likewise.
21317         * m4/mathfunc.m4: Likewise.
21318         * m4/minus-zero.m4: Likewise.
21319         * m4/mktime.m4: Likewise.
21320         * m4/mmap-anon.m4: Likewise.
21321         * m4/multiarch.m4: Likewise.
21322         * m4/nanosleep.m4: Likewise.
21323         * m4/nocrash.m4: Likewise.
21324         * m4/poll.m4: Likewise.
21325         * m4/printf-frexpl.m4: Likewise.
21326         * m4/printf.m4: Likewise.
21327         * m4/signbit.m4: Likewise.
21328         * m4/sinl.m4: Likewise.
21329         * m4/sqrtl.m4: Likewise.
21330         * m4/strerror_r.m4: Likewise.
21331         * m4/tanl.m4: Likewise.
21332         * m4/threadlib.m4: Likewise.
21333         * m4/ttyname_r.m4: Likewise.
21334         * m4/unlink.m4: Likewise.
21335         * m4/visibility.m4: Likewise.
21336         * m4/wcwidth.m4: Likewise.
21337         * tests/minus-zero.h: Likewise.
21338         * tests/test-alloca-opt.c: Likewise.
21339         * tests/test-copy-acl.sh: Likewise.
21340         * tests/test-copy-file.sh: Likewise.
21341         * tests/test-fdatasync.c: Likewise.
21342         * tests/test-file-has-acl.sh: Likewise.
21343         * tests/test-flock.c: Likewise.
21344         * tests/test-fsync.c: Likewise.
21345         * tests/test-localename.c: Likewise.
21346         * tests/test-malloca.c: Likewise.
21347         * tests/test-nonblocking-pipe.h: Likewise.
21348         * tests/test-nonblocking-socket.h: Likewise.
21349         * tests/test-openpty.c: Likewise.
21350         * tests/test-posix_openpt.c: Likewise.
21351         * tests/test-ptsname.c: Likewise.
21352         * tests/test-ptsname_r.c: Likewise.
21353         * tests/test-sameacls.c: Likewise.
21354         * tests/test-select.h: Likewise.
21355         * tests/test-set-mode-acl.sh: Likewise.
21356         * tests/test-snprintf-posix.h: Likewise.
21357         * tests/test-sprintf-posix.h: Likewise.
21358         * tests/test-strtod.c: Likewise.
21359         * tests/test-time.c: Likewise.
21360         * tests/test-vasnprintf-posix.c: Likewise.
21361         * tests/test-vasprintf-posix.c: Likewise.
21362         * doc/acl-resources.txt: Likewise.
21363         * doc/**/*.texi: Likewise.
21364         Reported by Max Horn <max@quendi.de>.
21366 2012-06-22  Bruno Haible  <bruno@clisp.org>
21368         grantpt: Relax requirement regarding invalid file descriptors.
21369         * lib/grantpt.c: Don't include <fcntl.h>.
21370         (grantpt): Don't verify the validity of the file descriptor.
21371         * modules/grantpt (Depends-on): Remove fcntl-h.
21372         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
21373         file descriptors.
21374         * doc/posix-functions/grantpt.texi: Document more platforms on which
21375         grantpt succeeds for invalid file descriptors.
21376         Reported by Rich Felker <dalias@aerifal.cx>.
21378 2012-06-22  Bruno Haible  <bruno@clisp.org>
21380         fbufmode test: Don't test unportable behaviour.
21381         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
21382         (main): Invoke it three times.
21383         Reported by Szabolcs Nagy <nsz@port70.net>
21384         and Rich Felker <dalias@aerifal.cx>.
21386 2012-06-21  Bruno Haible  <bruno@clisp.org>
21388         gnulib-tool: Refactor inctests variable.
21389         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
21390         (func_modules_transitive_closure,
21391         func_modules_transitive_closure_separately,
21392         func_import, func_create_testdir): Update.
21394         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
21395         * gnulib-tool: Accept option --without-tests.
21396         (func_usage): Document --without-tests option. Rearrange.
21397         (inctests): Normalize according to the mode.
21398         * NEWS: Mention the change.
21399         Suggested by Simon Josefsson.
21401 2012-06-21  Bruce Korb  <bkorb@gnu.org>
21403         parse-duration test: Avoid spurious output.
21404         * tests/test-parse-duration.sh: Reindent with leading tabs.
21406 2012-06-21  Jim Meyering  <meyering@redhat.com>
21408         maint: disable the strncpy prohibition
21409         * cfg.mk: Do not prohibit strncpy here.
21411 2012-06-21  Bruno Haible  <bruno@clisp.org>
21413         nonblocking: Avoid compilation error on mingw64.
21414         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
21415         fscanf.
21416         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
21417         * modules/vfscanf (configure.ac): Likewise.
21418         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
21419         definition only if stdio.h has prepared it.
21420         Reported by Daniel P. Berrange <berrange@redhat.com>.
21422 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
21424         gnulib-tool: Use readlink if it is available.
21425         * gnulib-tool (func_readlink): Choose function more appropriately.
21427 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
21429         posixtm-tests: port to buggy compiler
21430         Problem reported by Simon Josefsson in
21431         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
21432         * modules/posixtm-tests (Depends-on): Add stdint.
21433         * tests/test-posixtm.c (struct posixtm_test.t_expected):
21434         Now of type int_least64_t, not int64_t, both because that's
21435         what INT64_C returns and because int_least64_t works even
21436         on 72-bit hosts.
21437         (T): Use INT64_C on constants outside the traditional int range,
21438         to work around compiler bug noted by Simon.
21440         mktime: fix integer overflow in 'configure'-time test
21441         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
21442         after integer overflow.  Problem reported by Rich Felker in
21443         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
21444         Also, don't look for further instances of a bug if we've already
21445         found one instance; this helps 'configure' run faster.
21447 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
21449         tmpfile, clean-temp: Fix invocation of GetVersionEx.
21450         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
21451         GetVersionEx correctly.
21452         * lib/clean-temp.c (supports_delete_on_close): Likewise.
21454 2012-06-20  Bruno Haible  <bruno@clisp.org>
21456         fdopen: Allow implementations that don't reject invalid fd arguments.
21457         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
21458         succeeds.
21459         Reported by Rich Felker <dalias@aerifal.cx>.
21461 2012-06-20  Simon Josefsson  <simon@josefsson.org>
21463         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
21464         bring in LIBINTL.
21466 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
21468         init.sh: do not rely on autoupated PWD
21469         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
21470         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
21471         Although Nelson's bug was not necessarily fixed by this patch,
21472         it seems wise to make the change for safety.
21473         * tests/init.sh (path_prepend_): Do not rely on PWD updating
21474         automagically after 'cd'; this is not reliable on older shells.
21475         (setup_): Fail if we cannot cd to temporary directory.
21477 2012-06-19  Bruno Haible  <bruno@clisp.org>
21479         stat, fstat: Avoid warnings on mingw64.
21480         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
21481         redefining.
21482         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
21483         Reported by Daniel P. Berrange <berrange@redhat.com>.
21485 2012-06-19  Bruno Haible  <bruno@clisp.org>
21487         stdioext: Add support for musl libc.
21489         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
21490         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
21492         * m4/fseterr.m4: New file.
21493         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
21494         function exists.
21495         * modules/fseterr (Files): Add m4/fseterr.m4.
21496         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
21497         __fseterr does not exist.
21498         (Makefile.am): Remove fseterr.c from lib_SOURCES.
21500         * lib/freadable.h: Update comment.
21502         * lib/fwritable.h: Update comment.
21504         * lib/freading.h: Update comment.
21506         * lib/fwriting.h: Update comment.
21508         * m4/freadahead.m4: New file.
21509         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
21510         that function exists.
21511         * modules/freadahead (Files): Add m4/freadahead.m4.
21512         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
21513         __freadahead does not exist.
21514         (Makefile.am): Remove freadahead.c from lib_SOURCES.
21516         * m4/freadptr.m4: New file.
21517         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
21518         function exists.
21519         * modules/freadptr (Files): Add m4/freadptr.m4.
21520         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
21521         __freadptr does not exist.
21522         (Makefile.am): Remove freadptr.c from lib_SOURCES.
21524         * m4/freadseek.m4: New file.
21525         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
21526         exists.
21527         * modules/freadseek (Files): Add m4/freadseek.m4.
21528         (configure.ac): Invoke gl_FUNC_FREADSEEK.
21530         * lib/fpurge.c (fpurge): Update comment.
21532         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
21534 2012-06-19  Bruno Haible  <bruno@clisp.org>
21536         *printf-posix: Put more info into config.log.
21537         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
21538         exit code into config.log.
21540 2012-06-19  Bruno Haible  <bruno@clisp.org>
21542         getopt-gnu: Fix exit code overflow in autoconf test.
21543         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
21544         to keep them below < 128.
21546 2012-06-17  Jim Meyering  <meyering@redhat.com>
21548         maint.mk: fix typo in code to derive GPG key at release time
21549         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
21551 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
21553         regex: avoid warning when pointers are not long
21554         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
21555         and uintptr_t, not long, for portability to hosts where pointers and
21556         long have different sizes.  Issue noted by Daniel P. Berrange in
21557         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
21558         and fix suggested by Bruno Haible in
21559         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
21561 2012-06-17  Bruno Haible  <bruno@clisp.org>
21563         dummy: Relicense into the public domain.
21564         * modules/dummy (License): Set to "public domain".
21565         Suggested by Reuben Thomas.
21567 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
21569         announce-gen: VPATH issues
21570         * build-aux/announce-gen (--srcdir): New option, used to trim the
21571         $srcdir part of the path from $builddir to NEWS.
21572         * top/maint.mk (announcement): Adjust.
21574 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
21576         gnu-web-doc-update: VPATH builds
21577         * build-aux/gnu-web-doc-update (--builddir): New option.
21578         Revamp the handling of options.
21579         Prefer $(...) to `...`.
21580         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
21581         the template, and it is GNU mktemp specific.
21582         Prefer set -e to long series of &&.
21583         Restore the initial git branch, not "master".
21584         Properly initialize submodules (don't rely only on bootstrap).
21585         Do not reconfigure blindly, use config.status.
21586         * top/README-release: Update instructions for gnu-web-doc-update.
21588 2012-06-11  Jim Meyering  <meyering@redhat.com>
21590         maint.mk: revert most of the previous change re "all these"
21591         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
21592         For rationale, see the discussion at
21593         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
21595 2012-06-10  Karl Berry  <karl@gnu.org>
21597         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
21599         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
21601 2012-06-10  Bruce Korb  <bkorb@gnu.org>
21603         parse-duration: Relicense under LGPLv2+.
21604         * modules/parse-duration (License): Change to LGPLv2+.
21606 2012-06-10  Jim Meyering  <meyering@redhat.com>
21608         maint.mk: prohibit common grammar error: "all these"
21609         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
21610         the list of prohibited word sequences.  It should be "all of these".
21611         * lib/tempname.c (__gen_tempname): Fix one of them.
21613 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
21615         do-release-commit-and-tag: support VPATH builds
21616         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
21617         (noteworthy): Defined earlier to factor its value.
21618         (noteworthy_stub): New.
21619         Use it to factor.
21620         (help_version): Split into...
21621         (help, version): these.
21622         Adjust the option processing part.
21623         Support "--option=value" in addition to "--option value".
21624         (builddir): New.
21625         (--builddir): New option.
21626         * top/README-release: Document this.
21627         Reword slightly so that the reader cannot understand that he
21628         has to do these steps before calling do-release-commit-and-tag.
21630 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
21632         readme-release: also require announce-gen and maintainer-makefile
21633         * modules/readme-release (Depends-on): here.
21634         * modules/announce-gen, modules/do-release-commit-and-tag,
21635         modules/gnu-web-doc-update, modules/maintainer-makefile
21636         (Description): Point to readme-release.
21638 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
21640         maint.mk: fix VPATH issues.
21641         * top/maint.mk (news-check): GNU Make understand $< very well.
21642         (release-prep): NEWS is in $(srcdir).
21644 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
21646         readme-release: require the promoted modules.
21647         * modules/readme-release (Depends-on): Add
21648         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
21649         in this text.
21651 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
21652             Bruno Haible  <bruno@clisp.org>
21654         error, strerror-override: Support mingw64 from Fedora 17.
21655         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
21656         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
21657         EINPROGRESS.
21658         * lib/strerror-override.h (strerror_override): Test it.
21659         * lib/strerror-override.c (strerror_override): Likewise.
21660         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
21662 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
21663             Bruno Haible  <bruno@clisp.org>
21665         error, strerror-override: Support mingw64 from Fedora 17.
21666         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
21667         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
21668         * lib/strerror-override.h (strerror_override): Test it.
21669         * lib/strerror-override.c (strerror_override): Likewise.
21671 2012-06-03  Bruno Haible  <bruno@clisp.org>
21673         error, strerror-override: Support new errno values from POSIX:2008.
21674         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
21675         ENOTRECOVERABLE.
21676         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
21677         platforms.
21678         * lib/strerror-override.c (strerror_override): Conditionalize the
21679         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
21680         * lib/strerror-override.h (strerror_override): Declare also if
21681         GNULIB_defined_EOWNERDEAD is defined.
21682         * tests/test-errno.c (e130, e131): New variables.
21683         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
21684         ENOTRECOVERABLE.
21685         Reported by Paolo Bonzini.
21687 2012-05-31  Jim Meyering  <meyering@redhat.com>
21689         savewd: add missing dependency on sys_wait module
21690         * modules/savewd (Depends-on): Add sys_wait, needed at least
21691         for MSVC.  Report and suggested change by Michael Goffioul.
21693 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
21695         system-quote-tests: port to CentOS 5
21696         Problem reported by Tom G. Christensen in
21697         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
21698         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
21700 2012-05-29  Jim Meyering  <meyering@redhat.com>
21702         maint: fix typos in comments and ChangeLog
21703         Culprits identified and fixed mostly automatically using these commands:
21704         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
21705         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
21706         using http://github.com/lyda/misspell-check
21707         * ChangeLog: Fix typos.
21708         * doc/solaris-versions: Likewise.
21709         * lib/regexec.c (re_search_stub): Likewise.
21710         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
21712 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
21714         manywarnings: remove duplicate -Wmultichar entry
21715         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
21716         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
21717         so keep the entry marked as documented.
21719 2012-05-27  Karl Berry  <karl@gnu.org>
21721         * config/srclist.txt (mktime.c): remove last libc sync,
21722         perhaps just temporarily.
21724 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
21726         regex: don't assume uint64_t or uint32_t
21727         * lib/regcomp.c (init_word_char): Don't assume that the types
21728         uint64_t and uint32_t exist.  The C standard doesn't guarantee
21729         them, and on some 32-bit compilers there is no uint64_t.
21730         Problem reported by Gianluigi Tiesi in
21731         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
21733 2012-05-25  Jim Meyering  <meyering@redhat.com>
21735         maint.mk: add strncpy-prohibiting syntax-check rule
21736         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
21738 2012-05-24  Jim Meyering  <meyering@redhat.com>
21740         maint.mk: compute $(gpg_key_ID) more portably
21741         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
21742         That use of sed is not portable to some fringe systems.
21743         Reported by Paul Eggert in
21744         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
21746 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21748         mktime: sync from glibc
21749         * config/srclist.txt: Uncomment mktime.c.
21750         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
21751         First, indent with tabs, since glibc uses tabs and doesn't want to
21752         change and we'd rather be identical to glibc.  Also, two small
21753         coding changes:
21754         (isdst_differ): Use &&, not &, as && is the usual style.
21755         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
21756         for clarity.
21758 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
21760         announce-gen: du -h is more portable than du --human
21761         * build-aux/announce-gen (sizes): Invoke du with -h instead
21762         of --human.  Accept leading white space in its output.
21764 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
21766         announce-gen: Improve diagnostics.
21767         * build-aux/announce-gen: When parsing command line options,
21768         prefer "announce-gen: option --release-type requires an argument"
21769         to "Option release-type requires an argument".
21771 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
21773         maint.mk: gpg_key_ID: use sed more portably
21774         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
21775         the closing brace.
21776         (refresh-po): Fuse two sed invocations into one.
21778 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
21780         gitlog-to-changelog: support the log message format used in Bison.
21781         * build-aux/gitlog-to-changelog: Support --strip-tab and
21782         --strip-cherry-picked.
21784 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
21786         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
21787         the rest of the current time slice to another thread in the current
21788         process. So if the thread that feeds the file decscriptor we're
21789         polling is not in the current process, we get busy-waiting.
21790         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
21791         Patch from Theodore Leblond.
21792         * lib/select.c: Split polling out of the loop that sets the output
21793         fd_sets.  Check for zero result and loop if the wait timeout is
21794         infinite.
21796 2012-05-21  Simon Josefsson  <simon@josefsson.org>
21798         select: Fix build error on IRIX 6.5.
21799         * lib/select.c: Include stddef.h for NULL.
21801 2012-05-21  Simon Josefsson  <simon@josefsson.org>
21803         gc: fix libgcrypt detection on older machines.
21804         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
21805         copyright years because the file has been distributed every year
21806         since it was created.
21808 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
21810         crypto: fix bug in large buffer handling
21811         Problem reported by Serge Belyshev for glibc in
21812         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
21813         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
21814         * lib/md4.c (md4_process_block):
21815         * lib/md5.c (md5_process_block):
21816         * lib/sha1.c (sha1_process_block):
21817         * lib/sha256.c (sha256_process_block):
21818         Don't assume the buffer length is less than 2**32.
21819         * lib/sha512.c (sha512_process_block): Likewise.
21820         Here, the bug is present only in the rare case where the host does
21821         not support uint64_t or where size_t is wider than 64 bits.
21822         Use u64size to work around the problems.
21823         * lib/u64.h (u64size): New macro.
21825 2012-05-15  Pádraig Brady  <P@draigBrady.com>
21827         fsusage: fix block size returned on older Linux 2.6
21829         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
21830         which is available since Linux 2.6.
21831         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
21832         when the member is available so it can be used as a fallback.
21833         * doc/posix-functions/statvfs.texi: Mention the hang issue
21834         on Linux < 2.6.36.
21836 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
21838         bootstrap: suppress stderr chatter
21839         * build-aux/bootstrap (insert_sorted_if_absent, main program):
21840         Omit unnecessary chatter to stderr.  The main program chatter
21841         was there only inadvertantly.
21843         bootstrap: .gitignore files created by autopoint, libtool
21844         I ran into this problem when bootstrapping the latest diffutils.
21845         After './bootstrap', 'git status' reported lots of untracked files
21846         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
21847         autopoint and do not need to be version-controlled.
21848         * build-aux/bootstrap: Put into .gitignore the files that
21849         autopoint and libtool create, by keeping track of files that exist
21850         after but not before these programs are run.
21851         (version_controlled_file): Move up.  2nd arg is now full file
21852         name, not base name; this is more convenient.  Put CVS at the end,
21853         as it's now somewhat deprecated.
21855 2012-05-14  Jim Meyering  <meyering@redhat.com>
21857         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
21858         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
21859         definition.  Reported by Bruno Haible.
21861 2012-05-13  Bruno Haible  <bruno@clisp.org>
21862             Paul Eggert  <eggert@cs.ucla.edu>
21864         binary-io: Define set_binary_mode function.
21865         * lib/binary-io.h (set_binary_mode): New function.
21866         (SET_BINARY): Define in terms of set_binary_mode.
21867         * modules/binary-io (configure.ac): Require AC_C_INLINE.
21868         * tests/test-binary-io.c (main): Accept an argument, and test either
21869         set_binary_mode or SET_BINARY depending on the argument.
21870         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
21871         argument. Clean up also t-bin-out0.tmp.
21873 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
21875         bootstrap: take advantage of POSIX shell features
21877         The 'bootstrap' script offered by Gnulib script already uses POSIX
21878         shell features (like $((...)) arithmetic expansions) that are not
21879         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
21880         means that bootstrap must already be run using a proper POSIX shell,
21881         which will thus provide more features, like ${var#pattern} parameter
21882         expansion or inversion of a command exit status with '!'.  We can
21883         thus use these features to improve the clarity and the performances
21884         of the bootstrap script.
21886         Suggested by Eric Blake.
21888         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
21889         of sed/expr plus command substitutions, to save some forks.  While
21890         we are at it, prefer the POSIX $(...) form of command substitution,
21891         rather than the legacy form `...` (since the former is visually
21892         clearer and interacts better with quoting), and prefer the idiom:
21893           "if ! CMD; then ACTION ..."
21894         over the idiom:
21895           "if CMD; then :; else ACTION ..."
21896         which was required by legacy Bourne shells not supporting '!'.
21898 2012-05-12  Bruno Haible  <bruno@clisp.org>
21900         system-quote: Add more comments.
21901         * lib/system-quote.h: Add more comments about wilcards and limitations.
21902         Suggested by Eli Zaretskii <eliz@gnu.org>.
21904         sh-quote, system-quote: Add comments about wildcards.
21905         * lib/sh-quote.h: Clarify what happens with wildcard characters.
21906         * lib/system-quote.h: Likewise.
21907         Reported by Eli Zaretskii <eliz@gnu.org>.
21909 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
21911         fsusage: check for GNU/Linux statvfs problem dynamically
21912         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
21913         Define STAT_STATFS2_BSIZE too, since in this case the code now
21914         checks dynamically whether statvfs is reliable, falling back on
21915         Linux-style statfs otherwise.
21916         (statvfs_works): New function, for dynamically testing statvfs.
21917         (get_fs_usage) [STAT_STATVFS]: Use it.
21918         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
21919         statvfs on GNU/Linux hosts, since it's now done dynamically.
21921 2012-05-10  Bruno Haible  <bruno@clisp.org>
21923         system-quote, execute, spawn-pipe: Escape '?' on Windows.
21924         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
21925         '?' character.
21926         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
21927         * tests/test-system-quote-main.c (check_all): Check also strings like
21928         "??????????".
21929         Reported by Eli Zaretskii <eliz@gnu.org>.
21931 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
21933         _Noreturn: port config.h to gcc -Wundef
21934         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
21935         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
21936         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
21938 2012-05-10  Bruno Haible  <bruno@clisp.org>
21940         system-quote: Refactor.
21941         * lib/system-quote.h (system_quote_copy): Fix comment.
21942         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
21943         New functions, extracted from system_quote_copy.
21944         (system_quote_length, system_quote_copy): Use these functions.
21945         Reported by Paul Eggert.
21947 2012-05-08  Bruno Haible  <bruno@clisp.org>
21949         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
21950         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
21952 2012-05-08  Bruno Haible  <bruno@clisp.org>
21954         Tests for module 'system-quote'.
21955         * modules/system-quote-tests: New file.
21956         * tests/test-system-quote.sh: New file.
21957         * tests/test-system-quote-main.c: New file.
21958         * tests/test-system-quote-child.c: New file.
21960         New module 'system-quote'.
21961         * lib/system-quote.h: New file.
21962         * lib/system-quote.c: New file.
21963         * modules/system-quote: New file.
21965 2012-05-08  Bruno Haible  <bruno@clisp.org>
21967         sh-quote: Make C++ safe and allow multiple inclusion.
21968         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
21969         declarations in extern "C".
21971 2012-05-08  Bruno Haible  <bruno@clisp.org>
21973         sh-quote tests: Make tests stricter.
21974         * tests/test-sh-quote.c (check_one): Check the return value of
21975         shell_quote_copy.
21976         (main): Check a string with a CR character. Check a string that
21977         contains UCHAR_MAX.
21979 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
21981         warnings.m4: provide a means to specify the program to compile.
21982         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
21983         (gl_WARN_ADD): here.
21984         Use gl_AS_VAR_APPEND.
21985         Support an argument to specify the program to compile.
21986         (gl_WARN_ADD): Accept an argument to specify the program to compile.
21987         AC_SUBST the WARN_CFLAGS when they are used.
21988         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
21989         leave this to gl_WARN_ADD.
21991 2012-05-08  Eric Blake  <eblake@redhat.com>
21993         doc: recommendations on gettext version
21994         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
21995         choice between versions.
21996         * DEPENDENCIES (gettext): Cover both approaches.
21998 2012-05-08  Jim Meyering  <meyering@redhat.com>
22000         init.sh: explain why EXEEXT support uses aliases rather than functions
22001         * tests/init.sh: Add a comment.
22003         init.sh: don't let bash aliases interfere with tests
22004         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
22005         is bash.  This avoids problems for those who alias standard commands to
22006         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
22007         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
22009 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
22011         stdint: be more consistent with glibc, SunOS libc
22012         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
22013         (gl_int_fast16_t, gl_uint_fast16_t)
22014         (gl_int_fast32_t, gl_uint_fast32_t)
22015         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
22016         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
22017         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
22018         Be consistent with glibc by default, and with SunOS 5.10 and later
22019         if __sun is defined.  This lessens the likelihood of clashes if
22020         code compiled for older hosts is combined with code compiled for
22021         newer ones.  Problem reported by Niels Möller in
22022         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
22024 2012-05-07  Eric Blake  <eblake@redhat.com>
22026         isatty: relax license to LGPLv2+
22027         * modules/isatty (License): Relax license.
22029 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
22031         stat-size: comment fix
22032         * lib/stat-size.h: Remove obsolete comment about indenting.
22034 2012-05-06  Bruno Haible  <bruno@clisp.org>
22036         Tests for module 'sh-quote'.
22037         * modules/sh-quote-tests: New file.
22038         * tests/test-sh-quote.c: New file.
22040 2012-05-06  Bruno Haible  <bruno@clisp.org>
22042         sh-quote: Improve shell_quote_argv's signature.
22043         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
22044         * lib/sh-quote.c (shell_quote_argv): Likewise.
22046 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
22048         stdint: document issues with int_fast8_t etc.
22049         * doc/posix-headers/stdint.texi (stdint.h): Say that other
22050         stdint.h substitutes may define these types differently.  See
22051         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
22053 2012-05-05  Bruno Haible  <bruno@clisp.org>
22055         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
22056         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
22057         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
22058         or 'guessing no (mishandles large arguments)'.
22060 2012-05-05  Bruno Haible  <bruno@clisp.org>
22062         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
22063         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
22064         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
22065         set gl_cv_func_link_follows_symlink to "guessing no".
22067 2012-05-05  Bruno Haible  <bruno@clisp.org>
22069         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
22070         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
22071         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
22072         "guessing no".
22073         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
22075 2012-05-05  Bruno Haible  <bruno@clisp.org>
22077         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
22078         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
22079         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
22080         set gl_cv_struct_dirent_d_ino to "guessing yes".
22082 2012-05-05  Bruno Haible  <bruno@clisp.org>
22084         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
22085         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
22086         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
22087         "guessing yes".
22089 2012-05-05  Bruno Haible  <bruno@clisp.org>
22091         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
22092         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
22093         compiling to a glibc system, set gl_cv_func_signbit and
22094         gl_cv_func_signbit_gcc to "guessing yes".
22096 2012-05-05  Bruno Haible  <bruno@clisp.org>
22098         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
22099         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
22100         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
22101         to "guessing yes".
22102         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
22103         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
22105 2012-05-05  Bruno Haible  <bruno@clisp.org>
22107         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
22108         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
22109         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
22110         gl_cv_func_realpath_works to "guessing yes".
22112 2012-05-05  Bruno Haible  <bruno@clisp.org>
22114         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
22115         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
22116         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
22118 2012-05-04  Bruno Haible  <bruno@clisp.org>
22120         Tweak last commit.
22121         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
22122         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22124 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
22126         unistd_h: make it easier to avoid sys_types_h
22127         This is useful for Emacs, which has its own method of porting to
22128         Windows, and which therefore does not need the sys_types_h module.
22129         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
22130         code moved here from gl_SYS_TYPES_H.
22131         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
22132         using the code directly.
22133         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
22134         gl_SYS_TYPES_H.
22135         * modules/sys_types (Files):
22136         * modules/unistd (Files): Add m4/off_t.m4.
22138 2012-05-03  Bruno Haible  <bruno@clisp.org>
22140         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
22141         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
22142         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
22143         "guessing yes" or "guessing no".
22144         (gl_FUNC_LSTAT): Update.
22145         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
22146         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
22147         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
22149 2012-05-03  Bruno Haible  <bruno@clisp.org>
22151         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
22152         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
22153         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
22154         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
22155         cross-compiling, choose the first alternative on glibc systems.
22156         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
22158 2012-05-03  Bruno Haible  <bruno@clisp.org>
22160         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
22161         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
22162         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
22164 2012-05-03  Bruno Haible  <bruno@clisp.org>
22166         chown: Avoid "guessing no" when cross-compiling to glibc systems.
22167         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
22169 2012-05-03  Bruno Haible  <bruno@clisp.org>
22171         Avoid "guessing no" guesses when cross-compiling to glibc systems.
22172         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
22173         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
22174         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
22175         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
22176         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
22177         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
22178         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
22179         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
22180         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
22181         compiling to glibc systems, set gl_cv_func_chown_slash_works,
22182         gl_cv_func_chown_ctime_works to "guessing yes".
22183         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
22184         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
22185         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
22186         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
22187         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
22188         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
22189         compiling to glibc systems, set gl_cv_func_open_directory_works to
22190         "guessing yes".
22191         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
22192         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
22193         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
22194         "guessing yes".
22195         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
22196         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
22197         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
22198         compiling to glibc systems, set gl_cv_func_floorf_ieee to
22199         "guessing yes".
22200         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
22201         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
22202         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
22203         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
22204         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
22205         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
22206         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
22207         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
22208         "guessing yes".
22209         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
22210         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
22211         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
22212         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
22213         "guessing yes".
22214         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
22215         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
22216         "guessing yes".
22217         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
22218         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
22219         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
22220         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
22221         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
22222         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
22223         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
22224         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
22225         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
22226         compiling to glibc systems, set gl_cv_func_log10f_ieee to
22227         "guessing yes".
22228         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
22229         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
22230         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
22231         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
22232         "guessing yes".
22233         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
22234         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
22235         "guessing yes".
22236         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
22237         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
22238         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
22239         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
22240         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
22241         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
22242         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
22243         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
22244         compiling to glibc systems, set gl_cv_func_mkfifo_works to
22245         "guessing yes".
22246         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
22247         compiling to glibc systems, set gl_cv_func_mknod_works to
22248         "guessing yes".
22249         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
22250         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
22251         "guessing yes".
22252         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
22253         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
22254         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
22255         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
22256         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
22257         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
22258         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
22259         compiling to glibc systems, set gl_cv_func_svid_putenv to
22260         "guessing yes".
22261         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
22262         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
22263         "guessing yes".
22264         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
22265         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
22266         "guessing yes".
22267         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
22268         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
22269         to "guessing yes".
22270         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
22271         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
22272         to "guessing yes".
22273         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
22274         compiling to glibc systems, set gl_cv_func_rmdir_works to
22275         "guessing yes".
22276         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
22277         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
22278         gl_cv_func_unlink_parent_fails to "guessing yes".
22279         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
22280         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
22281         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
22282         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
22283         gl_cv_func_rename_dest_works to "guessing yes".
22284         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
22285         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
22286         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
22287         compiling to glibc systems, set gl_cv_func_roundf_ieee to
22288         "guessing yes".
22289         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
22290         compiling to glibc systems, set gl_cv_func_roundl_ieee to
22291         "guessing yes".
22292         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
22293         compiling to glibc systems, set gl_cv_func_setenv_works to
22294         "guessing yes".
22295         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
22296         compiling to glibc systems, set gl_cv_func_unsetenv_works to
22297         "guessing yes".
22298         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
22299         compiling to glibc systems, set gl_cv_func_sleep_works to
22300         "guessing yes".
22301         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
22302         compiling to glibc systems, set gl_cv_func_stat_file_slash to
22303         "guessing yes".
22304         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
22305         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
22306         "guessing yes".
22307         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
22308         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
22309         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
22310         compiling to glibc systems, set gl_cv_func_truncf_ieee to
22311         "guessing yes".
22312         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
22313         compiling to glibc systems, set gl_cv_func_truncl_ieee to
22314         "guessing yes".
22315         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
22316         compiling to glibc systems, set gl_cv_func_usleep_works to
22317         "guessing yes".
22318         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
22319         compiling to glibc systems, set gl_cv_func_futimesat_works to
22320         "guessing yes".
22322 2012-05-03  Bruno Haible  <bruno@clisp.org>
22324         Say "guessing yes" or "guessing no" when cross-compiling.
22325         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
22326         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
22327         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
22328         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
22329         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
22330         am_cv_func_working_getline to "guessing yes" or "guessing no".
22331         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
22332         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
22333         (gl_FUNC_MEMMEM): When cross-compiling, set
22334         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
22335         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
22336         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
22337         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
22338         set gl_cv_func_strcasestr_works_always to "guessing yes" or
22339         "guessing no".
22340         (gl_FUNC_STRCASESTR): When cross-compiling, set
22341         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
22342         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
22343         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
22344         (gl_FUNC_STRSTR): When cross-compiling, set
22345         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
22346         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
22347         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
22348         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
22349         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
22351 2012-05-01  Bruno Haible  <bruno@clisp.org>
22353         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
22354         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
22355         * build-aux/reloc-ldflags: Likewise.
22356         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
22358 2012-05-01  Bruno Haible  <bruno@clisp.org>
22360         gnulib-tool: Remove transitional code.
22361         * gnulib-tool: Don't warn about --import with 0 arguments any more.
22362         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
22364 2012-05-01  Bruno Haible  <bruno@clisp.org>
22366         getcwd: Fix misindentation.
22367         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
22369 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
22371         exclude: process exclude and include directives in order
22372         This restores the pre-2009 behavior, and is part of a fix of a
22373         grep bug reported by Quentin Arce in
22374         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
22375         * lib/exclude.c (struct exclude): Remove 'tail' member.
22376         (new_exclude_segment): Prepend the new segment instead of appending.
22377         Return void, since that's now more convenient.
22378         (file_pattern_matches): Renamed from excluded_file_pattern_p.
22379         (file_name_matches): Renamed from excluded_file_name_p.
22380         (file_pattern_matches, file_name_matches):
22381         Return true if the pattern matches, not if it excludes.
22382         All callers changed.
22383         (excluded_file_name): Process the list in reverse order;
22384         since the list is now reversed this restores the pre-2009 behavior.
22385         (add_exclude): Adjust to new reversed-order list.  Use local var
22386         rather than macro, for clarity.
22387         * tests/test-exclude7.sh: Adjust to corrected behavior.
22389         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
22390         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
22391         it's not possible here.  Handle the case of \ at end of pattern
22392         without dumping core.
22393         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
22395         _Noreturn: future-proof non-GNU and non-MSVC compilers
22396         * build-aux/snippet/_Noreturn.h (_Noreturn):
22397         * m4/gnulib-common.m4 (gl_COMMON_BODY):
22398         Do not define _Noreturn if __STDC_VERSION__ indicates this is
22399         C11 or later.  This is more likely to work with random future C
22400         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
22401         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
22403         exclude: handle wildcards with FNM_EXTMATCH
22404         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
22405         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
22406         comment that "has wildcards" really means "has or may have
22407         wildcards".  Simplify by avoiding the need to call strcspn.
22409 2012-04-29  Bruno Haible  <bruno@clisp.org>
22411         gnulib-tool: Fix list of authors.
22412         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
22414 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
22416         bootstrap: support Automake-NG in $buildreq
22417         * bootstrap (check_versions): Handle automake and aclocal from
22418         Automake-NG specially.  They can be specified as respectively
22419         the "automake-ng" and "aclocal-ng" requirements.
22421 2012-04-25  Eric Blake  <eblake@redhat.com>
22423         bootstrap: only force latest Makefile.in.in for gettext module
22424         * build-aux/bootstrap (with_gettext): Only install latest
22425         Makefile.in.in for projects requesting bleeding edge gettext.
22427 2012-04-22  Bruno Haible  <bruno@clisp.org>
22429         doc: Mention reason for replacement on glibc/Linux systems.
22430         * doc/posix-functions/dprintf.texi: Mention the problem with special
22431         'long double' values.
22432         * doc/posix-functions/fprintf.texi: Likewise.
22433         * doc/posix-functions/printf.texi: Likewise.
22434         * doc/posix-functions/snprintf.texi: Likewise.
22435         * doc/posix-functions/sprintf.texi: Likewise.
22436         * doc/posix-functions/vdprintf.texi: Likewise.
22437         * doc/posix-functions/vfprintf.texi: Likewise.
22438         * doc/posix-functions/vprintf.texi: Likewise.
22439         * doc/posix-functions/vsnprintf.texi: Likewise.
22440         * doc/posix-functions/vsprintf.texi: Likewise.
22441         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
22442         platforms with F_DUPFD_CLOEXEC problems.
22443         * doc/posix-functions/glob.texi: Mention which platforms are affected
22444         by the problem with symbolic links.
22445         * doc/posix-functions/linkat.texi: Mention the problem with
22446         AT_SYMLINK_FOLLOW on Linux.
22448 2012-04-22  Bruno Haible  <bruno@clisp.org>
22450         pwrite: Don't replace on all platforms.
22451         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
22453 2012-04-22  Bruno Haible  <bruno@clisp.org>
22455         rint* tests: Avoid gcc warnings.
22456         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
22457         * tests/test-rintf.c (INFINITY, NAN): Likewise.
22458         * tests/test-rintl.c (INFINITY, NAN): Likewise.
22460 2012-04-21  Bruno Haible  <bruno@clisp.org>
22462         users.txt: Update.
22463         * users.txt: Add freedink, wdiff. Update URLs for projects that have
22464         switched from CVS to git, bzr, or svn.
22466 2012-04-21  Bruno Haible  <bruno@clisp.org>
22468         Large File Support for native Windows platforms.
22470         * m4/largefile.m4 (gl_LARGEFILE): New macro.
22471         * modules/largefile (configure.ac): Require gl_LARGEFILE.
22473         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
22474         type.
22475         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
22476         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
22477         * doc/posix-headers/sys_types.texi: Mention the effect of the
22478         'largefile' module.
22480         * lib/fcntl.in.h: Add comments about off_t.
22481         * modules/fcntl-h (Depends-on): Add sys_types.
22483         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
22484         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
22485         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
22486         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
22487         * modules/unistd (Depends-on): Add sys_types.
22488         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
22490         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
22491         instead of lseek.
22492         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
22493         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
22494         * modules/lseek (Depends-on): Add sys_types.
22496         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
22497         msvc-nothrow.h.
22498         (SetFileSize): New function.
22499         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
22500         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
22501         if Large File Support is requested.
22502         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
22503         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
22505         * lib/stdio.in.h: Add comments about off_t.
22506         * modules/stdio (Depends-on): Add sys_types.
22508         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
22509         instead of ftello.
22510         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
22511         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
22512         (gl_PREREQ_FTELLO): New macro.
22513         * modules/ftello (Depends-on): Add sys_types.
22514         (configure.ac): Incoke gl_PREREQ_FTELLO.
22516         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
22517         instead of fseeko.
22518         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
22519         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
22520         (gl_PREREQ_FSEEKO): New macro.
22521         * modules/fseeko (Depends-on): Add sys_types.
22522         (configure.ac): Invoke gl_PREREQ_FSEEKO.
22524         * lib/sys_stat.in.h: Add comments about off_t.
22525         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
22526         64-bit integer for st_size in 'struct stat'.
22527         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
22528         Define _GL_WINDOWS_64_BIT_ST_SIZE.
22529         * modules/sys_stat (Depends-on): Add sys_types.
22530         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
22532         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
22533         instead of stat or _stat.
22535         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
22536         'struct _stati64' instead of fstat and 'struct stat'.
22537         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
22538         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
22540         Reported by Ray Satiro <raysatiro@yahoo.com>.
22542 2012-04-19  Eric Blake  <eblake@redhat.com>
22544         bootstrap: accommodate older libtool
22545         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
22546         Reported by Daniel P. Berrange.
22548 2012-04-19  Jim Meyering  <meyering@redhat.com>
22550         announce-gen: avoid failure due to lack of Digest::SHA1
22551         Even with the preferred Digest::SHA available, this script
22552         would fail when the backup module, Digest::SHA1, was not installed.
22553         * build-aux/announce-gen: Quote the conditional use of "use".
22554         Reported by Reuben Thomas in:
22555         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
22557         bootstrap: don't let a user's CDPATH setting affect this script
22558         When CDPATH is set, cd will sometimes generate output.
22559         When "cd" is run in a subshell whose output matters, that
22560         surprising-to-some output can cause malfunction.
22561         Unsetting CDPATH turns off this shell "feature."
22562         * build-aux/bootstrap (CDPATH): Unset.
22563         Reported by Reuben Thomas in:
22564         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
22565         and inspired by his patch here:
22566         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
22568 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
22569         and Jim Meyering  <meyering@redhat.com>
22571         maint.mk: catch "see @xref{}" and similar
22572         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
22573         prohibit "See also @xref{", "Also see @pxref{", and similar.
22575 2012-04-16  Jim Meyering  <meyering@redhat.com>
22577         bootstrap: really use gnulib's po/Makefile.in.in
22578         * build-aux/bootstrap: Correct the source file name in previous change.
22579         Reported by Akim Demaille.
22581         configmake: correct minor inconsistency in Makefile rule
22582         * modules/configmake (Makefile.am): All other rules like this one
22583         run the final "mv -f ..." in the same backslash-continued command
22584         as the one that does everything else.  This one put the mv -f ...
22585         command on a separate, non-backslash-continued line.
22586         Make it like the others.
22588         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
22589         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
22590         the one from gettext.  Reported by Akim Demaille.
22592 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
22594         Fix recursion of install-* into po directories.
22595         Bison's install-pdf bug reported by Hans Aberg at
22596         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
22597         * build-aux/po/Makefile.in.in (install-dvi, install-html)
22598         (install-info, install-pdf, install-ps): New targets.
22600 2012-04-16  Jim Meyering  <meyering@redhat.com>
22602         maint: avoid spurious "make sc_maint" failure
22603         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
22604         exempt all *.class file names, for lib/javaversion.class.
22606 2012-04-15  Bruno Haible  <bruno@clisp.org>
22608         lseek: Make configure test independent of environment.
22609         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
22610         Windows, we know that lseek() on pipes is broken; skip the runtime
22611         test.
22613 2012-04-14  Bruno Haible  <bruno@clisp.org>
22615         stat: Bypass buggy override in mingw64.
22616         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
22617         * lib/stat.c (stat) [mingw64]: Define to _stat.
22618         * doc/posix-functions/stat.texi: Mention mingw64 bug.
22620 2012-04-14  Bruno Haible  <bruno@clisp.org>
22622         pathmax: Fix compilation error on MSVC 9.
22623         * modules/pathmax (Depends-on): Add unistd.
22625 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
22627         README: document pointer comparison assumption
22628         * README (Portability guidelines): Document assumption about
22629         pointer comparisons, in response to a recent bug-gnulib comment by
22630         Jeffrey Kegler.
22632 2012-04-12  Bruno Haible  <bruno@clisp.org>
22634         Tests for module 'getrusage'.
22635         * modules/getrusage-tests: New file.
22636         * tests/test-getrusage.c: New file.
22638         New module 'getrusage'.
22639         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
22640         warn-on-use.h.
22641         (getrusage): New declaration.
22642         * lib/getrusage.c: New file.
22643         * m4/getrusage.m4: New file.
22644         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
22645         is declared.
22646         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
22647         HAVE_GETRUSAGE.
22648         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
22649         snippet/c++defs, snippet/warn-on-use.
22650         (Makefile.am): Update generation of sys/resource.h. Substitute
22651         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
22652         * modules/getrusage: New file.
22653         * doc/posix-functions/getrusage.texi: Mention the new module.
22655 2012-04-12  Bruno Haible  <bruno@clisp.org>
22657         Tests for module 'sys_resource'.
22658         * modules/sys_resource-tests: New file.
22659         * tests/test-sys_resource.c: New file.
22661         New module 'sys_resource'.
22662         * lib/sys_resource.in.h: New file.
22663         * m4/sys_resource_h.m4: New file.
22664         * modules/sys_resource: New file.
22665         * doc/posix-headers/sys_resource.texi: Mention the new module.
22667 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
22669         ioctl: Fix compilation error on mingw.
22670         * lib/ioctl.c: Include <windows.h>.
22671         Also reported by Ray Satiro <raysatiro@yahoo.com>.
22673 2012-04-04  Jim Meyering  <meyering@redhat.com>
22675         regex: correct #pragma guard expression
22676         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
22677         not 4.3.  Correct its cpp guard expression.
22679 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
22681         regex: remove unnecessary type punning
22682         Problem reported by Vladimir Serbinenko in
22683         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
22684         * lib/regex.h (struct re_pattern_buffer): Change the type of
22685         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
22686         Fix comment to match code.
22687         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
22688         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
22689         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
22690         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
22691         (set_regs):
22692         Omit no-longer-necessary casts.
22694 2012-04-03  Bruno Haible  <bruno@clisp.org>
22696         Tests for module 'ilogbl'.
22697         * modules/ilogbl-tests: New file.
22698         * tests/test-ilogbl.c: New file.
22700         New module 'ilogbl'.
22701         * lib/math.in.h (ilogbl): New declaration.
22702         * lib/ilogbl.c: New file.
22703         * m4/ilogbl.m4: New file.
22704         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
22705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
22706         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
22707         Split sed invocation, to avoid the limit of 100 substitutions of
22708         HP-UX 'sed'.
22709         * modules/ilogbl: New file.
22710         * tests/test-math-c++.cc: Check the declaration of ilogbl.
22711         * doc/posix-functions/ilogbl.texi: Mention the new module.
22713 2012-04-03  Bruno Haible  <bruno@clisp.org>
22715         Tests for module 'ilogbf'.
22716         * modules/ilogbf-tests: New file.
22717         * tests/test-ilogbf.c: New file.
22719         New module 'ilogbf'.
22720         * lib/math.in.h (ilogbf): New declaration.
22721         * lib/ilogbf.c: New file.
22722         * m4/ilogbf.m4: New file.
22723         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
22724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
22725         REPLACE_ILOGBF.
22726         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
22727         REPLACE_ILOGBF.
22728         * modules/ilogbf: New file.
22729         * tests/test-math-c++.cc: Check the declaration of ilogbf.
22730         * doc/posix-functions/ilogbf.texi: Mention the new module.
22732 2012-04-03  Bruno Haible  <bruno@clisp.org>
22734         Tests for module 'ilogb'.
22735         * modules/ilogb-tests: New file.
22736         * tests/test-ilogb.c: New file.
22737         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
22738         tests/test-logb-ieee.h.
22740         New module 'ilogb'.
22741         * lib/math.in.h (ilogb): New declaration.
22742         * lib/ilogb.c: New file.
22743         * m4/ilogb.m4: New file.
22744         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
22745         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
22746         REPLACE_ILOGB.
22747         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
22748         REPLACE_ILOGB.
22749         * modules/ilogb: New file.
22750         * tests/test-math-c++.cc: Check the declaration of ilogb.
22751         * doc/posix-functions/ilogb.texi: Mention the new module.
22753 2012-04-03  Bruno Haible  <bruno@clisp.org>
22755         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
22756         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
22757         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
22758         (main): Check their values.
22759         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
22760         problem.
22762 2012-04-03  Bruno Haible  <bruno@clisp.org>
22764         Tests for module 'logbl-ieee'.
22765         * modules/logbl-ieee-tests: New file.
22766         * tests/test-logbl-ieee.c: New file.
22768         New module 'logbl-ieee'.
22769         * modules/logbl-ieee: New file.
22771         Tests for module 'logb-ieee'.
22772         * modules/logb-ieee-tests: New file.
22773         * tests/test-logb-ieee.c: New file.
22775         New module 'logb-ieee'.
22776         * modules/logb-ieee: New file.
22778         Tests for module 'logbf-ieee'.
22779         * modules/logbf-ieee-tests: New file.
22780         * tests/test-logbf-ieee.c: New file.
22781         * tests/test-logb-ieee.h: New file.
22783         New module 'logbf-ieee'.
22784         * modules/logbf-ieee: New file.
22786 2012-04-03  Bruno Haible  <bruno@clisp.org>
22788         Tests for module 'logbl'.
22789         * modules/logbl-tests: New file.
22790         * tests/test-logbl.c: New file.
22792         New module 'logbl'.
22793         * lib/math.in.h (logbl): New declaration.
22794         * lib/logbl.c: New file.
22795         * m4/logbl.m4: New file.
22796         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
22797         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
22798         REPLACE_LOGBL.
22799         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
22800         REPLACE_LOGBL.
22801         * modules/logbl: New file.
22802         * tests/test-math-c++.cc: Check the declaration of logbl.
22803         * doc/posix-functions/logbl.texi: Mention the new module.
22805 2012-04-02  Bruno Haible  <bruno@clisp.org>
22807         Tests for module 'logbf'.
22808         * modules/logbf-tests: New file.
22809         * tests/test-logbf.c: New file.
22811         New module 'logbf'.
22812         * lib/math.in.h (logbf): New declaration.
22813         * lib/logbf.c: New file.
22814         * m4/logbf.m4: New file.
22815         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
22816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
22817         REPLACE_LOGBF.
22818         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
22819         REPLACE_LOGBF.
22820         * modules/logbf: New file.
22821         * tests/test-math-c++.cc: Check the declaration of logbf.
22822         * doc/posix-functions/logbf.texi: Mention the new module.
22824 2012-04-02  Bruno Haible  <bruno@clisp.org>
22826         logb tests: More tests.
22827         * tests/test-logb.h: New file, based on tests/test-logb.c and
22828         tests/test-frexp.h.
22829         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
22830         (main): Just invoke test_function.
22831         * modules/logb-tests (Files): Add tests/test-logb.h,
22832         tests/minus-zero.h, tests/randomd.c.
22833         (Makefile.am): Add randomd.c to test_logb_SOURCES.
22835         logb: Provide replacement and workarounds.
22836         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
22837         is 1.
22838         * lib/logb.c: New file.
22839         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
22840         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
22841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
22842         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
22843         * modules/logb (Files): Add lib/logb.c.
22844         (Depends-on): Add isfinite, frexp, isnand.
22845         (configure.ac): Compile the replacement code logb.c if needed.
22846         * tests/test-math-c++.cc: Check the declaration of logb.
22847         * doc/posix-functions/logb.texi: Mention the replacement and the bug
22848         with subnormal numbers.
22850 2012-04-02  Bruno Haible  <bruno@clisp.org>
22852         log10* tests: Speed up.
22853         * tests/test-log10.h (test_function): Reduce amount of random numbers
22854         to test.
22856 2012-04-01  Bruno Haible  <bruno@clisp.org>
22858         logf-ieee: Fix test whether logf works.
22859         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
22861 2012-04-01  Bruno Haible  <bruno@clisp.org>
22863         log10l: Work around log10l-ieee test failure on IRIX 6.5.
22864         * lib/log10l.c: Include <float.h>
22865         (log10l): On IRIX, normalize the +Infinity value.
22866         * modules/log10l (Depends-on): Add 'float'.
22867         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
22868         +Infinity.
22870         log10f-ieee: Work around test failure on NetBSD 5.1.
22871         * m4/log10f-ieee.m4: New file.
22872         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
22873         test whether log10f works with a negative argument. Replace it if not.
22874         * lib/log10f.c (log10f): For negative arguments, return NaN.
22875         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
22876         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
22877         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
22879         log10f-ieee: Work around test failure on Solaris 9.
22880         * modules/log10f-ieee (Depends-on): Add log10-ieee.
22881         (configure.ac): Require gl_FUNC_LOG10F.
22883         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
22884         * m4/log10-ieee.m4: New file.
22885         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
22886         whether log10 works with a negative argument. Replace it if not.
22887         * lib/log10.c (log10): For negative arguments, return NaN.
22888         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
22889         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
22890         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
22892         Tests for module 'log10l-ieee'.
22893         * modules/log10l-ieee-tests: New file.
22894         * tests/test-log10l-ieee.c: New file.
22896         New module 'log10l-ieee'.
22897         * modules/log10l-ieee: New file.
22899         Tests for module 'log10-ieee'.
22900         * modules/log10-ieee-tests: New file.
22901         * tests/test-log10-ieee.c: New file.
22903         New module 'log10-ieee'.
22904         * modules/log10-ieee: New file.
22906         Tests for module 'log10f-ieee'.
22907         * modules/log10f-ieee-tests: New file.
22908         * tests/test-log10f-ieee.c: New file.
22909         * tests/test-log10-ieee.h: New file.
22911         New module 'log10f-ieee'.
22912         * modules/log10f-ieee: New file.
22914 2012-04-01  Bruno Haible  <bruno@clisp.org>
22916         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
22917         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
22918         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
22919         workaround.
22920         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
22921         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
22922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
22923         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
22924         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
22925         (Depends-on): Update conditions.
22926         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
22927         IRIX 6.5, OSF/1 5.1 problems.
22929 2012-04-01  Bruno Haible  <bruno@clisp.org>
22931         log10f: Work around OSF/1 5.1 bug.
22932         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
22933         * lib/log10f.c (log10f): If logf exists, use it and provide just the
22934         workaround.
22935         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
22936         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
22937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
22938         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
22939         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
22940         (Depends-on): Update conditions.
22941         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
22943 2012-04-01  Bruno Haible  <bruno@clisp.org>
22945         log10: Work around OSF/1 5.1 bug.
22946         * lib/math.in.h (log10): New declaration.
22947         * lib/log10.c: New file.
22948         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
22949         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
22950         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
22951         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
22952         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
22953         * modules/log10 (Files): Add lib/log10.c.
22954         (Depends-on): Add math.
22955         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
22956         * tests/test-math-c++.cc: Check the declaration of log10.
22957         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
22959 2012-03-31  Bruno Haible  <bruno@clisp.org>
22961         log10l tests: More tests.
22962         * modules/log10l-tests (Files): Add tests/test-log10l.h,
22963         tests/minus-zero.h, tests/randoml.c.
22964         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
22965         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
22966         (main): Invoke test_function.
22968         log10f tests: More tests.
22969         * modules/log10f-tests (Files): Add tests/test-log10.h,
22970         tests/minus-zero.h, tests/randomf.c.
22971         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
22972         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
22973         (main): Invoke test_function.
22975         log10 tests: More tests.
22976         * tests/test-log10.h: New file.
22977         * modules/log10-tests (Files): Add tests/test-log10.h,
22978         tests/minus-zero.h, tests/randomd.c.
22979         (Makefile.am): Add randomd.c to test_log10_SOURCES.
22980         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
22981         (main): Invoke test_function.
22983 2012-03-31  Simon Josefsson  <simon@josefsson.org>
22985         fflush: Fix syntax error.
22986         * lib/fflush.c: Include unused-parameter.h, needed for
22987         _GL_UNUSED_PARAMETER.
22988         * modules/fflush (Depends-on): Add snippet/unused-parameter.
22990 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
22992         regex: pacify GCC when compiling GRUB
22993         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
22994         a diagnostic.  Reported by Vladimir Serbinenko in
22995         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
22997 2012-03-29  Eric Blake  <eblake@redhat.com>
22999         stdio: don't assume gets any more
23000         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
23001         support.
23002         * modules/stdio (Makefile.am): Likewise.
23003         * lib/stdio-read.c (gets): Likewise.
23004         * tests/test-stdio-c++.cc: Likewise.
23005         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
23006         * lib/stdio.in.h (gets): Make warning occur in more places.
23007         * doc/posix-functions/gets.texi (gets): Update documentation.
23008         Reported by Christer Solskogen.
23010         maint.mk: fix syntax checks without exclusions
23011         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
23012         Reported by Daniel P. Berrange.
23014         strerror_r: avoid compiler warning
23015         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
23016         level.
23018         fflush: avoid compiler warning
23019         * lib/fflush.c (update_fpos_cache): Mark variables that are
23020         potentially unused.
23022 2012-03-25  Bruno Haible  <bruno@clisp.org>
23024         Tests for module 'localeconv'.
23025         * modules/localeconv-tests: New file.
23026         * tests/test-localeconv.c: New file.
23028         New module 'localeconv'.
23029         * lib/locale.in.h (localeconv): New declaration.
23030         * lib/localeconv.c: New file.
23031         * m4/localeconv.m4: New file.
23032         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
23033         REPLACE_LOCALECONV.
23034         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
23035         REPLACE_LOCALECONV.
23036         * modules/localeconv: New file.
23037         * modules/nl_langinfo (Depends-on): Add localeconv.
23038         * modules/human (Depends-on): Likewise.
23039         * doc/posix-functions/localeconv.texi: Mention the new module.
23041 2012-03-25  Bruno Haible  <bruno@clisp.org>
23043         locale: Provide a complete 'struct lconv'.
23044         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
23045         'struct lconv' does not contain int_p_cs_precedes.
23046         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
23047         * doc/posix-headers/locale.texi: Update.
23049         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
23050         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
23051         * doc/posix-headers/locale.texi: Update.
23053         locale: Provide a working 'struct lconv'.
23054         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
23055         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
23056         'struct lconv' does not even contain decimal_point.
23057         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
23058         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
23059         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
23060         * doc/posix-headers/locale.texi: Mention the problems with
23061         'struct lconv'.
23062         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
23064 2012-03-24  Bruno Haible  <bruno@clisp.org>
23066         Enable common subexpression optimization in GCC.
23067         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
23068         macros.
23069         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
23070         GCC attribute 'const'.
23071         (uc_locale_language): Declare with GCC attribute 'pure'.
23072         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
23073         with GCC attribute 'const'.
23074         * lib/unictype.in.h (uc_is_general_category_withtable,
23075         uc_combining_class, uc_combining_class_name,
23076         uc_combining_class_long_name, uc_bidi_class_name,
23077         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
23078         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
23079         uc_decimal_value, uc_digit_value, uc_numeric_value,
23080         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
23081         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
23082         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
23083         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
23084         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
23085         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
23086         Declare with GCC attribute 'const'.
23087         (uc_general_category_name, uc_general_category_long_name,
23088         uc_general_category_byname, uc_general_category,
23089         uc_is_general_category, uc_combining_class_byname,
23090         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
23091         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
23092         Declare with GCC attribute 'pure'.
23093         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
23094         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
23095         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
23096         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
23097         with GCC attribute 'pure'.
23098         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
23099         'const'.
23100         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
23101         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
23102         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
23103         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
23104         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
23105         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
23106         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
23107         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
23108         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
23109         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
23110         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
23111         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
23112         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
23113         GCC attribute 'pure'.
23114         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
23115         'const'.
23116         * lib/uniwidth.in.h (uc_width): Simplify declaration.
23117         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
23118         u32_strwidth): Declare with GCC attribute 'pure'.
23120         Enable common subexpression optimization in GCC.
23121         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
23122         (alphasort): Declare with GCC attribute 'pure'.
23123         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
23124         (atoll): Declare with GCC attribute 'pure'.
23125         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
23126         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
23127         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
23128         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
23129         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
23130         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
23131         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
23133 2012-03-24  Bruno Haible  <bruno@clisp.org>
23135         gnulib-tool: Avoid unintended error output from 'cmp'.
23136         * gnulib-tool (func_add_file, func_update_file, func_import): Use
23137         "cmp -s", not "cmp > /dev/null".
23139 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
23141         gnulib-tool: fix imprecise comments w.r.t. an automake bug
23143         It's not just Automake versions < 1.9b that creates an empty
23144         pkgdatadir at installation time if pkgdata_DATA is specified
23145         to empty; modern automake versions do this as well, at least
23146         until automake 1.11.4 (not yet released at the moment of writing,
23147         but soon to appear).  That behaviour was generally considered a
23148         feature rather than a bug, at least until this discussion:
23149         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
23151         See also automake bugs #10997 and #11030.
23153         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
23154         reference to relevant automake bug numbers.
23155         (func_emit_tests_Makefile_am): Likewise.
23157 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
23159         announce-gen: use Digest::SHA when possible
23160         * build-aux/announce-gen: Use Digest::SHA when possible, falling
23161         back to Digest::SHA1 if necessary.
23163 2012-03-20  Jim Meyering  <meyering@redhat.com>
23165         tests: avoid gcc warnings about argv vs. const initializers
23166         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
23167         warnings about discarding 'const' qualifier from pointer target type.
23168         * tests/test-posix_spawn2.c (main): Likewise.
23170 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
23172         README-release: simplify slightly
23173         * top/README-release: Run "git checkout master" only once.
23175 2012-03-15  Mark Wielaard  <mark@klomp.org>
23177         git-merge-changelog: add specific example on how to use with hg.
23178         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
23180 2012-03-18  Mark Wielaard  <mark@klomp.org>
23182         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
23184 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
23186         git-version-gen: don't let "prefix" envvar cause trouble
23187         * build-aux/git-version-gen (prefix): Initialize properly,
23188         so as not to use a value specified via the environment.
23189         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
23191 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
23193         regex: diagnose too-large repeat counts in EREs
23194         Previously, the code did not diagnose the too-large repeat count
23195         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
23196         as if it were 'b\{1000000000}', which is unexpected.
23197         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
23198         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
23199         is a reasonable one for this problem.  Another option would be to
23200         create a new REG_OVERFLOW error for repeat counts that are too large.
23201         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
23202         count is too large, so that the caller can distinguish the two cases.
23203         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
23204         "Too large" return code, and that repeat counts are one example of this.
23206 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
23208         doc: some glibc x32 integer width issues
23209         * doc/posix-headers/sys_types.texi (sys/types.h):
23210         * doc/posix-headers/time.texi (time.h):
23211         Mention that glibc x32 does not conform to POSIX in a couple of
23212         areas related to integer widths.
23214 2012-03-15  Bruno Haible  <bruno@clisp.org>
23216         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
23217         * lib/fma.c (VOLATILE): New macro.
23218         (FUNC): Use it to work around a GCC compiler bug.
23220 2012-03-13  Bruno Haible  <bruno@clisp.org>
23222         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
23223         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
23224         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
23225         REPLACE_HYPOTL to 1.
23226         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
23228 2012-03-13  Bruno Haible  <bruno@clisp.org>
23230         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
23231         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
23232         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
23233         REPLACE_REMAINDERL to 1.
23234         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
23235         bug.
23237 2012-03-13  Bruno Haible  <bruno@clisp.org>
23239         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
23240         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
23241         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
23242         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
23243         too big rounding errors.
23244         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
23245         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
23246         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
23247         (Depends-on): Update conditions.
23248         * tests/test-sqrtl.c (my_ldexpl): New function.
23249         (main): Add test of a particular value.
23250         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
23252 2012-03-13  Pádraig Brady  <P@draigBrady.com>
23254         doc: Update timer_* platform portability notes.
23255         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
23256         that always return ENOSYS.
23257         * doc/posix-functions/timer_delete.texi: Likewise.
23258         * doc/posix-functions/timer_gettime.texi: Likewise.
23259         * doc/posix-functions/timer_settime.texi: Likewise.
23261 2012-03-13  Bruno Haible  <bruno@clisp.org>
23263         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
23264         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
23265         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
23266         REPLACE_CBRTL to 1.
23267         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
23269 2012-03-13  Bruno Haible  <bruno@clisp.org>
23271         remainderl: Avoid compilation error on AIX >= 5.2.
23272         * lib/math.in.h (remainderl): Undefine macro from the system header.
23274 2012-03-13  Bruno Haible  <bruno@clisp.org>
23276         Avoid compilation errors with MSVC option -fp:strict.
23277         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
23278         * lib/cbrtf.c: Likewise.
23279         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
23281 2012-03-12  Bruno Haible  <bruno@clisp.org>
23283         uninorm: Don't crash in out-of-memory conditions.
23284         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
23285         gracefully.
23286         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
23287         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
23289 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
23291         quote: fix syntax-check
23292         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
23293         also exports quote_quoting_options.
23295 2012-03-12  Simon Josefsson  <simon@josefsson.org>
23297         Collapse list of copyright years to ranges.  See
23298         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
23299         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
23300         build-aux/csharpexec.sh.in, build-aux/gnupload,
23301         build-aux/install-reloc, build-aux/javacomp.sh.in,
23302         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
23303         build-aux/move-if-change, build-aux/reloc-ldflags,
23304         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
23306 2012-03-11  Bruno Haible  <bruno@clisp.org>
23308         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
23309         * m4/log2f-ieee.m4: New file.
23310         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
23311         whether log2f works with a minus zero argument. Replace it if not.
23312         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
23313         (Depends-on): Add log2-ieee.
23314         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
23315         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
23317         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
23318         * m4/log2-ieee.m4: New file.
23319         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
23320         whether log2 works with a minus zero argument. Replace it if not.
23321         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
23322         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
23323         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
23325         Tests for module 'log2l-ieee'.
23326         * modules/log2l-ieee-tests: New file.
23327         * tests/test-log2l-ieee.c: New file.
23329         New module 'log2l-ieee'.
23330         * modules/log2l-ieee: New file.
23332         Tests for module 'log2-ieee'.
23333         * modules/log2-ieee-tests: New file.
23334         * tests/test-log2-ieee.c: New file.
23336         New module 'log2-ieee'.
23337         * modules/log2-ieee: New file.
23339         Tests for module 'log2f-ieee'.
23340         * modules/log2f-ieee-tests: New file.
23341         * tests/test-log2f-ieee.c: New file.
23342         * tests/test-log2-ieee.h: New file.
23344         New module 'log2f-ieee'.
23345         * modules/log2f-ieee: New file.
23347 2012-03-11  Bruno Haible  <bruno@clisp.org>
23349         Tests for module 'log2l'.
23350         * modules/log2l-tests: New file.
23351         * tests/test-log2l.c: New file.
23353         New module 'log2l'.
23354         * lib/math.in.h (log2l): New declaration.
23355         * lib/log2l.c: New file.
23356         * m4/log2l.m4: New file.
23357         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
23358         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
23359         REPLACE_LOG2L.
23360         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
23361         REPLACE_LOG2L.
23362         * modules/log2l: New file.
23363         * tests/test-math-c++.cc: Check the declaration of log2l.
23364         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
23365         and OSF/1 problems.
23367 2012-03-11  Bruno Haible  <bruno@clisp.org>
23369         Tests for module 'log2f'.
23370         * modules/log2f-tests: New file.
23371         * tests/test-log2f.c: New file.
23373         New module 'log2f'.
23374         * lib/math.in.h (log2f): New declaration.
23375         * lib/log2f.c: New file.
23376         * m4/log2f.m4: New file.
23377         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
23378         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
23379         REPLACE_LOG2F.
23380         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
23381         REPLACE_LOG2F.
23382         * modules/log2f: New file.
23383         * tests/test-math-c++.cc: Check the declaration of log2f.
23384         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
23385         and OSF/1 and Cygwin problems.
23387 2012-03-11  Bruno Haible  <bruno@clisp.org>
23389         Tests for module 'log2'.
23390         * modules/log2-tests: New file.
23391         * tests/test-log2.c: New file.
23392         * tests/test-log2.h: New file.
23394         New module 'log2'.
23395         * lib/math.in.h (log2): New declaration.
23396         * lib/log2.c: New file.
23397         * m4/log2.m4: New file.
23398         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
23399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
23400         REPLACE_LOG2.
23401         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
23402         REPLACE_LOG2.
23403         * modules/log2: New file.
23404         * tests/test-math-c++.cc: Check the declaration of log2.
23405         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
23406         and OSF/1 and Cygwin problems.
23408 2012-03-11  Bruno Haible  <bruno@clisp.org>
23410         exp2* tests: More tests.
23411         * tests/test-exp2.h (test_function): Test all integral arguments that
23412         don't need to overflow or denormalized numbers.
23413         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
23414         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
23415         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
23417 2012-03-10  Bruno Haible  <bruno@clisp.org>
23419         log1pl-ieee: Work around test failure on AIX 7.1.
23420         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
23422         log1pl-ieee: Work around test failure on IRIX 6.5.
23423         * m4/log1pl-ieee.m4: New file.
23424         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
23425         test whether log1pl works with a minus zero argument. Replace it if
23426         not.
23427         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
23428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
23429         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
23430         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
23431         (Depends-on): Update conditions.
23432         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
23433         m4/signbit.m4.
23434         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
23435         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
23437         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
23438         * m4/log1pf-ieee.m4: New file.
23439         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
23440         test whether log1pf works with a minus zero argument. Replace it if
23441         not.
23442         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
23443         m4/signbit.m4.
23444         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
23445         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
23447         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
23448         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
23449         (configure.ac): Require gl_FUNC_LOG1PF.
23451         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
23452         * m4/log1p-ieee.m4: New file.
23453         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
23454         whether log1p works with a minus zero argument. Replace it if not.
23455         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
23456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
23457         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
23458         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
23459         (Depends-on): Update conditions.
23460         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
23461         m4/signbit.m4.
23462         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
23463         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
23465         Tests for module 'log1pl-ieee'.
23466         * modules/log1pl-ieee-tests: New file.
23467         * tests/test-log1pl-ieee.c: New file.
23469         New module 'log1pl-ieee'.
23470         * modules/log1pl-ieee: New file.
23472         Tests for module 'log1p-ieee'.
23473         * modules/log1p-ieee-tests: New file.
23474         * tests/test-log1p-ieee.c: New file.
23476         New module 'log1p-ieee'.
23477         * modules/log1p-ieee: New file.
23479         Tests for module 'log1pf-ieee'.
23480         * modules/log1pf-ieee-tests: New file.
23481         * tests/test-log1pf-ieee.c: New file.
23482         * tests/test-log1p-ieee.h: New file.
23484         New module 'log1pf-ieee'.
23485         * modules/log1pf-ieee: New file.
23487 2012-03-10  Bruno Haible  <bruno@clisp.org>
23489         Tests for module 'log1pl'.
23490         * modules/log1pl-tests: New file.
23491         * tests/test-log1pl.c: New file.
23493         New module 'log1pl'.
23494         * lib/math.in.h (log1pl): New declaration.
23495         * lib/log1pl.c: New file.
23496         * m4/log1pl.m4: New file.
23497         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
23498         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
23499         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
23500         * modules/log1pl: New file.
23501         * tests/test-math-c++.cc: Check the declaration of log1pl.
23502         * doc/posix-functions/log1pl.texi: Mention the new module.
23504 2012-03-10  Bruno Haible  <bruno@clisp.org>
23506         Tests for module 'log1pf'.
23507         * modules/log1pf-tests: New file.
23508         * tests/test-log1pf.c: New file.
23510         New module 'log1pf'.
23511         * lib/math.in.h (log1pf): New declaration.
23512         * lib/log1pf.c: New file.
23513         * m4/log1pf.m4: New file.
23514         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
23515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
23516         REPLACE_LOG1PF.
23517         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
23518         REPLACE_LOG1PF.
23519         * modules/log1pf: New file.
23520         * tests/test-math-c++.cc: Check the declaration of log1pf.
23521         * doc/posix-functions/log1pf.texi: Mention the new module.
23523 2012-03-10  Bruno Haible  <bruno@clisp.org>
23525         log1p tests: More tests.
23526         * tests/test-log1p.h: New file.
23527         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
23528         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
23529         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
23530         (main): Invoke test_function.
23532         log1p: Provide replacement for Minix and MSVC.
23533         * lib/math.in.h (log1p): New declaration.
23534         * lib/log1p.c: New file.
23535         * m4/log1p.m4: New file.
23536         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
23537         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
23538         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
23539         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
23540         (Depends-on): Add math, isnand, log, round.
23541         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
23542         HAVE_LOG1P is 0.
23543         * tests/test-math-c++.cc: Check the declaration of log1p.
23544         * doc/posix-functions/log1p.texi: Mention the replacement.
23546 2012-03-10  Bruno Haible  <bruno@clisp.org>
23548         math tests: Small simplification.
23549         * tests/test-exp.h (test_function): Use the same err_bound for
23550         'double' on platforms with sizeof (long double) == sizeof (double)
23551         than on platforms with sizeof (long double) > sizeof (double).
23552         * tests/test-exp2.h (test_function): Likewise.
23553         * tests/test-expm1.h (test_function): Likewise.
23554         * tests/test-log.h (test_function): Likewise.
23556 2012-03-10  Bruno Haible  <bruno@clisp.org>
23558         Fix some comments.
23559         * lib/expl.c: Fix an ambiguous comment.
23560         * lib/expm1.c: Likewise.
23561         * lib/expm1l.c: Likewise.
23562         * lib/exp2.c: Likewise.
23563         * lib/exp2l.c: Likewise.
23565 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
23567         regex: allow inclusion of <regex.h> before <limits.h>
23568         Without this patch, portable programs had to include <limits.h> before
23569         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
23570         I ran into this problem with a test version of GNU grep on Solaris 8.
23571         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
23572         This is done conditionally so that this change can be merged
23573         back to glibc.
23574         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
23575         using the included regex.
23577         fts: depend on fdopendir
23578         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
23579         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
23580         problem was introduced when fdopendir was split out.
23582 2012-03-10  Bruno Haible  <bruno@clisp.org>
23584         Remove unused variables.
23585         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
23586         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
23588 2012-03-10  Bruno Haible  <bruno@clisp.org>
23590         isnanf-nolibm: Fix last commit.
23591         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
23593         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
23594         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
23596 2012-03-10  Bruno Haible  <bruno@clisp.org>
23598         logf-ieee: Work around test failure on NetBSD 5.1.
23599         * m4/logf-ieee.m4: New file.
23600         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
23601         whether logf works with a negative argument. Replace it if not.
23602         * lib/logf.c (logf): For negative arguments, return NaN.
23603         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
23604         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
23605         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
23607         logf-ieee: Work around test failure on Solaris 9.
23608         * modules/logf-ieee (Depends-on): Add log-ieee.
23609         (configure.ac): Require gl_FUNC_LOGF.
23611         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
23612         * m4/log-ieee.m4: New file.
23613         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
23614         log works with a negative argument. Replace it if not.
23615         * lib/log.c (log): For negative arguments, return NaN.
23616         * modules/log-ieee (Files): Add m4/log-ieee.m4.
23617         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
23618         * doc/posix-functions/log.texi: Mention the log-ieee module.
23620         Tests for module 'logl-ieee'.
23621         * modules/logl-ieee-tests: New file.
23622         * tests/test-logl-ieee.c: New file.
23624         New module 'logl-ieee'.
23625         * modules/logl-ieee: New file.
23627         Tests for module 'log-ieee'.
23628         * modules/log-ieee-tests: New file.
23629         * tests/test-log-ieee.c: New file.
23631         New module 'log-ieee'.
23632         * modules/log-ieee: New file.
23634         Tests for module 'logf-ieee'.
23635         * modules/logf-ieee-tests: New file.
23636         * tests/test-logf-ieee.c: New file.
23637         * tests/test-log-ieee.h: New file.
23639         New module 'logf-ieee'.
23640         * modules/logf-ieee: New file.
23642 2012-03-10  Bruno Haible  <bruno@clisp.org>
23644         log: Fix bug introduced on 2012-03-09.
23645         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
23647 2012-03-10  Pádraig Brady  <P@draigBrady.com>
23649         timer-time: link explicitly with pthreads on glibc
23650         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
23651         to support static linking, when newer glibc is
23652         detected, as that contains pthread emulation of
23653         POSIX timer functions where required.
23654         * modules/timer-time: Depend on threadlib to
23655         pull in the appropriate library to link.
23657 2012-03-10  Bruno Haible  <bruno@clisp.org>
23659         log* tests: More tests.
23660         * tests/test-log.h: New file.
23661         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
23662         (main): Invoke test_function.
23663         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
23664         (main): Invoke test_function.
23665         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
23666         (main): Invoke test_function.
23667         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
23668         tests/randomd.c.
23669         (Makefile.am): Add randomd.c to test_log_SOURCES.
23670         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
23671         tests/randomf.c.
23672         (Makefile.am): Add randomf.c to test_logf_SOURCES.
23673         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
23674         tests/randoml.c.
23675         (Depends-on): Add 'float'.
23676         (Makefile.am): Add randoml.c to test_logl_SOURCES.
23678 2012-03-09  Bruno Haible  <bruno@clisp.org>
23680         logl: Work around OSF/1 5.1 bug.
23681         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
23682         * lib/logl.c (logl): If logl exists, use it and provide just the
23683         workaround.
23684         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
23685         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
23686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
23687         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
23688         * modules/logl (configure.ac): Consider REPLACE_LOGL.
23689         (Depends-on): Update conditions.
23690         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
23692 2012-03-09  Bruno Haible  <bruno@clisp.org>
23694         logf: Work around OSF/1 5.1 bug.
23695         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
23696         * lib/logf.c (logf): If logf exists, use it and provide just the
23697         workaround.
23698         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
23699         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
23700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
23701         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
23702         * modules/logf (configure.ac): Consider REPLACE_LOGF.
23703         (Depends-on): Update conditions.
23704         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
23706 2012-03-09  Bruno Haible  <bruno@clisp.org>
23708         log: Work around OSF/1 5.1 bug.
23709         * lib/math.in.h (log): New declaration.
23710         * lib/log.c: New file.
23711         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
23712         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
23713         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
23714         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
23715         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
23716         * modules/log (Files): Add lib/log.c.
23717         (Depends-on): Add math.
23718         (configure.ac): If REPLACE_LOG is 1, compile an override.
23719         * tests/test-math-c++.cc: Check the declaration of log.
23720         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
23722 2012-03-09  Jim Meyering  <meyering@redhat.com>
23724         readtokens.c: adjust wording in a comment
23725         * lib/readtokens.c: Insert omitted "that" in a comment.
23727 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
23729         modechange: add notations +40, 00440, etc.
23730         * lib/modechange.c (mode_compile): Support new notations
23731         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
23733 2012-03-08  Bruno Haible  <bruno@clisp.org>
23735         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
23736         * m4/exp2l-ieee.m4: New file.
23737         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
23738         test whether exp2l works with a NaN argument and with a negative
23739         infinity argument. Replace it if not.
23740         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
23741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
23742         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
23743         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
23744         (Depends-on): Update conditions.
23745         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
23746         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
23747         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
23749         Tests for module 'exp2l-ieee'.
23750         * modules/exp2l-ieee-tests: New file.
23751         * tests/test-exp2l-ieee.c: New file.
23753         New module 'exp2l-ieee'.
23754         * modules/exp2l-ieee: New file.
23756         Tests for module 'exp2-ieee'.
23757         * modules/exp2-ieee-tests: New file.
23758         * tests/test-exp2-ieee.c: New file.
23760         New module 'exp2-ieee'.
23761         * modules/exp2-ieee: New file.
23763         Tests for module 'exp2f-ieee'.
23764         * modules/exp2f-ieee-tests: New file.
23765         * tests/test-exp2f-ieee.c: New file.
23766         * tests/test-exp2-ieee.h: New file.
23768         New module 'exp2f-ieee'.
23769         * modules/exp2f-ieee: New file.
23771 2012-03-08  Bruno Haible  <bruno@clisp.org>
23773         Tests for module 'exp2l'.
23774         * modules/exp2l-tests: New file.
23775         * tests/test-exp2l.c: New file.
23777         New module 'exp2l'.
23778         * lib/math.in.h (exp2l): New declaration.
23779         * lib/exp2l.c: New file.
23780         * lib/expl-table.c: New file, extracted from lib/expl.c.
23781         * lib/expl.c (gl_expl_table): New declaration.
23782         (expl): Remove expl_table. Update reference.
23783         * m4/exp2l.m4: New file.
23784         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
23785         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
23786         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
23787         * modules/exp2l: New file.
23788         * modules/expl (Files): Add lib/expl-table.c.
23789         (configure.ac): Compile also expl-table.c.
23790         * tests/test-math-c++.cc: Check the declaration of exp2l.
23791         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
23792         problem.
23794 2012-03-08  Bruno Haible  <bruno@clisp.org>
23796         Tests for module 'exp2f'.
23797         * modules/exp2f-tests: New file.
23798         * tests/test-exp2f.c: New file.
23800         New module 'exp2f'.
23801         * lib/math.in.h (exp2f): New declaration.
23802         * lib/exp2f.c: New file.
23803         * m4/exp2f.m4: New file.
23804         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
23805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
23806         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
23807         * modules/exp2f: New file.
23808         * tests/test-math-c++.cc: Check the declaration of exp2f.
23809         * doc/posix-functions/exp2f.texi: Mention the new module and the
23810         IRIX problem.
23812 2012-03-08  Bruno Haible  <bruno@clisp.org>
23814         Tests for module 'exp2'.
23815         * modules/exp2-tests: New file.
23816         * tests/test-exp2.c: New file.
23817         * tests/test-exp2.h: New file.
23819         New module 'exp2'.
23820         * lib/math.in.h (exp2): New declaration.
23821         * lib/exp2.c: New file.
23822         * m4/exp2.m4: New file.
23823         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
23824         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
23825         REPLACE_EXP2.
23826         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
23827         REPLACE_EXP2.
23828         * modules/exp2: New file.
23829         * tests/test-math-c++.cc: Check the declaration of exp2.
23830         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
23831         and OpenBSD problems.
23833 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
23835         savedir: fix comment typo
23836         * lib/savedir.c (savedirstream): Fix typo in comment.
23838 2012-03-08  Bruno Haible  <bruno@clisp.org>
23840         test-readtokens.c: use const; remove unwarranted cast
23841         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
23843 2012-03-08  Bruno Haible  <bruno@clisp.org>
23845         fmal: Avoid compilation error on AIX.
23846         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
23847         AIX 5.2..7.1.
23849 2012-03-08  Bruno Haible  <bruno@clisp.org>
23851         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
23852         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
23853         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
23854         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
23855         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
23856         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
23857         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
23859 2012-03-08  Bruno Haible  <bruno@clisp.org>
23861         remainderf: Override buggy system function on IRIX 6.5.
23862         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
23863         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
23864         when it exists.
23865         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
23867 2012-03-08  Jim Meyering  <meyering@redhat.com>
23869         test-readtokens.c: avoid const-related compilation warnings
23870         * tests/test-readtokens.c: Avoid const-related compilation warnings.
23872 2012-03-07  Jim Meyering  <meyering@redhat.com>
23873             Bruno Haible  <bruno@clisp.org>
23875         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
23876         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
23877         tests/randomd.c.
23878         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
23879         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
23880         tests/randoml.c.
23881         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
23883 2012-03-07  Bruno Haible  <bruno@clisp.org>
23885         expm1l: Avoid compilation error on AIX.
23886         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
23887         AIX 5.2..7.1.
23889 2012-03-07  Bruno Haible  <bruno@clisp.org>
23891         expm1l: Don't override undeclared system function on IRIX 6.5.
23892         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
23893         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
23894         it exists. Set HAVE_DECL_EXPM1L.
23895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
23896         HAVE_EXPM1L.
23897         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
23898         HAVE_EXPM1L.
23899         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
23901 2012-03-07  Bruno Haible  <bruno@clisp.org>
23903         remainderl: Don't override undeclared system function on IRIX 6.5.
23904         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
23905         HAVE_REMAINDERL.
23906         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
23907         declared when it exists. Set HAVE_DECL_REMAINDERL.
23908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
23909         not HAVE_REMAINDERL.
23910         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
23911         HAVE_REMAINDERL.
23912         * doc/posix-functions/remainderl.texi: Mention missing declaration
23913         problem.
23915 2012-03-07  Bruno Haible  <bruno@clisp.org>
23917         rintf: Don't override undeclared system function on IRIX 6.5.
23918         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
23919         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
23920         exists. Set HAVE_DECL_RINTF.
23921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
23922         HAVE_RINTF.
23923         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
23924         HAVE_RINTF.
23925         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
23927 2012-03-07  Bruno Haible  <bruno@clisp.org>
23929         roundl: Avoid compilation error on AIX.
23930         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
23931         AIX 5.2..7.1.
23933 2012-03-07  Bruno Haible  <bruno@clisp.org>
23935         roundl: Don't override undeclared system function on IRIX 6.5.
23936         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
23937         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
23938         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
23939         * modules/roundl (configure.ac): For replacement code, test
23940         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
23941         (Depends-on): Update conditions.
23942         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
23944 2012-03-07  Bruno Haible  <bruno@clisp.org>
23946         roundf: Don't override undeclared system function on IRIX 6.5.
23947         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
23948         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
23949         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
23950         * modules/roundf (configure.ac): For replacement code, test
23951         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
23952         (Depends-on): Update conditions.
23953         * modules/roundf-ieee (Depends-on): Update conditions.
23954         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
23956 2012-03-07  Bruno Haible  <bruno@clisp.org>
23958         round: Don't override undeclared system function on IRIX 6.5.
23959         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
23960         argument.
23961         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
23962         also when it is not declared. Set HAVE_ROUND. For replacement code,
23963         test HAVE_ROUND, not HAVE_DECL_ROUND.
23964         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
23965         not HAVE_DECL_ROUND.
23966         (Depends-on): Update conditions.
23967         * modules/round-ieee (Depends-on): Update conditions.
23968         * doc/posix-functions/round.texi: Mention the IRIX problem.
23970 2012-03-07  Bruno Haible  <bruno@clisp.org>
23972         copysignf: Don't override undeclared system function on IRIX 6.5.
23973         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
23974         HAVE_COPYSIGNF.
23975         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
23976         declared when it exists. Set HAVE_DECL_COPYSIGNF.
23977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
23978         not HAVE_COPYSIGNF.
23979         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
23980         HAVE_COPYSIGNF.
23981         * doc/posix-functions/copysignf.texi: Mention missing declaration
23982         problem.
23984 2012-03-07  Jim Meyering  <meyering@redhat.com>
23986         readtokens: add tests
23987         * modules/readtokens-tests: New file.
23988         * tests/test-readtokens.c: New file.
23990 2012-03-07  Jim Meyering  <meyering@redhat.com>
23992         quotearg: the module must now include quote.h
23993         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
23994         So must the module.
23995         * modules/quotearg (Files): Add quote.h.
23997 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
23999         readtokens: avoid core dumps with unusual calling patterns
24000         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
24001         * lib/readtokens.c: Include limits.h.
24002         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
24003         (readtoken): Don't cache the delimiters; the cache code was buggy
24004         if !delim && saved_delim, or if the new n_delim differs from the old.
24005         Also, it wasn't thread-safe.
24007 2012-03-07  Bruno Haible  <bruno@clisp.org>
24009         quote: Adhere to common module description layout.
24010         * modules/quote (Makefile.am): Add back empty section.
24012 2012-03-06  Akim Demaille  <demaille@gostai.com>
24014         quote: fuse into quotearg
24015         This patch is made for the benefit of Bison.
24016         quote does not leave the choice of the quoting style to the user.
24017         quoting_style provides poor customizability, yet quoting_options,
24018         which is very rich, is hidden inside quotearg.c.  So in order to
24019         allow quote customization, move its implementation to quotearg.c.
24020         * lib/quote.c: Remove.
24021         * modules/quote: Adjust.
24022         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
24023         warning: provide all the members of literal structs.
24024         (quote_quoting_options): New.
24025         (quote, quote_n): Import implementation from quote.c.
24026         * lib/quote.h: Import the comments from quote.c.
24027         (quote_quoting_options): New.
24029 2012-03-06  Bruno Haible  <bruno@clisp.org>
24031         Tests for module 'expm1l-ieee'.
24032         * modules/expm1l-ieee-tests: New file.
24033         * tests/test-expm1l-ieee.c: New file.
24035         New module 'expm1l-ieee'.
24036         * modules/expm1l-ieee: New file.
24038         Tests for module 'expm1f-ieee'.
24039         * modules/expm1f-ieee-tests: New file.
24040         * tests/test-expm1f-ieee.c: New file.
24042         New module 'expm1f-ieee'.
24043         * modules/expm1f-ieee: New file.
24045         Tests for module 'expm1-ieee'.
24046         * modules/expm1-ieee-tests: New file.
24047         * tests/test-expm1-ieee.c: New file.
24048         * tests/test-expm1-ieee.h: New file.
24050         New module 'expm1-ieee'.
24051         * modules/expm1-ieee: New file.
24052         * m4/expm1-ieee.m4: New file.
24053         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
24054         whether expm1 works with a minus zero argument. Replace it if not.
24055         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
24056         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
24057         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
24058         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
24059         (Depends-on): Update conditions.
24060         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
24061         AIX problem.
24063 2012-03-06  Bruno Haible  <bruno@clisp.org>
24065         Work around expm1f bug on IRIX 6.5.
24066         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
24067         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
24068         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
24069         not work.
24070         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
24071         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
24072         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
24073         (Depends-on): Update conditions.
24074         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
24076 2012-03-06  Bruno Haible  <bruno@clisp.org>
24078         Tests for module 'expm1l'.
24079         * modules/expm1l-tests: New file.
24080         * tests/test-expm1l.c: New file.
24082         New module 'expm1l'.
24083         * lib/math.in.h (expm1l): New declaration.
24084         * lib/expm1l.c: New file.
24085         * m4/expm1l.m4: New file.
24086         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
24087         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
24088         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
24089         * modules/expm1l: New file.
24090         * tests/test-math-c++.cc: Check the declaration of expm1l.
24091         * doc/posix-functions/expm1l.texi: Mention the new module.
24093 2012-03-06  Bruno Haible  <bruno@clisp.org>
24095         Tests for module 'expm1f'.
24096         * modules/expm1f-tests: New file.
24097         * tests/test-expm1f.c: New file.
24099         New module 'expm1f'.
24100         * lib/math.in.h (expm1f): New declaration.
24101         * lib/expm1f.c: New file.
24102         * m4/expm1f.m4: New file.
24103         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
24104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
24105         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
24106         * modules/expm1f: New file.
24107         * tests/test-math-c++.cc: Check the declaration of expm1f.
24108         * doc/posix-functions/expm1f.texi: Mention the new module.
24110 2012-03-06  Bruno Haible  <bruno@clisp.org>
24112         Tests for module 'expm1'.
24113         * modules/expm1-tests: New file.
24114         * tests/test-expm1.c: New file.
24115         * tests/test-expm1.h: New file.
24117         New module 'expm1'.
24118         * lib/math.in.h (expm1): New declaration.
24119         * lib/expm1.c: New file.
24120         * m4/expm1.m4: New file.
24121         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
24122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
24123         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
24124         * modules/expm1: New file.
24125         * tests/test-math-c++.cc: Check the declaration of expm1.
24126         * doc/posix-functions/expm1.texi: Mention the new module.
24128 2012-03-06  Bruno Haible  <bruno@clisp.org>
24130         math: Ensure declarations of math functions.
24131         * modules/acosf (Depends-on): Add 'extensions'.
24132         * modules/asinf (Depends-on): Likewise.
24133         * modules/atan2f (Depends-on): Likewise.
24134         * modules/atanf (Depends-on): Likewise.
24135         * modules/cbrt (Depends-on): Likewise.
24136         * modules/cbrtf (Depends-on): Likewise.
24137         * modules/cbrtl (Depends-on): Likewise.
24138         * modules/copysignf (Depends-on): Likewise.
24139         * modules/copysignl (Depends-on): Likewise.
24140         * modules/cosf (Depends-on): Likewise.
24141         * modules/coshf (Depends-on): Likewise.
24142         * modules/expf (Depends-on): Likewise.
24143         * modules/fabsf (Depends-on): Likewise.
24144         * modules/fabsl (Depends-on): Likewise.
24145         * modules/fmaf (Depends-on): Likewise.
24146         * modules/fmal (Depends-on): Likewise.
24147         * modules/fmodf (Depends-on): Likewise.
24148         * modules/fmodl (Depends-on): Likewise.
24149         * modules/frexpf (Depends-on): Likewise.
24150         * modules/frexpl (Depends-on): Likewise.
24151         * modules/hypot (Depends-on): Likewise.
24152         * modules/hypotf (Depends-on): Likewise.
24153         * modules/hypotl (Depends-on): Likewise.
24154         * modules/ldexpf (Depends-on): Likewise.
24155         * modules/ldexpl (Depends-on): Likewise.
24156         * modules/log10f (Depends-on): Likewise.
24157         * modules/log10l (Depends-on): Likewise.
24158         * modules/log1p (Depends-on): Likewise.
24159         * modules/logb (Depends-on): Likewise.
24160         * modules/logf (Depends-on): Likewise.
24161         * modules/modff (Depends-on): Likewise.
24162         * modules/modfl (Depends-on): Likewise.
24163         * modules/powf (Depends-on): Likewise.
24164         * modules/remainderf (Depends-on): Likewise.
24165         * modules/remainderl (Depends-on): Likewise.
24166         * modules/rintf (Depends-on): Likewise.
24167         * modules/rintl (Depends-on): Likewise.
24168         * modules/sinf (Depends-on): Likewise.
24169         * modules/sinhf (Depends-on): Likewise.
24170         * modules/sqrtf (Depends-on): Likewise.
24171         * modules/tanf (Depends-on): Likewise.
24172         * modules/tanhf (Depends-on): Likewise.
24173         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
24174         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
24175         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
24176         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
24177         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
24178         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
24179         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
24180         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
24181         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
24182         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
24183         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
24184         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
24185         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
24186         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
24187         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
24188         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
24189         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
24190         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
24191         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
24192         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
24193         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
24194         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
24195         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
24196         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
24197         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
24198         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
24199         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
24200         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
24201         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
24202         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
24203         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
24204         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
24205         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
24206         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
24207         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
24208         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
24209         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
24210         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
24211         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
24212         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
24213         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
24215 2012-03-06  Bruno Haible  <bruno@clisp.org>
24217         math: Update module names in warnings.
24218         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24219         tanl): Use specific module name in warn-on-use warning.
24221 2012-03-06  Bruno Haible  <bruno@clisp.org>
24223         expl: Simplify computation.
24224         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
24226 2012-03-05  Bruno Haible  <bruno@clisp.org>
24228         exp* tests: More tests.
24229         * tests/test-exp.h: New file.
24230         * tests/test-exp.c: Include <float.h> and test-exp.h.
24231         (main): Invoke test_function.
24232         * tests/test-expf.c: Include <float.h> and test-exp.h.
24233         (main): Invoke test_function.
24234         * tests/test-expl.c: Include <float.h> and test-exp.h.
24235         (main): Invoke test_function.
24236         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
24237         (Makefile.am): Add randomd.c to test_exp_SOURCES.
24238         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
24239         (Makefile.am): Add randomf.c to test_expf_SOURCES.
24240         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
24241         (Depends-on): Add 'float'.
24242         (Makefile.am): Add randoml.c to test_expl_SOURCES.
24244         expl: Fix precision of computed result.
24245         * lib/expl.c: Completely rewritten.
24246         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
24247         (Maintainer): Add me.
24248         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
24250 2012-03-05  Bruno Haible  <bruno@clisp.org>
24252         cbrt* tests: More tests.
24253         * tests/test-cbrt.h: New file.
24254         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
24255         (main): Invoke test_function.
24256         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
24257         (main): Invoke test_function.
24258         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
24259         (main): Invoke test_function.
24260         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
24261         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
24262         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
24263         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
24264         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
24265         (Depends-on): Add 'float'.
24266         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
24268 2012-03-05  Bruno Haible  <bruno@clisp.org>
24270         hypot* tests: More tests.
24271         * tests/test-hypot.h: New file, partially extracted from
24272         tests/test-hypotl.c.
24273         * tests/test-hypot.c: Include test-hypot.h.
24274         (main): Invoke test_function.
24275         * tests/test-hypotf.c: Include test-hypot.h.
24276         (main): Invoke test_function.
24277         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
24278         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
24279         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
24280         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
24281         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
24282         tests/randomf.c.
24283         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
24284         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
24285         tests/randoml.c.
24286         (Depends-on): Add 'fpucw', 'float'.
24287         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
24289 2012-03-05  Bruno Haible  <bruno@clisp.org>
24291         fpucw: Doc about FreeBSD.
24292         * lib/fpucw.h: Mention FreeBSD in comments.
24294 2012-03-04  Bruno Haible  <bruno@clisp.org>
24296         sqrt* tests: More tests.
24297         * tests/test-sqrt.h: New file.
24298         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
24299         (main): Invoke test_function.
24300         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
24301         (main): Invoke test_function.
24302         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
24303         (main): Invoke test_function.
24304         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
24305         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
24306         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
24307         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
24308         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
24309         (Depends-on): Add 'float'.
24310         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
24312 2012-03-04  Bruno Haible  <bruno@clisp.org>
24314         remainder* tests: More tests.
24315         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
24316         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
24317         (main): Invoke test_function.
24318         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
24319         (main): Invoke test_function.
24320         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
24321         (main): Invoke test_function.
24322         * modules/remainder-tests (Files): Add tests/test-remainder.h,
24323         tests/randomd.c.
24324         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
24325         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
24326         tests/randomf.c.
24327         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
24328         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
24329         tests/randoml.c.
24330         (Depends-on): Add 'float'.
24331         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
24333 2012-03-04  Bruno Haible  <bruno@clisp.org>
24335         remainder, remainderf, remainderl: Fix computation for large quotients.
24336         * lib/remainder.c: Completely rewritten.
24337         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
24338         USE_FLOAT.
24339         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
24340         USE_LONG_DOUBLE.
24341         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
24342         isnand, isinf. Remove round, fma.
24343         * modules/remainderf (Files): Add lib/remainder.c.
24344         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
24345         Remove roundf, fmaf.
24346         * modules/remainderl (Files): Add lib/remainder.c.
24347         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
24348         isinf. Remove roundl, fmal.
24349         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
24350         REMAINDER_LIBM.
24351         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
24352         REMAINDERF_LIBM.
24353         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
24354         REMAINDERL_LIBM.
24356 2012-03-04  Bruno Haible  <bruno@clisp.org>
24358         fmod* tests: More tests.
24359         * tests/test-fmod.h (my_ldexp): New function.
24360         (test_function): Reduce amount of random numbers to test. Add tests
24361         of very large quotients x / y.
24362         * tests/test-fmod.c (MAX_EXP): New macro.
24363         * tests/test-fmodf.c (MAX_EXP): Likewise.
24364         * tests/test-fmodl.c (MAX_EXP): Likewise.
24366 2012-03-04  Bruno Haible  <bruno@clisp.org>
24368         fmod, fmodl: Fix computation for large quotients x / y.
24369         * lib/fmod.c: Completely rewritten.
24370         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
24371         USE_LONG_DOUBLE.
24372         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
24373         isnand. Remove fma.
24374         * modules/fmodl (Files): Add lib/fmod.c.
24375         (Depends-on): Add float, isfinite, signbit, fabsl,
24376         frexpl, ldexpl, isnanl. Remove fma.
24377         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
24378         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
24380 2012-03-03  Bruno Haible  <bruno@clisp.org>
24382         fmod* tests: More tests.
24383         * tests/test-fmod.h: New file.
24384         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
24385         (main): Invoke test_function.
24386         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
24387         (main): Invoke test_function.
24388         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
24389         (main): Invoke test_function.
24390         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
24391         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
24392         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
24393         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
24394         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
24395         (Depends-on): Add 'float'.
24396         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
24398 2012-03-03  Bruno Haible  <bruno@clisp.org>
24400         rint* tests: More tests.
24401         * tests/test-rint.h: New file, partially extracted from
24402         tests/test-rintl.c.
24403         * tests/test-rint.c: Include test-rint.h.
24404         (main): Invoke test_function.
24405         * tests/test-rintf.c: Include test-rint.h.
24406         (main): Invoke test_function.
24407         * tests/test-rintl.c: Include test-rint.h.
24408         (main): Invoke test_function.
24409         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
24410         (Makefile.am): Add randomd.c to test_rint_SOURCES.
24411         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
24412         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
24413         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
24414         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
24416 2012-03-03  Bruno Haible  <bruno@clisp.org>
24418         modf* tests: More tests.
24419         * tests/test-modf.h: New file.
24420         * tests/test-modf.c: Include <float.h> and test-modf.h.
24421         (main): Invoke test_function.
24422         * tests/test-modff.c: Include <float.h> and test-modf.h.
24423         (main): Invoke test_function.
24424         * tests/test-modfl.c: Include <float.h> and test-modf.h.
24425         (main): Invoke test_function.
24426         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
24427         (Makefile.am): Add randomd.c to test_modf_SOURCES.
24428         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
24429         (Makefile.am): Add randomf.c to test_modff_SOURCES.
24430         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
24431         (Depends-on): Add 'float'.
24432         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
24434 2012-03-03  Bruno Haible  <bruno@clisp.org>
24436         fabs* tests: More tests.
24437         * tests/test-fabs.h: New file, partially extracted from
24438         tests/test-fabsl.c.
24439         * tests/test-fabs.c (RANDOM): New macro.
24440         * tests/test-fabsf.c (RANDOM): New macro.
24441         * tests/test-fabsl.c (RANDOM): New macro.
24442         * modules/fabs-tests (Files): Add tests/randomd.c.
24443         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
24444         * modules/fabsf-tests (Files): Add tests/randomf.c.
24445         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
24446         * modules/fabsl-tests (Files): Add tests/randoml.c.
24447         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
24449 2012-03-03  Bruno Haible  <bruno@clisp.org>
24451         ldexp* tests: More tests.
24452         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
24453         * tests/test-ldexp.c (RANDOM): New macro.
24454         * tests/test-ldexpf.c (RANDOM): New macro.
24455         * tests/test-ldexpl.c (RANDOM): New macro.
24456         * modules/ldexp-tests (Files): Add tests/randomd.c.
24457         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
24458         * modules/ldexpf-tests (Files): Add tests/randomf.c.
24459         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
24460         * modules/ldexpl-tests (Files): Add tests/randoml.c.
24461         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
24463 2012-03-03  Bruno Haible  <bruno@clisp.org>
24465         frexp* tests: More tests.
24466         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
24467         * tests/test-frexp.c (RANDOM): New macro.
24468         * tests/test-frexpf.c (RANDOM): New macro.
24469         * tests/test-frexpl.c (RANDOM): New macro.
24470         * modules/frexp-tests (Files): Add tests/randomd.c.
24471         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
24472         * modules/frexpf-tests (Files): Add tests/randomf.c.
24473         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
24474         * modules/frexpl-tests (Files): Add tests/randoml.c.
24475         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
24477 2012-03-03  Bruno Haible  <bruno@clisp.org>
24479         Support for pseudo-random numbers in tests.
24480         * tests/randomf.c: New file.
24481         * tests/randomd.c: New file.
24482         * tests/randoml.c: New file.
24483         * tests/macros.h (randomf, randomd, randoml): New declarations.
24485 2012-03-03  Bruno Haible  <bruno@clisp.org>
24487         frexp* tests: Refactor.
24488         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
24489         * tests/test-frexp.c: Include and use it.
24490         * tests/test-frexpf.c: Likewise.
24491         * tests/test-frexpl.c: Likewise.
24492         * modules/frexp-tests (Files): Add tests/test-frexp.h.
24493         * modules/frexpf-tests (Files): Likewise.
24494         * modules/frexpl-tests (Files): Likewise.
24496 2012-03-02  Jim Meyering  <meyering@redhat.com>
24498         maint: don't specify XZ_OPT=-9ev in dist-related rule
24499         Using xz's -9 option is warranted only if you have a very large
24500         tarball (see xz's documentation for the sizes vs. presets), and
24501         requires 64MiB of memory at decompression time.
24502         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
24503         Automake's default of just "-e" is fine.  Override on a
24504         per-package basis by setting XZ_OPT e.g., in cfg.mk.
24506 2012-03-01  Eric Blake  <eblake@redhat.com>
24508         maint.mk: allow announcement for non-gnulib project
24509         * maint.mk (announcement): Skip gnulib version if not used.
24511 2012-03-01  Jim Meyering  <meyering@redhat.com>
24513         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
24514         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
24515         envvar settings cannot interfere.  Otherwise, setting envvars like
24516         prohibit=foo require=bar, etc. would cause spurious test failures.
24518 2012-03-01  Eric Blake  <eblake@redhat.com>
24520         maint.mk: add per-line exclusions to prohibitions
24521         * maint.mk (_sc_search_regexp): Add $exclude parameter.
24522         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
24523         (sc_const_long_option): Use it.
24525 2012-03-01  Bruno Haible  <bruno@clisp.org>
24527         Tests for module 'expl-ieee'.
24528         * modules/expl-ieee-tests: New file.
24529         * tests/test-expl-ieee.c: New file.
24531         New module 'expl-ieee'.
24532         * modules/expl-ieee: New file.
24534         Tests for module 'exp-ieee'.
24535         * modules/exp-ieee-tests: New file.
24536         * tests/test-exp-ieee.c: New file.
24538         New module 'exp-ieee'.
24539         * modules/exp-ieee: New file.
24541         Tests for module 'expf-ieee'.
24542         * modules/expf-ieee-tests: New file.
24543         * tests/test-expf-ieee.c: New file.
24544         * tests/test-exp-ieee.h: New file.
24546         New module 'expf-ieee'.
24547         * modules/expf-ieee: New file.
24549 2012-02-29  Bruno Haible  <bruno@clisp.org>
24551         cbrtl-ieee: Work around test failure on IRIX 6.5.
24552         * m4/cbrtl-ieee.m4: New file.
24553         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
24554         test whether cbrtl works with a minus zero argument. Replace it if not.
24555         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
24556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
24557         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
24558         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
24559         (Depends-on): Update conditions.
24560         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
24561         m4/signbit.m4.
24562         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
24563         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
24564         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
24566         Tests for module 'cbrtl-ieee'.
24567         * modules/cbrtl-ieee-tests: New file.
24568         * tests/test-cbrtl-ieee.c: New file.
24570         New module 'cbrtl-ieee'.
24571         * modules/cbrtl-ieee: New file.
24573         Tests for module 'cbrt-ieee'.
24574         * modules/cbrt-ieee-tests: New file.
24575         * tests/test-cbrt-ieee.c: New file.
24577         New module 'cbrt-ieee'.
24578         * modules/cbrt-ieee: New file.
24580         Tests for module 'cbrtf-ieee'.
24581         * modules/cbrtf-ieee-tests: New file.
24582         * tests/test-cbrtf-ieee.c: New file.
24583         * tests/test-cbrt-ieee.h: New file.
24585         New module 'cbrtf-ieee'.
24586         * modules/cbrtf-ieee: New file.
24588 2012-02-29  Bruno Haible  <bruno@clisp.org>
24590         cbrtf: Work around bug in IRIX 6.5 system function.
24591         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
24592         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
24593         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
24594         work.
24595         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
24596         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
24597         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
24598         (Depends-on): Update conditions.
24599         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
24601 2012-02-29  Bruno Haible  <bruno@clisp.org>
24603         Tests for module 'cbrtl'.
24604         * modules/cbrtl-tests: New file.
24605         * tests/test-cbrtl.c: New file.
24607         New module 'cbrtl'.
24608         * lib/math.in.h (cbrtl): New declaration.
24609         * lib/cbrtl.c: New file.
24610         * m4/cbrtl.m4: New file.
24611         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
24612         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
24613         HAVE_DECL_CBRTL.
24614         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
24615         HAVE_DECL_CBRTL.
24616         * modules/cbrtl: New file.
24617         * tests/test-math-c++.cc: Check the declaration of cbrtl.
24618         * doc/posix-functions/cbrtl.texi: Mention the new module.
24620 2012-02-29  Bruno Haible  <bruno@clisp.org>
24622         Tests for module 'cbrtf'.
24623         * modules/cbrtf-tests: New file.
24624         * tests/test-cbrtf.c: New file.
24626         New module 'cbrtf'.
24627         * lib/math.in.h (cbrtf): New declaration.
24628         * lib/cbrtf.c: New file.
24629         * m4/cbrtf.m4: New file.
24630         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
24631         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
24632         HAVE_DECL_CBRTF.
24633         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
24634         HAVE_DECL_CBRTF.
24635         * modules/cbrtf: New file.
24636         * tests/test-math-c++.cc: Check the declaration of cbrtf.
24637         * doc/posix-functions/cbrtf.texi: Mention the new module.
24639 2012-02-29  Bruno Haible  <bruno@clisp.org>
24641         cbrt: Provide replacement on MSVC and Minix.
24642         * lib/math.in.h (cbrt): New declaration.
24643         * lib/cbrt.c: New file.
24644         * m4/cbrt.m4: New file.
24645         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
24646         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
24647         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
24648         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
24649         (Depends-on): Add dependencies.
24650         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
24651         * tests/test-math-c++.cc: Check the declaration of cbrt.
24652         * doc/posix-functions/cbrt.texi: Mention that the module provides a
24653         replacement.
24655 2012-02-29  Bruno Haible  <bruno@clisp.org>
24657         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
24658         * m4/hypotl-ieee.m4: New file.
24659         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
24660         test whether hypotl works with mixed NaN and Infinity arguments.
24661         Replace it if not.
24662         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
24663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
24664         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
24665         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
24666         (Depends-on): Update conditions.
24667         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
24668         (Depends-on): Add hypot-ieee.
24669         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
24670         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
24672         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
24673         * m4/hypotf-ieee.m4: New file.
24674         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
24675         test whether hypotf works with mixed NaN and Infinity arguments.
24676         Replace it if not.
24677         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
24678         (Depends-on): Add hypot-ieee.
24679         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
24680         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
24682         hypot-ieee: Work around test failure on OSF/1 and native Windows.
24683         * lib/math.in.h (hypot): New declaration.
24684         * lib/hypot.c: New file.
24685         * m4/hypot-ieee.m4: New file.
24686         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
24687         whether hypot works with mixed NaN and Infinity arguments. Replace it
24688         if not.
24689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
24690         REPLACE_HYPOT.
24691         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
24692         * modules/hypot (Files): Add lib/hypot.c.
24693         (Depends-on): Add dependencies.
24694         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
24695         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
24696         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
24697         * tests/test-math-c++.cc: Check the declaration of hypot.
24698         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
24700         Tests for module 'hypotl-ieee'.
24701         * modules/hypotl-ieee-tests: New file.
24702         * tests/test-hypotl-ieee.c: New file.
24704         New module 'hypotl-ieee'.
24705         * modules/hypotl-ieee: New file.
24707         Tests for module 'hypot-ieee'.
24708         * modules/hypot-ieee-tests: New file.
24709         * tests/test-hypot-ieee.c: New file.
24711         New module 'hypot-ieee'.
24712         * modules/hypot-ieee: New file.
24714         Tests for module 'hypotf-ieee'.
24715         * modules/hypotf-ieee-tests: New file.
24716         * tests/test-hypotf-ieee.c: New file.
24717         * tests/test-hypot-ieee.h: New file.
24719         New module 'hypotf-ieee'.
24720         * modules/hypotf-ieee: New file.
24722 2012-02-29  Bruno Haible  <bruno@clisp.org>
24724         Remove unused variables.
24725         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
24726         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
24727         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
24728         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
24730 2012-02-29  Eric Blake  <eblake@redhat.com>
24732         termios: fix pid_t always, not just for tcgetsid
24733         * doc/posix-headers/termios.texi (termios.h): Mention problem.
24734         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
24735         just when building tcgetsid.
24737 2012-02-29  Bruno Haible  <bruno@clisp.org>
24739         Tests for module 'hypotl'.
24740         * modules/hypotl-tests: New file.
24741         * tests/test-hypotl.c: New file.
24743         New module 'hypotl'.
24744         * lib/math.in.h (hypotl): New declaration.
24745         * lib/hypotl.c: New file.
24746         * m4/hypotl.m4: New file.
24747         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
24748         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
24749         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
24750         * modules/hypotl: New file.
24751         * tests/test-math-c++.cc: Check the hypotl declaration.
24752         * doc/posix-functions/hypotl.texi: Mention the new module.
24754 2012-02-29  Eric Blake  <eblake@redhat.com>
24756         tcgetsid: fix cygwin header bug
24757         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
24759         docs: update cygwin progress
24760         * doc/posix-functions/llround.texi (llround): Added in cygwin
24761         1.7.8.
24762         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
24763         * doc/glibc-functions/program_invocation_name.texi
24764         (program_invocation_name): Likewise.
24765         * doc/glibc-functions/program_invocation_short_name.texi
24766         (program_invocation_short_name): Likewise.
24767         * doc/glibc-functions/madvise.texi (madvise): Likewise.
24768         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
24769         Likewise.
24770         * doc/posix-functions/pthread_spin_destroy.texi
24771         (pthread_spin_destroy): Added in cygwin 1.7.10.
24772         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
24773         Likewise.
24774         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
24775         Likewise.
24776         * doc/posix-functions/pthread_spin_trylock.texi
24777         (pthread_spin_trylock): Likewise.
24778         * doc/posix-functions/pthread_spin_unlock.texi
24779         (pthread_spin_unlock): Likewise.
24780         * doc/posix-functions/pthread_setschedprio.texi
24781         (pthread_setschedprio): Likewise.
24782         * doc/posix-functions/pthread_attr_getstack.texi
24783         (pthread_attr_getstack): Likewise.
24784         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
24785         (pthread_attr_getstackaddr): Likewise.
24786         * doc/glibc-functions/pthread_getattr_np.texi
24787         (pthread_getattr_np): Likewise.
24788         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
24789         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
24790         * doc/posix-functions/clock_settime.texi (clock_settime):
24791         Likewise.
24792         * doc/posix-functions/pthread_attr_getguardsize.texi
24793         (pthread_attr_getguardsize): Likewise.
24794         * doc/posix-functions/pthread_attr_setguardsize.texi
24795         (pthread_attr_setguardsize): Likewise.
24796         * doc/posix-functions/pthread_attr_setstack.texi
24797         (pthread_attr_setstack): Likewise.
24798         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
24799         (pthread_attr_setstackaddr): Likewise.
24800         * doc/posix-functions/clock_getcpuclockid.texi
24801         (clock_getcpuclockid): Likewise.
24802         * doc/posix-functions/pthread_getcpuclockid.texi
24803         (pthread_getcpuclockid): Likewise.
24804         * doc/glibc-functions/error.texi (error): Likewise.
24805         * doc/glibc-functions/error_at_line.texi (error_at_line):
24806         Likewise.
24807         * doc/glibc-functions/error_message_count.texi
24808         (error_message_count): Likewise.
24809         * doc/glibc-functions/error_one_per_line.texi
24810         (error_one_per_line): Likewise.
24811         * doc/glibc-functions/error_print_progname.texi
24812         (error_print_progname): Likewise.
24813         * doc/posix-functions/pthread_condattr_getclock.texi
24814         (pthread_condattr_getclock): Likewise.
24815         * doc/posix-functions/pthread_condattr_setclock.texi
24816         (pthread_condattr_setclock): Likewise.
24817         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
24818         Likewise.
24819         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
24820         * doc/glibc-functions/getpt.texi (getpt): Likewise.
24821         * doc/glibc-functions/get_current_dir_name.texi
24822         (get_current_dir_name): Likewise.
24823         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
24824         Likewise.
24825         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
24826         wrong return type.
24827         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
24828         1.7.11.
24830 2012-02-29  Bruno Haible  <bruno@clisp.org>
24832         Tests for module 'hypotf'.
24833         * modules/hypotf-tests: New file.
24834         * tests/test-hypotf.c: New file.
24836         New module 'hypotf'.
24837         * lib/math.in.h (hypotf): New declaration.
24838         * lib/hypotf.c: New file.
24839         * m4/hypotf.m4: New file.
24840         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
24841         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
24842         REPLACE_HYPOTF.
24843         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
24844         REPLACE_HYPOTF.
24845         * modules/hypotf: New file.
24846         * tests/test-math-c++.cc: Check the hypotf declaration.
24847         * doc/posix-functions/hypotf.texi: Mention the new module.
24849         hypot: Prepare for hypotf module.
24850         * m4/hypot.m4: New file.
24851         * modules/hypot (Files): Add m4/hypot.m4.
24852         (configure.ac): Invoke gl_FUNC_HYPOT.
24854 2012-02-29  Bruno Haible  <bruno@clisp.org>
24856         hypot tests: More tests.
24857         * tests/test-hypot.c: Include <float.h>.
24858         (main): Add tests about overflow and underflow.
24860 2012-02-29  Bruno Haible  <bruno@clisp.org>
24862         math code: Add comments.
24863         * lib/acosl.c: Add comment about related glibc source files.
24864         * lib/asinl.c: Likewise.
24865         * lib/atanl.c: Likewise.
24866         * lib/expl.c: Likewise.
24867         * lib/logl.c: Likewise.
24868         * lib/sincosl.c: Likewise.
24869         * lib/sinl.c: Likewise.
24870         * lib/tanl.c: Likewise.
24871         * lib/trigl.c: Likewise.
24872         * lib/cosl.c: Likewise. Fix comments.
24874 2012-02-28  Bruno Haible  <bruno@clisp.org>
24876         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
24877         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
24878         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
24879         HUGE_VALL are defined.
24880         (numeric_equald): Renamed from numeric_equal.
24881         (numeric_equalf, numeric_equall): New functions.
24882         (main): Check also HUGE_VALF, HUGE_VALL.
24883         * modules/math-tests (Files): Add tests/macros.h.
24884         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
24885         HUGE_VALL.
24887 2012-02-28  Bruno Haible  <bruno@clisp.org>
24889         doc: Move ISO C11 feature notes into POSIX chapters.
24890         * doc/posix-functions/aligned_alloc.texi: Renamed from
24891         doc/glibc-functions/aligned_alloc.texi.
24892         * doc/posix-functions/quick_exit.texi: Renamed from
24893         doc/glibc-functions/quick_exit.texi.
24894         * doc/posix-headers/uchar.texi: Renamed from
24895         doc/glibc-headers/uchar.texi.
24896         * doc/posix-functions/c16rtomb.texi: Renamed from
24897         doc/glibc-functions/c16rtomb.texi.
24898         * doc/posix-functions/c32rtomb.texi: Renamed from
24899         doc/glibc-functions/c32rtomb.texi.
24900         * doc/posix-functions/mbrtoc16.texi: Renamed from
24901         doc/glibc-functions/mbrtoc16.texi.
24902         * doc/posix-functions/mbrtoc32.texi: Renamed from
24903         doc/glibc-functions/mbrtoc32.texi.
24904         * doc/gnulib.texi: Update.
24905         (Glibc uchar.h): Remove section.
24906         Suggested by Eric Blake.
24908 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
24910         stdnoreturn: port to MSVC better
24911         MSVC standard headers use __declspec(noreturn), so #define noreturn
24912         to empty on that platform.  Reported by Bruno Haible in
24913         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
24914         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
24915         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
24917 2012-02-28  Bruno Haible  <bruno@clisp.org>
24919         doc: Mention new glibc headers and functions.
24920         * doc/glibc-headers/uchar.texi: New file.
24921         * doc/glibc-functions/aligned_alloc.texi: New file.
24922         * doc/glibc-functions/c16rtomb.texi: New file.
24923         * doc/glibc-functions/c32rtomb.texi: New file.
24924         * doc/glibc-functions/clock_adjtime.texi: New file.
24925         * doc/glibc-functions/fanotify_init.texi: New file.
24926         * doc/glibc-functions/fanotify_mark.texi: New file.
24927         * doc/glibc-functions/inet6_opt_append.texi: New file.
24928         * doc/glibc-functions/inet6_opt_find.texi: New file.
24929         * doc/glibc-functions/inet6_opt_finish.texi: New file.
24930         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
24931         * doc/glibc-functions/inet6_opt_init.texi: New file.
24932         * doc/glibc-functions/inet6_opt_next.texi: New file.
24933         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
24934         * doc/glibc-functions/inet6_rth_add.texi: New file.
24935         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
24936         * doc/glibc-functions/inet6_rth_init.texi: New file.
24937         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
24938         * doc/glibc-functions/inet6_rth_segments.texi: New file.
24939         * doc/glibc-functions/inet6_rth_space.texi: New file.
24940         * doc/glibc-functions/login.texi: New file.
24941         * doc/glibc-functions/mbrtoc16.texi: New file.
24942         * doc/glibc-functions/mbrtoc32.texi: New file.
24943         * doc/glibc-functions/name_to_handle_at.texi: New file.
24944         * doc/glibc-functions/ntp_gettimex.texi: New file.
24945         * doc/glibc-functions/open_by_handle_at.texi: New file.
24946         * doc/glibc-functions/prlimit.texi: New file.
24947         * doc/glibc-functions/process_vm_readv.texi: New file.
24948         * doc/glibc-functions/process_vm_writev.texi: New file.
24949         * doc/glibc-functions/recvmmsg.texi: New file.
24950         * doc/glibc-functions/scandirat.texi: New file.
24951         * doc/glibc-functions/sendmmsg.texi: New file.
24952         * doc/glibc-functions/setns.texi: New file.
24953         * doc/glibc-functions/timespec_get.texi: New file.
24954         * doc/gnulib.texi: Include them.
24955         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
24956         sections.
24957         Reported by Eric Blake.
24959 2012-02-28  Bruno Haible  <bruno@clisp.org>
24961         Avoid compilation errors with MSVC option -fp:strict.
24962         * lib/floor.c: Use MSVC specific pragma fenv_access.
24963         * lib/ceil.c: Likewise.
24964         * lib/trunc.c: Likewise.
24965         * lib/round.c: Likewise.
24966         * lib/rint.c: Likewise.
24967         * lib/fma.c: Likewise.
24968         * lib/integer_length.c: Likewise.
24969         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
24970         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
24971         * tests/test-floor2.c: Likewise.
24972         * tests/test-floorf2.c: Likewise.
24973         * tests/test-ceil2.c: Likewise.
24974         * tests/test-ceilf2.c: Likewise.
24975         * tests/test-trunc2.c: Likewise.
24976         * tests/test-truncf2.c: Likewise.
24977         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24979 2012-02-27  Bruno Haible  <bruno@clisp.org>
24981         Tests for module 'sqrtl-ieee'.
24982         * modules/sqrtl-ieee-tests: New file.
24983         * tests/test-sqrtl-ieee.c: New file.
24985         New module 'sqrtl-ieee'.
24986         * modules/sqrtl-ieee: New file.
24988         Tests for module 'sqrt-ieee'.
24989         * modules/sqrt-ieee-tests: New file.
24990         * tests/test-sqrt-ieee.c: New file.
24992         New module 'sqrt-ieee'.
24993         * modules/sqrt-ieee: New file.
24995         Tests for module 'sqrtf-ieee'.
24996         * modules/sqrtf-ieee-tests: New file.
24997         * tests/test-sqrtf-ieee.c: New file.
24998         * tests/test-sqrt-ieee.h: New file.
25000         New module 'sqrtf-ieee'.
25001         * modules/sqrtf-ieee: New file.
25003 2012-02-27  Bruno Haible  <bruno@clisp.org>
25005         remainderl-ieee: Work around test failure on OSF/1.
25006         * m4/remainderl-ieee.m4: New file.
25007         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
25008         present, test whether remainderl works with a zero second argument.
25009         Replace it if not.
25010         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
25011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
25012         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
25013         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
25014         (Depends-on): Update conditions.
25015         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
25016         (Depends-on): Add remainder-ieee.
25017         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
25018         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
25019         module.
25021         remainderf-ieee: Work around test failure on OSF/1.
25022         * m4/remainderf-ieee.m4: New file.
25023         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
25024         present, test whether remainderf works with a zero second argument.
25025         Replace it if not.
25026         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
25027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
25028         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
25029         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
25030         (Depends-on): Update conditions.
25031         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
25032         (Depends-on): Add remainder-ieee.
25033         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
25034         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
25035         module.
25037         remainder-ieee: Work around test failure on OSF/1.
25038         * m4/remainder-ieee.m4: New file.
25039         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
25040         present, test whether remainder works with a zero second argument.
25041         Replace it if not.
25042         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
25043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
25044         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
25045         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
25046         (Depends-on): Update dependencies.
25047         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
25048         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
25049         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
25051         Tests for module 'remainderl-ieee'.
25052         * modules/remainderl-ieee-tests: New file.
25053         * tests/test-remainderl-ieee.c: New file.
25055         New module 'remainderl-ieee'.
25056         * modules/remainderl-ieee: New file.
25058         Tests for module 'remainder-ieee'.
25059         * modules/remainder-ieee-tests: New file.
25060         * tests/test-remainder-ieee.c: New file.
25062         New module 'remainder-ieee'.
25063         * modules/remainder-ieee: New file.
25065         Tests for module 'remainderf-ieee'.
25066         * modules/remainderf-ieee-tests: New file.
25067         * tests/test-remainderf-ieee.c: New file.
25068         * tests/test-remainder-ieee.h: New file.
25070         New module 'remainderf-ieee'.
25071         * modules/remainderf-ieee: New file.
25073 2012-02-27  Bruno Haible  <bruno@clisp.org>
25075         modff, modfl: Fix configure syntax error.
25076         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
25077         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
25079 2012-02-27  Bruno Haible  <bruno@clisp.org>
25081         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
25082         * m4/fmodl-ieee.m4: New file.
25083         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
25084         whether fmodl works with zero arguments. Replace it if not.
25085         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
25086         (Depends-on): Add fmod-ieee.
25087         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
25088         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
25090         fmodf-ieee: Work around test failure on OSF/1.
25091         * m4/fmodf-ieee.m4: New file.
25092         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
25093         whether fmodf works with zero arguments. Replace it if not.
25094         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
25095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
25096         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
25097         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
25098         (Depends-on): Update dependencies.
25099         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
25100         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
25101         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
25103         fmodf-ieee: Work around test failure on MSVC 9.
25104         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
25105         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
25107         fmod-ieee: Work around test failures on OSF/1, mingw.
25108         * m4/fmod-ieee.m4: New file.
25109         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
25110         whether fmod works with zero arguments. Replace it if not.
25111         * lib/math.in.h (fmod): New declaration.
25112         * lib/fmod.c: New file.
25113         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
25114         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
25115         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
25116         * modules/fmod (Files): Add lib/fmod.c.
25117         (Depends-on): Add math, isinf, trunc, fma.
25118         (configure.ac): Arrange to compile lib/fmod.c if needed.
25119         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
25120         m4/signbit.m4.
25121         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
25122         * tests/test-math-c++.cc: Check the declaration of fmod.
25123         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
25125         fmodl-ieee: Fix test failures.
25126         * lib/fmodl.c (fmodl): Treat Inf specially.
25127         * modules/fmodl (Depends-on): Add isinf.
25129         Tests for module 'fmodl-ieee'.
25130         * modules/fmodl-ieee-tests: New file.
25131         * tests/test-fmodl-ieee.c: New file.
25133         New module 'fmodl-ieee'.
25134         * modules/fmodl-ieee: New file.
25136         Tests for module 'fmod-ieee'.
25137         * modules/fmod-ieee-tests: New file.
25138         * tests/test-fmod-ieee.c: New file.
25140         New module 'fmod-ieee'.
25141         * modules/fmod-ieee: New file.
25143         Tests for module 'fmodf-ieee'.
25144         * modules/fmodf-ieee-tests: New file.
25145         * tests/test-fmodf-ieee.c: New file.
25146         * tests/test-fmod-ieee.h: New file.
25148         New module 'fmodf-ieee'.
25149         * modules/fmodf-ieee: New file.
25151 2012-02-27  Bruno Haible  <bruno@clisp.org>
25153         Tests for module 'rintl-ieee'.
25154         * modules/rintl-ieee-tests: New file.
25155         * tests/test-rintl-ieee.c: New file.
25157         New module 'rintl-ieee'.
25158         * modules/rintl-ieee: New file.
25160         Tests for module 'rint-ieee'.
25161         * modules/rint-ieee-tests: New file.
25162         * tests/test-rint-ieee.c: New file.
25164         New module 'rint-ieee'.
25165         * modules/rint-ieee: New file.
25167         Tests for module 'rintf-ieee'.
25168         * modules/rintf-ieee-tests: New file.
25169         * tests/test-rintf-ieee.c: New file.
25170         * tests/test-rint-ieee.h: New file.
25172         New module 'rintf-ieee'.
25173         * modules/rintf-ieee: New file.
25175 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
25177         regex: re_search etc. should return -2 when memory exhausted
25178         This bug was uncovered when testing 'grep'.  Without the fix,
25179         re_search and friends return -1 when memory is exhausted, but -1
25180         means no match, and this causes grep to falsely report no-match
25181         instead of memory-exhaustion.  See
25182         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
25183         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
25184         trouble; this can occur if re_search_internal ran out of memory.
25186 2012-02-26  Bruno Haible  <bruno@clisp.org>
25188         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
25189         * m4/modfl-ieee.m4: New file.
25190         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
25191         whether modfl works with Inf. Replace it if not.
25192         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
25193         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
25194         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
25195         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
25196         (Depends-on): Update dependencies.
25197         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
25198         m4/signbit.m4.
25199         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
25200         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
25202         modfl-ieee: Fix dependencies.
25203         * modules/modfl-ieee (Depends-on): Add modf-ieee.
25205         modfl-ieee: Fix test failures.
25206         * lib/modfl.c (modfl): Treat NaN and Inf specially.
25207         * modules/modfl (Depends-on): Add isfinite, isinf.
25209         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
25210         * m4/modff-ieee.m4: New file.
25211         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
25212         whether modff works with NaN and Inf. Replace it if not.
25213         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
25214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
25215         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
25216         * modules/modff (configure.ac): Consider REPLACE_MODFF.
25217         (Depends-on): Update dependencies.
25218         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
25219         m4/signbit.m4.
25220         (Depends-on): Add modf-ieee.
25221         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
25222         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
25224         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
25225         * m4/modf-ieee.m4: New file.
25226         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
25227         whether modf works with NaN and Inf. Replace it if not.
25228         * lib/math.in.h (modf): New declaration.
25229         * lib/modf.c: New file.
25230         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
25231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
25232         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
25233         * modules/modf (Files): Add lib/modf.c.
25234         (Depends-on): Add math, isfinite, trunc, isinf.
25235         (configure.ac): Addrange to compile lib/modf.c if needed.
25236         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
25237         m4/signbit.m4.
25238         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
25239         * tests/test-math-c++.cc: Check the declaration of modf.
25240         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
25242         Tests for module 'modfl-ieee'.
25243         * modules/modfl-ieee-tests: New file.
25244         * tests/test-modfl-ieee.c: New file.
25246         New module 'modfl-ieee'.
25247         * modules/modfl-ieee: New file.
25249         Tests for module 'modf-ieee'.
25250         * modules/modf-ieee-tests: New file.
25251         * tests/test-modf-ieee.c: New file.
25253         New module 'modf-ieee'.
25254         * modules/modf-ieee: New file.
25256         Tests for module 'modff-ieee'.
25257         * modules/modff-ieee-tests: New file.
25258         * tests/test-modff-ieee.c: New file.
25259         * tests/test-modf-ieee.h: New file.
25261         New module 'modff-ieee'.
25262         * modules/modff-ieee: New file.
25264 2012-02-26  Bruno Haible  <bruno@clisp.org>
25266         Tests for module 'fabsl-ieee'.
25267         * modules/fabsl-ieee-tests: New file.
25268         * tests/test-fabsl-ieee.c: New file.
25270         New module 'fabsl-ieee'.
25271         * modules/fabsl-ieee: New file.
25273         Tests for module 'fabs-ieee'.
25274         * modules/fabs-ieee-tests: New file.
25275         * tests/test-fabs-ieee.c: New file.
25277         New module 'fabs-ieee'.
25278         * modules/fabs-ieee: New file.
25280         Tests for module 'fabsf-ieee'.
25281         * modules/fabsf-ieee-tests: New file.
25282         * tests/test-fabsf-ieee.c: New file.
25283         * tests/test-fabs-ieee.h: New file.
25285         New module 'fabsf-ieee'.
25286         * modules/fabsf-ieee: New file.
25288 2012-02-26  Bruno Haible  <bruno@clisp.org>
25290         Tests for module 'fmal-ieee'.
25291         * modules/fmal-ieee-tests: New file.
25292         * tests/test-fmal-ieee.c: New file.
25294         New module 'fmal-ieee'.
25295         * modules/fmal-ieee: New file.
25297         Tests for module 'fma-ieee'.
25298         * modules/fma-ieee-tests: New file.
25299         * tests/test-fma-ieee.c: New file.
25301         New module 'fma-ieee'.
25302         * modules/fma-ieee: New file.
25304         Tests for module 'fmaf-ieee'.
25305         * modules/fmaf-ieee-tests: New file.
25306         * tests/test-fmaf-ieee.c: New file.
25307         * tests/test-fma-ieee.h: New file.
25309         New module 'fmaf-ieee'.
25310         * modules/fmaf-ieee: New file.
25312 2012-02-26  Bruno Haible  <bruno@clisp.org>
25314         Tests for module 'ldexpl-ieee'.
25315         * modules/ldexpl-ieee-tests: New file.
25316         * tests/test-ldexpl-ieee.c: New file.
25318         New module 'ldexpl-ieee'.
25319         * modules/ldexpl-ieee: New file.
25321         Tests for module 'ldexp-ieee'.
25322         * modules/ldexp-ieee-tests: New file.
25323         * tests/test-ldexp-ieee.c: New file.
25325         New module 'ldexp-ieee'.
25326         * modules/ldexp-ieee: New file.
25328         Tests for module 'ldexpf-ieee'.
25329         * modules/ldexpf-ieee-tests: New file.
25330         * tests/test-ldexpf-ieee.c: New file.
25331         * tests/test-ldexp-ieee.h: New file.
25333         New module 'ldexpf-ieee'.
25334         * modules/ldexpf-ieee: New file.
25336 2012-02-26  Bruno Haible  <bruno@clisp.org>
25338         Refactor frexp*-ieee tests.
25339         * tests/test-frexp-ieee.h: New file.
25340         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
25341         (main): Just call test_function.
25342         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
25343         (main): Just call test_function.
25344         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
25345         (main): Just call test_function.
25346         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
25347         * modules/frexp-ieee-tests (Files): Likewise.
25348         * modules/frexpl-ieee-tests (Files): Likewise.
25350         Tests for module 'frexpl-ieee'.
25351         * modules/frexpl-ieee-tests: New file.
25352         * tests/test-frexpl-ieee.c: New file.
25354         New module 'frexpl-ieee'.
25355         * modules/frexpl-ieee: New file.
25357         Tests for module 'frexp-ieee'.
25358         * modules/frexp-ieee-tests: New file.
25359         * tests/test-frexp-ieee.c: New file.
25361         New module 'frexp-ieee'.
25362         * modules/frexp-ieee: New file.
25364         Tests for module 'frexpf-ieee'.
25365         * modules/frexpf-ieee-tests: New file.
25366         * tests/test-frexpf-ieee.c: New file.
25368         New module 'frexpf-ieee'.
25369         * modules/frexpf-ieee: New file.
25371 2012-02-26  Bruno Haible  <bruno@clisp.org>
25373         roundl-ieee tests: More tests.
25374         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
25375         (main): Add tests for [MX] shaded specification in POSIX.
25376         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
25377         (Depends-on): Add isnanl-nolibm.
25379         round-ieee tests: More tests.
25380         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
25381         (main): Add tests for [MX] shaded specification in POSIX.
25382         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
25383         (Depends-on): Add isnand-nolibm.
25385         roundf-ieee tests: More tests.
25386         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
25387         (main): Add tests for [MX] shaded specification in POSIX.
25388         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
25389         (Depends-on): Add isnanf-nolibm.
25391         truncl-ieee tests: More tests.
25392         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
25393         (main): Add tests for [MX] shaded specification in POSIX.
25394         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
25395         (Depends-on): Add isnanl-nolibm.
25397         trunc-ieee tests: More tests.
25398         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
25399         (main): Add tests for [MX] shaded specification in POSIX.
25400         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
25401         (Depends-on): Add isnand-nolibm.
25403         truncf-ieee tests: More tests.
25404         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
25405         (main): Add tests for [MX] shaded specification in POSIX.
25406         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
25407         (Depends-on): Add isnanf-nolibm.
25409         ceill-ieee tests: More tests.
25410         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
25411         (main): Add tests for [MX] shaded specification in POSIX.
25412         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
25413         (Depends-on): Add isnanl-nolibm.
25415         ceil-ieee tests: More tests.
25416         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
25417         (main): Add tests for [MX] shaded specification in POSIX.
25418         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
25419         (Depends-on): Add isnand-nolibm.
25421         ceilf-ieee tests: More tests.
25422         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
25423         (main): Add tests for [MX] shaded specification in POSIX.
25424         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
25425         (Depends-on): Add isnanf-nolibm.
25427         floorl-ieee tests: More tests.
25428         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
25429         (main): Add tests for [MX] shaded specification in POSIX.
25430         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
25431         (Depends-on): Add isnanl-nolibm.
25433         floor-ieee tests: More tests.
25434         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
25435         (main): Add tests for [MX] shaded specification in POSIX.
25436         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
25437         (Depends-on): Add isnand-nolibm.
25439         floorf-ieee tests: More tests.
25440         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
25441         (main): Add tests for [MX] shaded specification in POSIX.
25442         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
25443         (Depends-on): Add isnanf-nolibm.
25445 2012-02-26  Bruno Haible  <bruno@clisp.org>
25447         fpieee: More comments.
25448         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
25450 2012-02-25  Bruno Haible  <bruno@clisp.org>
25452         Tests for module 'log10l'.
25453         * modules/log10l-tests: New file.
25454         * tests/test-log10l.c: New file.
25455         * tests/test-math-c++.cc: Check the declaration of log10l.
25457         New module 'log10l'.
25458         * lib/math.in.h (log10l): New declaration.
25459         * lib/log10l.c: New file.
25460         * m4/log10l.m4: New file.
25461         * modules/log10l: New file.
25462         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
25463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
25464         HAVE_DECL_LOG10L.
25465         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
25466         HAVE_DECL_LOG10L.
25467         * doc/posix-functions/log10l.texi: Mention the new module.
25469 2012-02-25  Bruno Haible  <bruno@clisp.org>
25471         fmodl, remainder*: Avoid wrong results due to rounding errors.
25472         * lib/fmodl.c (fmodl): Correct the result if it is not within the
25473         expected bounds.
25474         * lib/remainderf.c (remainderf): Likewise.
25475         * lib/remainder.c (remainder): Likewise.
25476         * lib/remainderl.c (remainderl): Likewise.
25478 2012-02-25  Bruno Haible  <bruno@clisp.org>
25480         Tests for module 'remainderl'.
25481         * modules/remainderl-tests: New file.
25482         * tests/test-remainderl.c: New file.
25483         * tests/test-math-c++.cc: Check the declaration of remainderl.
25485         New module 'remainderl'.
25486         * lib/math.in.h (remainderl): New declaration.
25487         * lib/remainderl.c: New file.
25488         * m4/remainderl.m4: New file.
25489         * modules/remainderl: New file.
25490         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
25491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
25492         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
25493         HAVE_REMAINDERL.
25494         * doc/posix-functions/remainderl.texi: Mention the new module.
25496 2012-02-25  Bruno Haible  <bruno@clisp.org>
25498         Tests for module 'remainderf'.
25499         * modules/remainderf-tests: New file.
25500         * tests/test-remainderf.c: New file.
25501         * tests/test-math-c++.cc: Check the declaration of remainderf.
25503         New module 'remainderf'.
25504         * lib/math.in.h (remainderf): New declaration.
25505         * lib/remainderf.c: New file.
25506         * m4/remainderf.m4: New file.
25507         * modules/remainderf: New file.
25508         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
25509         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
25510         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
25511         HAVE_REMAINDERF.
25512         * doc/posix-functions/remainderf.texi: Mention the new module.
25514 2012-02-25  Bruno Haible  <bruno@clisp.org>
25516         remainder: Support for MSVC.
25517         * lib/math.in.h (remainder): New declaration.
25518         * lib/remainder.c: New file.
25519         * m4/remainder.m4: New file.
25520         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
25521         (Depends-on): Add math, round, fma.
25522         (configure.ac): Use results of gl_FUNC_REMAINDER.
25523         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
25524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
25525         HAVE_DECL_REMAINDER.
25526         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
25527         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
25528         * tests/test-math-c++.cc: Check the declaration of remainder.
25529         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
25530         problems are fixed.
25532 2012-02-25  Bruno Haible  <bruno@clisp.org>
25534         Tests for module 'fmodl'.
25535         * modules/fmodl-tests: New file.
25536         * tests/test-fmodl.c: New file.
25537         * tests/test-math-c++.cc: Check the declaration of fmodl.
25539         New module 'fmodl'.
25540         * lib/math.in.h (fmodl): New declaration.
25541         * lib/fmodl.c: New file.
25542         * m4/fmodl.m4: New file.
25543         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
25544         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
25545         REPLACE_FMODL.
25546         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
25547         REPLACE_FMODL.
25548         * modules/fmodl: New file.
25549         * doc/posix-functions/fmodl.texi: Mention the new module.
25551 2012-02-25  Bruno Haible  <bruno@clisp.org>
25553         Tests for module 'modfl'.
25554         * modules/modfl-tests: New file.
25555         * tests/test-modfl.c: New file.
25556         * tests/test-math-c++.cc: Check the declaration of modfl.
25558         New module 'modfl'.
25559         * lib/math.in.h (modfl): New declaration.
25560         * lib/modfl.c: New file.
25561         * m4/modfl.m4: New file.
25562         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
25563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
25564         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
25565         * modules/modfl: New file.
25566         * doc/posix-functions/modfl.texi: Mention the new module.
25568 2012-02-25  Bruno Haible  <bruno@clisp.org>
25570         Tests for module 'fabsl'.
25571         * modules/fabsl-tests: New file.
25572         * tests/test-fabsl.c: New file.
25573         * tests/test-math-c++.cc: Check the declaration of fabsl.
25575         New module 'fabsl'.
25576         * lib/math.in.h (fabsl): New declaration.
25577         * lib/fabsl.c: New file.
25578         * m4/fabsl.m4: New file.
25579         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
25580         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
25581         REPLACE_FABSL.
25582         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
25583         REPLACE_FABSL.
25584         * modules/fabsl: New file.
25585         * doc/posix-functions/fabsl.texi: Mention the new module.
25587 2012-02-25  Bruno Haible  <bruno@clisp.org>
25589         fabs tests: More tests.
25590         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
25591         (zero): New variable.
25592         (main): Add tests for signed zero.
25593         * modules/fabs-tests (Files): Add tests/minus-zero.h.
25595         fabsf tests: More tests.
25596         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
25597         (zero): New variable.
25598         (main): Add tests for signed zero.
25599         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
25601 2012-02-24  Bruno Haible  <bruno@clisp.org>
25603         atanl: Provide function definition on MSVC.
25604         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
25605         function pointer.
25606         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
25608 2012-02-24  Bruno Haible  <bruno@clisp.org>
25610         acosl: Provide function definition on MSVC.
25611         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
25612         function pointer.
25613         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
25615 2012-02-24  Bruno Haible  <bruno@clisp.org>
25617         asinl: Provide function definition on MSVC.
25618         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
25619         function pointer.
25620         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
25622 2012-02-24  Bruno Haible  <bruno@clisp.org>
25624         tanl: Provide function definition on MSVC.
25625         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
25626         function pointer.
25627         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
25629 2012-02-24  Bruno Haible  <bruno@clisp.org>
25631         cosl: Provide function definition on MSVC.
25632         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
25633         function pointer.
25634         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
25636 2012-02-24  Bruno Haible  <bruno@clisp.org>
25638         sinl: Provide function definition on MSVC.
25639         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
25640         function pointer.
25641         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
25643 2012-02-24  Bruno Haible  <bruno@clisp.org>
25645         logl: Provide function definition on MSVC.
25646         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
25647         function pointer.
25648         * lib/math.in.h (logl): Undefine if it does not exist as a function.
25650 2012-02-24  Bruno Haible  <bruno@clisp.org>
25652         expl: Provide function definition on MSVC.
25653         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
25654         function pointer.
25655         * lib/math.in.h (expl): Undefine if it does not exist as a function.
25657 2012-02-24  Bruno Haible  <bruno@clisp.org>
25659         sqrtl: Provide function definition on MSVC.
25660         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
25661         a function pointer.
25662         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
25664 2012-02-24  Bruno Haible  <bruno@clisp.org>
25666         ceill: Provide function definition on MSVC.
25667         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
25668         used as a function pointer.
25669         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
25671 2012-02-24  Bruno Haible  <bruno@clisp.org>
25673         floorl: Provide function definition on MSVC.
25674         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
25675         used as a function pointer.
25676         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
25678 2012-02-24  Bruno Haible  <bruno@clisp.org>
25680         ceilf: Provide function definition on MSVC.
25681         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
25682         used as a function pointer.
25683         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
25685 2012-02-24  Bruno Haible  <bruno@clisp.org>
25687         floorf: Provide function definition on MSVC.
25688         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
25689         used as a function pointer.
25690         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
25692 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25694         stdnoreturn: new module
25695         This implements a replacement for C11's <stdnoreturn.h>.
25696         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
25697         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
25698         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
25699         * tests/test-stdnoreturn.c: New files.
25701 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
25703         regex: fix false multibyte matches in some regular expressions
25704         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
25705         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
25706         * lib/regex_internal.c (re_string_skip_chars):
25707         Fix miscomputation of remain_len that may cause incomplete
25708         multi-byte character and false match.
25710 2012-02-24  Jim Meyering  <meyering@redhat.com>
25712         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
25713         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
25714         uses with "==" *before* the call, e.g., 0 == strcmp (...)
25715         Remove now-unnecessary str''cmp obfuscation.
25716         Suggested by Akim Demaille.
25718 2012-02-24  Bruno Haible  <bruno@clisp.org>
25720         streq: Rename macro.
25721         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
25722         * NEWS: Mention the change.
25723         * lib/mbrtowc.c (mbrtowc): Update.
25724         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
25725         * lib/wcwidth.c (wcwidth): Update.
25726         Suggested by Akim Demaille and Jim Meyering.
25728 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25730         regex: fix typo in definition of MIN
25731         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
25732         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
25734 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
25735             Bruno Haible  <bruno@clisp.org>
25737         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
25738         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
25739         entries into a stack-allocated buffer directly.
25740         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
25742 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
25743             Bruno Haible  <bruno@clisp.org>
25745         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
25747          - There were several instances of this pattern:
25749              for (;;) {
25750                n = acl (f, GETACLCNT, 0, NULL);
25751                [ allocate an array A of size N ]
25752                if (acl (f, GETACL, n, a) == n)
25753                  break;
25754              }
25756            This loop might never terminate if some other process is constantly
25757            manipulating the file's ACL.  The loop should be rewritten to
25758            terminate.
25760          - The acl (... GETACLNT ...) call is merely an optimization; its value
25761            is merely a hint as to how big to make the array.  A better
25762            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
25763            and just guess a reasonably-big size, growing the size and trying
25764            again if it's not large enough.  This guarantees termination, and
25765            saves a system call.
25767         * lib/acl-internal.h: Include <limits.h>.
25768         (MIN, SIZE_MAX): New macros.
25769         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
25770         a stack-allocated buffer, and use malloc if it does not fit. Don't
25771         use GETACLCNT.
25772         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
25774 2012-02-19  Bruno Haible  <bruno@clisp.org>
25776         acl: Fix endless loop on Solaris with vxfs.
25777         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
25778         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
25779         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
25780         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
25781         * tests/test-sameacls.c (main)[Solaris]: Likewise.
25782         Reported by Bill Jones in
25783         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
25785 2012-02-19  Bruno Haible  <bruno@clisp.org>
25787         acl: Fix copy-acl test failure on Solaris 11.0.
25788         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
25789         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
25790         that this function returns 0 in some more cases.
25792 2012-02-19  Bruno Haible  <bruno@clisp.org>
25794         acl: Update doc references.
25795         * doc/acl-resources.txt: Update links to Solaris documentation.
25797 2012-02-19  Bruno Haible  <bruno@clisp.org>
25799         Fix test failure in many locales on Solaris 11.
25800         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
25801         'tr' arguments.
25802         * tests/test-pipe-filter-ii1.c (main): Likewise.
25803         * build-aux/bootstrap (check_versions): Run 'tr' command with range
25804         expressions in the C locale.
25805         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25806         * m4/host-os.m4 (gl_HOST_OS): Likewise.
25808 2012-02-19  Bruno Haible  <bruno@clisp.org>
25810         gnulib-tool: Improve usage message.
25811         * gnulib-tool (func_usage): Move doc of --help and --version to the
25812         section "Operation modes".
25814 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
25816         README-release: make it easier to execute commands
25817         * top/README-release: break commands out on to separate lines.
25819 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
25821         GNUmakefile: simplify detection of unconfigured trees
25822         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
25823         whether the tree make is being run from is already configured or
25824         not.  Related simplifications.
25826 2012-02-13  Simon Josefsson  <simon@josefsson.org>
25828         * gnulib-tool (func_usage): Document --help and --version.
25830 2012-02-11  Jim Meyering  <meyering@redhat.com>
25832         bootstrap: don't exit 0 upon gnulib-tool failure
25833         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
25834         its exit status, not 0.
25836 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
25838         README-release: various improvements
25839         * top/README-release: Give a command to push changes for the
25840         release.  Add "distcheck" to list of other pre-release checks.
25841         Fix instance of "make stable" which should be "make TYPE".
25843 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25845         maint: replace FSF snail-mail addresses with URLs
25846         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
25847         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
25848         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
25849         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
25850         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
25851         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
25852         * lib/check-version.c, lib/check-version.h, lib/config.charset:
25853         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
25854         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
25855         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
25856         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
25857         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
25858         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
25859         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
25860         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
25861         * lib/glthread/thread.c, lib/glthread/thread.h:
25862         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
25863         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
25864         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
25865         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
25866         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
25867         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
25868         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
25869         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
25870         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
25871         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
25872         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
25873         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
25874         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
25875         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
25876         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
25877         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
25878         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
25879         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
25880         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
25881         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
25882         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
25883         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
25884         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
25885         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
25886         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
25887         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
25888         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
25889         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
25890         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
25891         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
25892         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
25893         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
25894         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
25895         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
25896         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
25897         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
25898         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
25899         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
25900         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
25901         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
25902         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
25903         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
25904         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
25905         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
25906         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
25907         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
25908         * tests/test-poll.c, tests/test-quotearg-simple.c:
25909         * tests/test-quotearg.c, tests/test-quotearg.h:
25910         * tests/test-round-ieee.c, tests/test-round1.c:
25911         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
25912         * tests/test-roundl-ieee.c, tests/test-roundl.c:
25913         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
25914         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
25915         * tests/test-strerror.c, tests/test-strerror_r.c:
25916         * tests/test-strsignal.c, tests/test-strverscmp.c:
25917         * tests/test-xmemdup0.c:
25918         Replace FSF snail mail addresses with URLs, as per GNU coding
25919         standards.  See glibc bug
25920         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
25922 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
25924         README-release: capitalize a word and split a line
25925         * top/README-release: Fix punctuation and spacing.
25927 2012-02-08  Akim Demaille  <demaille@gostai.com>
25929         fatal-signal: use C prototypes (with explicit void).
25930         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
25931         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
25933 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25935         regex: spelling fix
25936         * lib/regexec.c: spelling fix
25938         regex: rely on stdint.h for SIZE_MAX
25939         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
25941 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25943         regex: merge glibc changes
25945         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
25946         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
25947         (init_word_char): Work even if bitset words are not exactly 32 or
25948         64 bits wide.  Don't assume there are no padding bits.
25949         * lib/regex.c [_LIBC]: Do not include <config.h>.
25950         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
25951         and -Wtype-limits.
25952         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
25953         needless disagreement with glibc.  All uses changed.  Define it to
25954         1 only if _GNU_SOURCE, to match glibc.
25955         (_REG_RM_NAME): Remove; no longer needed, since the names in
25956         question are now all protected by __USE_GNU.
25957         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
25958         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
25959         * lib/regex_internal.h (MIN): New macro.
25961         2012-01-03 Ulrich Drepper <drepper@gmail.com>
25962         * lib/regcomp.c (init_word_char): Optimize regex a bit.
25964         2011-12-30 Jakub Jelinek <jakub@redhat.com>
25965         * lib/regex_internal.c (re_string_fetch_byte_case):
25966         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
25967         is miscompiled, and it turns out it is because of an incorrect
25968         attribute on re_string_fetch_byte_case.  Unlike
25969         re_string_peek_byte_case, this one is really not pure, it modifies
25970         memory (increments pstr->cur_idx), and with the pure attribute GCC
25971         assumed it doesn't and it cached the presumed value of
25972         regexp->cur_idx in a variable across the
25973          for (;; ++i)
25974            {
25975              if (i >= BRACKET_NAME_BUF_SIZE)
25976                return REG_EBRACK;
25977              if (token->type == OP_OPEN_CHAR_CLASS)
25978                ch = re_string_fetch_byte_case (regexp);
25979              else
25980                ch = re_string_fetch_byte (regexp);
25981              if (re_string_eoi(regexp))
25982                return REG_EBRACK;
25983              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
25984                break;
25985              elem->opr.name[i] = ch;
25986            }
25988         2011-11-29 Andreas Schwab <schwab@redhat.com>
25989         * lib/regcomp.c (build_equiv_class):
25990         Fix access after end of search string in regex matcher.
25992         2011-11-12 Ulrich Drepper <drepper@redhat.com>
25993         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
25995         2011-10-12 Ulrich Drepper <drepper@redhat.com>
25996         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
25998         2011-10-11 Ulrich Drepper <drepper@redhat.com>
25999         * lib/regcomp.c (parse_branch, parse_sub_exp):
26000         More regex memory leak fixes and tests.
26001         (parse_sub_exp, parse_bracket_exp):
26002         Fix memory leak for some invalid regular expressions.
26004         2011-05-28 Ulrich Drepper <drepper@gmail.com>
26005         * lib/regex_internal.c, lib/regexec.c:
26006         Fix unnecessary overallocation due to incomplete character.  When
26007         incomplete characters are found at the end of a string the code
26008         ran amok and allocated lots of memory.  Stricter limits are now in
26009         place.
26011         2011-05-20 Reuben Thomas <rrt@sc3d.org>
26012         * lib/regex.h: Update documentation.
26014         2011-05-16 Aharon Robbins <arnold@skeeve.com>
26015         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
26017         2010-05-05 Andreas Schwab <schwab@redhat.com>
26018         * lib/regexec.c (find_collation_sequence_value):
26019         Fix lookup of collation sequence value during regexp matching.
26021         2010-01-22 Ulrich Drepper <drepper@redhat.com>
26022         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
26024         2008-01-16 Ulrich Drepper <drepper@redhat.com>
26025         * lib/regex.h: Cleanup namespace.
26027         2007-11-26 Ulrich Drepper <drepper@redhat.com>
26028         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
26030         2007-08-26 Ulrich Drepper <drepper@redhat.com>
26031         * lib/regex_internal.h: Prevent some declarations and definitions
26032         to be seen when used in tests.
26034         2005-05-06 Ulrich Drepper <drepper@redhat.com>
26035         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
26036         __libc_lock_* macros if not _LIBC.
26037         (struct re_dfa_t): Add lock.
26039 2012-02-07  Eric Blake  <eblake@redhat.com>
26041         maint.mk: also prohibit lower-case @var@
26042         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
26043         lower case, like @top_srcdir@.
26045 2012-02-04  Eric Blake  <eblake@redhat.com>
26047         canonicalize: avoid uninitialized memory use
26048         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
26049         random '/' left in dest.
26050         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
26052 2012-02-04  Bruno Haible  <bruno@clisp.org>
26054         isatty: Fix test failure of ptsname_r on native Windows.
26055         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
26056         and don't set errno.
26057         (isatty): Test first whether fd is valid. Set errno when returning 0.
26059 2012-02-04  Bruno Haible  <bruno@clisp.org>
26061         spawn-pipe tests: Fix a NULL program name in a diagnostic.
26062         * tests/test-spawn-pipe-main.c: Include progname.h.
26063         (main): Invoke set_program_name.
26064         * modules/spawn-pipe-tests (Depends-on): Add progname.
26066         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
26067         * tests/test-nonblocking-socket-main.c: Include progname.h.
26068         (main): Invoke set_program_name.
26069         * modules/nonblocking-socket-tests (Depends-on): Add progname.
26071         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
26072         * tests/test-nonblocking-pipe-main.c: Include progname.h.
26073         (main): Invoke set_program_name.
26074         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
26076 2012-02-04  Eric Blake  <eblake@redhat.com>
26078         canonicalize-lgpl: fix // handling
26079         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
26081         canonicalize: fix // handling
26082         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
26083         /// to //, since only // is special.
26085 2012-02-04  Bruno Haible  <bruno@clisp.org>
26087         ioctl: Fix test failure on native Windows.
26088         * lib/ioctl.c: Include msvc-nothrow.h.
26089         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
26091 2012-02-04  Bruno Haible  <bruno@clisp.org>
26093         fsync: Avoid test failure on native Windows.
26094         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
26095         read-only.
26097 2012-02-04  Bruno Haible  <bruno@clisp.org>
26099         sys_select: Avoid syntax error on OpenBSD 5.0.
26100         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
26101         currently being included, just include the system's <sys/select.h>.
26103 2012-02-04  Bruno Haible  <bruno@clisp.org>
26105         sys_select: Avoid syntax error on OpenBSD 5.0.
26106         * lib/sys_select.in.h: Include <signal.h> only after the include_next
26107         <sys/select.h>, not before.
26108         Reported by Jiri B <jirib@devio.us>.
26110 2012-02-04  Bruno Haible  <bruno@clisp.org>
26112         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
26113         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
26114         global variables.
26115         * tests/test-get-rusage-data.c (main): Likewise.
26116         Reported by Jim Meyering.
26118 2012-02-04  Bruno Haible  <bruno@clisp.org>
26120         stdioext: Fix last commit.
26121         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
26123 2012-02-03  Bruno Haible  <bruno@clisp.org>
26125         stdioext: Add tentative support for Plan9.
26126         * lib/stdio-impl.h: Include <errno.h>.
26127         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
26128         * lib/freadable.c (freadable): Likewise.
26129         * lib/fwritable.c (fwritable): Likewise.
26130         * lib/fbufmode.c (fbufmode): Likewise.
26131         * lib/freading.c (freading): Likewise.
26132         * lib/fwriting.c (fwriting): Likewise.
26133         * lib/freadptr.c (freadptr): Likewise.
26134         * lib/freadseek.c (freadptrinc): Likewise.
26135         * lib/freadahead.c (freadahead): Likewise.
26136         * lib/fpurge.c (fpurge): Likewise.
26137         * lib/fseeko.c (rpl_fseeko): Likewise.
26138         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
26139         Reported by Jens Staal <staal1978@gmail.com>.
26141 2012-02-02  Jim Meyering  <meyering@redhat.com>
26143         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
26144         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
26145         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
26146         not even to try to add the attribute.  Instead, add a pragma to suppress
26147         the suggestion/warning.
26149 2012-01-31  Karl Berry  <karl@gnu.org>
26151         setstate doc: typo.
26152         * doc/posix-functions/setstate.texi (setstate): { not (.
26154 2012-01-31  Bruno Haible  <bruno@clisp.org>
26156         popen: Make more robust on Windows.
26157         * lib/popen.c: On native Windows, use the _popen based code even if
26158         HAVE_POPEN is set.
26159         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
26160         environment variable on native Windows.
26162 2012-01-30  Bruno Haible  <bruno@clisp.org>
26164         pclose: Fix typo.
26165         * lib/stdio.in.h (pclose): Fix typo in warning message.
26167 2012-01-30  Bruno Haible  <bruno@clisp.org>
26169         doc about getlogin_r, setstate.
26170         * doc/posix-functions/getlogin_r.texi: List the incompatible
26171         declaration problem under "not fixed by gnulib".
26172         * doc/posix-functions/setstate.texi: Mention incompatible declaration
26173         problem on Solaris 11 and other platforms.
26175 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
26176             Bruno Haible  <bruno@clisp.org>
26178         poll tests: Make test more robust.
26179         * tests/test-poll.c: Include macros.h.
26180         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
26181         return value of various I/O operations.
26182         * modules/poll-tests (Files): Add tests/macros.h.
26184 2012-01-30  Bruno Haible  <bruno@clisp.org>
26186         sys_stat: Fix support for mingw64 and MSVC.
26187         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
26188         header files already do it.
26189         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
26190         stat itself.
26191         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
26193 2012-01-30  Bruno Haible  <bruno@clisp.org>
26195         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
26196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
26197         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
26199 2012-01-29  Bruno Haible  <bruno@clisp.org>
26201         quotearg: Fix test failure on MacOS X 10.5.
26202         * tests/test-quotearg-simple.c: Include localcharset.h.
26203         (main): If the locale encoding is not ASCII, bypass the tests of
26204         locale_quoting_style and clocale_quoting_style.
26205         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
26207 2012-01-29  Jim Meyering  <meyering@redhat.com>
26209         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
26210         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
26211         detect uses of canonicalize_file_name.
26213 2012-01-28  Bruno Haible  <bruno@clisp.org>
26215         test-framework-sh: Fix test failure with AIX 7.1 diff.
26216         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
26217         in column 1, like 'diff -c' does.
26218         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
26219         whether 'diff -u' is used. Instead, test whether the output contains
26220         some '@' character.
26222 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26224         strtoimax: eliminate need for stdint.h, inttypes.h checks
26225         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
26226         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
26227         the prerequisites for a recently-introduced strtoimax test.
26228         I guess this might cause strtoimax to be replaced when not
26229         strictly necessary on older hosts, but this shouldn't introduce
26230         any bugs and it should make Emacs 'configure' faster on typical
26231         modern hosts.  Problem discovered when importing the latest gnulib
26232         to an Emacs test version.
26233         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
26235 2012-01-28  Bruno Haible  <bruno@clisp.org>
26237         sys_time: Override 'struct timeval' on some native Windows platforms.
26238         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
26239         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
26240         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
26241         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
26242         needs to be overridden.
26243         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
26244         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
26245         * tests/test-sys_select.c: Check that the tv_sec member has the same
26246         size as a 'time_t'.
26247         * tests/test-sys_time.c: Likewise.
26248         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
26249         is set, set also REPLACE_GETTIMEOFDAY.
26250         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
26251         convert the resulting 'struct timeval' before returning.
26252         * lib/select.c: Include <sys/time.h>.
26253         (select, timeval): Undefine at the right place.
26254         * modules/select (Depends-on): Add sys_time.
26255         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
26256         some Windows platforms.
26257         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
26259 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
26261         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
26262         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
26263         an integer.
26264         * lib/fcntl.c (dupfd): Likewise.
26265         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
26267 2012-01-28  Bruno Haible  <bruno@clisp.org>
26269         fcntl: Avoid compilation error on native Windows.
26270         * modules/fcntl (Depends-on): Add 'close'.
26272 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
26274         select, poll, isatty: Avoid warnings on x86_64 mingw64.
26275         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
26276         pointer to an integer.
26277         * lib/poll.c (IsConsoleHandle): Likewise.
26278         * lib/isatty.c (IsConsoleHandle): Likewise.
26280 2012-01-28  Jim Meyering  <meyering@redhat.com>
26282         doc: clarify README-release
26283         * top/README-release: Clarify: you should make a point to have
26284         the latest stable versions of build tools in your PATH, and the
26285         reference to buildreq is solely for its list of tool names, not
26286         for its minimal-functional version numbers.
26287         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
26289         maint.mk: use more readable (yet functionally equivalent) quoting
26290         It is common to quote a single quote in a single quoted string like
26291         this:  '...'\''...'.  Unless you know the idiom, that looks like
26292         gibberish, so prefer to double-quote the string when possible.
26293         Then you can use a more readable, lone single quote: "...'..."
26294         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
26295         "don't" is more readable than the equivalent 'don'\''t'.
26296         (sc_cast_of_x_alloc_return_value): Likewise.
26297         (sc_cast_of_alloca_return_value): Likewise.
26298         (sc_makefile_path_separator_check): Similar: use ":" in '...',
26299         rather than '\'':'\''.
26301 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
26303         stdalign: relax _Alignof and tighten _Alignas test
26304         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
26305         as it was too strict: alignof must divide offsetof, but it need
26306         not equal offsetof.  Inspired by Joseph S. Myers's comment
26307         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
26308         Conversely, tighten the _Alignas test a bit, as the resulting
26309         alignment must be exactly 8.
26311 2012-01-27  Bruno Haible  <bruno@clisp.org>
26313         stdalign: Document the last change.
26314         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
26316 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
26318         stdalign: check that alignof and offsetof are consistent
26319         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
26320         Problem reported for gnulib by Richard W.M. Jones in
26321         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
26323 2012-01-27  Jim Meyering  <meyering@redhat.com>
26325         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
26326         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
26327         convert a sequence with gaps to the minimal containing range.
26328         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
26329         * tests/test-update-copyright.sh: Test for this.
26330         The FSF confirmed it is ok to do this, assuming there is at
26331         least one significant change per year in the affected range:
26332         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
26334 2012-01-26  Bruno Haible  <bruno@clisp.org>
26336         pipe2: refine doc about thread-safety
26337         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
26338         multithread-safety problem.
26339         * doc/glibc-functions/accept4.texi: Likewise.
26341 2012-01-26  Bruno Haible  <bruno@clisp.org>
26343         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
26344         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
26345         In the test program, include <fcntl.h>, for O_RDONLY.
26347 2012-01-26  Eric Blake  <eblake@redhat.com>
26349         pipe2: document lack of thread-safety in replacement
26350         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
26351         issue in replacement.
26352         * doc/glibc-functions/accept4.texi (accept4): Likewise.
26353         Based on a report by Eric Wong.
26355 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
26356             Bruno Haible  <bruno@clisp.org>
26358         malloca: Avoid warnings on x86_64 mingw64.
26359         * lib/malloca.c: Include <stdint.h>.
26360         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
26361         * modules/malloca (Depends-on): Add stdint.
26362         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
26364 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
26366         obstack: remove __STDC__ conditionals
26367         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
26368         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
26369         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
26370         m4/include_next.m4 as the only gnulib-maintained places that still
26371         refer to __STDC__.
26373 2012-01-24  Bruno Haible  <bruno@clisp.org>
26375         havelib: Modern quoting.
26376         * build-aux/config.rpath: Quote 'like this', not `like this', as per
26377         the recent change to the GNU coding standards.
26379 2012-01-24  Bruno Haible  <bruno@clisp.org>
26381         stdint: Improve support for Android.
26382         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
26383         Reported by Simon Josefsson <simon@josefsson.org>.
26385 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26387         doc: omit trailing empty lines from INSTALL etc.
26388         * doc/Makefile (INSTALL): Omit trailing empty lines.
26389         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
26390         omit trailing empty lines.  This simplifies the build procedure.
26392 2012-01-23  Jim Meyering  <meyering@redhat.com>
26394         tests: avoid spurious warnings about gl_sockets_startup
26395         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
26396         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
26397         reporting a "statement with no effect".
26398         * tests/test-accept.c (main): Mark as "(void)".
26399         * tests/test-accept4.c (main): Likewise.
26400         * tests/test-bind.c (main): Likewise.
26401         * tests/test-connect.c (main): Likewise.
26402         * tests/test-getpeername.c (main): Likewise.
26403         * tests/test-getsockname.c (main): Likewise.
26404         * tests/test-getsockopt.c (main): Likewise.
26405         * tests/test-listen.c (main): Likewise.
26406         * tests/test-recv.c (main): Likewise.
26407         * tests/test-recvfrom.c (main): Likewise.
26408         * tests/test-send.c (main): Likewise.
26409         * tests/test-sendto.c (main): Likewise.
26410         * tests/test-setsockopt.c (main): Likewise.
26411         * tests/test-shutdown.c (main): Likewise.
26413 2012-01-21  Bruno Haible  <bruno@clisp.org>
26415         locale-fr.m4: Fix for Android.
26416         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
26417         failure of the test program on Bionic libc.
26419 2012-01-21  Jim Meyering  <meyering@redhat.com>
26421         bootstrap: fail when bootstrap_post_import_hook fails
26422         Otherwise, it's far too easy to miss diagnostics emitted
26423         between gnulib-tool's output and that of running configure.
26424         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
26426 2012-01-17  Jim Meyering  <meyering@redhat.com>
26428         maint: enable sc_trailing_blank
26429         * build-aux/pmccabe.css: Remove trailing blanks.
26430         * doc/acl-cygwin.txt: Likewise.
26431         * doc/gnu-oids.texi: Likewise
26432         * cfg.mk: Enable sc_trailing_blank.
26433         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
26435 2012-01-17  Jim Meyering  <meyering@redhat.com>
26437         maint: enable sc_prohibit_openat_without_use
26438         * cfg.mk: Enable sc_prohibit_openat_without_use.
26439         Exempt lib/selinux-at.c.
26441 2012-01-17  Jim Meyering  <meyering@redhat.com>
26443         maint: enable sc_prohibit_cloexec_without_use
26444         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
26445         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
26447 2012-01-17  Jim Meyering  <meyering@redhat.com>
26449         maint: enable sc_prohibit_intprops_without_use
26450         * cfg.mk: Enable sc_prohibit_intprops_without_use
26451         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
26453 2012-01-17  Jim Meyering  <meyering@redhat.com>
26455         maint: enable sc_prohibit_hash_pjw_without_use
26456         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
26457         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
26458         to match any use of \<hash_pjw\>, i.e., not necessarily with a
26459         following " (".
26461 2012-01-17  Jim Meyering  <meyering@redhat.com>
26463         maint: enable double-word-prohibiting rule
26464         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
26465         Exempt three files.
26467 2012-01-17  Jim Meyering  <meyering@redhat.com>
26469         maint: remove empty lines at EOF, but excluding modules/*
26470         Apply syntax rules at home as well as abroad.  Most changes
26471         were induced by running this:
26472           make srcdir=. _build-aux=build-aux -f top/maint.mk \
26473             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
26474             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
26475         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
26476         Exempt modules/* and two binary files.
26477         Also exempt doc/INSTALL*, per request from Bruno Haible.
26478         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
26479         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
26480         * doc/Copyright/request-assign.future: Likewise.
26481         * doc/Copyright/request-disclaim.changes: Likewise.
26482         * doc/INSTALL: Likewise.
26483         * doc/INSTALL.ISO: Likewise.
26484         * doc/INSTALL.UTF-8: Likewise.
26485         * doc/acl-cygwin.txt: Likewise.
26486         * doc/acl-resources.txt: Likewise.
26487         * doc/fdl-1.2.texi: Likewise.
26488         * doc/fdl-1.3.texi: Likewise.
26489         * doc/fdl.texi: Likewise.
26490         * lib/argp-pin.c: Likewise.
26491         * lib/round.c: Likewise.
26492         * lib/unicase/u16-totitle.c: Likewise.
26493         * lib/unictype/block_test.c: Likewise.
26494         * lib/uninorm/canonical-decomposition.c: Likewise.
26495         * m4/README: Likewise.
26496         * m4/relocatable-lib.m4: Likewise.
26497         * tests/test-isnand-nolibm.c: Likewise.
26498         * tests/test-isnand.c: Likewise.
26499         * tests/uninorm/NormalizationTest.txt: Likewise.
26501 2012-01-17  Jim Meyering  <meyering@redhat.com>
26503         maint: add framework to run syntax-check rules against gnulib sources
26504         * cfg.mk: New file, to disable all currently-failing tests.
26505         We'll enable them one by one, as they are made to pass.
26506         * Makefile (sc_maint): New rule.
26508 2012-01-21  Bruno Haible  <bruno@clisp.org>
26510         stdint: Add support for Android.
26511         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
26512         include the system's <stdint.h>.
26513         Reported by Simon Josefsson <simon@josefsson.org>.
26515 2012-01-19  Jim Meyering  <meyering@redhat.com>
26517         bootstrap: add bootstrap_post_import_hook
26518         Bison does still need something like the gnulib_mk_hook whose
26519         invocation I had to remove along with slurp in commit 767ccd40.
26520         Technically, we could get along without it, but doing so would
26521         have required living with a warning and a mandatory post-bootstrap
26522         automake rerun.
26523         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
26524         (bootstrap_post_import_hook): New function.
26525         Invoke it after gnulib-tool --import and before autoreconf.
26527 2012-01-18  Jim Meyering  <meyering@redhat.com>
26529         gitlog-to-changelog: don't use "no_"-prefixed variable name
26530         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
26531         to enable both --cluster and --no-cluster.  Change variable name,
26532         s/\$no_cluster/$cluster/, and reverse usage to match.
26534         gitlog-to-changelog: use "||", not "or" in expressions
26535         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
26536         expressions.
26538 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
26540         gitlog-to-changelog: new option --no-cluster
26541         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
26542         clustering of adjacent commit messages.
26544 2012-01-17  Jim Meyering  <meyering@redhat.com>
26546         maint: spell file systems with two words, not one
26547         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
26548         two words, not one.
26550 2012-01-16  Jim Meyering  <meyering@redhat.com>
26552         bootstrap: add a FIXME comment to ensure we eventually remove the hack
26553         * build-aux/bootstrap (gnulib_tool_options): Add comment.
26555 2012-01-16  Eric Blake  <eblake@redhat.com>
26557         bootstrap: cater to autoconf 2.59
26558         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
26559         is not available.
26561         bootstrap: properly check for libtool
26562         * build-aux/bootstrap (libtoolize): Also run libtool when older
26563         usage is detected.
26565 2012-01-15  Bruno Haible  <bruno@clisp.org>
26567         Improve support for MSVC 9.
26568         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
26569         clashes on MSVC.
26570         * lib/fcntl.in.h: Likewise.
26571         * lib/stdlib.in.h: Likewise.
26572         * lib/sys_stat.in.h: Likewise.
26574 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
26576         gnupload: we hold the master copy of this script now
26577         For motivation and more information, see:
26578         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
26579         * build-aux/gnupload: Make it clear in the heading comments that the
26580         master copy of this file is maintained by gnulib.  Since we are at
26581         it, bump its copyright year and ...
26582         ($scriptversion): ... the date in its version.
26583         ($usage): Patches and bug reports should be sent to the gnulib list,
26584         not the automake one.
26585         * config/srclist.txt: Don't try to sync 'gnupload' from automake
26586         anymore.
26588 2012-01-15  Bruno Haible  <bruno@clisp.org>
26590         Fix module 'random'.
26591         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
26592         initstate, setstate are declared.
26594 2012-01-14  Bruno Haible  <bruno@clisp.org>
26596         Tests for module 'random'.
26597         * modules/random-tests: New file.
26598         * tests/test-random.c: New file, based on tests/test-random_r.c.
26600         New module 'random'.
26601         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
26602         declarations.
26603         * lib/random.c: New file, based on glibc/stdlib/random.c.
26604         * m4/random.m4: New file.
26605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
26606         HAVE_RANDOM.
26607         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
26608         * modules/random: New file.
26609         * config/srclist.txt: Add an entry for random.c.
26610         * doc/posix-functions/random.texi: Mention the 'random' module.
26611         * doc/posix-functions/initstate.texi: Likewise.
26612         * doc/posix-functions/setstate.texi: Likewise.
26613         * doc/posix-functions/srandom.texi: Likewise.
26615 2012-01-12  Bruno Haible  <bruno@clisp.org>
26617         random_r: Use common idioms.
26618         * lib/random_r.c: Include <stdlib.h> first.
26620         random_r: Override incompatible API on AIX, OSF/1.
26621         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
26622         Override the system function if REPLACE_RANDOM_R is 1.
26623         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
26624         and OSF/1, set REPLACE_RANDOM_R.
26625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
26626         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
26627         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
26628         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
26629         * doc/glibc-functions/random_r.texi: Likewise.
26630         * doc/glibc-functions/setstate_r.texi: Likewise.
26632         random_r: Support for MSVC 9.
26633         * lib/random_r.c: Include stdint.h, not inttypes.h.
26635 2012-01-12  Eric Blake  <eblake@redhat.com>
26637         inet_ntop: guard extra work by IF_LINT
26638         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
26639         better code generation when not checking for warnings.
26640         Suggested by Paul Eggert and Jim Meyering.
26642         strptime: fix regression on mingw
26643         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
26644         Fix regression.  Reported by Bruno Haible.
26646 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
26647             Bruno Haible  <bruno@clisp.org>
26649         copy-file: add error-code-returning variant.
26650         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
26651         (qcopy_file_preserving): New declaration.
26652         * lib/copy-file.c (qcopy_file_preserving): Renamed from
26653         copy_file_preserving. Change return type to 'int'. Don't emit an error
26654         message here.
26655         (copy_file_preserving): New function.
26656         * tests/test-copy-file.c: Include <stdlib.h>.
26657         (main): Test qcopy_file_preserving if the environment variable
26658         NO_STDERR_OUTPUT is set.
26659         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
26660         with NO_STDERR_OUTPUT
26661         * tests/test-copy-file-2.sh: Likewise.
26663 2012-01-10  Bruno Haible  <bruno@clisp.org>
26665         copy-file: Use 'quote' module consistently.
26666         * lib/copy-file.c (copy_file_preserving): Use quote().
26668         copy-file: Refactor.
26669         * lib/copy-file.c: Include quote.h.
26670         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
26671         message here.
26672         * modules/copy-file (Depends-on): Add quote.
26674         acl: Export qcopy_acl.
26675         * lib/acl.h (qcopy_acl): New declaration.
26676         * lib/copy-acl.c (qcopy_acl): Make non-static.
26678         acl: Rename a local variable.
26679         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
26681         acl: Align return values of copy_acl and qcopy_acl.
26682         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
26683         maybe < -1.
26685 2012-01-11  Eric Blake  <eblake@redhat.com>
26687         strptime: silence gcc warnings
26688         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
26689         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
26690         Reported by Daniel P. Berrange.
26692         inet_ntop: silence gcc warning
26693         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
26694         Reported by Daniel P. Berrange.
26696 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
26698         getloadavg test: skip the test on GNU/Linux without /proc mounted
26699         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
26700         file.  When /proc is not mounted, it always fails with ENOENT.
26701         * tests/test-getloadavg.c (main): Treat ENOENT return code from
26702         getloadavg(3) the same way as ENOSYS and ENOTSUP.
26704 2012-01-10  Bruno Haible  <bruno@clisp.org>
26706         regex: Avoid link error on MSVC 9.
26707         * modules/regex (Depends-on): Add wctype.
26709 2012-01-10  Bruno Haible  <bruno@clisp.org>
26711         doc: Mention --with-tests option.
26712         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
26713         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
26714         --with-tests.
26715         Reported by Reuben Thomas.
26717 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
26719         users.txt: order package names lexicographically.
26720         * users.txt: Order package names lexicographically.
26722 2012-01-10  Jim Meyering  <meyering@redhat.com>
26724         maint.mk: fix description in comment
26725         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
26727         ignore-value: remove deprecated ignore_ptr function
26728         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
26729         * NEWS: Note this.
26731 2012-01-09  Jim Meyering  <meyering@redhat.com>
26733         test-init.sh: avoid a subshell
26734         * tests/test-init.sh: Remove protective subshell.
26735         Suggested by Bernhard Voelker.  While a subshell is normally
26736         required to protect against older shells (Solaris, FreeBSD) that
26737         warn about a missing program before performing redirection, the
26738         shell-selection tests performed by init.sh probably exclude any
26739         offending shell.
26741 2012-01-08  Bruno Haible  <bruno@clisp.org>
26743         setlocale tests: Avoid test failure on Solaris 11.0.
26744         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
26745         variable.
26747 2012-01-08  Bruno Haible  <bruno@clisp.org>
26749         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
26750         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
26751         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
26752         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
26753         macro.
26754         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
26755         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
26756         * lib/spawn_faction_addopen.c: Add workaround implementation if
26757         HAVE_WORKING_POSIX_SPAWN.
26758         * modules/spawn (Makefile): Substitute
26759         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
26760         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
26761         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
26762         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
26763         (Depends-on): Update conditions.
26764         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
26765         the Solaris 11 bug.
26767 2012-01-08  Bruno Haible  <bruno@clisp.org>
26769         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
26770         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
26771         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
26772         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
26773         macro.
26774         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
26775         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
26776         * lib/spawn_faction_adddup2.c: Add workaround implementation if
26777         HAVE_WORKING_POSIX_SPAWN.
26778         * modules/spawn (Makefile): Substitute
26779         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
26780         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
26781         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
26782         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
26783         (Depends-on): Update conditions.
26784         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
26785         the Solaris 11 bug.
26787 2012-01-08  Bruno Haible  <bruno@clisp.org>
26789         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
26790         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
26791         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
26792         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
26793         HAVE_WORKING_POSIX_SPAWN.
26794         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
26795         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
26796         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
26797         * lib/spawn_faction_addclose.c: Add workaround implementation if
26798         HAVE_WORKING_POSIX_SPAWN.
26799         * modules/spawn (Makefile): Substitute
26800         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
26801         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
26802         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
26803         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
26804         (Depends-on): Update conditions.
26805         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
26806         the Solaris 11 bug.
26808 2012-01-08  Bruno Haible  <bruno@clisp.org>
26810         doc: Update for Solaris 11.0.
26811         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
26812         * m4/printf.m4: Update comments.
26814 2012-01-08  Bruno Haible  <bruno@clisp.org>
26816         mktime: Avoid compilation error on Solaris 11.
26817         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
26819 2012-01-08  Bruno Haible  <bruno@clisp.org>
26821         doc: Small fix.
26822         * doc/posix-headers/nl_types.texi: Correct platforms list.
26824 2012-01-08  Simon Josefsson  <simon@josefsson.org>
26826         Add lgpl-3.0 module.
26827         * MODULES.html.sh (Support for building documentation): Add
26828         lgpl-3.0.
26829         * modules/lgpl-3.0: New file.
26831 2012-01-08  Jim Meyering  <meyering@redhat.com>
26833         select.c: indent with spaces, not TABs
26834         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
26836 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
26838         quotearg: do not use grave accent for left quote
26839         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
26840         locale_quoting_style.
26841         (quotearg_buffer_restyled): Fix example.
26842         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
26844 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
26846         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
26847         Most programs do not have translation catalogs for English and much
26848         less separate catalogs for British and American English.  Drop the
26849         suggestion to translators about these two, and provide it
26850         automatically for Unicode locales.  Like most programs, even those
26851         using American English, we use single quotation marks.  This conflicts
26852         with the American typographic convention, but works better when you
26853         cite the entire error message within double quotes.  It also tries not
26854         to clash with established practice and with what non-gnulib programs
26855         will usually do.
26856         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
26857         using an UTF-8 or GB-18030 locale.  The list of other locales with
26858         quotes was provided by Bruno Haible.
26859         (quotearg_buffer_restyled): Adjust instructions to translators.
26860         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
26861         text, since this would be wrong when using Unicode.
26862         * modules/quotearg: Depend on c-strcaseeq.
26864 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
26866         quotearg: fix Wikipedia link
26867         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
26869 2012-01-07  Simon Josefsson  <simon@josefsson.org>
26871         Fix for mingw with MSVC9.
26872         * m4/ld-version-script.m4: Check that compiler rejects version
26873         scripts with syntax errors.  Reported by Bruno Haible
26874         <bruno@clisp.org>.
26876 2012-01-06  Bruno Haible  <bruno@clisp.org>
26878         Talk about "native Windows API", not "Woe32".
26879         * lib/accept4.c: Update comments to mention native Windows.
26880         * lib/execute.c: Likewise.
26881         * lib/fatal-signal.c: Likewise.
26882         * lib/localcharset.c: Likewise.
26883         * lib/nanosleep.c: Likewise.
26884         * lib/nl_langinfo.c: Likewise.
26885         * lib/pclose.c: Likewise.
26886         * lib/pipe-filter-gi.c: Likewise.
26887         * lib/pipe-filter-ii.c: Likewise.
26888         * lib/pipe.c: Likewise.
26889         * lib/pipe2.c: Likewise.
26890         * lib/popen.c: Likewise.
26891         * lib/progreloc.c: Likewise.
26892         * lib/relocatable.c: Likewise.
26893         * lib/sigaction.c: Likewise.
26894         * lib/sigprocmask.c: Likewise.
26895         * lib/spawn-pipe.h: Likewise.
26896         * lib/spawn-pipe.c: Likewise.
26897         * lib/spawni.c: Likewise.
26898         * lib/stat-time.h: Likewise.
26899         * lib/w32spawn.h: Likewise.
26900         * tests/test-isatty.c: Likewise.
26901         * lib/config.charset: More comments.
26902         * doc/gnulib-intro.texi: Mention native Windows.
26903         * doc/posix-functions/_Exit_C99.texi: Likewise.
26904         * doc/posix-headers/fcntl.texi: Likewise.
26906 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
26908         argp: Avoid crash if translator uses % characters in a translation.
26909         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
26910         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
26912 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
26914         doc: C11 and C++11 are now official
26915         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
26916         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
26917         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
26918         * modules/stdalign:
26919         Replace references to draft C1X to C11, and to draft C++0X to C++11.
26921 2012-01-06  Bruno Haible  <bruno@clisp.org>
26923         uc-is-grapheme-break tests: Tweak.
26924         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
26925         message.
26927 2012-01-06  Bruno Haible  <bruno@clisp.org>
26929         test-init.sh: correct the test for diff -u
26930         * tests/test-init.sh: Also redirect stdout to /dev/null.
26932 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
26934         Use ', not `, for quoting output.
26935         * build-aux/announce-gen (usage, sizes, print_news_deltas)
26936         (print_changelog_deltas, get_tool_versions, main program):
26937         * build-aux/git-version-gen:
26938         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
26939         * build-aux/move-if-change (help):
26940         * build-aux/useless-if-before-free (usage, main program):
26941         * check-module (parse_module_file, usage)
26942         (find_included_lib_files, check_module):
26943         * lib/argmatch.c (main) [TEST]:
26944         * lib/argp-help.c (_help):
26945         * lib/getopt1.c (main) [TEST]:
26946         * lib/git-merge-changelog.c (usage):
26947         * lib/xstrtol-error.c (xstrtol_error):
26948         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
26949         * m4/argz.m4 (gl_FUNC_ARGZ):
26950         * m4/bison.m4 (gl_BISON):
26951         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
26952         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
26953         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
26954         * m4/fpending.m4 (gl_PREREQ_FPENDING):
26955         * m4/gc-random.m4 (gl_GC_RANDOM):
26956         * m4/intl.m4 (gt_CHECK_DECL):
26957         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
26958         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
26959         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
26960         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
26961         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
26962         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
26963         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
26964         * tests/test-dirname.c (main):
26965         * tests/test-getpass.c (main):
26966         * tests/test-iconvme.c (main):
26967         * tests/test-parse-datetime.c (LOG):
26968         * tests/test-xstrtoimax.sh:
26969         * tests/test-xstrtol.sh:
26970         * tests/test-xstrtoll.sh:
26971         * tests/test-xstrtoumax.sh:
26972         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
26973         * top/GNUmakefile (abort-due-to-no-makefile):
26974         Quote 'like this', not `like this', as per the recent change to
26975         the GNU coding standards.
26977 2012-01-05  Bruno Haible  <bruno@clisp.org>
26979         strtoimax: Don't force a replacement on systems where intmax_t is int.
26980         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
26981         'intmax_t' is not larger than 'int'.
26982         Reported by Pádraig Brady <P@draigBrady.com>.
26984 2012-01-05  Bruno Haible  <bruno@clisp.org>
26986         doc: Mention NetBSD bugs.
26987         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
26988         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
26990 2012-01-05  Bruno Haible  <bruno@clisp.org>
26992         strtoumax tests: Enhance tests.
26993         * tests/test-strtoumax.c (main): Add tests for large values.
26995 2012-01-05  Bruno Haible  <bruno@clisp.org>
26997         strtoimax: Work around AIX 5.1 bug.
26998         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
26999         definition.
27000         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
27001         Set HAVE_STRTOIMAX.
27002         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
27003         REPLACE_STRTOIMAX.
27004         * modules/inttypes-incomplete (Makefile.am): Substitute
27005         REPLACE_STRTOIMAX.
27006         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
27007         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
27008         (Depends-on): Update conditions.
27009         * tests/test-strtoimax.c (main): Add tests for large values.
27010         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
27012 2012-01-05  Bruno Haible  <bruno@clisp.org>
27014         inttypes: Modernize.
27015         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
27016         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
27017         (Makefile.am): Update inttypes.h rule.
27019 2012-01-05  Jim Meyering  <meyering@redhat.com>
27021         init.sh: don't waste a subshell just to redirect stderr
27022         * tests/init.sh: In testing for diff -u and diff -c, use a
27023         stderr-redirecting exec inside `...` rather than a subshell.
27025         test-init.sh: avoid failure on HP-UX 11.00
27026         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
27027         resolves to diff -c or cmp.  Reported by Bruno Haible.
27029 2012-01-05  Bruno Haible  <bruno@clisp.org>
27031         Tests for module 'strtoull'.
27032         * modules/strtoull-tests: New file.
27033         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
27035 2012-01-05  Bruno Haible  <bruno@clisp.org>
27037         Tests for module 'strtoll'.
27038         * modules/strtoll-tests: New file.
27039         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
27041 2012-01-05  Bruno Haible  <bruno@clisp.org>
27043         Tests for module 'strtoul'.
27044         * modules/strtoul-tests: New file.
27045         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
27047 2012-01-05  Bruno Haible  <bruno@clisp.org>
27049         Tests for module 'strtol'.
27050         * modules/strtol-tests: New file.
27051         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
27053 2012-01-04  Jim Meyering  <meyering@redhat.com>
27055         test-init.sh: accommodate Solaris 5.10's different diff -u output
27056         * tests/test-init.sh: Also exempt @@ lines from the comparison
27057         of diff output, since Solaris 5.10 and GNU diff formats differ.
27058         Reported by Stefano Lattarini.
27060 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27062         test-posixtm: don't assume signed integer wraparound
27063         * tests/test-posixtm.c (main): Don't assume wraparound semantics
27064         after signed integer overflow.  Inspired by (though it may not
27065         fix) Bruno Haible's bug report in
27066         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
27068         Spell out "Windows 9x" and "Windows XP".
27069         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
27070         "Windows 9x" and "WinXP" with "Windows XP".
27072 2012-01-04  Jim Meyering  <meyering@redhat.com>
27074         test-vc-list-files-cvs.sh: remove obsolete comment
27075         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
27076         double exit.  Now that's all encapsulated via skip_ and Exit.
27078 2012-01-04  Bruno Haible  <bruno@clisp.org>
27080         Talk about "native Windows API", not "Win32".
27081         * lib/classpath.c: Update comments to mention native Windows.
27082         * lib/csharpexec.c: Likewise.
27083         * lib/dup2.c: Likewise.
27084         * lib/error.c: Likewise.
27085         * lib/fcntl.c: Likewise.
27086         * lib/filename.h: Likewise.
27087         * lib/findprog.c: Likewise.
27088         * lib/get-rusage-as.c: Likewise.
27089         * lib/get-rusage-data.c: Likewise.
27090         * lib/getpagesize.c: Likewise.
27091         * lib/javaexec.c: Likewise.
27092         * lib/msvc-inval.c: Likewise.
27093         * lib/msvc-nothrow.c: Likewise.
27094         * lib/nanosleep.c: Likewise.
27095         * lib/nonblocking.c: Likewise.
27096         * lib/printf-parse.c: Likewise.
27097         * lib/setlocale.c: Likewise.
27098         * lib/sigaction.c: Likewise.
27099         * lib/strerror_r.c: Likewise.
27100         * lib/tmpdir.c: Likewise.
27101         * lib/vasnprintf.c: Likewise.
27102         * lib/w32spawn.h: Likewise.
27103         * lib/waitpid.c: Likewise.
27104         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
27105         * m4/locale-ar.m4: Likewise.
27106         * m4/locale-fr.m4: Likewise.
27107         * m4/locale-ja.m4: Likewise.
27108         * m4/locale-tr.m4: Likewise.
27109         * m4/locale-zh.m4: Likewise.
27110         * m4/printf.m4: Likewise.
27111         * tests/test-cloexec.c: Likewise.
27112         * tests/test-copy-acl.sh: Likewise.
27113         * tests/test-copy-file.sh: Likewise.
27114         * tests/test-file-has-acl.sh: Likewise.
27115         * tests/test-set-mode-acl.sh: Likewise.
27116         * tests/test-dup-safer.c: Likewise.
27117         * tests/test-dup2.c: Likewise.
27118         * tests/test-dup3.c: Likewise.
27119         * tests/test-fcntl.c: Likewise.
27120         * tests/test-nonblocking-pipe.h: Likewise.
27121         * tests/test-nonblocking-socket.h: Likewise.
27122         * tests/test-pipe.c: Likewise.
27123         * tests/test-pipe2.c: Likewise.
27124         * tests/test-spawn-pipe-child.c: Likewise.
27125         * doc/acl-resources.txt: Likewise.
27126         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
27127         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
27128         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
27129         * lib/localcharset.c: Update comments to mention native Windows.
27130         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
27131         * lib/localename.c: Likewise.
27132         * lib/progreloc.c: Likewise.
27133         * lib/relocatable.c: Likewise.
27134         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
27135         (windows_compute_revents): Renamed from win32_compute_revents.
27136         (windows_compute_revents_socket): Renamed from
27137         win32_compute_revents_socket.
27138         * lib/select.c: Update comments to mention native Windows.
27139         (windows_poll_handle): Renamed from win32_poll_handle.
27140         * m4/threadlib.m4: Update comments to mention native Windows.
27141         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
27142         --enable-threads=windows instead of --enable-threads=win32. Set
27143         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
27144         * lib/glthread/lock.h: Update comments to mention native Windows.
27145         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
27146         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
27147         USE_WIN32_THREADS.
27148         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
27149         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
27150         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
27151         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
27152         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
27153         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
27154         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
27155         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
27156         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
27157         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
27158         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
27159         * tests/test-tls.c: Likewise.
27160         Rationale:
27161         Microsoft renamed the "Win32 API" to "Windows API", as it is available
27162         on both 32-bit and 64-bit Windows systems.
27163         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
27164         line of distinction is between "native Windows" on one side and Unix/
27165         POSIX systems on the other side. More details in
27166         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
27167         Suggested by Paul Eggert.
27169 2012-01-03  Bruno Haible  <bruno@clisp.org>
27171         isatty: Support for MSVC 9.
27172         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
27173         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
27174         (_isatty_nothrow): New function.
27175         (isatty): Use it instead of _isatty.
27176         (IsConsoleHandle): Add comment, from Paolo Bonzini.
27177         * lib/poll.c (IsConsoleHandle): Likewise.
27178         * lib/select.c (IsConsoleHandle): Likewise.
27179         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
27180         (gl_PREREQ_ISATTY): New macro.
27181         * modules/isatty (Depends-on): Add msvc-inval.
27182         (configure.ac): Invoke gl_PREREQ_ISATTY.
27184 2012-01-03  Jim Meyering  <meyering@redhat.com>
27186         maint.mk: remove temporary transition aid from over 1.5 years ago
27187         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
27188         purpose was to aid in the transition (avoiding silent malfunction)
27189         from that old name to the new _sc_search_regexp.  This shim was
27190         added by commit 219c504b.
27192         init.sh: do not try to accommodate compare arguments starting with "-"
27193         * tests/init.sh (compare_dev_null_): Do not try to accommodate
27194         compare arguments that start with "-".  Besides, we do not worry
27195         about this when invoking diff or cmp; why start now with sed?
27196         Using "--" to separate options from argument would trigger sed
27197         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
27198         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
27200 2012-01-02  Bruno Haible  <bruno@clisp.org>
27202         Enhance tests for module 'isatty'.
27203         * modules/isatty-tests (Depends-on): Add pipe-posix.
27204         * tests/test-isatty.c: Include <fcntl.h>.
27205         (DEV_NULL): New macro.
27206         (main): Test the resut of isatty() also on regular files, pipes, and
27207         /dev/null.
27209         New module 'isatty'.
27210         * lib/unistd.in.h (isatty): New declaration.
27211         * lib/isatty.c: New file, based on an idea of
27212         Bastien Roucariès <roucaries.bastien@gmail.com>.
27213         * m4/isatty.m4: New file.
27214         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
27215         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
27216         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
27217         REPLACE_ISATTY.
27218         * modules/isatty: New file.
27219         * doc/posix-functions/isatty.texi: Mention the new module.
27220         Suggested by Paolo Bonzini.
27222 2012-01-02  Bruno Haible  <bruno@clisp.org>
27224         canonicalize: Tweak 2011-12-29 commit.
27225         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
27226         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
27228 2012-01-02  Jim Meyering  <meyering@redhat.com>
27230         gitlog-to-changelog: describe input syntax in --help output
27231         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
27233         gitlog-to-changelog: fix typo in --help: show backslash before email @
27234         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
27235         in sources, but not in actual output.
27237 2011-12-30  Jim Meyering  <meyering@redhat.com>
27239         gitlog-to-changelog: don't malfunction when name contains %-directive
27240         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
27241         in a name string cause trouble.  E.g., with a user name of "%s",
27242         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
27244 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
27246         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
27247         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
27248         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
27249         the "  (tiny change)" notation that is appended to the standard
27250         ChangeLog "date  name  email" header line.
27252 2012-01-01  Jim Meyering  <meyering@redhat.com>
27254         test-framework-sh: init.sh: fix "make dist" failure
27255         When using gnulib-tool's --with-tests option and any module that
27256         depends on test-framework-sh, "make dist" would fail due to the
27257         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
27258         in the gltests directory, and not in the gllib/ directory.
27259         One way to work around that is to move the EXTRA_DIST += init.sh
27260         from the primary module to the -tests one:
27261         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
27262         * modules/test-framework-sh (Makefile.am): ...not here.
27263         Reported by Tom G. Christensen in
27264         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
27266         version-etc: update copyright year reported by --version
27267         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
27269 2011-12-31  Pádraig Brady  <P@draigBrady.com>
27271         canonicalize: only stat() if required
27272         * lib/canonicalize.c (canonicalize_filename_mode):
27273         Avoid calling l?stat() when both CAN_MISSING,
27274         and CAN_NOLINKS are set, as we neither need
27275         to resolve symlinks or test component existence.
27277 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
27279         doc: cover st_ino issues once; add OpenVMS etc.
27280         * doc/posix-functions/stat.texi (stat):
27281         * doc/posix-functions/lstat.texi (lstat):
27282         * doc/posix-functions/fstatat.texi (fstatat):
27283         * doc/posix-functions/fstat.texi (fstat):
27284         Move general 'struct stat' stuff to sys_stat.texi,
27285         leaving behind a pointer.
27286         * doc/posix-headers/sys_stat.texi (sys/stat.h):
27287         Merge duplicate info about 'struct stat' problems into here.
27288         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
27289         and suggest partial workarounds.
27291         same-inode: port to OpenVMS
27292         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
27293         three st_ino values.
27295 2011-12-30  Pádraig Brady  <P@draigBrady.com>
27297         canonicalize: fix references to stat() and lstat()
27298         * lib/canonicalize.c (canonicalize_filename_mode):
27299         Ensure references always resolve to a replacement
27300         function if required (even via a macro).
27302 2011-12-30  Jim Meyering  <meyering@redhat.com>
27304         gitlog-to-changelog: remove a little duplication
27305         * build-aux/gitlog-to-changelog (main): Grep @lines once,
27306         rather than twice.
27308 2011-12-29  Pádraig Brady  <P@draigBrady.com>
27310         canonicalize: add support for not resolving symlinks
27311         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
27312         indicate we don't want to follow symlinks.  Also
27313         provide CAN_MODE_MASK to aid setting these existing
27314         mutually exclusive values.
27315         * lib/canonicalize.c (canonicalize_filename_mode):
27316         Extract the flags from can_mode parameter, which
27317         are currently just used to select between stat()
27318         and lstat().  Also ensure that mutually exclusive
27319         values are flagged immediately as invalid.
27320         * tests/test-canonicalize.c: Verify symlinks are
27321         not followed, and that invalid flag combinations
27322         are diagnosed.
27324 2011-12-25  Jim Meyering  <meyering@redhat.com>
27326         gitlog-to-changelog: do not clump multi-paragraph entries
27327         Identical header lines (date,name,email+coauthors) are suppressed,
27328         thus putting all entries with those same characteristics under
27329         a single header.  However, when a log entry consists of two or
27330         more paragraphs, it may not be clear where it starts and ends.
27331         This change makes it so that such an entry is always separated
27332         from others by a header line, even when that header would
27333         otherwise be suppressed.
27334         * build-aux/gitlog-to-changelog: Implement the above.
27335         Inspired by a related request from Stefano Lattarini in
27336         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
27338 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27340         announce-gen: fix `cmd' typo in diagnostic
27341         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
27342         diagnostic: a missing '$' meant that the command was not output.
27344 2011-12-23  Jim Meyering  <meyering@redhat.com>
27346         test-framework-sh: distribute init.sh
27347         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
27348         Otherwise, "make -C gnulib-tests check" (at least in grep) would
27349         fail due to the lack of init.sh.
27351         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
27352         * modules/atexit-tests: Rather than listing tests/init.sh,
27353         now that there's a module for it, simply depend on that new module.
27354         * modules/closein-tests: Likewise.
27355         * modules/exclude-tests: Likewise.
27356         * modules/getcwd-tests: Likewise.
27357         * modules/perror-tests: Likewise.
27358         * modules/pread-tests: Likewise.
27359         * modules/pwrite-tests: Likewise.
27360         * modules/vc-list-files-tests: Likewise.
27361         * modules/verify-tests: Likewise.
27362         * modules/xalloc-die-tests: Likewise.
27363         * modules/xstrtoimax-tests: Likewise.
27364         * modules/xstrtol-tests: Likewise.
27365         * modules/xstrtoll-tests: Likewise.
27366         * modules/xstrtoumax-tests: Likewise.
27367         * modules/yesno-tests: Likewise.
27369 2011-12-22  Jim Meyering  <meyering@redhat.com>
27371         test-framework-sh: add minimal tests of init.sh's compare function
27372         * modules/test-framework-sh-tests: New file.
27373         * tests/test-init.sh: New file.
27375         test-framework-sh: new module
27376         * modules/test-framework-sh: New file.
27377         * MODULES.html.sh (Support for maintaining and releasing projects):
27378         List it.
27380         init.sh: do not emit simulated diff output to stderr
27381         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
27383 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
27385         .gitignore: ignore gnulib.dvi and regex.info
27386         * doc/.gitignore:add gnulib.dvi and regex.info
27388 2011-12-22  Jim Meyering  <meyering@redhat.com>
27390         init.sh: correct previous change
27391         * tests/init.sh (compare): My previous change was wrong.
27392         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
27394         init.sh: avoid unwarranted test failure when using "set -e"
27395         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
27396         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
27397         a use like "compare exp out" would get evoke an unconditional failure.
27399 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
27401         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
27402         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
27403         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
27404         autoreconf that did not.
27405         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
27406         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
27408 2011-12-17  Jim Meyering  <meyering@redhat.com>
27410         bootstrap: remove some now-unneeded code
27411         This script arose back when gnulib-tool was young.
27412         Since then, it has seen improvements that render much of this
27413         script unnecessary.  In particular, it can now make symlinks
27414         to the files it uses.  Also, I no longer see as much value in
27415         marking files as read-only via comments.
27416         If you relied on the symlink-creation feature of the preceding
27417         version of this script, you can get most of that functionality
27418         by adding the --symlink option to the definition of
27419         gnulib_tool_option_extras in your bootstrap.conf file.
27420         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
27421         Run autopoint and libtoolize *before* gnulib-tool.
27422         After it, run an abbreviated autoreconf, rather than a loop around
27423         all tools.
27424         (slirp, bt_mark_as_generated): Remove functions.
27426 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27428         ftoastr: fix typo
27429         * lib/ftoastr.h: Fix misspelling in comment.
27431 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
27433         * top/README-release: fix punctuation.
27435 2011-12-17  Jim Meyering  <meyering@redhat.com>
27437         bootstrap: correct the recent buildreq change
27438         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
27439         had no effect.
27440         * build-aux/bootstrap (buildreq): Bracket each search term with
27441         "*...*", so that the shell "case" statement works as intended.
27442         Add comments.
27444 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
27446         build: let bootstrap resort to wget when downloading .po files
27447         * build-aux/bootstrap (download_po_files): Fallback to wget when
27448         downloading the .po files via rsync fails.  This is necessary to
27449         bootstrap from behind a strict firewall.
27451 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
27453         stdint: don't assume C++11 when compiling with g++
27454         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
27455         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
27456         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
27457         work also in C++ before C++11, as that improperly inhibits
27458         generating a substitute stdint.h for that case.
27460 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
27462         alloca: protect comment from gnulib-tool
27463         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
27464         that gnulib-tool doesn't think it's a license, and munge it to
27465         say "GCC version 3".
27467 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
27469         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
27470         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
27471         $(abs_top_builddir) instead of $(top_builddir).
27473 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
27475         strftime-tests: also test nanoseconds
27476         * tests/test-strftime.c (T): Add a test of %N.
27478 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
27480         inttypes, stdint: add C++11 support
27481         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
27482         when including inttypes.h and stdint.h.  Support this change to
27483         the standard.
27484         * doc/posix-headers/inttypes.texi (inttypes.h):
27485         * doc/posix-headers/stdint.texi (stdint.h): Document this.
27486         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
27487         Define if not defined already, for the benefit of pre-C++11 hosts.
27488         Define the standard format macros (e.g., PRId8) always.
27489         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
27490         Likewise, if __cpluspus.  Define the standard constant and limit
27491         macros (e.g., INT8_C, INT8_MAX) always.
27492         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
27493         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
27494         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
27495         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
27496         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
27497         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
27498         Likewise.
27500 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
27502         nonblocking tests: Fix test failure on Linux/PPC.
27503         Suggested by Prerna Saxena in
27504         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
27505         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
27506         Set to 1100000.
27508 2011-12-12  Jim Meyering  <meyering@redhat.com>
27510         argmatch: don't hard-code `' when listing valid option arguments
27511         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
27512         use the quote function to add quotes.  Use fputs rather than
27513         fprintf for the format string with no format directive.
27515 2011-12-07  Eric Blake  <eblake@redhat.com>
27517         bootstrap: detect tools required by gnulib-tool
27518         * build-aux/bootstrap (buildreq): Provide minimum implicit
27519         dependencies.
27520         * DEPENDENCIES: Mention patch as a prereq.
27522 2011-12-04  Bruno Haible  <bruno@clisp.org>
27524         sethostname: Port to Windows platforms.
27525         * lib/sethostname.c: Provide an alternate implementation for Windows
27526         platforms.
27527         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
27528         (main): Skip the test if sethostname() fails with EPERM. On Windows
27529         platforms, don't check the result of gethostname().
27531 2011-12-04  Bruno Haible  <bruno@clisp.org>
27532             Jim Meyering  <meyering@redhat.com>
27534         tests: Avoid spurious error message on platforms without mktemp program.
27535         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
27537 2011-12-04  Bruno Haible  <bruno@clisp.org>
27539         sethostname: Fix documentation.
27540         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
27541         "not fixed" section.
27543 2011-12-03  Bruno Haible  <bruno@clisp.org>
27545         gnulib-tool: Verify that the License field is present and non-empty.
27546         * gnulib-tool (func_get_license_raw): New function, extracted from
27547         func_get_license.
27548         (func_get_license): Use it. Warn if the module is not a test module and
27549         has no license.
27550         Suggested by Jim Meyering.
27552 2011-12-03  Bruno Haible  <bruno@clisp.org>
27554         sethostname tests: Fix link error on mingw.
27555         * tests/test-sethostname1.c: New file, extracted from
27556         tests/test-sethostname.c.
27557         * tests/test-sethostname2.c: New file, extracted from
27558         tests/test-sethostname.c.
27559         * tests/test-sethostname.c: Remove file.
27560         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
27561         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
27562         (Depends-on): Add gethostname.
27563         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
27564         Link the latter with $(GETHOSTNAME_LIB).
27566         sethostname tests: Fix compilation error on mingw.
27567         * tests/test-sethostname.c: Don't include <sys/types.h>.
27568         (geteuid): Use a dummy value without uid_t.
27569         * modules/sethostname-tests (Depends-on): Remove sys_types.
27571         sethostname tests: Avoid a gcc warning.
27572         * tests/test-sethostname.c (main): Remove an unused variable.
27574         Tweak last commit.
27575         * modules/sethostname-tests (Files): Sort by decreasing importance.
27576         (configure.ac): Check for geteuid.
27577         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
27578         the test when there's nothing to test. Drop an unnecessary cast.
27579         Improve an error message. Verify that the final sethostname() call
27580         succeeds.
27582 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
27584         Add a test suite for the sethostname module.
27585         * modules/sethostname-tests: New file.  A test program
27586         for the sethostname module.
27587         * tests/test-sethostname.c: Likewise.
27589 2011-12-03  Bruno Haible  <bruno@clisp.org>
27591         Tweak last commit.
27592         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
27593         Fix preprocessor directives indentation. Fix typos.
27594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
27595         * modules/unistd (Makefile): Likewise.
27597 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
27599         Integrate the sethostname module into unistd.
27600         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
27601         into the unistd.h header.
27602         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
27603         preprocessor directives.
27604         * modules/unistd: Setup the Makefile substitutions of the
27605         SETHOSTNAME preprocessor directives.
27607 2011-12-03  Bruno Haible  <bruno@clisp.org>
27609         Tweak last commit.
27610         * lib/sethostname.c: Don't include <string.h>.
27611         (sethostname): No need to copy the argument string to the stack. Don't
27612         call clearerr. Preserve errno when fprintf failed.
27613         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
27614         Don't invoke AC_REPLACE_FUNCS.
27615         * modules/sethostname (Link): Remove empty section.
27616         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
27617         failure problem.
27619 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
27621         New module 'sethostname'.
27622         * lib/sethostname.c (sethostname): New file.  Provide sethostname
27623         for systems that lack it.
27624         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
27625         sethostname declaration and function.
27626         * modules/sethostname: New file.  Define the sethostname module.
27628 2011-12-03  Bruno Haible  <bruno@clisp.org>
27630         Tweak last commit.
27631         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
27633 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
27635         Split the HOST_NAME_MAX detection into a separate m4 macro.
27636         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
27637         macro so it can be used by the pending sethostname module.
27639 2011-12-03  Bruno Haible  <bruno@clisp.org>
27641         Fix module descriptions syntax.
27642         * modules/argv-iter (License): Fix syntax.
27643         * modules/di-set (License): Likewise.
27644         * modules/ino-map (License): Likewise.
27645         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
27647 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
27649         stdalign: port to Clang 3.0
27650         Problem reported by Simon Josefsson in
27651         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
27652         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
27653         which has <stdalign.h> but which does not define alignof.
27654         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
27656 2011-12-01  Eric Blake  <eblake@redhat.com>
27658         mktempd: silence dd usage
27659         * build-aux/mktempd (rand_bytes): Silence dd.
27661 2011-11-30  Simon Josefsson  <simon@josefsson.org>
27663         manywarnings: Don't mention gcc version in docstring.
27664         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
27665         Jim Meyering <meyering@redhat.com>.
27667 2011-11-30  Jim Meyering  <meyering@redhat.com>
27669         hash: mark a few floating point constants with "f" suffix
27670         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
27671         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
27672         floating point constants with "f", since they're destined to be
27673         saved/used as "float"s.
27675 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
27677         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
27678         * tests/test-float.c (test_long_double): Correct and re-enable the
27679         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
27681 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
27683         Avoid subtracting two pointers that don't point into the same block.
27684         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
27685         only pointers into the same memory block are subtracted. We cannot
27686         assume that sizeof (ptrdiff_t) == sizeof (void *).
27688 2011-11-29  Eric Blake  <eblake@redhat.com>
27690         maint.mk: add syntax check for use of compare from init.sh
27691         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
27692         moved here from coreutils.
27694         manywarnings: drop -Wunsuffixed-float-constants
27695         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
27696         '1.0D', which is the only way to silence this warning for 'double'.
27698 2011-11-29  Jim Meyering  <meyering@redhat.com>
27700         hash: mark compute_bucket_size with the pure attribute
27701         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
27703         quotearg, propername: correct pragma guard expression
27704         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
27705         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
27707 2011-11-28  Jim Meyering  <meyering@redhat.com>
27709         propername: do not mark proper_name with the const attribute
27710         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
27711         since it examines data pointed to by its parameter.
27712         * lib/propername.c (proper_name): Instead, add a pragma to suppress
27713         the suggestion from -Wsuggest-attribute=const.
27715         propername: mark one more function as const
27716         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
27718 2011-11-27  Jim Meyering  <meyering@redhat.com>
27720         mark functions with const and pure attributes
27722         Mark functions per suggestions from gcc-4.6 when using these options:
27723         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
27724         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
27725         Follow these guidelines: when possible, apply the attribute to
27726         an extern declaration, not to its definition.  Apply it to the
27727         definition only when the definition is static.
27728         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
27729         * lib/argv-iter.h (argv_iter_n_args): Likewise.
27730         * lib/base64.h (isbase64): Likewise.
27731         * lib/basename-lgpl.c (last_component, base_len): Likewise.
27732         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
27733         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
27734         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
27735         (c_tolower, c_toupper): Likewise.
27736         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
27737         * lib/chdir-long.c (find_non_slash): Likewise.
27738         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
27739         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
27740         * lib/file-type.h (file_type): Likewise.
27741         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
27742         * lib/filevercmp.c (verrevcmp): Likewise.
27743         * lib/freadahead.h (freadahead): Likewise.
27744         * lib/fts.c (fts_maxarglen): Likewise.
27745         * lib/hash-pjw.h (hash_pjw): Likewise.
27746         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
27747         * lib/hash.c (is_prime, next_prime): Likewise.
27748         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
27749         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
27750         (hash_table_ok, hash_get_first, hash_string): Likewise.
27751         (compute_bucket_size): Likewise.
27752         * lib/i-ring.h (i_ring_empty): Likewise.
27753         * lib/isnan.c (isnanl): Likewise.
27754         * lib/math.h (isnanl, rpl_isnanl): Likewise.
27755         * lib/memcasecmp.h (memcasecmp): Likewise.
27756         * lib/memchr2.h (memchr2): Likewise.
27757         * lib/memcmp2.h (memcmp2): Likewise.
27758         * lib/parse-datetime.y (lookup_zone): Likewise.
27759         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
27760         [!WINDOWS_SOCKETS]: Likewise.
27761         * lib/strnlen1.h (strnlen1): Likewise.
27762         * lib/uniwidth.in.h (uc_width): Likewise.
27763         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
27764         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
27765         (quoting_options_from_style): Add a comment.
27766         * lib/propername.h (proper_name): Add a comment.
27768 2011-11-27  Bruno Haible  <bruno@clisp.org>
27770         Remove unused macros from !_LIBC code in glibc-borrowed files.
27771         * lib/fnmatch.c (STRCOLL): Remove macro.
27772         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
27773         * lib/glob.c (__stat, __readdir64): Remove macros.
27774         * lib/tempname.c (__open64, __xstat64): Remove macros.
27775         Suggested by Paul Eggert.
27777 2011-11-27  Bruno Haible  <bruno@clisp.org>
27779         getcwd: Fix link error on MSVC 9.
27780         * modules/getcwd (Depends-on): Add readdir, rewinddir.
27782 2011-11-27  Bruno Haible  <bruno@clisp.org>
27784         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
27785         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
27786         HAVE_OPENDIR is 0.
27787         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
27788         HAVE_CLOSEDIR is 0.
27789         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
27790         is 0.
27791         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
27793 2011-11-27  Bruno Haible  <bruno@clisp.org>
27795         getcwd: Fix bug from 2011-08-17.
27796         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
27797         platforms that need it.
27798         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
27799         code of 4 to be a failure, not a success. This ensures that
27800         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
27802 2011-11-27  Bruno Haible  <bruno@clisp.org>
27804         binary-io tests: Avoid test failure on mingw when libtool is used.
27805         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
27806         Don't verify the size of t-bin-out1.tmp here.
27807         * tests/test-binary-io.sh: Verify it here.
27808         Reported by Simon Josefsson.
27810 2011-11-26  Bruno Haible  <bruno@clisp.org>
27812         Fix conflict between two instantiations of module 'unistd'.
27813         * gnulib-tool (func_emit_autoconf_snippet): Substitute
27814         ${include_guard_prefix} also in the autoconf snippet.
27815         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
27816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
27817         GNULIB_UNISTD_H_GETOPT.
27818         * modules/getopt-posix (configure.ac): Set the
27819         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
27820         * modules/getopt-gnu (configure.ac): Likewise.
27821         * modules/unistd (Makefile.am): Change the substitution value of
27822         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
27823         Reported by Simon Josefsson.
27825 2011-11-25  Bruno Haible  <bruno@clisp.org>
27827         pagealign_alloc: Doc and comments.
27828         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
27829         module.
27830         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
27832 2011-11-25  Jim Meyering  <meyering@redhat.com>
27834         test-update-copyright.sh: avoid false-positive failure
27835         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
27836         around false positive failure on Cygwin/Windows.  The latter was
27837         matching erroneously-created files with names like
27838         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
27840 2011-11-25  Simon Josefsson  <simon@josefsson.org>
27842         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
27843         * m4/valgrind-tests.m4: Check that the parameters that will be
27844         used works, not just a subset of them.  Reported by Bruno Haible
27845         <bruno@clisp.org>.
27847 2011-11-24  Jim Meyering  <meyering@redhat.com>
27849         test-stdalign.c: comment out long double tests
27850         * tests/test-stdalign.c: Don't try to reduce alignment of long double
27851         variables.  That provokes errors like this from gcc-4.7.0 20111124:
27852         error: '_Alignas' specifiers cannot reduce alignment of \
27853         'static_longdouble_alignas'.
27855 2011-11-22  Jim Meyering  <meyering@redhat.com>
27857         init.sh: make "compare /dev/null FILE" output more readable
27858         * tests/init.sh (compare_): Document the preferred order of arguments.
27859         (emit_diff_u_header_): New function.
27860         (compare_dev_null_): Emit a simulated diff, rather than just the
27861         contents of the unexpected file.  Suggestion from Bruno Haible.
27863 2011-11-21  Jim Meyering  <meyering@redhat.com>
27864             Eric Blake  <eblake@redhat.com>
27866         init.sh: work around OSF/1 5.1's mishandling of /dev/null
27867         * tests/init.sh: Make our compare function slightly more portable.
27868         Reported by Bruno Haible in
27869         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
27871 2011-11-21  Simon Josefsson  <simon@josefsson.org>
27873         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
27874         before using it, in code that ends up in config.h.
27876 2011-11-20  Bruno Haible  <bruno@clisp.org>
27878         getcwd: Work around getcwd bug on AIX 5..7.
27879         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
27880         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
27881         Use a different value for gl_cv_func_getcwd_path_max. Move the
27882         definition of HAVE_PARTLY_WORKING_GETCWD from here...
27883         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
27884         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
27885         Define HAVE_MINIMALLY_WORKING_GETCWD.
27886         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
27887         where it is not even minimally working, that is, on AIX.
27888         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
27889         m4/getcwd-path-max.m4.
27890         (main): Update exit code computation.
27891         * doc/posix-functions/getcwd.texi: Mention list of platforms where
27892         getcwd does not handle long file names.
27894 2011-11-20  Bruno Haible  <bruno@clisp.org>
27896         getcwd: Fix bug from 2009-09-10.
27897         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
27898         like "no".
27900 2011-11-20  Simon Josefsson  <simon@josefsson.org>
27902         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
27904 2011-11-20  Bruno Haible  <bruno@clisp.org>
27906         fma tests: Avoid shadowing local variables.
27907         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
27908         expected.
27910 2011-11-20  Bruno Haible  <bruno@clisp.org>
27912         copysignf tests: Fix.
27913         * tests/test-copysignf.c: Fix signature check.
27915 2011-11-20  Bruno Haible  <bruno@clisp.org>
27917         fma: Remove unused code.
27918         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
27919         unused macros.
27921 2011-11-20  Bruno Haible  <bruno@clisp.org>
27923         sethostname: Fix doc about AIX.
27924         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
27925         sethostname; it has it.
27927         sethostname: Mention more portability problems.
27928         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
27929         problem.
27930         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27932 2011-11-19  Bruno Haible  <bruno@clisp.org>
27934         Depend on module fcntl-h when AT_FDCWD is used.
27935         * modules/utimens (Depends-on): Add fcntl-h.
27936         * modules/areadlinkat (Depends-on): Likewise.
27937         * modules/areadlinkat-with-size (Depends-on): Likewise.
27938         * modules/faccessat (Depends-on): Likewise.
27939         * modules/fchmodat (Depends-on): Likewise.
27940         * modules/fchownat (Depends-on): Likewise.
27941         * modules/getcwd (Depends-on): Likewise.
27942         * modules/mkdirat (Depends-on): Likewise.
27943         * modules/mkfifoat (Depends-on): Likewise.
27944         * modules/readlinkat (Depends-on): Likewise.
27945         * modules/symlinkat (Depends-on): Likewise.
27946         * modules/dup2-tests (Depends-on): Likewise.
27947         * modules/fdutimensat-tests (Depends-on): Likewise.
27948         * modules/futimens-tests (Depends-on): Likewise.
27950 2011-11-19  Bruno Haible  <bruno@clisp.org>
27952         euidaccess: Update a comment.
27953         * lib/euidaccess.c: Update comment about platforms with faccessat.
27955 2011-11-19  Bruno Haible  <bruno@clisp.org>
27957         openat: Fix file list.
27958         * modules/openat (Files): Remove lib/at-func.c.
27960 2011-11-19  Bruno Haible  <bruno@clisp.org>
27962         fstatat: Simplify.
27963         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
27964         gnulib should define rpl_fstatat, there is a
27965         "#define fstatat rpl_fstatat" in <sys/stat.h>.
27967 2011-11-19  Bruno Haible  <bruno@clisp.org>
27969         Ensure 'inline' can be used in tests/test-utimens-common.h.
27970         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
27971         * modules/futimens-tests (configure.ac): Likewise.
27972         * modules/utimens-tests (configure.ac): Likewise.
27973         * modules/utimensat-tests (configure.ac): Likewise.
27975 2011-11-19  Simon Josefsson  <simon@josefsson.org>
27977         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
27978         not hash_insert0.
27979         (hash_insert_if_absent): Doc fix.
27981 2011-11-19  Simon Josefsson  <simon@josefsson.org>
27983         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
27985 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27987         test-getcwd: disambiguate exit status
27988         * tests/test-getcwd.c (test_long_name): Return 0..7.
27989         (main): Exit with an unambiguous exit status.  The old
27990         code yielded a mysterious mixture of two failure codes.
27992         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
27993         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
27994         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
27995         rpl_fstatat or fstatat.  This should fix the other problem
27996         reported by Kai Habel in
27997         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
27998         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
27999         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
28000         and I reproduced it on a Solaris 8 host we still have in production.
28002 2011-11-18  Jim Meyering  <meyering@redhat.com>
28004         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
28005         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
28006         Add a sentence to the comment.
28007         (hash_insert0): New function that simply calls hash_insert_if_absent.
28008         * lib/hash.h (hash_insert_if_absent): Declare it.
28009         (hash_insert0): Add deprecation attribute.
28010         (_GL_ATTRIBUTE_DEPRECATED): Define.
28011         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
28012         not hash_insert0.
28013         * NEWS: Mention it, even though it's not really an incompatible change.
28015 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
28017         openat: avoid compilation failure due to lack of <errno.h> inclusion
28018         * lib/openat.c: Include <errno.h>.
28020 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28022         * modules/getcwd (Depends-on): Add fdopendir.
28023         This fixes one of the two problems reported by Kai Habel in
28024         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
28026         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
28027         stdalign problem reported by Ian Beckwith in
28028         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
28029         * modules/crypto/gc-arcfour (Depends-on):
28030         Depend conditionally on crypto/arcfour.
28031         * modules/crypto/gc-arctwo (Depends-on):
28032         Depend conditionally on crypto/arctwo.
28033         * modules/crypto/gc-des (Depends-on):
28034         Depend conditionally on crypto/des.
28035         * modules/crypto/gc-hmac-md5 (Depends-on):
28036         Depend conditionally on crypto/hmac-md5.
28037         * modules/crypto/gc-hmac-sha1 (Depends-on):
28038         Depend conditionally on crypto/hmac-sha1.
28039         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
28040         * modules/crypto/gc-md4 (Depends-on):
28041         Depend conditionally on crypto/md4.
28042         * modules/crypto/gc-md5 (Depends-on):
28043         Depend conditionally on crypto/md5.
28044         * modules/crypto/gc-rijndael (Depends-on):
28045         Depend conditionally on crypto/rijndael.
28046         * modules/crypto/gc-sha1 (Depends-on):
28047         Depend conditionally on crypto/sha1.
28048         * modules/crypto/gc-arcfour:
28049         * modules/crypto/gc-arctwo:
28050         * modules/crypto/gc-des:
28051         * modules/crypto/gc-hmac-md5:
28052         * modules/crypto/gc-hmac-sha1:
28053         * modules/crypto/gc-md2:
28054         * modules/crypto/gc-md4:
28055         * modules/crypto/gc-md5:
28056         * modules/crypto/gc-rijndael:
28057         * modules/crypto/gc-sha1:
28058         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
28059         now that the conditional dependencies do the work for us.
28061 2011-11-17  Jim Meyering  <meyering@redhat.com>
28063         tests: factor st_ctime-comparison out of two headers
28064         * tests/test-utimens-common.h (ctime_compare): Define.
28065         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
28066         * tests/test-lutimens.h (test_lutimens): Likewise.
28067         * tests/test-utimens.h (test_utimens): Likewise.
28069         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
28070         Invoke the test program via an init.sh-using wrapper.
28071         * tests/test-getcwd.sh: New file.
28072         * modules/getcwd-tests (Files): Add it.
28073         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
28075 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
28077         gitlog-to-changelog: support multi-author commits.
28078         The FSF cares about keeping track of all authors of patches to its
28079         projects, but Git doesn't provide obvious support for multi-author
28080         changesets. Consensus seems to be forming around the use of extra
28081         Signed-off-by inspired lines in the log message formatted as
28082         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
28083         multi-author commits between version control systems.
28084         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
28085         log message and output in standard ChangeLog multi-author format.
28086         Reported by Peter Rosin <peda@lysator.liu.se>
28088 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
28089             Bruno Haible  <bruno@clisp.org>
28091         Fix some modules' file list.
28092         * modules/fstatat (Files): Add m4/lstat.m4.
28093         * modules/openat (Files): Likewise.
28094         * modules/unlinkat (Files): Likewise.
28096 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
28098         maint.mk: fix tight-scope.mk generation in VPATH builds.
28099         * top/maint.mk (tight-scope.mk): Make sure to prefix file
28100         reference with $(srcdir) so that the file is found correctly even
28101         when running `make syntax-check' in a VPATH build.
28103 2011-11-13  Bruno Haible  <bruno@clisp.org>
28104             Jim Meyering  <meyering@redhat.com>
28106         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
28107         * tests/init.sh (compare): Remove "No differences encountered" or
28108         synonymous output from the 'diff' program.
28110 2011-11-13  Bruno Haible  <bruno@clisp.org>
28112         Makefile: Tweak indentation.
28113         * Makefile: Use tab as first character in every line that contains rule
28114         commands.
28116 2011-11-13  Bruno Haible  <bruno@clisp.org>
28118         Syntax check for copyright statements.
28119         * check-copyright: New file.
28120         * Makefile (sc_check_copyright): New rule.
28122 2011-11-13  Simon Josefsson  <simon@josefsson.org>
28124         * build-aux/git-version-gen: Add --prefix to configure the tag
28125         match string.
28127 2011-11-13  Simon Josefsson  <simon@josefsson.org>
28129         * build-aux/git-version-gen: Add --help and --version.
28131 2011-11-12  Jim Meyering  <meyering@redhat.com>
28133         revamp the other test-exclude?.sh scripts to use init.sh, too
28134         * tests/test-exclude1.sh: Use init.sh.
28135         * tests/test-exclude2.sh: Likewise.
28136         * tests/test-exclude3.sh: Likewise.
28137         * tests/test-exclude4.sh: Likewise.
28138         * tests/test-exclude5.sh: Likewise.
28139         * tests/test-exclude6.sh: Likewise.
28140         * tests/test-exclude7.sh: Likewise.
28141         * tests/test-exclude8.sh: Likewise.
28142         * modules/exclude-tests (Files): List init.sh.
28144         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
28145         These shell scripts ignored failure of the binary test-exclude,
28146         so making the latter return 77 didn't cause them to be skipped.
28147         * tests/test-exclude5.sh: Exit with test-exclude's error status
28148         when that program fails.  Revamp to use init.sh.
28149         * tests/test-exclude2.sh: Likewise.
28151         test-exclude: fix a typo
28152         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
28154 2011-11-11  Bruno Haible  <bruno@clisp.org>
28156         obstack: Fix compilation error on MSVC 9.
28157         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
28159 2011-11-11  Jim Meyering  <meyering@redhat.com>
28161         test-exclude: skip tests rather than failing on deficient systems
28162         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
28163         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
28164         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
28165         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
28167 2011-11-10  Bruno Haible  <bruno@clisp.org>
28169         ptsname_r test: Avoid gcc warning on glibc systems.
28170         * tests/test-ptsname_r.c (null_ptr): New function.
28171         (test_errors): Use it.
28173 2011-11-10  Bruno Haible  <bruno@clisp.org>
28175         ptsname_r: Avoid compilation error on OSF/1 5.1.
28176         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
28177         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
28178         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
28179         function is not declared or incompatibly declared.
28180         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
28181         * modules/ptsname_r (Depends-on, configure.ac): Update.
28182         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
28184 2011-11-10  Bruno Haible  <bruno@clisp.org>
28186         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
28187         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
28188         When cross-compiling, guess yes on all platforms except AIX.
28189         Reported by Ludovic Courtès <ludo@gnu.org>.
28191 2011-11-09  Bruno Haible  <bruno@clisp.org>
28193         ptsname_r tests: Fix bugs.
28194         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
28195         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
28197 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28199         fstatat: work with cross-compilation
28200         Problem reported by Ludovic Courtès in
28201         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
28202         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
28203         "cross-compiling" and assume the bug is present.  Replace
28204         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
28205         an inverted sense, to be more conservative about our assumptions.
28206         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
28208 2011-11-09  Bruno Haible  <bruno@clisp.org>
28210         Improve MODULES.html output.
28211         * modules/mkfifoat (Description): Use the word "function".
28212         * modules/readlinkat (Description): Likewise.
28213         * modules/symlinkat (Description): Likewise.
28215 2011-11-09  Eric Blake  <eblake@redhat.com>
28217         ptsname_r-tests: new test module
28218         * modules/ptsname_r-tests: New module.
28219         * tests/test-ptsname_r.c: New file.
28221         ptsname_r: new module
28222         * modules/ptsname_r: New module.
28223         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
28224         * lib/ptsname.c (__ptsname_r): Split...
28225         * lib/ptsname_r.c: ...into new file.
28226         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
28227         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
28228         * modules/stdlib (Makefile.am): Substitute witnesses.
28229         * lib/stdlib.in.h (ptsname_r): Declare it.
28230         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
28231         * MODULES.html.sh (Misc): Likewise.
28232         * modules/ptsname (Depends-on): Alter dependency.
28233         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
28235 2011-11-09  Jim Meyering  <meyering@redhat.com>
28237         announce-gen: be more concise when there's only one URL+tarball
28238         * build-aux/announce-gen (get_tool_versions): When you distribute
28239         only one type of tarball, combine the first two "Here are..."
28240         sections and make the key-checking grammar independent of
28241         how many tarballs there are.
28243 2011-11-09  Eric Blake  <eblake@redhat.com>
28245         openpty: provide a stub on mingw
28246         * lib/pty.in.h (includes): Provide forward declarations.
28247         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
28249         raise: fix mingw handling of SIGPIPE
28250         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
28252 2011-11-08  Bruno Haible  <bruno@clisp.org>
28254         More conditional dependencies.
28255         * modules/faccessat (Depends-on): Add conditions.
28256         * modules/fchmodat (Depends-on): Likewise.
28257         * modules/fchownat (Depends-on): Likewise.
28258         * modules/fstatat (Depends-on): Likewise.
28259         * modules/mkfifoat (Depends-on): Likewise.
28260         * modules/readlinkat (Depends-on): Likewise.
28261         * modules/symlinkat (Depends-on): Likewise.
28262         * modules/unlinkat (Depends-on): Likewise.
28263         * modules/utimensat (Depends-on): Likewise.
28264         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
28265         * modules/linkat (Depends-on): Refine the conditions.
28266         * modules/renameat (Depends-on): Likewise.
28268 2011-11-08  Bruno Haible  <bruno@clisp.org>
28270         faccessat: Move AC_LIBOBJ invocation to module description.
28271         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
28272         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
28273         invocation from here...
28274         * modules/faccessat (configure.ac): ... to here. Invoke
28275         gl_PREREQ_FACCESSAT.
28277 2011-11-08  Bruno Haible  <bruno@clisp.org>
28279         faccessat: Simplify autoconf macro.
28280         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
28281         gl_FUNC_EUIDACCESS.
28283 2011-11-08  Bruno Haible  <bruno@clisp.org>
28285         renameat: Fix dependencies.
28286         * modules/renameat (Depends-on): Add stdbool.
28288 2011-11-08  Bruno Haible  <bruno@clisp.org>
28290         mkfifoat: Fix module description.
28291         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
28292         not gl_UNISTD_MODULE_INDICATOR.
28294 2011-11-08  Bruno Haible  <bruno@clisp.org>
28296         fstatat: Remove unused dependency.
28297         * modules/fstatat (Depends-on): Remove fstat.
28299 2011-11-08  Simon Josefsson  <simon@josefsson.org>
28301         GNUmakefile: behave when Makefile is missing.
28302         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
28304 2011-11-08  Bruno Haible  <bruno@clisp.org>
28306         openat: Conditionalize dependencies.
28307         * lib/openat.c: Reduce the scope of some #includes.
28308         * modules/openat (Depends-on): Add conditions.
28310 2011-11-07  Jim Meyering  <meyering@redhat.com>
28312         maint.mk: extract GPG key ID without using a temporary file
28313         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
28314         without using a temporary file.  Based on a suggestion from Werner Koch
28315         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
28317 2011-11-07  Eric Blake  <eblake@redhat.com>
28319         grantpt: fix typo
28320         * lib/stdlib.in.h (grantpt): Check correct function.
28322         maint.mk: silence new syntax check
28323         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
28325 2011-11-06  Bruno Haible  <bruno@clisp.org>
28327         Doc about floating-point and math API.
28328         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
28329         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
28331 2011-11-06  Bruno Haible  <bruno@clisp.org>
28333         stdalign tests: Skip the test when compiled by Sun C.
28334         * tests/test-stdalign.c (main): Skip the test on Sun C.
28336 2011-11-06  Bruno Haible  <bruno@clisp.org>
28338         ansi-c++-opt: Complete the 2011-06-05 change.
28339         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
28340         does not support namespaces, set the variable to "no", not to ":".
28342 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
28344         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
28346 2011-11-06  Bruno Haible  <bruno@clisp.org>
28348         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
28349         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
28350         (minus_zerol) [HP-UX]: New macro.
28351         (unary_minus) [HP-UX]: New function.
28352         (copysignl) [HP-UX]: Use unary_minus function.
28354 2011-11-06  Bruno Haible  <bruno@clisp.org>
28356         ldexp, ldexpf, ldexpl: Enhance tests.
28357         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
28358         and tests/test-ldexpl.c.
28359         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
28360         LDEXP, MIN_EXP, MAX_EXP): New macros.
28361         Include test-ldexp.h.
28362         (main): Just call test_function.
28363         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
28364         infinity.h, nan.h.
28365         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
28366         MAX_EXP): New macros.
28367         Include test-ldexp.h.
28368         (x, y): Remove variables.
28369         (main): Just call test_function.
28370         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
28371         infinity.h, nan.h.
28372         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
28373         MAX_EXP): New macros.
28374         Include test-ldexp.h.
28375         (x, y): Remove variables.
28376         (main): Just call test_function.
28377         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
28378         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
28379         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
28380         (Depends-on): Add isnand-nolibm, signbit, float.
28381         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
28382         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
28383         (Depends-on): Add isnanf-nolibm, signbit, float.
28385 2011-11-06  Bruno Haible  <bruno@clisp.org>
28387         math tests: Cosmetics.
28388         * tests/test-math-c++.cc: Reorder declarations.
28390 2011-11-05  Bruno Haible  <bruno@clisp.org>
28392         fma*: Simplify test.
28393         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
28394         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
28396         Tests for module 'fmal'.
28397         * modules/fmal-tests: New file.
28398         * tests/test-fmal1.c: New file.
28399         * tests/test-fmal2.c: New file.
28401         New module 'fmal'.
28402         * lib/math.in.h (fmal): New declaration.
28403         * lib/fmal.c: New file.
28404         * m4/fmal.m4: New file.
28405         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
28406         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
28407         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
28408         REPLACE_FMAL.
28409         * modules/fmal: New file.
28410         * doc/posix-functions/fmal.texi: Mention the new module and the various
28411         bugs.
28413         Tests for module 'fmaf'.
28414         * modules/fmaf-tests: New file.
28415         * tests/test-fmaf1.c: New file.
28416         * tests/test-fmaf2.c: New file.
28418         New module 'fmaf'.
28419         * lib/math.in.h (fmaf): New declaration.
28420         * lib/fmaf.c: New file.
28421         * m4/fmaf.m4: New file.
28422         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
28423         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
28424         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
28425         REPLACE_FMAF.
28426         * modules/fmaf: New file.
28427         * doc/posix-functions/fmaf.texi: Mention the new module and the various
28428         bugs.
28430         Tests for module 'fma'.
28431         * modules/fma-tests: New file.
28432         * tests/test-fma1.c: New file.
28433         * tests/test-fma1.h: New file.
28434         * tests/test-fma2.c: New file.
28435         * tests/test-fma2.h: New file.
28437         New module 'fma'.
28438         * lib/math.in.h (fma): New declaration.
28439         * lib/fma.c: New file.
28440         * m4/fma.m4: New file.
28441         * m4/fegetround.m4: New file.
28442         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
28443         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
28444         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
28445         REPLACE_FMA.
28446         * modules/fma: New file.
28447         * doc/posix-functions/fma.texi: Mention the new module and the various
28448         bugs.
28450         Extend gl_MATHFUNC.
28451         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
28452         Support 'void' as argument type.
28453         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
28455 2011-11-05  Jim Meyering  <meyering@redhat.com>
28457         maint.mk: also prohibit inclusion of dirent.h without use
28458         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
28460 2011-11-05  Bruno Haible  <bruno@clisp.org>
28462         ldexpl tests: Avoid test failure on MSVC 9.
28463         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
28464         value. Needed in order to enforce the conversion from a value greater
28465         than LDBL_MAX to Infinity.
28467 2011-11-05  Bruno Haible  <bruno@clisp.org>
28469         New modules 'at-internal', 'openat-h', split off from module 'openat'.
28470         * modules/at-internal: New file, extracted from modules/openat.
28471         * modules/openat-h: New file.
28472         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
28473         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
28474         * modules/openat (Description): Add reference to POSIX function.
28475         (Files): Remove lib/openat.h, lib/openat-proc.c.
28476         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
28477         intprops, unistd.
28478         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
28479         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
28480         gl_FCNTL_MODULE_INDICATOR.
28481         (Include): Remove unistd.h, openat.h.
28482         * modules/areadlinkat (Files): Add lib/at-func.c.
28483         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
28484         openat-die, openat-h, save-cwd.
28485         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
28486         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
28487         openat-die, openat-h, save-cwd, unistd.
28488         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
28489         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
28490         openat-h, save-cwd. Remove fcntl-h, openat.
28491         * modules/fchmodat (Files): Remove lib/openat.h.
28492         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
28493         openat, stdbool, unistd.
28494         * modules/fchownat (Files): Remove lib/openat.h.
28495         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
28496         openat, stdbool, sys_stat.
28497         * modules/fdopendir (Files): Remove lib/openat-priv.h,
28498         lib/openat-proc.c.
28499         (Depends-on): Add at-internal.
28500         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
28501         * modules/fstatat (Files): Remove lib/openat.h.
28502         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
28503         stdbool, unistd.
28504         * modules/fts (Depends-on): Add openat-h.
28505         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
28506         openat.
28507         * modules/mkdirat (Files): Remove lib/openat.h.
28508         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
28509         openat, stdbool, sys_stat.
28510         * modules/mkfifoat (Files): Add lib/at-func.c.
28511         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
28512         openat-h, save-cwd. Remove fcntl-h, openat.
28513         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
28514         * modules/readlinkat (Files): Add lib/at-func.c.
28515         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
28516         openat-h, save-cwd. Remove fcntl-h, openat.
28517         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
28518         openat.
28519         * modules/selinux-at (Files): Add lib/at-func.c.
28520         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
28521         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
28522         * modules/symlinkat (Files): Add lib/at-func.c.
28523         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
28524         openat-h, save-cwd. Remove fcntl-h, openat.
28525         * modules/unlinkat (Files): Remove lib/openat.h.
28526         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
28527         stdbool.
28528         * modules/utimensat (Files): Add lib/at-func.c.
28529         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
28530         openat-die, openat-h, save-cwd.
28531         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
28532         * modules/fdutimensat-tests (Depends-on): Add openat.
28533         * modules/fstatat-tests (Depends-on): Add openat-h.
28534         * modules/readlinkat-tests (Depends-on): Add openat.
28535         * modules/symlinkat-tests (Depends-on): Add openat.
28537 2011-11-05  Bruno Haible  <bruno@clisp.org>
28539         openat: Include <stdbool.h>.
28540         * lib/openat.c: Include <stdbool.h>.
28542 2011-11-04  Bruno Haible  <bruno@clisp.org>
28544         fchownat, renameat, unlinkat: Fix dependencies.
28545         * modules/fchownat (Depends-on): Add fstatat.
28546         * modules/renameat (Depends-on): Likewise.
28547         * modules/unlinkat (Depends-on): Likewise.
28549 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
28551         openat: remove direct dependency on dirent
28552         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
28553         and hasn't been needed ever since fdopendir was split into its own
28554         module on 2009-08-31.
28555         * modules/openat (Depends-on): Remove dirent.
28557 2011-11-04  Bruno Haible  <bruno@clisp.org>
28559         renameat: Optimize code size.
28560         * modules/renameat (configure.ac): Don't compile at-func2.c if
28561         REPLACE_RENAMEAT is 1.
28563 2011-11-04  Bruno Haible  <bruno@clisp.org>
28565         openat tests: Fix file list.
28566         * modules/openat-tests (Files): Add tests/test-open.h.
28568 2011-11-04  Bruno Haible  <bruno@clisp.org>
28570         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
28571         * modules/fchmodat (Depends-on): Add openat-die.
28572         * modules/fchownat (Depends-on): Likewise.
28573         * modules/linkat (Depends-on): Likewise.
28574         * modules/renameat (Depends-on): Likewise.
28575         * modules/openat (Depends-on): Add dirent.
28577 2011-11-04  Jim Meyering  <meyering@redhat.com>
28579         at-func*.c: fix comments
28580         * lib/at-func2.c: Correct/improve first-line comment.
28581         * lib/at-func.c: Correct grammar in first-line comment.
28583 2011-11-04  Bruno Haible  <bruno@clisp.org>
28585         New module 'mkdirat', split off from module 'openat'.
28586         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
28587         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
28588         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
28589         * modules/mkdirat: New file, extracted from modules/openat.
28590         * modules/openat (Files): Remove lib/mkdirat.c.
28591         (Depends-on): Remove mkdir.
28592         (configure.ac): Remove AC_LIBOBJ of mkdirat.
28593         (Include): Remove <sys/stat.h>.
28594         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
28595         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
28596         tests/test-mkdir.h.
28597         (Depends-on): Remove ignore-value.
28598         (Makefile.am): Remove rules for test-mkdirat.
28599         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
28600         of module 'openat'.
28601         * NEWS: Mention the change.
28603 2011-11-04  Bruno Haible  <bruno@clisp.org>
28605         closedir: Avoid warning on mingw.
28606         * lib/closedir.c: Include <unistd.h>.
28608 2011-11-04  Bruno Haible  <bruno@clisp.org>
28610         New module 'fstatat', split off from module 'openat'.
28611         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
28612         defined.
28613         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
28614         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
28615         gl_FUNC_FSTATAT.
28616         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
28617         * modules/fstatat: New file, extracted from modules/openat.
28618         * modules/openat (Files): Remove lib/fstatat.c.
28619         (Depends-on): Remove lstat.
28620         (configure.ac): Remove AC_LIBOBJ of fstatat.
28621         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
28622         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
28623         tests/test-lstat.h, tests/test-stat.h.
28624         (Depends-on): Remove getcwd-lgpl.
28625         (Makefile.am): Remove rules for test-fstatat.
28626         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
28627         of module 'openat'.
28628         * NEWS: Mention the change.
28629         * modules/getcwd (Depends-on): Add fstatat.
28630         * modules/linkat (Depends-on): Likewise.
28631         * modules/mkfifoat-tests (Depends-on): Likewise.
28632         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
28634 2011-11-03  Bruno Haible  <bruno@clisp.org>
28636         New module 'unlinkat', split off from module 'openat'.
28637         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
28638         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
28639         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
28640         * modules/unlinkat: New file, extracted from modules/openat. Correct
28641         the dependency conditions.
28642         * modules/openat (Files): Remove lib/unlinkat.c.
28643         (Depends-on): Remove rmdir, unlink.
28644         (configure.ac): Remove AC_LIBOBJ of unlinkat.
28645         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
28646         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
28647         tests/test-rmdir.h, tests/test-unlink.h.
28648         (Depends-on): Remove unlinkdir.
28649         (Makefile.am): Remove rules for test-unlinkat.
28650         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
28651         of module 'openat'.
28652         * NEWS: Mention the change.
28653         * modules/linkat-tests (Depends-on): Add unlinkat.
28654         * modules/mkfifoat-tests (Depends-on): Likewise.
28655         * modules/readlinkat-tests (Depends-on): Likewise.
28657 2011-11-02  Bruno Haible  <bruno@clisp.org>
28659         New module 'fchmodat', split off from module 'openat'.
28660         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
28661         defined.
28662         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
28663         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
28664         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
28665         * modules/fchmodat: New file, extracted from modules/openat.
28666         * modules/openat (Files): Remove lib/fchmodat.c.
28667         (configure.ac): Remove AC_LIBOBJ of fchmodat.
28668         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
28669         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
28670         (Makefile.am): Remove rules for test-fchmodat.
28671         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
28672         of module 'openat'.
28673         * NEWS: Mention the change.
28675 2011-11-02  Jim Meyering  <meyering@redhat.com>
28677         putenv: indent #definition of "environ" to placate cppi
28678         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
28680         gitlog-to-changelog: provide a ChangeLog-repair mechanism
28681         Git logs are often treated as immutable, because editing them
28682         changes the SHA1 checksums of all descendants.  Thus, errors in
28683         git logs tend to stay there forever.  However, when we generate
28684         a ChangeLog file -- typically for distribution -- from that git log,
28685         we can actually make corrections in the generated file.  The key
28686         lies in recording in machine-readable/applicable form the desired
28687         corrections.  See --help for description and an example.
28688         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
28689         (usage): Describe it; alphabetize option descriptions.
28690         (main): Honor the new option, carefully.
28692 2011-11-01  Jim Meyering  <meyering@redhat.com>
28694         gitlog-to-changelog: avoid an infloop
28695         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
28696         that ends up being empty.
28698 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28700         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
28701         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
28702         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
28703         contains (possibly-quoted) backslashes.  This should avoid
28704         all-too-common shell bugs if COMPLICATED contains backslashes in
28705         the "wrong" places.  Reported by David Evans in
28706         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
28707         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
28708         because we want ASCII ranges.  Is there some reason we don't use
28709         the C locale everywhere in this script?
28710         (func_module, top level): Avoid unwanted pathname expansion when
28711         $repo_url_prefix or $repo_url_suffix_repl contain shell
28712         metacharacters like '?' and '*'.
28714 2011-11-01  Bruno Haible  <bruno@clisp.org>
28716         fchownat: Improve description.
28717         * modules/fchownat (Description): Add link to function.
28719 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28721         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
28722         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
28723         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
28724         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
28726 2011-11-01  Bruno Haible  <bruno@clisp.org>
28728         alignof: Avoid collision with stdalign module.
28729         * lib/alignof.h (alignof): Remove macro.
28730         * NEWS: Mention the change.
28731         Reported by Paul Eggert.
28733 2011-11-01  Bruno Haible  <bruno@clisp.org>
28735         New module 'fchownat', split off from module 'openat'.
28736         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
28737         defined.
28738         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
28739         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
28740         invoke gl_FUNC_FCHOWNAT.
28741         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
28742         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
28743         * modules/fchownat: New file, extracted from modules/openat.
28744         * modules/openat (Files): Remove lib/fchownat.c.
28745         (Depends-on): Remove lchown.
28746         (configure.ac): Remove AC_LIBOBJ of fchownat.
28747         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
28748         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
28749         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
28750         (Depends-on): Remove mgetgroups, usleep, stat-time.
28751         (configure.ac): Remove test for getegid.
28752         (Makefile.am): Remove rules for test-fchownat.
28753         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
28754         of module 'openat'.
28755         * NEWS: Mention the change.
28757 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
28759         stdalign: port better to MSVC and to Sun C 5.11
28760         This fixes some of the problems reported by Bruno Haible in
28761         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
28762         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
28763         shortcomings of MSVC and of Sun C 5.11.
28764         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
28765         around __declspec arg.
28766         * modules/stdalign-tests (Files): Add tests/macros.h.
28767         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
28768         Include macros.h, for ASSERT.
28769         (DECLARE_ALIGNED): Remove.
28770         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
28771         to catch bug), and to 1 if not (simplifies the rest of the code).
28772         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
28773         (CHECK_AUTO): Remove.
28774         (CHECK_ALIGNED): Check only the alignment of the static vars,
28775         since auto var alignment isn't supported by Sun C 5.11.
28776         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
28777         ASSERT failures are easier to diagnose.
28779 2011-10-31  Bruno Haible  <bruno@clisp.org>
28781         doc about some IRIX 5.3 problems.
28782         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
28783         on IRIX 5.3.
28784         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
28785         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
28786         5.3.
28787         * doc/posix-functions/grantpt.texi: Likewise.
28788         * doc/posix-functions/unlockpt.texi: Likewise.
28789         * doc/posix-functions/lgamma.texi: Likewise.
28790         * doc/posix-functions/nextafter.texi: Likewise.
28791         * doc/posix-functions/remainder.texi: Likewise.
28792         * doc/posix-functions/select.texi: Mention misplaced declaration on
28793         IRIX 5.3.
28794         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28796 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
28798         gitlog-to-changelog: fix git-log invocation.
28799         git-log mishandles date strings before 1970-01-01 UTC, and there is
28800         no use to specify --since=1970-01-01 by default anyway.
28801         * build-aux/gitlog-to-changelog: By default, when no --since option
28802         was given, do not specify explicit --since option to git-log.
28804 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
28806         gitlog-to-changelog: new option --append-dot.
28807         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
28808         first non-blank line of each commit message terminated with a dot.
28810 2011-10-30  Bruno Haible  <bruno@clisp.org>
28812         ffsl, ffsll: Avoid compilation error due to 'restrict'.
28813         * lib/ffsl.h: Include <config.h>.
28814         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
28816 2011-10-30  Jim Meyering  <meyering@redhat.com>
28818         GNUmakefile: reenable "make syntax-check" for most projects
28819         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
28820         build-aux variable", "syntax-check" would do nothing but succeed with
28821         the "No version control files detected..." diagnostic (unless you
28822         happened to override _build-aux via cfg.mk).
28823         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
28824         to precede inclusion of maint.mk.  Otherwise, these variables would
28825         be used undefined in any project that does not override the default.
28827 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
28829         gitlog-to-changelog: treat a message with only blank lines as empty.
28830         * build-aux/gitlog-to-changelog: Move the code that removes leading and
28831         trailing blank lines before the code that issues a warning about an
28832         empty commit message.
28834 2011-10-30  Jim Meyering  <meyering@redhat.com>
28836         test-parse-datetime.c: avoid new DST-related false positive test failure
28837         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
28838         based on the time/date we'll convert, not the current time.
28839         Otherwise, the moment we cross a DST boundary like today's in
28840         Europe, (CEST to CET), that offset ends up being one hour off.
28842 2011-10-27  Bruno Haible  <bruno@clisp.org>
28844         fstat: Tweak documentation.
28845         * modules/fstat (Description): More precise description.
28847 2011-10-27  Bruno Haible  <bruno@clisp.org>
28849         Update documentation regarding 'largefile' module.
28850         * doc/posix-functions/fstat.texi: Tweak wording.
28851         * doc/posix-functions/opendir.texi: Mention that the module fixes the
28852         problems with huge directories and/or small ino_t types.
28853         * doc/posix-functions/readdir.texi: Likewise.
28854         * doc/posix-functions/rewinddir.texi: Likewise.
28856 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
28858         maint.mk: don't maintain a second build-aux variable.
28859         * maint.mk (build_aux): Removed.  The maintainer-makefile module
28860         depends on GNUmakefile, which already maintains a cfg.mk
28861         overridable $(_build-aux) for projects with a non-standard
28862         build-aux directory location, although without the $(srcdir)
28863         prefix.  Use that variable consistently instead of introducing a
28864         second one.  Adjust all call sites.
28866 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
28868         Add stdalign module and use it in other modules.
28869         This is based on a previous proposal by Bruno Haible
28870         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
28872         stdalign: new module
28873         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
28874         * modules/stdalign: New files.
28875         * MODULES.html.sh (c1x_core_properties): Add stdalign.
28876         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
28878         stdalign-tests: new module
28879         * modules/stdalign-tests, tests/test-stdalign.c: New files.
28881         argp: use stdalign
28882         * lib/argp-parse.c: Include <stdalign.h>.
28883         (alignof): Remove.
28884         * modules/argp (Depends-on): Add stdalign.
28886         crypto libraries: use stdalign
28887         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
28888         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
28889         Do not include <stdlib.h> twice, in md4.c.
28890         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
28891         because we are accessing a pointer's bit-pattern, not a size.
28892         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
28893         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
28894         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
28895         * modules/crypto/sha512: Likewise.
28897         sys_socket: use stdalign, not alignof
28898         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
28899         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
28901 2011-10-27  Bruno Haible  <bruno@clisp.org>
28903         raise test: Avoid a test failure on Linux/MIPS.
28904         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
28905         because 99 is a valid signal on Linux/MIPS.
28907 2011-10-27  Bruno Haible  <bruno@clisp.org>
28909         nonblocking tests: Fix test failure on Linux/MIPS.
28910         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
28911         Set to 270000.
28913 2011-10-27  Bruno Haible  <bruno@clisp.org>
28915         utimensat: Work around problem on Linux/hppa.
28916         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
28917         values.
28918         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
28920 2011-10-25  Jim Meyering  <meyering@redhat.com>
28922         maint.mk: fix a bug in sc_prohibit_stddef_without_use
28923         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
28924         after symbols like NULL, size_t, etc.
28925         Reported by Alfred M. Szmidt.
28927         maint.mk: exempt ENODATA from a syntax-check rule
28928         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
28929         from the sc_prohibit_always-defined_macros syntax-check rule.
28930         Add a comment.  See this for more details:
28931         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
28933 2011-10-23  Jim Meyering  <meyering@redhat.com>
28935         fts: close parent dir FD before returning from post-traversal fts_read
28936         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
28937         unlink A, even though an FD open on A remained.  This is suboptimal
28938         (holding a file descriptor open longer than needed), but otherwise not
28939         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
28940         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
28941         that represents a real problem: it causes the removal of A to fail
28942         with e.g., "rm: cannot remove `A': Device or resource busy"
28944         fts visits each directory twice and keeps a cache (fts_fd_ring) of
28945         directory file descriptors.  After completing the final, FTS_DP,
28946         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
28947         cache, but then proceeded to add a new FD to it via the subsequent
28948         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
28949         final file descriptor would be closed only via fts_close's call to
28950         fd_ring_clear.  Now, it is usually closed earlier, via the final
28951         FTS_DP-returning fts_read call.
28952         * lib/fts.c (restore_initial_cwd): New function, converted from
28953         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
28954         Update callers.
28955         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
28956         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
28958 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
28959             Bruno Haible  <bruno@clisp.org>
28960             Jim Meyering  <jim@meyering.net>
28962         readme-release: improve safety of release prep instructions.
28963         * README-release: Don't git pull all branches when only master
28964         is needed for the release process.
28965         Run make maintainer-clean before changing trees and merging.
28966         Don't try to run ./configure right after git pull in case files
28967         that influence the bootstrap process have changed, move the
28968         ./configure step to after running ./bootstrap.
28969         Don't bootstrap "one last time"... it's the first time!
28971 2011-10-22  Bruno Haible  <bruno@clisp.org>
28973         errno, strerror-override: Support for MSVC 10.
28974         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
28975         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
28976         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
28977         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
28978         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
28979         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
28980         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
28981         Assign values compatible with MSVC 10.
28982         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
28983         New macros.
28984         (GNULIB_defined_EWINSOCK): New macro.
28985         * lib/strerror-override.c (strerror_override): Update accordingly.
28986         * lib/strerror-override.h: Likewise.
28987         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
28988         longer equal to the corresponding errno value.
28989         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
28991 2011-10-22  Bruno Haible  <bruno@clisp.org>
28993         perror: Recognize when test program crashes.
28994         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
28995         strerror, set gl_cv_func_perror_works to no.
28996         Reported by Daniel Richard G. <skunk@iskunk.org>.
28998         perror: Fix indentation.
28999         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
29001 2011-10-22  Bruno Haible  <bruno@clisp.org>
29003         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
29004         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
29005         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
29006         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
29007         functions, not as a macro.
29008         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
29009         macros.
29010         (isfinite, isinf, isnan, signbit): Check overloaded functions and
29011         absence of macro.
29012         Suggested by Eric Blake.
29013         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
29015 2011-10-21  Bruno Haible  <bruno@clisp.org>
29017         relocatable-prog-wrapper: Don't leave object files behind.
29018         * build-aux/install-reloc: Re-synchronize list of .o files to be
29019         removed with list of compilation units.
29021 2011-10-20  Bruno Haible  <bruno@clisp.org>
29023         openpty, posix_openpt: Remove code duplication.
29024         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
29025         * lib/openpty.c: Include <stdlib.h>.
29026         (openpty): Use posix_openpt on all platforms except IRIX.
29027         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
29029 2011-10-20  Bruno Haible  <bruno@clisp.org>
29031         unlockpt: Detect invalid argument.
29032         * lib/unlockpt.c: Include <fcntl.h>.
29033         (unlockpt): Check whether fd is valid, using fcntl().
29034         * modules/unlockpt (Depends-on): Add fcntl-h.
29036 2011-10-20  Bruno Haible  <bruno@clisp.org>
29038         openpty: Avoid compilation error on AIX 6.1.
29039         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
29041 2011-10-20  Bruno Haible  <bruno@clisp.org>
29043         posix_openpt: Support for OpenBSD.
29044         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
29045         (posix_openpt) [OpenBSD]: New code.
29046         * lib/grantpt.c: Include <fcntl.h>.
29047         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
29048         * modules/grantpt (Depends-on): Add fcntl-h.
29050 2011-10-20  Bruno Haible  <bruno@clisp.org>
29052         posix_openpt test: Coding style.
29053         * tests/test-posix_openpt.c: Use GNU coding style.
29055 2011-10-20  Bruno Haible  <bruno@clisp.org>
29057         grantpt: Support --avoid=pt_chown.
29058         * modules/grantpt (Files): Add lib/pty-private.h.
29060 2011-10-20  Bruno Haible  <bruno@clisp.org>
29062         posix_openpt: Fix autoconf macro.
29063         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
29064         unneeded check for _getpty.
29066 2011-10-20  Bruno Haible  <bruno@clisp.org>
29068         openpty: Update comments.
29069         * lib/openpty.c: Add comments about Minix.
29071 2011-10-19  Eric Blake  <eblake@redhat.com>
29073         openpty: relax license
29074         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
29076         pt_chown: use configmake to simplify build
29077         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
29079         ptsname and others: relax license
29080         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
29081         * modules/unlockpt (License): Likewise.
29082         * modules/pt_chown (License): Likewise.
29083         * modules/ptsname (License): Likewise.
29084         * modules/ttyname_r (License): Likewise.
29086 2011-10-19  Jim Meyering  <meyering@redhat.com>
29088         posix_openpt: remove spurious #endif
29089         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
29091 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
29093         maint.mk: Respect $(build_aux) in web-manual rule.
29094         * top/maint.mk (web-manual): Find gen-announce script in user's
29095         $(build_aux) directory instead of hard-coding 'build-aux'.
29097 2011-10-19  Bruno Haible  <bruno@clisp.org>
29099         posix_openpt: Fix compilation error.
29100         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
29101         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
29102         Mention the openpty module as an alternative.
29104 2011-10-19  Bruno Haible  <bruno@clisp.org>
29106         Support for old NeXTstep 3.3 frexp().
29107         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
29108         execution time of the test to 5 seconds.
29109         Reported by Daniel Richard G. <skunk@iskunk.org>.
29111 2011-10-19  Bruno Haible  <bruno@clisp.org>
29113         Support for old NeXTstep 3.3 sed.
29114         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
29115         part, use /.../, not \|...|. Escape periods in the header file name.
29116         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
29117         Reported by Daniel Richard G. <skunk@iskunk.org>.
29119 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
29121         Support for old NeXTstep 3.3 gcc.
29122         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
29123         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
29124         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
29125         * lib/spawn.in.h (_Restrict_arr_): Likewise.
29126         * lib/regex.h (_Restrict_arr_): Likewise.
29127         * lib/regex_internal.h (re_token_t): Likewise.
29128         * lib/regexec.c (check_node_accept_bytes): Likewise.
29129         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
29131 2011-10-18  Eric Blake  <eblake@redhat.com>
29133         posix_openpt: new module
29134         * modules/posix_openpt: New module.
29135         * m4/posix_openpt.m4: New file.
29136         * lib/posix_openpt.c: Likewise.
29137         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
29138         (gl_STDLIB_H_DEFAULTS): Set defaults.
29139         * modules/stdlib (Makefile.am): Substitute macros.
29140         * lib/stdlib.in.h (posix_openpt): Declare.
29141         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
29142         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
29143         * modules/posix_openpt-tests: New test module.
29144         * tests/test-posix_openpt.c: New test.
29146 2011-10-15  Bruno Haible  <bruno@clisp.org>
29148         xstrtoll: Fix compilation failure.
29149         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
29150         from lib/strtol.c.
29151         * doc/posix-headers/limits.texi: Mention missing numerical limits on
29152         some platforms.
29153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29155 2011-10-15  Bruno Haible  <bruno@clisp.org>
29157         vasnprintf: Optimize bit search operation.
29158         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
29159         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
29160         gl_DOUBLE_EXPONENT_LOCATION.
29161         * modules/vasnprintf (Files): Add m4/exponentd.m4.
29162         * modules/unistdio/u8-vasnprintf (Files): Likewise.
29163         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
29164         * modules/unistdio/u16-vasnprintf (Files): Likewise.
29165         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
29166         * modules/unistdio/u32-vasnprintf (Files): Likewise.
29167         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
29168         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
29169         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
29171 2011-10-15  Bruno Haible  <bruno@clisp.org>
29173         vasnprintf: Fix comments.
29174         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
29176 2011-10-14  Bruno Haible  <bruno@clisp.org>
29178         Tests for module 'integer_length_ll'.
29179         * modules/integer_length_ll-tests: New file.
29180         * tests/test-integer_length_ll.c: New file.
29182         New module 'integer_length_ll'.
29183         * lib/integer_length_ll.c: New file.
29184         * modules/integer_length_ll: New file.
29186 2011-10-14  Bruno Haible  <bruno@clisp.org>
29188         Tests for module 'integer_length_l'.
29189         * modules/integer_length_l-tests: New file.
29190         * tests/test-integer_length_l.c: New file.
29192         New module 'integer_length_l'.
29193         * lib/integer_length_l.c: New file.
29194         * modules/integer_length_l: New file.
29196 2011-10-14  Bruno Haible  <bruno@clisp.org>
29198         Tests for module 'integer_length'.
29199         * modules/integer_length-tests: New file.
29200         * tests/test-integer_length.c: New file.
29202         New module 'integer_length'.
29203         * lib/integer_length.h: New file.
29204         * lib/integer_length.c: New file.
29205         * modules/integer_length: New file.
29207 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
29209         popen: Fix dependency conditions.
29210         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
29212 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
29214         perror: Fix autoconf test.
29215         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
29216         <stdlib.h> and <string.h>.
29218 2011-10-14  Bruno Haible  <bruno@clisp.org>
29220         ffsl: Optimize on 64-bit platforms.
29221         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
29222         unrolling.
29224 2011-10-13  Bruno Haible  <bruno@clisp.org>
29226         ffsl: Optimize on 32-bit platforms.
29227         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
29228         use ffs() without a loop.
29230         ffsl, ffsll: Optimize for GCC.
29231         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
29232         * lib/ffsl.c (GCC_BUILTIN): New macro.
29233         * lib/ffsll.c (GCC_BUILTIN): Likewise.
29235 2011-10-13  Bruno Haible  <bruno@clisp.org>
29237         ffs, bcopy, memset: Support symbol renaming via config.h.
29238         * lib/ffs.c: Include <config.h>.
29239         * lib/bcopy.c: Likewise.
29240         * lib/memset.c: Likewise.
29242 2011-10-10  Bruno Haible  <bruno@clisp.org>
29244         atanl: Simplify for platforms where 'long double' == 'double'.
29245         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
29246         alternative implementation.
29247         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
29248         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29249         * modules/atanl (Depends-on): Add atan. Update conditions.
29251 2011-10-10  Bruno Haible  <bruno@clisp.org>
29253         acosl: Simplify for platforms where 'long double' == 'double'.
29254         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
29255         alternative implementation.
29256         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
29257         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29258         * modules/acosl (Depends-on): Add acos. Update conditions.
29260 2011-10-10  Bruno Haible  <bruno@clisp.org>
29262         asinl: Simplify for platforms where 'long double' == 'double'.
29263         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
29264         alternative implementation.
29265         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
29266         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29267         * modules/asinl (Depends-on): Add asin. Update conditions.
29269 2011-10-10  Bruno Haible  <bruno@clisp.org>
29271         tanl: Simplify for platforms where 'long double' == 'double'.
29272         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
29273         implementation.
29274         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
29275         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29276         * modules/tanl (Depends-on): Add tan. Update conditions.
29277         (configure.ac): Don't compile trigl.c if
29278         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29280 2011-10-10  Bruno Haible  <bruno@clisp.org>
29282         cosl: Simplify for platforms where 'long double' == 'double'.
29283         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
29284         implementation.
29285         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
29286         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29287         * modules/cosl (Depends-on): Add cos. Update conditions.
29288         (configure.ac): Don't compile sincosl.c and trigl.c if
29289         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29291 2011-10-10  Bruno Haible  <bruno@clisp.org>
29293         sinl: Simplify for platforms where 'long double' == 'double'.
29294         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
29295         implementation.
29296         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
29297         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29298         * modules/sinl (Depends-on): Add sin. Update conditions.
29299         (configure.ac): Don't compile sincosl.c and trigl.c if
29300         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29302 2011-10-10  Bruno Haible  <bruno@clisp.org>
29304         logl: Simplify for platforms where 'long double' == 'double'.
29305         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
29306         implementation.
29307         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
29308         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29309         * modules/logl (Depends-on): Add log. Update conditions.
29311 2011-10-10  Bruno Haible  <bruno@clisp.org>
29313         expl: Simplify for platforms where 'long double' == 'double'.
29314         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
29315         implementation.
29316         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
29317         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29318         * modules/expl (Depends-on): Add exp. Update conditions.
29320 2011-10-10  Bruno Haible  <bruno@clisp.org>
29322         sqrtl: Simplify for platforms where 'long double' == 'double'.
29323         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
29324         alternative implementation.
29325         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
29326         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29327         * modules/sqrtl (Depends-on): Update conditions.
29329 2011-10-10  Bruno Haible  <bruno@clisp.org>
29331         ldexpl: Simplify for platforms where 'long double' == 'double'.
29332         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
29333         alternative implementation.
29334         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
29335         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29336         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
29338 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
29340         ffsll: set correct witness
29341         * modules/ffsll (configure.ac): Fix typo.
29343 2011-10-10  Bruno Haible  <bruno@clisp.org>
29345         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
29346         * lib/printf-frexpl.c: Include <config.h>.
29347         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
29348         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
29349         second time.
29350         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
29351         gl_LONG_DOUBLE_VS_DOUBLE.
29352         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
29353         conditions.
29355 2011-10-10  Bruno Haible  <bruno@clisp.org>
29357         frexpl: Simplify for platforms where 'long double' == 'double'.
29358         * lib/frexpl.c: Include <config.h>.
29359         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
29360         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
29361         time.
29362         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
29363         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29364         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
29365         * modules/frexpl (Depends-on): Add frexp. Update conditions.
29366         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
29367         conditions.
29369 2011-10-10  Jim Meyering  <meyering@redhat.com>
29371         test-renameat: don't leave behind a temporary file
29372         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
29373           ERROR: files left in build directory after distclean:
29374           ./gltests/test-renameat.too
29375           make[1]: *** [distcleancheck] Error 1
29376         Reported by Tom G. Christensen.
29378 2011-10-09  Bruno Haible  <bruno@clisp.org>
29380         rint: Determine RINT_LIBM correctly on AIX 7.
29381         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
29382         directly, not only through a function pointer. Also accept an optional
29383         4th argument with extra code.
29384         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
29385         rintf() call by gcc when optimizing.
29387         mathfunc.m4: Refactor.
29388         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
29389         m4 variable.
29391 2011-10-09  Bruno Haible  <bruno@clisp.org>
29393         rintl: Simplify for platforms where 'long double' == 'double'.
29394         * lib/rintl.c: Include <config.h>.
29395         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
29396         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
29397         time.
29398         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
29399         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29400         * modules/rintl (Depends-on): Add rint. Update conditions.
29402 2011-10-09  Bruno Haible  <bruno@clisp.org>
29404         roundl: Simplify for platforms where 'long double' == 'double'.
29405         * lib/roundl.c: Include <config.h>.
29406         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
29407         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
29408         time.
29409         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
29410         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29411         * modules/roundl (Depends-on): Add round. Update conditions.
29413 2011-10-09  Bruno Haible  <bruno@clisp.org>
29415         truncl: Simplify for platforms where 'long double' == 'double'.
29416         * lib/truncl.c: Include <config.h>.
29417         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
29418         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
29419         time.
29420         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
29421         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29422         * modules/truncl (Depends-on): Add trunc. Update conditions.
29424 2011-10-09  Bruno Haible  <bruno@clisp.org>
29426         ceill: Simplify for platforms where 'long double' == 'double'.
29427         * lib/ceill.c: Include <config.h>.
29428         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
29429         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
29430         time.
29431         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
29432         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29433         * modules/ceill (Depends-on): Add ceil. Update conditions.
29435 2011-10-09  Bruno Haible  <bruno@clisp.org>
29437         floorl: Simplify for platforms where 'long double' == 'double'.
29438         * lib/floorl.c: Include <config.h>.
29439         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
29440         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
29441         time.
29442         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
29443         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29444         * modules/floorl (Depends-on): Add floor. Update conditions.
29446 2011-10-09  Bruno Haible  <bruno@clisp.org>
29448         rint: Fix ordering constraints.
29449         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
29450         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
29451         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
29453 2011-10-09  Bruno Haible  <bruno@clisp.org>
29455         copysignl: Simplify for platforms where 'long double' == 'double'.
29456         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
29457         alternative.
29458         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
29459         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
29460         * modules/copysignl (Depends-on): Add copysign. Update conditions.
29462 2011-10-09  Bruno Haible  <bruno@clisp.org>
29464         Tests for module 'rintl'.
29465         * modules/rintl-tests: New file.
29466         * tests/test-rintl.c: New file.
29468         New module 'rintl'.
29469         * lib/math.in.h (rintl): New declaration.
29470         * lib/rintl.c: New file.
29471         * m4/rintl.m4: New file.
29472         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
29473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
29474         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
29475         * modules/rintl: New file.
29476         * tests/test-math-c++.cc: Check the declaration of rintl.
29477         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
29478         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
29479         * doc/posix-functions/rintl.texi: Mention the new module.
29481 2011-10-09  Bruno Haible  <bruno@clisp.org>
29483         Tests for module 'rintf'.
29484         * modules/rintf-tests: New file.
29485         * tests/test-rintf.c: New file.
29487         New module 'rintf'.
29488         * lib/math.in.h (rintf): New declaration.
29489         * lib/rintf.c: New file.
29490         * m4/rintf.m4: New file.
29491         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
29492         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
29493         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
29494         * modules/rintf: New file.
29495         * tests/test-math-c++.cc: Check the declaration of rintf.
29496         * doc/posix-functions/rintf.texi: Mention the new module.
29498 2011-10-09  Bruno Haible  <bruno@clisp.org>
29500         rint: Support for MSVC.
29501         * lib/math.in.h (rint): New declaration.
29502         * lib/rint.c: New file.
29503         * m4/rint.m4: New file.
29504         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
29505         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
29506         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
29507         * modules/rint (Description): Fix.
29508         (Files): Add lib/rint.c, m4/rint.m4.
29509         (Depends-on): Add math.
29510         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
29511         gl_MATH_MODULE_INDICATOR.
29512         * tests/test-math-c++.cc: Check the declaration of rint.
29513         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
29514         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
29515         * doc/posix-functions/rint.texi: Mention the replacement provided by
29516         the module.
29518         rint tests: More tests.
29519         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
29520         minus-zero.h, infinity.h, nan.h.
29521         (main): Skip the test if the current rounding mode is not standard. Add
29522         tests for negative numbers, minus zero, infinity, NaN.
29523         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
29524         tests/nan.h.
29525         (Depends-on): Add isnand-nolibm.
29527 2011-10-09  Bruno Haible  <bruno@clisp.org>
29529         Tests for module 'copysignl'.
29530         * modules/copysignl-tests: New file.
29531         * tests/test-copysignl.c: New file.
29533         New module 'copysignl'.
29534         * lib/math.in.h (copysignl): New declaration.
29535         * lib/copysignl.c: New file.
29536         * m4/copysignl.m4: New file.
29537         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
29538         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
29539         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
29540         HAVE_COPYSIGNL.
29541         * modules/copysignl: New file.
29542         * tests/test-math-c++.cc: Check the declaration of copysignl.
29543         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
29544         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
29545         * doc/posix-functions/copysignl.texi: Mention the new module.
29547 2011-10-09  Bruno Haible  <bruno@clisp.org>
29549         Tests for module 'copysignf'.
29550         * modules/copysignf-tests: New file.
29551         * tests/test-copysignf.c: New file.
29553         New module 'copysignf'.
29554         * lib/math.in.h (copysignf): New declaration.
29555         * lib/copysignf.c: New file.
29556         * m4/copysignf.m4: New file.
29557         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
29558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
29559         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
29560         HAVE_COPYSIGNF.
29561         * modules/copysignf: New file.
29562         * tests/test-math-c++.cc: Check the declaration of copysignf.
29563         * doc/posix-functions/copysignf.texi: Mention the new module.
29565 2011-10-09  Bruno Haible  <bruno@clisp.org>
29567         Ensure that HAVE_* variables are set to 1 before they are set to 0.
29568         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
29569         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
29570         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
29571         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
29572         gl_SIGNAL_H_DEFAULTS.
29574 2011-10-09  Bruno Haible  <bruno@clisp.org>
29576         poll: Make macro safer.
29577         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
29578         ac_cv_header_poll_h is not set.
29580 2011-10-09  Bruno Haible  <bruno@clisp.org>
29582         copysign: Provide replacement.
29583         * lib/math.in.h (copysign): New declaration.
29584         * lib/copysign.c: New file.
29585         * m4/copysign.m4: New file.
29586         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
29587         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
29588         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
29589         HAVE_COPYSIGN.
29590         * modules/copysign (Description): Clarify.
29591         (Files): Add lib/copysign.c, m4/copysign.m4.
29592         (Depends-on): Add math, signbit.
29593         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
29594         gl_MATH_MODULE_INDICATOR.
29595         * tests/test-math-c++.cc: Check the declaration of copysign.
29596         * doc/posix-functions/copysign.texi: Mention the effects of the module
29597         on Minix and MSVC.
29599 2011-10-09  Bruno Haible  <bruno@clisp.org>
29601         isinf: Ensure macro on AIX 5.1.
29602         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
29603         macro.
29604         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
29606 2011-10-09  Bruno Haible  <bruno@clisp.org>
29608         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
29609         * modules/snprintf-posix-tests (configure.ac): Require
29610         gl_LONG_DOUBLE_VS_DOUBLE.
29611         * modules/sprintf-posix-tests (configure.ac): Likewise.
29612         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
29613         * modules/vasprintf-posix-tests (configure.ac): Likewise.
29614         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
29615         * modules/vsprintf-posix-tests (configure.ac): Likewise.
29616         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
29617         tests on platforms where 'long double' is the same as 'double'.
29618         * tests/test-sprintf-posix.h (test_function): Likewise.
29619         * tests/test-vasnprintf-posix.c (test_function): Likewise.
29620         * tests/test-vasprintf-posix.c (test_function): Likewise.
29622         *printf: Fix for platforms where 'long double' == 'double'.
29623         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
29624         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
29625         * modules/dprintf-posix (Files): Add m4/math_h.m4.
29626         * modules/fprintf-posix (Files): Likewise.
29627         * modules/obstack-printf-posix (Files): Likewise.
29628         * modules/snprintf-posix (Files): Likewise.
29629         * modules/sprintf-posix (Files): Likewise.
29630         * modules/vasnprintf (Files): Likewise.
29631         * modules/vasnprintf-posix (Files): Likewise.
29632         * modules/vasprintf-posix (Files): Likewise.
29633         * modules/vdprintf-posix (Files): Likewise.
29634         * modules/vfprintf-posix (Files): Likewise.
29635         * modules/vsnprintf-posix (Files): Likewise.
29636         * modules/vsprintf-posix (Files): Likewise.
29637         * modules/unistdio/u8-vasnprintf (Files): Likewise.
29638         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
29639         * modules/unistdio/u16-vasnprintf (Files): Likewise.
29640         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
29641         * modules/unistdio/u32-vasnprintf (Files): Likewise.
29642         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
29643         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
29645         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
29646         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
29647         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
29648         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
29649         'long double'.
29650         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
29652         isinf: Fix for platforms where 'long double' == 'double'.
29653         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
29654         Don't blindly assume 80-bit 'long double'.
29656         isfinite: Fix for platforms where 'long double' == 'double'.
29657         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
29658         Don't blindly assume 80-bit 'long double'.
29660         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
29661         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
29662         * modules/isfinite-tests (configure.ac): Require
29663         gl_LONG_DOUBLE_VS_DOUBLE.
29664         * modules/isinf-tests (configure.ac): Likewise.
29665         * modules/isnan-tests (configure.ac): Likewise.
29666         * modules/isnanl-tests (configure.ac): Likewise.
29667         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
29668         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
29669         tests on platforms where 'long double' is the same as 'double'.
29670         * tests/test-isinf.c (test_isinfl): Likewise.
29671         * tests/test-isnan.c (test_long_double): Likewise.
29672         * tests/test-isnanl.h (main): Likewise.
29674 2011-10-08  Bruno Haible  <bruno@clisp.org>
29676         Tests for module 'tanhf'.
29677         * modules/tanhf-tests: New file.
29678         * tests/test-tanhf.c: New file.
29680         New module 'tanhf'.
29681         * lib/math.in.h (tanhf): New declaration.
29682         * lib/tanhf.c: New file.
29683         * m4/tanhf.m4: New file.
29684         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
29685         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
29686         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
29687         * modules/tanhf: New file.
29688         * tests/test-math-c++.cc: Check the declaration of tanhf.
29689         * doc/posix-functions/tanhf.texi: Mention the new module.
29691         tanh: Use a .m4 file.
29692         * m4/tanh.m4: New file.
29693         * modules/tanh (Files): Add it.
29694         (configure.ac): Just invoke gl_FUNC_TANH.
29696 2011-10-08  Bruno Haible  <bruno@clisp.org>
29698         Tests for module 'coshf'.
29699         * modules/coshf-tests: New file.
29700         * tests/test-coshf.c: New file.
29702         New module 'coshf'.
29703         * lib/math.in.h (coshf): New declaration.
29704         * lib/coshf.c: New file.
29705         * m4/coshf.m4: New file.
29706         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
29707         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
29708         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
29709         * modules/coshf: New file.
29710         * tests/test-math-c++.cc: Check the declaration of coshf.
29711         * doc/posix-functions/coshf.texi: Mention the new module.
29713         cosh: Use a .m4 file.
29714         * m4/cosh.m4: New file.
29715         * modules/cosh (Files): Add it.
29716         (configure.ac): Just invoke gl_FUNC_COSH.
29718 2011-10-08  Bruno Haible  <bruno@clisp.org>
29720         Tests for module 'sinhf'.
29721         * modules/sinhf-tests: New file.
29722         * tests/test-sinhf.c: New file.
29724         New module 'sinhf'.
29725         * lib/math.in.h (sinhf): New declaration.
29726         * lib/sinhf.c: New file.
29727         * m4/sinhf.m4: New file.
29728         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
29729         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
29730         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
29731         * modules/sinhf: New file.
29732         * tests/test-math-c++.cc: Check the declaration of sinhf.
29733         * doc/posix-functions/sinhf.texi: Mention the new module.
29735         sinh: Use a .m4 file.
29736         * m4/sinh.m4: New file.
29737         * modules/sinh (Files): Add it.
29738         (configure.ac): Just invoke gl_FUNC_SINH.
29740 2011-10-08  Bruno Haible  <bruno@clisp.org>
29742         Tests for module 'atan2f'.
29743         * modules/atan2f-tests: New file.
29744         * tests/test-atan2f.c: New file.
29746         New module 'atan2f'.
29747         * lib/math.in.h (atan2f): New declaration.
29748         * lib/atan2f.c: New file.
29749         * m4/atan2f.m4: New file.
29750         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
29751         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
29752         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
29753         * modules/atan2f: New file.
29754         * tests/test-math-c++.cc: Check the declaration of atan2f.
29755         * doc/posix-functions/atan2f.texi: Mention the new module.
29757         atan2: Use a .m4 file.
29758         * m4/atan2.m4: New file.
29759         * modules/atan2 (Files): Add it.
29760         (configure.ac): Just invoke gl_FUNC_ATAN2.
29762 2011-10-08  Bruno Haible  <bruno@clisp.org>
29764         Tests for module 'atanf'.
29765         * modules/atanf-tests: New file.
29766         * tests/test-atanf.c: New file.
29768         New module 'atanf'.
29769         * lib/math.in.h (atanf): New declaration.
29770         * lib/atanf.c: New file.
29771         * m4/atanf.m4: New file.
29772         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
29773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
29774         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
29775         * modules/atanf: New file.
29776         * tests/test-math-c++.cc: Check the declaration of atanf.
29777         * doc/posix-functions/atanf.texi: Mention the new module.
29779         atan: Use a .m4 file.
29780         * m4/atan.m4: New file.
29781         * modules/atan (Files): Add it.
29782         (configure.ac): Just invoke gl_FUNC_ATAN.
29784 2011-10-08  Bruno Haible  <bruno@clisp.org>
29786         Tests for module 'acosf'.
29787         * modules/acosf-tests: New file.
29788         * tests/test-acosf.c: New file.
29790         New module 'acosf'.
29791         * lib/math.in.h (acosf): New declaration.
29792         * lib/acosf.c: New file.
29793         * m4/acosf.m4: New file.
29794         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
29795         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
29796         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
29797         * modules/acosf: New file.
29798         * tests/test-math-c++.cc: Check the declaration of acosf.
29799         * doc/posix-functions/acosf.texi: Mention the new module.
29801         acos: Use a .m4 file.
29802         * m4/acos.m4: New file.
29803         * modules/acos (Files): Add it.
29804         (configure.ac): Just invoke gl_FUNC_ACOS.
29806 2011-10-08  Bruno Haible  <bruno@clisp.org>
29808         Tests for module 'asinf'.
29809         * modules/asinf-tests: New file.
29810         * tests/test-asinf.c: New file.
29812         New module 'asinf'.
29813         * lib/math.in.h (asinf): New declaration.
29814         * lib/asinf.c: New file.
29815         * m4/asinf.m4: New file.
29816         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
29817         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
29818         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
29819         * modules/asinf: New file.
29820         * tests/test-math-c++.cc: Check the declaration of asinf.
29821         * doc/posix-functions/asinf.texi: Mention the new module.
29823         asin: Use a .m4 file.
29824         * m4/asin.m4: New file.
29825         * modules/asin (Files): Add it.
29826         (configure.ac): Just invoke gl_FUNC_ASIN.
29828 2011-10-08  Bruno Haible  <bruno@clisp.org>
29830         Tests for module 'tanf'.
29831         * modules/tanf-tests: New file.
29832         * tests/test-tanf.c: New file.
29834         New module 'tanf'.
29835         * lib/math.in.h (tanf): New declaration.
29836         * lib/tanf.c: New file.
29837         * m4/tanf.m4: New file.
29838         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
29839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
29840         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
29841         * modules/tanf: New file.
29842         * tests/test-math-c++.cc: Check the declaration of tanf.
29843         * doc/posix-functions/tanf.texi: Mention the new module.
29845         tan: Use a .m4 file.
29846         * m4/tan.m4: New file.
29847         * modules/tan (Files): Add it.
29848         (configure.ac): Just invoke gl_FUNC_TAN.
29850 2011-10-08  Bruno Haible  <bruno@clisp.org>
29852         Tests for module 'cosf'.
29853         * modules/cosf-tests: New file.
29854         * tests/test-cosf.c: New file.
29856         New module 'cosf'.
29857         * lib/math.in.h (cosf): New declaration.
29858         * lib/cosf.c: New file.
29859         * m4/cosf.m4: New file.
29860         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
29861         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
29862         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
29863         * modules/cosf: New file.
29864         * tests/test-math-c++.cc: Check the declaration of cosf.
29865         * doc/posix-functions/cosf.texi: Mention the new module.
29867         cos: Use a .m4 file.
29868         * m4/cos.m4: New file.
29869         * modules/cos (Files): Add it.
29870         (configure.ac): Just invoke gl_FUNC_COS.
29872 2011-10-08  Bruno Haible  <bruno@clisp.org>
29874         Tests for module 'sinf'.
29875         * modules/sinf-tests: New file.
29876         * tests/test-sinf.c: New file.
29878         New module 'sinf'.
29879         * lib/math.in.h (sinf): New declaration.
29880         * lib/sinf.c: New file.
29881         * m4/sinf.m4: New file.
29882         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
29883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
29884         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
29885         * modules/sinf: New file.
29886         * tests/test-math-c++.cc: Check the declaration of sinf.
29887         * doc/posix-functions/sinf.texi: Mention the new module.
29889         sin: Use a .m4 file.
29890         * m4/sin.m4: New file.
29891         * modules/sin (Files): Add it.
29892         (configure.ac): Just invoke gl_FUNC_SIN.
29894 2011-10-08  Bruno Haible  <bruno@clisp.org>
29896         Tests for module 'powf'.
29897         * modules/powf-tests: New file.
29898         * tests/test-powf.c: New file.
29900         New module 'powf'.
29901         * lib/math.in.h (powf): New declaration.
29902         * lib/powf.c: New file.
29903         * m4/powf.m4: New file.
29904         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
29905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
29906         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
29907         * modules/powf: New file.
29908         * tests/test-math-c++.cc: Check the declaration of powf.
29909         * doc/posix-functions/powf.texi: Mention the new module.
29911         pow: Use a .m4 file.
29912         * m4/pow.m4: New file.
29913         * modules/pow (Files): Add it.
29914         (configure.ac): Just invoke gl_FUNC_POW.
29916 2011-10-08  Bruno Haible  <bruno@clisp.org>
29918         Tests for module 'log10f'.
29919         * modules/log10f-tests: New file.
29920         * tests/test-log10f.c: New file.
29922         New module 'log10f'.
29923         * lib/math.in.h (log10f): New declaration.
29924         * lib/log10f.c: New file.
29925         * m4/log10f.m4: New file.
29926         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
29927         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
29928         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
29929         * modules/log10f: New file.
29930         * tests/test-math-c++.cc: Check the declaration of log10f.
29931         * doc/posix-functions/log10f.texi: Mention the new module.
29933         log10: Use a .m4 file.
29934         * m4/log10.m4: New file.
29935         * modules/log10 (Files): Add it.
29936         (configure.ac): Just invoke gl_FUNC_LOG10.
29938 2011-10-08  Bruno Haible  <bruno@clisp.org>
29940         Tests for module 'logf'.
29941         * modules/logf-tests: New file.
29942         * tests/test-logf.c: New file.
29944         New module 'logf'.
29945         * lib/math.in.h (logf): New declaration.
29946         * lib/logf.c: New file.
29947         * m4/logf.m4: New file.
29948         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
29949         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
29950         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
29951         * modules/logf: New file.
29952         * tests/test-math-c++.cc: Check the declaration of logf.
29953         * doc/posix-functions/logf.texi: Mention the new module.
29955         log: Use a .m4 file.
29956         * m4/log.m4: New file.
29957         * modules/log (Files): Add it.
29958         (configure.ac): Just invoke gl_FUNC_LOG.
29960 2011-10-08  Bruno Haible  <bruno@clisp.org>
29962         Tests for module 'expf'.
29963         * modules/expf-tests: New file.
29964         * tests/test-expf.c: New file.
29966         New module 'expf'.
29967         * lib/math.in.h (expf): New declaration.
29968         * lib/expf.c: New file.
29969         * m4/expf.m4: New file.
29970         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
29971         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
29972         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
29973         * modules/expf: New file.
29974         * tests/test-math-c++.cc: Check the declaration of expf.
29975         * doc/posix-functions/expf.texi: Mention the new module.
29977         exp: Use a .m4 file.
29978         * m4/exp.m4: New file.
29979         * modules/exp (Files): Add it.
29980         (configure.ac): Just invoke gl_FUNC_EXP.
29982 2011-10-08  Bruno Haible  <bruno@clisp.org>
29984         Tests for module 'sqrtf'.
29985         * modules/sqrtf-tests: New file.
29986         * tests/test-sqrtf.c: New file.
29988         New module 'sqrtf'.
29989         * lib/math.in.h (sqrtf): New declaration.
29990         * lib/sqrtf.c: New file.
29991         * m4/sqrtf.m4: New file.
29992         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
29993         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
29994         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
29995         * modules/sqrtf: New file.
29996         * tests/test-math-c++.cc: Check the declaration of sqrtf.
29997         * doc/posix-functions/sqrtf.texi: Mention the new module.
29999 2011-10-08  Bruno Haible  <bruno@clisp.org>
30001         Tests: Avoid link failures w.r.t. libintl.
30002         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
30003         $(LIBINTL).
30004         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
30005         $(LIBINTL).
30006         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
30007         against $(LIBINTL).
30008         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
30009         $(LIBINTL).
30010         * modules/openat-tests (Makefile.am): Link test-fchmodat against
30011         $(LIBINTL).
30012         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
30014 2011-10-08  Bruno Haible  <bruno@clisp.org>
30016         pow tests: Defeat compiler optimizations.
30017         * tests/test-pow.c (main): Assign arguments to x and y before use.
30019 2011-10-08  Bruno Haible  <bruno@clisp.org>
30021         gnulib-tool: Improve last commit.
30022         * gnulib-tool (func_modules_transitive_closure): Simplify code.
30023         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
30024         ignore dependencies that are not among the modules list.
30026 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
30028         gnulib-tool: don't follow dependencies to avoided modules
30029         This fixes a bug that is related to the previous one.
30030         * gnulib-tool (func_modules_transitive_closure)
30031         (func_emit_autoconf_snippets):
30032         Check whether a dependency is acceptable before using it.
30033         (--extract-dependencies): Report an error if --avoid is also used,
30034         since this combination of options is not yet supported.
30036         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
30037         Problem reported by Peter Dyballa in
30038         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
30039         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
30040         when echoing "$condition".
30042 2011-10-07  Bruno Haible  <bruno@clisp.org>
30044         Fix documentation about math functions on MacOS X.
30045         * doc/posix-functions/exp2.texi: Don't say the function is missing on
30046         MacOS X 10.5.
30047         * doc/posix-functions/fdim.texi: Likewise.
30048         * doc/posix-functions/feclearexcept.texi: Likewise.
30049         * doc/posix-functions/fegetenv.texi: Likewise.
30050         * doc/posix-functions/fegetround.texi: Likewise.
30051         * doc/posix-functions/feholdexcept.texi: Likewise.
30052         * doc/posix-functions/feraiseexcept.texi: Likewise.
30053         * doc/posix-functions/fesetenv.texi: Likewise.
30054         * doc/posix-functions/fesetround.texi: Likewise.
30055         * doc/posix-functions/fetestexcept.texi: Likewise.
30056         * doc/posix-functions/feupdateenv.texi: Likewise.
30057         * doc/posix-functions/fmax.texi: Likewise.
30058         * doc/posix-functions/fmin.texi: Likewise.
30059         * doc/posix-functions/log2.texi: Likewise.
30060         * doc/posix-functions/modff.texi: Likewise.
30061         * doc/posix-functions/nan.texi: Likewise.
30062         * doc/posix-functions/nanf.texi: Likewise.
30063         * doc/posix-functions/nextafterf.texi: Likewise.
30064         * doc/posix-functions/remquo.texi: Likewise.
30066 2011-10-07  Bruno Haible  <bruno@clisp.org>
30068         modff: Drop assumption about library that defines modff.
30069         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
30070         AC_CHECK_FUNCS.
30071         * modules/modff (Files): Add m4/mathfunc.m4.
30073 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
30075         raise tests: Avoid a GCC warning.
30076         * tests/test-raise.c (handler): Use _Noreturn.
30078 2011-10-07  Bruno Haible  <bruno@clisp.org>
30080         Tests for module 'ldexpf'.
30081         * modules/ldexpf-tests: New file.
30082         * tests/test-ldexpf.c: New file.
30084         New module 'ldexpf'.
30085         * lib/math.in.h (ldexpf): New declaration.
30086         * lib/ldexpf.c: New file.
30087         * m4/ldexpf.m4: New file.
30088         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
30089         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
30090         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
30091         * modules/ldexpf: New file.
30092         * tests/test-math-c++.cc: Check the declaration of ldexpf.
30093         * doc/posix-functions/ldexpf.texi: Mention the new module.
30095 2011-10-06  Bruno Haible  <bruno@clisp.org>
30097         frexpf: Work around problems on IRIX and mingw.
30098         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
30099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
30100         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
30101         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
30102         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
30103         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
30104         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
30106 2011-10-06  Bruno Haible  <bruno@clisp.org>
30108         fabsf: Drop assumption about library that defines fabsf.
30109         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
30110         AC_CHECK_FUNCS.
30111         * modules/fabsf (Files): Add m4/mathfunc.m4.
30113 2011-10-06  Bruno Haible  <bruno@clisp.org>
30115         frexpf: Drop assumption about library that defines frexpf.
30116         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
30117         'int *', 'float *', 'long double *', 'float', 'long double'.
30118         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
30119         AC_CHECK_FUNCS.
30120         * modules/frexpf (Files): Add m4/mathfunc.m4.
30122         Tests for module 'frexpf'.
30123         * modules/frexpf-tests: New file.
30124         * tests/test-frexpf.c: New file.
30126         New module 'frexpf'.
30127         * lib/math.in.h (frexpf): New declaration.
30128         * lib/frexpf.c: New file.
30129         * m4/frexpf.m4: New file.
30130         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
30131         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
30132         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
30133         * modules/frexpf: New file.
30134         * tests/test-math-c++.cc: Check the declaration of frexpf.
30135         * doc/posix-functions/frexpf.texi: Mention the new module.
30137 2011-10-06  Bruno Haible  <bruno@clisp.org>
30139         math: Sort function declarations of math.in.h.
30140         * lib/math.in.h (frexp, logb): Move declarations.
30142 2011-10-05  Bruno Haible  <bruno@clisp.org>
30144         Tests for module 'modff'.
30145         * modules/modff-tests: New file.
30146         * tests/test-modff.c: New file.
30148         New module 'modff'.
30149         * lib/math.in.h (modff): New declaration.
30150         * lib/modff.c: New file.
30151         * m4/modff.m4: New file.
30152         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
30153         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
30154         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
30155         * modules/modff: New file.
30156         * tests/test-math-c++.cc: Check the declaration of modff.
30157         * doc/posix-functions/modff.texi: Mention the new module.
30159         modf tests: Make test sharper.
30160         * tests/test-modf.c (main): Strengthen upper bound.
30162         modf: Use a .m4 file.
30163         * m4/modf.m4: New file.
30164         * modules/modf (Files): Add it.
30165         (configure.ac): Just invoke gl_FUNC_MODF.
30167 2011-10-05  Bruno Haible  <bruno@clisp.org>
30169         Tests for module 'fmodf'.
30170         * modules/fmodf-tests: New file.
30171         * tests/test-fmodf.c: New file.
30173         New module 'fmodf'.
30174         * lib/math.in.h (fmodf): New declaration.
30175         * lib/fmodf.c: New file.
30176         * m4/fmodf.m4: New file.
30177         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
30178         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
30179         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
30180         * modules/fmodf: New file.
30181         * tests/test-math-c++.cc: Check the declaration of fmodf.
30182         * doc/posix-functions/fmodf.texi: Mention the new module.
30184         fmod: Use a .m4 file.
30185         * m4/fmod.m4: New file.
30186         * modules/fmod (Files): Add it.
30187         (configure.ac): Just invoke gl_FUNC_FMOD.
30189 2011-10-05  Bruno Haible  <bruno@clisp.org>
30191         Tests for module 'fabsf'.
30192         * modules/fabsf-tests: New file.
30193         * tests/test-fabsf.c: New file.
30195         New module 'fabsf'.
30196         * lib/math.in.h (fabsf): New declaration.
30197         * lib/fabsf.c: New file.
30198         * m4/fabsf.m4: New file.
30199         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
30200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
30201         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
30202         * modules/fabsf: New file.
30203         * tests/test-math-c++.cc: Check the declaration of fabsf.
30204         * doc/posix-functions/fabsf.texi: Mention the new module.
30206         fabs: Use a .m4 file.
30207         * m4/fabs.m4: New file.
30208         * modules/fabs (Files): Add it.
30209         (configure.ac): Just invoke gl_FUNC_FABS.
30211 2011-10-05  Jim Meyering  <meyering@redhat.com>
30213         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
30214         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
30215         ls -lL regression introduced in coreutils-8.12, it does so at the
30216         cost of an additional stat call in the common case.  Besides, now
30217         that the kernel change that prompted commit 95f7c57f has been reverted
30218         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
30219         we have no use for commit 95f7c57f, "file-has-acl: use
30220         acl_extended_file_nofollow if available".
30222 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
30224         file-has-acl: revert unintended change in behavior of ls -L
30225         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
30226         derived from...
30227         (file_has_acl): ...code here.  Call it.
30228         This problem was introduced with 2011-07-22 commit 95f7c57f,
30229         "file-has-acl: use acl_extended_file_nofollow if available".
30230         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
30232 2011-10-03  Bruno Haible  <bruno@clisp.org>
30234         poll: Avoid link errors on MSVC.
30235         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
30236         * modules/poll (Depends-on): Add sockets.
30237         (Link): New section.
30238         * NEWS: Mention the change.
30239         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
30240         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
30241         $(LIB_POLL) instead of $(LIBSOCKET).
30243 2011-10-03  Bruno Haible  <bruno@clisp.org>
30245         sys_select tests: Fix link error on MSVC 9.
30246         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
30247         with $(LIB_SELECT) instead of $(LIBSOCKET).
30249 2011-10-03  Bruno Haible  <bruno@clisp.org>
30251         sys_select: Fix compilation error on mingw.
30252         * lib/sys_select.in.h: On native Windows, include <io.h>.
30254 2011-10-03  Bruno Haible  <bruno@clisp.org>
30256         wmemset: Support for MSVC.
30257         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
30258         whether wmemset() exists.
30260 2011-10-03  Bruno Haible  <bruno@clisp.org>
30262         wmemmove: Support for MSVC.
30263         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
30264         whether wmemmove() exists.
30266 2011-10-03  Bruno Haible  <bruno@clisp.org>
30268         wmemcpy: Support for MSVC.
30269         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
30270         whether wmemcpy() exists.
30272 2011-10-03  Bruno Haible  <bruno@clisp.org>
30274         wmemcmp: Support for MSVC.
30275         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
30276         whether wmemcmp() exists.
30278 2011-10-03  Bruno Haible  <bruno@clisp.org>
30280         wmemchr: Support for MSVC.
30281         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
30282         whether wmemchr() exists.
30284 2011-10-03  Bruno Haible  <bruno@clisp.org>
30286         glthread/*, strsignal: Support for MSVC.
30287         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
30288         including <winsock.h> on MSVC 9.
30289         * lib/glthread/lock.h: Likewise.
30290         * lib/glthread/thread.h: Likewise.
30291         * lib/glthread/tls.h: Likewise.
30292         * lib/glthread/yield.h: Likewise.
30293         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
30294         if HAVE_UNISTD_H is false.
30295         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
30297 2011-10-03  Bruno Haible  <bruno@clisp.org>
30299         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
30300         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
30301         Set to 100000.
30303 2011-10-03  Bruno Haible  <bruno@clisp.org>
30305         acl: Fix specification.
30306         * lib/file-has-acl.c (file_has_acl): Fix specification.
30308 2011-10-03  Bruno Haible  <bruno@clisp.org>
30310         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
30311         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
30312         (compute_curr_prefix, shared_library_fullname,
30313         find_shared_library_fullname, get_shared_library_fullname, relocate):
30314         Use it together with PIC && INSTALLDIR.
30315         Reported by <jojelino@gmail.com>
30316         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
30318 2011-10-01  Jim Meyering  <meyering@redhat.com>
30320         maint.mk: adjust a release-related rule not to require use of gzip
30321         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
30322         Instead, check each file in $(DIST_ARCHIVES).  This is better for
30323         projects that build only .tar.xz files.  Also fix an erroneous test.
30325         test-linkat: don't leave behind a temporary file
30326         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
30327         Otherwise, coreutils' "make distcheck" would fail with this:
30328           Only in /c/cu/tests/torture/coreutils/test/\
30329             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
30330           make[2]: *** [my-distcheck] Error 1
30332         float, math: add omitted file
30333         * lib/itold.c: Add file, required for yesterday's float change.
30335 2011-10-01  Bruno Haible  <bruno@clisp.org>
30337         isinf: Fix for OpenBSD/x86.
30338         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
30339         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
30340         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
30342 2011-10-01  Bruno Haible  <bruno@clisp.org>
30344         isfinite: Fix syntax error in configure test.
30345         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
30347         isfinite: Fix typo.
30348         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
30349         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
30351 2011-10-01  Bruno Haible  <bruno@clisp.org>
30353         nonblocking tests: Fix test failure on Linux/IA-64.
30354         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
30355         Set to 270000.
30357 2011-10-01  Bruno Haible  <bruno@clisp.org>
30359         mkfifoat tests: Fix a test failure on mingw.
30360         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
30361         with error ENOSYS.
30363 2011-09-30  Bruno Haible  <bruno@clisp.org>
30365         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
30366         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
30367         'long double'. Set REPLACE_ITOLD.
30368         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
30369         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
30370         * lib/itold.c: New file.
30371         * modules/float (Files): Add lib/itold.c.
30372         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
30373         (Makefile.am): Substitute REPLACE_ITOLD.
30374         * modules/math (Depends-on): Add float.
30375         (Makefile.am): Substitute REPLACE_ITOLD.
30376         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
30377         * doc/posix-headers/math.texi: Likewise.
30378         * doc/posix-functions/logl.texi: Likewise.
30380 2011-09-30  Bruno Haible  <bruno@clisp.org>
30382         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
30383         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
30384         Set to 140000.
30386 2011-09-30  Bruno Haible  <bruno@clisp.org>
30388         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
30389         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
30390         invocation, say "right after AC_PROG_CC_STDC", not "right after
30391         AC_PROG_CC".
30392         Reported by Gary V. Vaughan <gary@gnu.org>.
30394 2011-09-30  Bruno Haible  <bruno@clisp.org>
30396         Centralize C99 requirement.
30397         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
30398         * modules/stdarg (configure.ac-early): Invoke it instead of
30399         AC_PROG_CC_STDC.
30400         Reported by Gary V. Vaughan and Paul Eggert.
30402 2011-09-29  Bruno Haible  <bruno@clisp.org>
30404         float: Fix LDBL_MAX value on Linux/PowerPC.
30405         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
30406         on Linux/PowerPC.
30407         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
30408         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
30409         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
30410         platform.
30411         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
30413 2011-09-29  Bruno Haible  <bruno@clisp.org>
30415         doc: Improve doc about gl_EARLY.
30416         * doc/gnulib-tool.texi (Initial import): Mention where to place an
30417         AC_PROG_CC_STDC invocation.
30418         Reported by Gary V. Vaughan <gary@gnu.org>.
30420 2011-09-28  Bruno Haible  <bruno@clisp.org>
30422         fgetc, fputc, fread, fwrite tests: Fix link error.
30423         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
30424         on non-MSVC platforms.
30425         * tests/test-fputc.c (main): Likewise.
30426         * tests/test-fread.c (main): Likewise.
30427         * tests/test-fwrite.c (main): Likewise.
30428         Reported by Jim Meyering.
30430 2011-09-27  Bruno Haible  <bruno@clisp.org>
30432         fputc, fwrite tests: Avoid test failure on MSVC.
30433         * tests/test-fgetc.c: Include msvc-inval.h.
30434         (main): Invoke gl_msvc_inval_ensure_handler.
30435         * tests/test-fputc.c: Include msvc-inval.h.
30436         (main): Invoke gl_msvc_inval_ensure_handler.
30437         * tests/test-fread.c: Include msvc-inval.h.
30438         (main): Invoke gl_msvc_inval_ensure_handler.
30439         * tests/test-fwrite.c: Include msvc-inval.h.
30440         (main): Invoke gl_msvc_inval_ensure_handler.
30441         * modules/fgetc-tests (Depends-on): Add msvc-inval.
30442         * modules/fputc-tests (Depends-on): Likewise.
30443         * modules/fread-tests (Depends-on): Likewise.
30444         * modules/fwrite-tests (Depends-on): Likewise.
30446 2011-09-27  Bruno Haible  <bruno@clisp.org>
30448         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
30449         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
30450         (raise): Remove older, duplicated declaration.
30451         (_gl_raise_SIGPIPE): New declaration.
30452         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
30453         (rpl_raise): Remove function.
30454         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
30455         a gnulib-defined SIGPIPE here.
30456         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
30457         'sigprocmask' has detected missing signal-blocking and the module
30458         'sigpipe' is enabled.
30459         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30461 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
30463         base64-tests: avoid memory leak
30464         * tests/test-base64.c (main): Plug memory leak.
30466         base32: new module
30467         * modules/base32: New module.
30468         * lib/base32.c: New file.
30469         * lib/base32.h: Likewise.
30470         * m4/base32.m4: Likewise.
30471         * modules/base32-tests: New test.
30472         * tests/test-base32.c: Likewise.
30473         * MODULES.html.sh (Misc): Mention it.
30475 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
30477         gnulib: use more-standard license notice wording
30478         * gnulib-tool (func_emit_copyright_notice): When emitting a
30479         license notice into a file, use the standard wording as suggested
30480         by the current information for GNU maintainers, except say "file"
30481         rather than "program".  The new wording gives a license version
30482         number, which addresses an issue raised by Glenn Morris in
30483         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
30484         * m4/onceonly.m4: Use that same wording here, too.
30486         dup2: minor simplification
30487         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
30488         as lib/dup2.c no longer uses 'inline'.
30490 2011-09-25  Bruno Haible  <bruno@clisp.org>
30492         strings: Fix compilation error on MSVC.
30493         * lib/strings.in.h: Include <stddef.h> for size_t.
30495 2011-09-25  Bruno Haible  <bruno@clisp.org>
30497         fflush et al.: Document limitation on MSVC.
30498         * doc/posix-functions/fflush.texi: Document possible crash in handling
30499         mode other than DEFAULT_HANDLING.
30500         * doc/posix-functions/fgetc.texi: Likewise.
30501         * doc/posix-functions/fputc.texi: Likewise.
30502         * doc/posix-functions/fread.texi: Likewise.
30503         * doc/posix-functions/fwrite.texi: Likewise.
30505 2011-09-25  Bruno Haible  <bruno@clisp.org>
30507         msvc-inval: Allow three invalid parameter handling modes.
30508         * lib/msvc-inval.h: Don't include <stdlib.h> here.
30509         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
30510         macros.
30511         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
30512         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
30513         SANE_LIBRARY_HANDLING as a no-op.
30514         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
30515         <stdlib.h>.
30516         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
30518 2011-09-25  Bruno Haible  <bruno@clisp.org>
30520         msvc-inval: Make handler multithread-safe.
30521         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
30522         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
30523         declarations.
30524         (gl_msvc_inval_current): New declaration.
30525         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
30526         Operate on the structure returned by gl_msvc_inval_current().
30527         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
30528         Remove varaiables.
30529         (tls_index, tls_initialized): New variables.
30530         (not_per_thread): New variable.
30531         (gl_msvc_inval_current): New function.
30532         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
30533         returned by gl_msvc_inval_current().
30535 2011-09-25  Bruno Haible  <bruno@clisp.org>
30537         msvc-inval: Install handler globally.
30538         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
30539         !_MSC_VER.
30540         (gl_msvc_invalid_parameter_handler): Remove declaration.
30541         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
30542         declarations.
30543         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
30544         Install the handler globally, don't uninstall it.
30545         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
30546         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
30547         currently valid, call RaiseException instead.
30548         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
30549         for !_MSC_VER.
30551 2011-09-25  Bruno Haible  <bruno@clisp.org>
30553         strerror_r-posix: Fix for MSVC 9.
30554         * lib/strerror_r.c (local_snprintf): New function.
30555         (snprintf): Define to local_snprintf, not to _snprintf.
30557 2011-09-25  Bruno Haible  <bruno@clisp.org>
30559         ftruncate: Support for MSVC 9.
30560         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
30561         (chsize_nothrow): New function.
30562         (chsize): Redefine as a macro.
30563         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
30564         * modules/ftruncate (Depends-on): Add msvc-inval.
30566 2011-09-25  Bruno Haible  <bruno@clisp.org>
30568         New module 'fstat'.
30569         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
30570         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
30571         * lib/fchdir.c (rpl_fstat): Remove function.
30572         * m4/fstat.m4: New file.
30573         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
30574         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
30575         declared.
30576         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
30577         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
30578         * modules/fstat: New file.
30579         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
30580         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
30581         is set.
30582         * doc/posix-functions/fstat.texi: Mention the new module and the
30583         problem on MSVC.
30584         * NEWS: Mention the change.
30585         * modules/acl (Depends-on): Add fstat.
30586         * modules/chdir-safer (Depends-on): Likewise.
30587         * modules/chown (Depends-on): Likewise.
30588         * modules/copy-file (Depends-on): Likewise.
30589         * modules/fchdir (Depends-on): Likewise.
30590         * modules/fdopendir (Depends-on): Likewise.
30591         * modules/fopen (Depends-on): Likewise.
30592         * modules/fts (Depends-on): Likewise.
30593         * modules/getcwd (Depends-on): Likewise.
30594         * modules/isapipe (Depends-on): Likewise.
30595         * modules/linkat (Depends-on): Likewise.
30596         * modules/lseek (Depends-on): Likewise.
30597         * modules/mkdir-p (Depends-on): Likewise.
30598         * modules/open (Depends-on): Likewise.
30599         * modules/openat (Depends-on): Likewise.
30600         * modules/read-file (Depends-on): Likewise.
30601         * modules/renameat (Depends-on): Likewise.
30602         * modules/utimens (Depends-on): Likewise.
30604 2011-09-25  Bruno Haible  <bruno@clisp.org>
30606         linkat: Fix compilation on MSVC 9.
30607         * lib/linkat.c: Don't include <stdint.h>.
30609 2011-09-25  Bruno Haible  <bruno@clisp.org>
30611         fclose: Support for MSVC 9.
30612         * lib/fclose.c: Include msvc-inval.h.
30613         (fclose_nothrow): New function.
30614         (rpl_fclose): Use it.
30615         * modules/fclose (Depends-on): Add msvc-inval.
30616         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
30618 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
30620         dup2: minor simplifications
30621         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
30622         that it's a performance win.
30623         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
30624         ! defined __CYGWIN__)" to "ifdef F_GETFL".
30626 2011-09-24  Jim Meyering  <meyering@redhat.com>
30628         test-futimens: avoid a warning from gcc -Wshadow
30629         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
30630         to avoid a shadowing warning.
30632 2011-09-24  Bruno Haible  <bruno@clisp.org>
30634         fdopen: Support for MSVC 9.
30635         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
30636         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
30637         * lib/fdopen.c: Include msvc-inval.h.
30638         (fdopen_nothrow): New function.
30639         (rpl_fdopen): Use it.
30640         * modules/fdopen (Depends-on): Add msvc-inval.
30641         * modules/fclose-tests (Depends-on): Add fdopen.
30642         * modules/fflush-tests (Depends-on): Likewise.
30643         * modules/fgetc-tests (Depends-on): Likewise.
30644         * modules/fputc-tests (Depends-on): Likewise.
30645         * modules/fread-tests (Depends-on): Likewise.
30646         * modules/freopen-tests (Depends-on): Likewise.
30647         * modules/fseeko-tests (Depends-on): Likewise.
30648         * modules/ftello-tests (Depends-on): Likewise.
30649         * modules/fwrite-tests  (Depends-on): Likewise.
30650         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
30652 2011-09-24  Bruno Haible  <bruno@clisp.org>
30654         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
30655         * modules/fgetc-tests (Depends-on): Add unistd.
30656         * modules/fputc-tests (Depends-on): Likewise.
30657         * modules/fread-tests (Depends-on): Likewise.
30658         * modules/fwrite-tests (Depends-on): Likewise.
30660 2011-09-24  Bruno Haible  <bruno@clisp.org>
30662         dup: Simplify autoconf test.
30663         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
30664         on gl_MSVC_INVAL's result.
30666 2011-09-24  Bruno Haible  <bruno@clisp.org>
30668         Tests for function fwrite().
30669         * modules/fwrite-tests: New file.
30670         * tests/test-fwrite.c: New file.
30671         * modules/stdio-tests (Depends-on): Add fwrite-tests.
30673         Tests for function fread().
30674         * modules/fread-tests: New file.
30675         * tests/test-fread.c: New file.
30676         * modules/stdio-tests (Depends-on): Add fread-tests.
30678         Activate fputc tests.
30679         * modules/stdio-tests (Depends-on): Add fputc-tests.
30681         Enhance fgetc, fputc tests.
30682         * tests/test-fgetc.c (main): Also test the stream's error indicator.
30683         * tests/test-fputc.c (main): Likewise.
30685 2011-09-24  Bruno Haible  <bruno@clisp.org>
30687         write: Support for MSVC 9.
30688         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
30689         is not 1.
30690         * lib/write.c (write_nothrow): New function.
30691         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
30692         not 1. Use write_nothrow.
30693         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
30694         invalid parameter handler.
30695         (gl_PREREQ_WRITE): New macro.
30696         * modules/write (Depends-on): Add msvc-inval.
30697         (configure.ac): Invoke gl_PREREQ_WRITE.
30698         * doc/posix-functions/write.texi: Mention the problem on MSVC.
30700 2011-09-24  Bruno Haible  <bruno@clisp.org>
30702         read: Fix last commit.
30703         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
30705 2011-09-24  Bruno Haible  <bruno@clisp.org>
30707         dup2: Fix last commit.
30708         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
30709         (rpl_dup2): Disable fcntl workaround on native Windows.
30711         sigprocmask: Make code safer.
30712         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
30713         section that changes macro definitions for this compilation unit.
30715 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30717         dup2: clarify by coalescing Windows-specific material
30718         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
30719         "msvc-nothrow.h"' to the Windows-specific section, so that the
30720         Emacs source need not contain these include files.
30721         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
30722         Windows-specific fixes into this function rather than just the
30723         nothrow fix, as this shortens and clarifies the code.  Always
30724         define as a function, as that's a bit cleaner than having it be
30725         sometimes a function and sometimes a macro.
30726         (rpl_dup2): Move the Windows-specific stuff out of here and into
30727         ms_windows_dup2.  Don't protect the Haiku-related fix with
30728         "#if !defined __linux__", as the same code also works around
30729         a Linux kernel bug, and it doesn't add any system calls on any
30730         platform.  Add comment about FreeBSD 6.1.
30732         sigprocmask: move #include directive
30733         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
30734         Windows-specific section, so that the Emacs source need not
30735         contain msvc-inval.h.
30737 2011-09-23  Bruno Haible  <bruno@clisp.org>
30739         read: Support for MSVC 9.
30740         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
30741         is not 1.
30742         * lib/read.c (read_nothrow): New function.
30743         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
30744         read_nothrow.
30745         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
30746         invalid parameter handler.
30747         (gl_PREREQ_READ): New macro.
30748         * modules/read (Depends-on): Add msvc-inval.
30749         (configure.ac): Invoke gl_PREREQ_READ.
30750         * doc/posix-functions/read.texi: Mention the problem on MSVC.
30752 2011-09-23  Bruno Haible  <bruno@clisp.org>
30754         close: Support for MSVC 9.
30755         * lib/close.c: Include <errno.h>, msvc-inval.h.
30756         (close_nothrow): New function.
30757         (rpl_close): Use it.
30758         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
30759         invalid parameter handler.
30760         * modules/close (Depends-on): Add msvc-inval.
30761         * modules/dup2-tests (Depends-on): Add close.
30762         * modules/dup3-tests (Depends-on): Likewise.
30763         * modules/fcntl-tests (Depends-on): Likewise.
30764         * modules/spawn-pipe-tests (Depends-on): Likewise.
30765         * modules/unistd-safer-tests (Depends-on): Likewise.
30766         * doc/posix-functions/close.texi: Mention the problem on MSVC.
30768 2011-09-23  Bruno Haible  <bruno@clisp.org>
30770         New module 'dup'.
30771         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
30772         Allow replacement.
30773         * lib/dup.c: New file.
30774         * lib/fchdir.c (rpl_dup): Remove function.
30775         * m4/dup.m4: New file.
30776         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
30777         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
30778         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
30779         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
30780         * modules/dup: New file.
30781         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
30782         'dup' module is in use.
30783         * modules/fdopendir (Depends-on): Add dup.
30784         * modules/fdutimensat-tests (Depends-on): Likewise.
30785         * modules/fts (Depends-on): Likewise.
30786         * modules/futimens-tests (Depends-on): Likewise.
30787         * modules/posix_spawnp-tests (Depends-on): Likewise.
30788         * modules/unistd-safer-tests (Depends-on): Likewise.
30789         * modules/utimens-tests (Depends-on): Likewise.
30790         * doc/posix-functions/dup.texi: Mention the new module and the problem
30791         on MSVC.
30793 2011-09-23  Bruno Haible  <bruno@clisp.org>
30795         getdtablesize: Support for MSVC 9.
30796         * lib/getdtablesize.c: Include msvc-inval.h.
30797         (_setmaxstdio_nothrow): New function.
30798         (_setmaxstdio): Redefine it.
30799         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
30800         * modules/getdtablesize (Depends-on): Add msvc-inval.
30801         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
30803 2011-09-23  Bruno Haible  <bruno@clisp.org>
30805         signal-h: Rename from signal.
30806         * modules/signal-h: Renamed from modules/signal.
30807         * modules/pthread_sigmask (Depends-on): Update.
30808         * modules/raise (Depends-on): Likewise.
30809         * modules/sigaction (Depends-on): Likewise.
30810         * modules/sigpipe (Depends-on): Likewise.
30811         * modules/sigprocmask (Depends-on): Likewise.
30812         * modules/sys_select (Depends-on): Likewise.
30813         * modules/signal-h-tests: Renamed from modules/signal-tests.
30814         (Files, Depends-on, Makefile.am): Update.
30815         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
30816         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
30817         (Files, Makefile.am): Update.
30818         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
30819         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
30820         * modules/signal: New placeholder file.
30821         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
30822         * doc/posix-headers/signal.texi: Update.
30823         * NEWS: Mention the change.
30825 2011-09-23  Bruno Haible  <bruno@clisp.org>
30827         sigprocmask: Avoid crashes through signal() on MSVC 9.
30828         * lib/sigprocmask.c: Include msvc-inval.h.
30829         (signal_nothrow): New function.
30830         (signal): Redefine it.
30831         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
30832         * modules/sigprocmask (Depends-on): Add msvc-inval.
30833         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
30835 2011-09-23  Bruno Haible  <bruno@clisp.org>
30837         Tests for module 'raise'.
30838         * modules/raise-tests: New file.
30839         * tests/test-raise.c: New file.
30841         raise: Support for MSVC.
30842         * lib/signal.in.h (raise): New declaration.
30843         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
30844         for native Windows platforms.
30845         * m4/raise.m4: New file.
30846         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
30847         HAVE_RAISE, REPLACE_RAISE.
30848         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
30849         REPLACE_RAISE.
30850         * modules/raise (Status, Notice): Remove fields.
30851         (Files): Add m4/raise.m4.
30852         (Depends-on): Add signal, msvc-inval.
30853         (configure.ac): Use the common idioms.
30854         (Maintainer): Add me.
30855         * tests/test-signal-c++.cc: Check the signature of raise.
30856         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
30858 2011-09-23  Bruno Haible  <bruno@clisp.org>
30860         pipe2: Fix compilation on pre-C99 compilers.
30861         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
30863 2011-09-23  Bruno Haible  <bruno@clisp.org>
30865         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
30866         * lib/msvc-nothrow.h: New file.
30867         * lib/msvc-nothrow.c: New file.
30868         * m4/msvc-nothrow.m4: New file.
30869         * modules/msvc-nothrow: New file.
30870         * lib/dup2.c: Include msvc-nothrow.h.
30871         (rpl_dup2): No need to protect _get_osfhandle call here.
30872         * lib/accept4.c: Include msvc-nothrow.h.
30873         * lib/error.c: Likewise.
30874         * lib/fcntl.c: Likewise.
30875         * lib/lseek.c: Likewise.
30876         * lib/nonblocking.c: Likewise.
30877         * lib/poll.c: Likewise.
30878         * lib/read.c: Likewise.
30879         * lib/select.c: Likewise.
30880         * lib/sockets.h: Likewise.
30881         * lib/sockets.c: Likewise.
30882         * lib/stdio-read.c: Likewise.
30883         * lib/stdio-write.c: Likewise.
30884         * lib/write.c: Likewise.
30885         * lib/w32sock.h: Likewise.
30886         * lib/w32spawn.h: Likewise.
30887         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
30888         * lib/fsync.c: Likewise.
30889         * lib/isapipe.c: Likewise.
30890         * modules/dup2 (Depends-on): Add msvc-nothrow.
30891         * modules/accept4 (Depends-on): Likewise.
30892         * modules/error (Depends-on): Likewise.
30893         * modules/fcntl (Depends-on): Likewise.
30894         * modules/lseek (Depends-on): Likewise.
30895         * modules/nonblocking (Depends-on): Likewise.
30896         * modules/poll (Depends-on): Likewise.
30897         * modules/read (Depends-on): Likewise.
30898         * modules/select (Depends-on): Likewise.
30899         * modules/sockets (Depends-on): Likewise.
30900         * modules/sigpipe (Depends-on): Likewise.
30901         * modules/write (Depends-on): Likewise.
30902         * modules/accept (Depends-on): Likewise.
30903         * modules/bind (Depends-on): Likewise.
30904         * modules/connect (Depends-on): Likewise.
30905         * modules/gethostname (Depends-on): Likewise.
30906         * modules/getpeername (Depends-on): Likewise.
30907         * modules/getsockname (Depends-on): Likewise.
30908         * modules/getsockopt (Depends-on): Likewise.
30909         * modules/ioctl (Depends-on): Likewise.
30910         * modules/listen (Depends-on): Likewise.
30911         * modules/recv (Depends-on): Likewise.
30912         * modules/recvfrom (Depends-on): Likewise.
30913         * modules/send (Depends-on): Likewise.
30914         * modules/sendto (Depends-on): Likewise.
30915         * modules/setsockopt (Depends-on): Likewise.
30916         * modules/shutdown (Depends-on): Likewise.
30917         * modules/socket (Depends-on): Likewise.
30918         * modules/execute (Depends-on): Likewise.
30919         * modules/spawn-pipe (Depends-on): Likewise.
30920         * modules/flock (Depends-on): Likewise.
30921         * modules/fsync (Depends-on): Likewise.
30922         * modules/isapipe (Depends-on): Likewise.
30923         * tests/test-cloexec.c: Include msvc-nothrow.h.
30924         * tests/test-dup-safer.c: Likewise.
30925         * tests/test-dup2.c: Likewise.
30926         * tests/test-dup3.c: Likewise.
30927         * tests/test-fcntl.c: Likewise.
30928         * tests/test-pipe.c: Likewise.
30929         * tests/test-pipe2.c: Likewise.
30930         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
30931         * modules/unistd-safer-tests (Depends-on): Likewise.
30932         * modules/dup2-tests (Depends-on): Likewise.
30933         * modules/dup3-tests (Depends-on): Likewise.
30934         * modules/fcntl-tests (Depends-on): Likewise.
30935         * modules/pipe-posix-tests (Depends-on): Likewise.
30936         * modules/pipe2-tests (Depends-on): Likewise.
30938 2011-09-23  Bruno Haible  <bruno@clisp.org>
30940         dup2: Make code more maintainable.
30941         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
30942         (rpl_dup2): Use it.
30943         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
30944         * modules/dup2 (configure.ac): Invoke it.
30945         Reported by Paul Eggert.
30947 2011-09-23  Bruno Haible  <bruno@clisp.org>
30949         msvc-inval: Fix compilation error.
30950         * lib/msvc-inval.h: Include <excpt.h>.
30952 2011-09-23  Bruno Haible  <bruno@clisp.org>
30954         mkdir: Tweak for MSVC 9.
30955         * lib/sys_stat.in.h: Update comments.
30956         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
30958         Tests for module 'chdir'.
30959         * modules/chdir-tests: New file.
30960         * tests/test-chdir.c: New file.
30962         New module 'chdir'.
30963         * modules/chdir: New file.
30964         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
30965         (chdir): New declaration.
30966         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
30967         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
30968         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
30969         * tests/test-unistd-c++.cc: Check signature of chdir.
30970         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
30971         * modules/chdir-long (Depends-on): Add chdir.
30972         * modules/fchdir (Depends-on): Likewise.
30973         * modules/rename (Depends-on): Likewise.
30974         * modules/savewd (Depends-on): Likewise.
30976         rmdir: Support for mingw, MSVC 9.
30977         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
30978         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
30980         getcwd: Tweak for MSVC 9.
30981         * lib/unistd.in.h: Update comments.
30982         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
30984 2011-09-22  Bruno Haible  <bruno@clisp.org>
30986         strerror_r-posix: Avoid a link error on MSVC.
30987         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
30988         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
30990 2011-09-22  Bruno Haible  <bruno@clisp.org>
30992         select: Avoid link errors on MSVC.
30993         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
30994         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
30995         * modules/pselect (Link): Likewise.
30996         * NEWS: Mention the change.
30997         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
30998         test-select-stdin against $(LIB_SELECT).
30999         * modules/pselect-tests (Makefile.am): Link test-pselect against
31000         $(LIB_SELECT).
31002 2011-09-22  Bruno Haible  <bruno@clisp.org>
31004         select: Avoid compilation error on MSVC.
31005         * lib/select.c: Don't include <stdbool.h>.
31007 2011-09-21  Bruno Haible  <bruno@clisp.org>
31009         Consolidate all uses of PATH_MAX in *.m4 files.
31010         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
31011         macros.
31012         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
31013         and gl_PATHMAX_SNIPPET.
31014         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
31015         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
31016         * modules/chdir-long (Files): Add m4/pathmax.m4.
31017         * modules/getcwd (Files): Likewise.
31019 2011-09-21  Bruno Haible  <bruno@clisp.org>
31021         ftruncate: Un-deprecate, concentrate on Win32 support.
31022         * modules/ftruncate (Status, Notice): Remove sections.
31023         (Depends-on): Add largefile.
31024         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
31025         non-mingw platforms.
31026         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
31027         include <io.h>.
31028         * modules/perror-tests (Depends-on): Add ftruncate.
31029         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
31030         'ftruncate' module.
31032 2011-09-21  Bruno Haible  <bruno@clisp.org>
31034         Add dependencies to new dirent related modules.
31035         * modules/opendir (Depends-on): Add closedir.
31036         * modules/getcwd (Depends-on): Add opendir, closedir.
31037         * modules/dirent-safer-tests (Depends-on): Likewise.
31038         * modules/fdopendir-tests (Depends-on): Likewise.
31039         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
31040         * modules/renameat-tests (Depends-on): Likewise.
31042 2011-09-21  Bruno Haible  <bruno@clisp.org>
31044         opendir: Avoid compilation error on mingw.
31045         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
31046         * modules/opendir (Depends-on): Add unistd.
31048 2011-09-21  Bruno Haible  <bruno@clisp.org>
31050         ftruncate tests: Avoid a test failure on mingw.
31051         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
31053 2011-09-21  Bruno Haible  <bruno@clisp.org>
31055         select tests: Avoid test failures on OSF/1 5.1 and mingw.
31056         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
31057         native Windows.
31059 2011-09-21  Bruno Haible  <bruno@clisp.org>
31061         New module 'fdopen'.
31062         * lib/stdio.in.h (fdopen): New declaration.
31063         * lib/fdopen.c: New file.
31064         * m4/fdopen.m4: New file.
31065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
31066         REPLACE_FDOPEN.
31067         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
31068         REPLACE_FDOPEN.
31069         * modules/fdopen: New file.
31070         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
31071         * tests/test-stdio-c++.cc: Check signature of fdopen.
31072         * doc/posix-functions/fdopen.texi: Mention the new module.
31074 2011-09-21  Bruno Haible  <bruno@clisp.org>
31076         unlockpt tests: Avoid test failure on NetBSD 5.1.
31077         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
31078         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
31080 2011-09-21  Bruno Haible  <bruno@clisp.org>
31082         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
31083         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
31084         * tests/test-getlogin_r.c (main): Likewise.
31086 2011-09-20  Bruno Haible  <bruno@clisp.org>
31088         time tests: Don't require pid_t.
31089         * doc/posix-headers/time.texi: Revert last change.
31090         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
31091         * tests/test-time.c: Comment out the check for pid_t.
31093 2011-09-20  Bruno Haible  <bruno@clisp.org>
31095         fsync tests: Avoid a test failure on mingw.
31096         * tests/test-fsync.c (main): Allow a failure with EIO.
31098 2011-09-20  Bruno Haible  <bruno@clisp.org>
31100         euidaccess: Update comments.
31101         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
31103 2011-09-20  Bruno Haible  <bruno@clisp.org>
31105         Ensure EBADF returns for socket functions on mingw.
31106         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
31107         descriptor is invalid.
31108         * lib/bind.c (rpl_bind): Likewise.
31109         * lib/connect.c (rpl_connect): Likewise.
31110         * lib/getpeername.c (rpl_getpeername): Likewise.
31111         * lib/getsockname.c (rpl_getsockname): Likewise.
31112         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31113         * lib/listen.c (rpl_listen): Likewise.
31114         * lib/recv.c (rpl_recv): Likewise.
31115         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31116         * lib/send.c (rpl_send): Likewise.
31117         * lib/sendto.c (rpl_sendto): Likewise.
31118         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31119         * lib/shutdown.c (rpl_shutdown): Likewise.
31121 2011-09-20  Bruno Haible  <bruno@clisp.org>
31123         select tests: EBADF tests.
31124         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
31125         test_bad_fd): New functions.
31126         (test_function): Invoke also test_bad_fd.
31128 2011-09-20  Bruno Haible  <bruno@clisp.org>
31130         Tests for module 'posix_spawn_file_actions_addopen.
31131         * modules/posix_spawn_file_actions_addopen-tests: New file.
31132         * tests/test-posix_spawn_file_actions_addopen.c: New file.
31134         Tests for module 'posix_spawn_file_actions_adddup2'.
31135         * modules/posix_spawn_file_actions_adddup2-tests: New file.
31136         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
31138         Tests for module 'posix_spawn_file_actions_addclose'.
31139         * modules/posix_spawn_file_actions_addclose-tests: New file.
31140         * tests/test-posix_spawn_file_actions_addclose.c: New file.
31142 2011-09-20  Bruno Haible  <bruno@clisp.org>
31144         Tests for module 'unlockpt'.
31145         * modules/unlockpt-tests: New file.
31146         * tests/test-unlockpt.c: New file.
31147         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
31149         Tests for module 'grantpt'.
31150         * modules/grantpt-tests: New file.
31151         * tests/test-grantpt.c: New file.
31152         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
31154 2011-09-20  Bruno Haible  <bruno@clisp.org>
31156         freopen tests: EBADF tests.
31157         * tests/test-freopen.c: Include errno.h, unistd.h.
31158         (main): Add tests for EBADF, commented out for the moment.
31160         fclose tests: EBADF tests.
31161         * tests/test-fclose.c (main): Add tests for EBADF.
31163         fflush tests: EBADF tests.
31164         * tests/test-fflush.c: Include errno.h, macros.h.
31165         (main): Add tests for EBADF.
31167         ftello tests: EBADF tests.
31168         * tests/test-ftello4.sh: New file.
31169         * tests/test-ftello4.c: New file.
31170         * modules/ftello-tests (Files): Add them.
31171         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
31173         fseeko tests: EBADF tests.
31174         * tests/test-fseeko4.sh: New file.
31175         * tests/test-fseeko4.c: New file.
31176         * modules/fseeko-tests (Files): Add them.
31177         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
31179         Tests for function fputc().
31180         * modules/fputc-tests: New file.
31181         * tests/test-fputc.c: New file.
31182         * modules/stdio-tests (Depends-on): Add fputc-tests.
31184         Tests for function fgetc().
31185         * modules/fgetc-tests: New file.
31186         * tests/test-fgetc.c: New file.
31187         * modules/stdio-tests (Depends-on): Add fgetc-tests.
31189         Tests for function fdopen().
31190         * modules/fdopen-tests: New file.
31191         * tests/test-fdopen.c: New file.
31192         * modules/stdio-tests (Depends-on): Add fdopen-tests.
31194         Tests for module 'vdprintf'.
31195         * modules/vdprintf-tests: New file.
31196         * tests/test-vdprintf.c: New file.
31198         Tests for module 'dprintf'.
31199         * modules/dprintf-tests: New file.
31200         * tests/test-dprintf.c: New file.
31202 2011-09-20  Bruno Haible  <bruno@clisp.org>
31204         Tests for module 'ioctl'.
31205         * modules/ioctl-tests: New file.
31206         * tests/test-ioctl.c: New file.
31208 2011-09-20  Bruno Haible  <bruno@clisp.org>
31210         fcntl tests: EBADF tests.
31211         * tests/test-fcntl.c (main): Add more tests for EBADF.
31213 2011-09-20  Bruno Haible  <bruno@clisp.org>
31215         utimensat tests: EBADF tests.
31216         * tests/test-utimensat.c (main): Add tests for EBADF.
31218         renameat tests: EBADF tests.
31219         * tests/test-renameat.c (main): Add tests for EBADF.
31221         mkfifoat tests: EBADF tests.
31222         * tests/test-mkfifoat.c (main): Add tests for EBADF.
31224         readlinkat tests: EBADF tests.
31225         * tests/test-readlinkat.c (main): Add tests for EBADF.
31227         symlinkat tests: EBADF tests.
31228         * tests/test-symlinkat.c (main): Add tests for EBADF.
31230         linkat tests: EBADF tests.
31231         * tests/test-linkat.c (main): Add tests for EBADF.
31233         Tests for module 'faccessat'.
31234         * modules/faccessat-tests: New file.
31235         * tests/test-faccessat.c: New file.
31237         fdopendir tests: EBADF tests.
31238         * tests/test-fdopendir.c (main): Add more tests for EBADF.
31240         openat tests: EBADF tests.
31241         * tests/test-fchownat.c (main): Add tests for EBADF.
31242         * tests/test-fstatat.c (main): Likewise.
31243         * tests/test-mkdirat.c (main): Likewise.
31244         * tests/test-openat.c (main): Likewise.
31245         * tests/test-unlinkat.c (main): Likewise.
31246         * tests/test-fchmodat.c: New file.
31247         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
31248         (Makefile.am): Also run 'test-fchmodat'.
31250 2011-09-20  Bruno Haible  <bruno@clisp.org>
31252         utimens, futimens, fdutimensat tests: EBADF tests.
31253         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
31255         Tests for function fstat().
31256         * modules/fstat-tests: New file.
31257         * tests/test-fstat.c: New file.
31258         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
31260 2011-09-20  Bruno Haible  <bruno@clisp.org>
31262         test-ttyname_r tests: EBADF tests.
31263         * tests/test-ttyname_r.c (main): Add tests for EBADF.
31265         Tests for module 'isatty'.
31266         * modules/isatty-tests: New file.
31267         * tests/test-isatty.c: New file.
31269         Tests for module 'write'.
31270         * modules/write-tests: New file.
31271         * tests/test-write.c: New file.
31273         Tests for module 'read'.
31274         * modules/read-tests: New file.
31275         * tests/test-read.c: New file.
31277         pwrite tests: EBADF tests.
31278         * tests/test-pwrite.c (main): Add tests for EBADF.
31280         pread tests: EBADF tests.
31281         * tests/test-pread.c (main): Add tests for EBADF.
31283         lseek tests: EBADF tests.
31284         * tests/test-lseek.c (main): Add more tests for EBADF.
31286         Tests for module 'ftruncate'.
31287         * modules/ftruncate-tests: New file.
31288         * tests/test-ftruncate.sh: New file.
31289         * tests/test-ftruncate.c: New file.
31291         fsync tests: EBADF tests.
31292         * tests/test-fsync.c (main): Add more tests for EBADF.
31294         fdatasync tests: EBADF tests.
31295         * tests/test-fdatasync.c (main): Add more tests for EBADF.
31297         Tests for module 'fchown'.
31298         * modules/fchown-tests: New file.
31299         * tests/test-fchown.c: New file.
31301         Tests for module 'fchmod'.
31302         * modules/fchmod-tests: New file.
31303         * tests/test-fchmod.c: New file.
31305         fchdir tests: EBADF tests.
31306         * tests/test-fchdir.c (main): Add more tests for EBADF.
31308         dup2 tests: EBADF tests.
31309         * tests/test-dup2.c (main): Add more tests for EBADF.
31311         Tests for module 'dup'.
31312         * modules/dup-tests: New file.
31313         * tests/test-dup.c: New file.
31315         Tests for module 'close'.
31316         * modules/close-tests: New file.
31317         * tests/test-close.c: New file.
31319 2011-09-20  Bruno Haible  <bruno@clisp.org>
31321         Tests for module 'shutdown'.
31322         * modules/shutdown-tests: New file.
31323         * tests/test-shutdown.c: New file.
31325         Tests for module 'setsockopt'.
31326         * modules/setsockopt-tests: New file.
31327         * tests/test-setsockopt.c: New file.
31329         Tests for module 'sendto'.
31330         * modules/sendto-tests: New file.
31331         * tests/test-sendto.c: New file.
31333         Tests for module 'send'.
31334         * modules/send-tests: New file.
31335         * tests/test-send.c: New file.
31337         Tests for module 'recvfrom'.
31338         * modules/recvfrom-tests: New file.
31339         * tests/test-recvfrom.c: New file.
31341         Tests for module 'recv'.
31342         * modules/recv-tests: New file.
31343         * tests/test-recv.c: New file.
31345         Tests for module 'listen'.
31346         * modules/listen-tests: New file.
31347         * tests/test-listen.c: New file.
31349         Tests for module 'getsockopt'.
31350         * modules/getsockopt-tests: New file.
31351         * tests/test-getsockopt.c: New file.
31353         Tests for module 'getsockname'.
31354         * modules/getsockname-tests: New file.
31355         * tests/test-getsockname.c: New file.
31357         Tests for module 'getpeername'.
31358         * modules/getpeername-tests: New file.
31359         * tests/test-getpeername.c: New file.
31361         Tests for module 'connect'.
31362         * modules/connect-tests: New file.
31363         * tests/test-connect.c: New file.
31365         Tests for module 'bind'.
31366         * modules/bind-tests: New file.
31367         * tests/test-bind.c: New file.
31369         accept4 tests: Fix for native Windows.
31370         * tests/test-accept4.c: Include sockets.h.
31371         (main): Invoke gl_sockets_startup.
31372         * modules/accept4-tests (Depends-on): Add sockets.
31374         accept tests: Fix for native Windows.
31375         * tests/test-accept.c: Include sockets.h.
31376         (main): Invoke gl_sockets_startup.
31377         * modules/accept-tests (Depends-on): Add sockets.
31379 2011-09-19  Bruno Haible  <bruno@clisp.org>
31381         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
31382         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
31383         do...while(0).
31384         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
31385         Suggested by Paul Eggert.
31387 2011-09-19  Bruno Haible  <bruno@clisp.org>
31389         sched: Ensure pid_t is defined.
31390         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
31391         not define pid_t.
31392         * lib/sched.in.h: Include <sys/types.h>.
31393         * doc/posix-headers/sched.texi: Mention the pid_t problem.
31394         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31396 2011-09-19  Bruno Haible  <bruno@clisp.org>
31398         msvc-inval: Ensure the entire expansion is a single statement.
31399         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
31400         of braces.
31402 2011-09-19  Jim Meyering  <meyering@redhat.com>
31404         tests: use printf, not echo in init.sh's warn_ function
31405         * tests/init.sh (warn_): Use printf, not echo.  The latter would
31406         misbehave when given strings containing a backslash or starting
31407         with e.g., -n.  James Youngman suggested setting IFS.
31409 2011-09-19  Eric Blake  <eblake@redhat.com>
31411         futimens: enhance test
31412         * tests/test-futimens.h (test_futimens): Also check for EBADF on
31413         closed non-negative fd.
31415         date: accept 'hence' as opposite of 'ago'
31416         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
31417         * tests/test-parse-datetime.c (main): Enhance test.
31418         Suggested by Jesse Wilson.
31420 2011-09-19  Jim Meyering  <meyering@redhat.com>
31422         getcwd: don't fail in a deep directory on a system without openat
31423         Before this change, getcwd would fail when called from a directory
31424         of depth PATH_MAX / 3 or greater.  That was due to the fact that
31425         the non-openat implementation used "..", "../..", "../../..", etc.
31426         to access ancestor directories.  With too many, that string would
31427         be longer than PATH_MAX.
31428         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
31429         using gnulib's openat replacement.
31430         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
31431         we're using the replacement function.
31433 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
31435         maint.mk: avoid warnings from perl about missing files
31436         * top/maint.mk (def_sym_regex): Ignore files listed in
31437         $(gl_other_headers_) that do not exist, say because a project
31438         does not use a corresponding module.
31440 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
31442         stat: use pathmax.h only if needed
31443         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
31444         This is better for Emacs, which does not have a mingw port and
31445         therefore can avoid the pathmax module.
31447         utimens: remove dependency on dup2
31448         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
31449         to work around the Linux kernel bug.
31450         * modules/utimens (Depends-on): Remove dup2.
31452 2011-09-18  Bruno Haible  <bruno@clisp.org>
31454         inet_ntop, inet_pton: Look for it also in libresolv.
31455         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
31456         libnsl, search for it in libresolv.
31457         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
31458         Needed on Solaris 7.
31460 2011-09-18  Bruno Haible  <bruno@clisp.org>
31462         accept, accept4 tests: Avoid link error on Solaris.
31463         * modules/accept-tests (Makefile.am): Link test-accept against
31464         $(LIBSOCKET).
31465         * modules/accept4-tests (Makefile.am): Link test-accept4 against
31466         $(LIBSOCKET).
31468         accept4: Avoid link error on Solaris.
31469         * modules/accept4 (Link): New section.
31471         socket functions: Avoid link errors on Solaris.
31472         * modules/accept (Depends-on): Add socketlib.
31473         (Link): New section.
31474         * modules/bind (Depends-on): Add socketlib.
31475         (Link): New section.
31476         * modules/connect (Depends-on): Add socketlib.
31477         (Link): New section.
31478         * modules/getpeername (Depends-on): Add socketlib.
31479         (Link): New section.
31480         * modules/getsockname (Depends-on): Add socketlib.
31481         (Link): New section.
31482         * modules/getsockopt (Depends-on): Add socketlib.
31483         (Link): New section.
31484         * modules/listen (Depends-on): Add socketlib.
31485         (Link): New section.
31486         * modules/recv (Depends-on): Add socketlib.
31487         (Link): New section.
31488         * modules/recvfrom (Depends-on): Add socketlib.
31489         (Link): New section.
31490         * modules/send (Depends-on): Add socketlib.
31491         (Link): New section.
31492         * modules/sendto (Depends-on): Add socketlib.
31493         (Link): New section.
31494         * modules/setsockopt (Depends-on): Add socketlib.
31495         (Link): New section.
31496         * modules/shutdown (Depends-on): Add socketlib.
31497         (Link): New section.
31498         * modules/socket (Depends-on): Add socketlib.
31499         (Link): New section.
31501 2011-09-18  Bruno Haible  <bruno@clisp.org>
31503         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
31504         * tests/test-ptsname.c (main): Terminate the test if it takes longer
31505         than 5 seconds.
31506         * modules/ptsname-tests (configure.ac): Test for alarm.
31508 2011-09-18  Bruno Haible  <bruno@clisp.org>
31510         posix_spawn_file_actions_add*: Fix module dependencies.
31511         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
31512         posix_spawn_file_actions_init.
31513         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
31514         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
31516 2011-09-18  Bruno Haible  <bruno@clisp.org>
31518         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
31519         * tests/test-rename.h (test_rename): Allow error code EEXIST.
31520         * tests/test-renameat.c (main): Likewise.
31522 2011-09-18  Bruno Haible  <bruno@clisp.org>
31524         Tests for module 'accept4'.
31525         * modules/accept4-tests: New file.
31526         * tests/test-accept4.c: New file.
31528 2011-09-18  Bruno Haible  <bruno@clisp.org>
31530         Tests for module 'accept'.
31531         * modules/accept-tests: New file.
31532         * tests/test-accept.c: New file.
31534 2011-09-18  Bruno Haible  <bruno@clisp.org>
31536         dup2: Support for MSVC.
31537         * lib/dup2.c: Include msvc-inval.h.
31538         (rpl_dup2): Handle invalid parameter notifications during dup2 and
31539         _get_osfhandle calls.
31540         * modules/dup2 (Depends-on): Add msvc-inval.
31541         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
31543         New module 'msvc-inval'.
31544         * lib/msvc-inval.h: New file.
31545         * lib/msvc-inval.c: New file.
31546         * m4/msvc-inval.m4: New file.
31547         * modules/msvc-inval: New file.
31549 2011-09-17  Bruno Haible  <bruno@clisp.org>
31551         Tests for module 'pclose'.
31552         * modules/pclose-tests: New file.
31554         New module 'pclose'.
31555         * lib/stdio.in.h (pclose): New declaration.
31556         * lib/pclose.c: New file.
31557         * m4/pclose.m4: New file.
31558         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
31559         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
31560         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
31561         * modules/pclose: New file.
31562         * modules/popen-tests (Depends-on): Add pclose.
31563         * modules/popen-safer-tests (Depends-on): Likewise.
31564         * doc/posix-functions/pclose.texi: Mention the new module.
31566 2011-09-17  Bruno Haible  <bruno@clisp.org>
31568         popen: Support for MSVC.
31569         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
31570         * lib/popen.c (popen): Provide alternate definition for native Windows.
31571         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
31572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
31573         * modules/popen (Depends-on, configure.ac): Update condition.
31574         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
31575         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
31576         fixed.
31578 2011-09-17  Bruno Haible  <bruno@clisp.org>
31580         isnanl, isnand, isnanf: Work around MSVC bug.
31581         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
31583 2011-09-17  Bruno Haible  <bruno@clisp.org>
31585         sys_socket tests: Fix recent mistake.
31586         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
31588 2011-09-17  Bruno Haible  <bruno@clisp.org>
31590         putenv: Support for MSVC.
31591         * modules/putenv (Depends-on): Add environ.
31592         * lib/putenv.c (environ): Disable declaration.
31593         * lib/unistd.in.h: Update comment.
31595 2011-09-17  Bruno Haible  <bruno@clisp.org>
31597         math: Avoid macro redefinition warnings on MSVC.
31598         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
31599         Undefine before redefining.
31601 2011-09-17  Bruno Haible  <bruno@clisp.org>
31603         doc: Mention functions which are declared as macros.
31604         * doc/posix-functions/*[fl].texi: Mention that some functions are
31605         defined as macros with arguments only.
31607 2011-09-17  Bruno Haible  <bruno@clisp.org>
31609         Add dependencies to new dirent related modules.
31610         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
31611         * modules/fts (Depends-on): Likewise.
31612         * modules/glob (Depends-on): Likewise.
31613         * modules/savedir (Depends-on): Likewise.
31614         * modules/scandir (Depends-on): Likewise.
31615         * modules/dirent-safer (Depends-on): Add opendir, closedir.
31616         * modules/fdopendir (Depends-on): Add opendir.
31618 2011-09-17  Bruno Haible  <bruno@clisp.org>
31620         inet_pton: Support for MSVC on Windows Vista or newer.
31621         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
31622         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
31623         HAVE_DECL_INET_PTON is defined.
31624         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
31625         On platforms with <winsock2.h>, test whether inet_pton is declared in
31626         <ws2tcpip.h>. If so, arrange to replace it.
31627         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
31628         REPLACE_INET_PTON.
31629         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
31630         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
31631         (Depends-on, configure.ac): Update condition.
31632         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
31634 2011-09-17  Bruno Haible  <bruno@clisp.org>
31636         inet_ntop: Support for MSVC on Windows Vista or newer.
31637         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
31638         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
31639         HAVE_DECL_INET_NTOP is defined.
31640         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
31641         On platforms with <winsock2.h>, test whether inet_ntop is declared in
31642         <ws2tcpip.h>. If so, arrange to replace it.
31643         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
31644         REPLACE_INET_NTOP.
31645         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
31646         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
31647         (Depends-on, configure.ac): Update condition.
31648         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
31650 2011-09-16  Eric Blake  <eblake@redhat.com>
31652         test-fsync: yet another enhancement
31653         * tests/test-fsync.c (main): Also test behavior on read-only text
31654         file.
31656 2011-09-16  Bruno Haible  <bruno@clisp.org>
31658         Enhance fsync, fdatasync tests.
31659         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
31660         * tests/test-fdatasync.c (main): Likewise.
31662 2011-09-16  Bruno Haible  <bruno@clisp.org>
31664         Support for MSVC compiler: Ensure mode_t gets defined.
31665         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
31666         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31667         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
31668         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
31669         * tests/test-fcntl-h.c: Check that mode_t is defined.
31670         * tests/test-sys_stat.c: Likewise.
31671         * tests/test-sys_types.c: Likewise.
31672         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
31673         * doc/posix-headers/sys_stat.texi: Likewise.
31674         * doc/posix-headers/sys_types.texi: Likewise.
31676 2011-09-16  Bruno Haible  <bruno@clisp.org>
31678         sys_stat: Support for MSVC.
31679         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
31680         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
31681         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
31682         MSVC.
31684 2011-09-16  Bruno Haible  <bruno@clisp.org>
31686         Support for MSVC compiler: Ensure off_t gets defined.
31687         * lib/unistd.in.h: Include <sys/types.h>.
31688         * tests/test-fcntl-h.c: Check that off_t is defined.
31689         * tests/test-sys_stat.c: Likewise.
31690         * tests/test-sys_types.c: Likewise.
31692 2011-09-16  Eric Blake  <eblake@redhat.com>
31694         fdatasync: port to Solaris
31695         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
31696         * modules/fdatasync (Link): Document it.
31697         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
31699         fdatasync: port to MacOS X 10.7
31700         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
31701         declared.
31702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
31703         * modules/unistd (Makefile.am): Substitute it.
31704         * lib/unistd.in.h (fdatasync): Declare on MacOS.
31705         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
31707         fdatasync: minor improvements
31708         * modules/fdatasync (Depends-on): Add condition for fsync.
31709         * lib/fdatasync.c (fdatasync): Add comment.
31710         * tests/test-unistd-c++.cc: Test fdatasync.
31712         unistd: update refs to newer POSIX
31713         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
31714         Suggested by Bruno Haible.
31716         fdatasync: new module
31717         * modules/fsync (Description): Document difference to fdatasync.
31718         * modules/fdatasync: New module.
31719         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
31720         * lib/fdatasync.c (fdatasync): Likewise.
31721         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
31722         defaults.
31723         * modules/unistd (Makefile.am): Set witnesses.
31724         * lib/unistd.in.h (fdatasync): Declare.
31725         * MODULES.html.sh: Document it.
31726         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
31727         * modules/fdatasync-tests: New test.
31728         * tests/test-fdatasync.c: Likewise.
31730 2011-09-16  Eric Blake  <eblake@redhat.com>
31732         test-fsync: enhance tests
31733         * modules/fsync-tests (Depends-on): Add errno, for mingw.
31734         * tests/test-fsync.c (main): Enhance test.
31736 2011-09-15  Bruno Haible  <bruno@clisp.org>
31738         Support for MSVC compiler: Ensure ssize_t gets defined.
31739         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
31740         * doc/posix-headers/stdio.texi: Likewise.
31741         * modules/stdio (Depends-on): Add ssize_t.
31742         * modules/sys_socket (Depends-on): Likewise.
31743         * modules/sys_types (Depends-on): Likewise.
31744         * modules/sys_uio (Depends-on): Likewise.
31745         * modules/unistd (Depends-on): Likewise.
31746         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
31747         * tests/test-sys_types.c: Check that ssize_t is defined.
31749 2011-09-14  Bruno Haible  <bruno@clisp.org>
31751         Avoid using #, the m4 comment starter character, near brackets.
31752         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
31753         delimiter character in sed expressions.
31754         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
31755         Suggested by Eric Blake.
31757         Properly quote AC_CHECK_DECLS' 4th argument.
31758         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
31759         argument.
31760         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
31761         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31762         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31763         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
31764         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31765         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
31766         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
31767         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
31768         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
31769         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
31770         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
31771         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
31772         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31773         * m4/isinf.m4 (gl_ISINF): Likewise.
31774         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31775         * m4/readutmp.m4 (gl_READUTMP): Likewise.
31776         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31777         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31778         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31779         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
31780         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31781         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
31782         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
31783         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31784         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31785         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31786         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
31787         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31788         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31789         Reported by Eric Blake.
31791         Properly quote AC_CHECK_DECL's 4th argument.
31792         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
31793         argument.
31794         * m4/argp.m4 (gl_ARGP): Likewise.
31795         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31796         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31797         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31798         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31799         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
31800         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
31801         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
31802         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31803         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31804         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31805         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31806         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31807         Reported by Eric Blake.
31809 2011-09-14  Eric Blake  <eblake@redhat.com>
31811         opendir: avoid compile warning
31812         * lib/opendir.c (includes): Always include errno.h.
31813         Reported by Tatsuro MATSUOKA.
31815 2011-09-14  Jim Meyering  <meyering@redhat.com>
31817         maint.mk: sc_tight_scope: propagate failure from sub-make
31818         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
31819         Reported by Martin von Gagern.
31821 2011-09-13  Bruno Haible  <bruno@clisp.org>
31823         tempname: Support for MSVC.
31824         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
31825         MSVC.
31826         * modules/tempname (Depends-on): Add fcntl-h.
31828 2011-09-13  Bruno Haible  <bruno@clisp.org>
31830         sys_time: Support for MSVC.
31831         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
31832         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
31833         include <winsock2.h>.
31834         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
31835         function declarations that collide with POSIX.
31836         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
31837         (Makefile.am): Substitute HAVE_WINSOCK2_H.
31839 2011-09-13  Bruno Haible  <bruno@clisp.org>
31841         stat: Support for MSVC.
31842         * lib/stat.c: Include pathmax.h.
31843         * modules/stat (Depends-on): Add pathmax.
31845         pathmax: Support for native Windows.
31846         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
31848 2011-09-12  Bruno Haible  <bruno@clisp.org>
31850         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
31851         * lib/dirent.in.h (struct dirent): New type.
31852         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
31853         DT_WHT): New macros.
31854         (DIR): New type.
31855         (opendir, closedir): Declare only if the module 'opendir' is enabled.
31856         (readdir, rewinddir): New declarations.
31857         * lib/dirent-private.h: New file.
31858         * lib/opendir.c: New file.
31859         * lib/readdir.c: New file.
31860         * lib/rewinddir.c: New file.
31861         * lib/closedir.c: New file.
31862         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
31863         * m4/opendir.m4: New file.
31864         * m4/readdir.m4: New file.
31865         * m4/rewinddir.m4: New file.
31866         * m4/closedir.m4: New file.
31867         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
31868         REPLACE_CLOSEDIR here.
31869         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
31870         readdir, rewinddir are declared.
31871         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
31872         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
31873         HAVE_REWINDDIR, HAVE_CLOSEDIR.
31874         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
31875         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
31876         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
31877         * modules/opendir: New file.
31878         * modules/readdir: New file.
31879         * modules/rewinddir: New file.
31880         * modules/closedir: New file.
31881         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
31882         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
31883         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
31884         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
31885         * NEWS: Mention the 'fchdir' change.
31887 2011-09-11  Bruno Haible  <bruno@clisp.org>
31889         asm-underscore.m4: Support for MSVC.
31890         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
31891         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
31893 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
31895         Doc about crypt functions.
31896         * doc/posix-functions/crypt.texi: Expand range of glibc versions
31897         needing for _GNU_SOURCE to get crypt.
31898         * doc/posix-functions/encrypt.texi: Likewise.
31899         * doc/posix-functions/setkey.texi: Likewise.
31901 2011-09-11  Bruno Haible  <bruno@clisp.org>
31903         doc: Update regarding MSVC 9.
31904         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
31905         tested".
31906         * doc/posix-functions/*.texi: Update with info about MSVC 9.
31907         * doc/posix-headers/*.texi: Likewise.
31908         * doc/pastposix-functions/*.texi: Likewise.
31909         * doc/glibc-functions/*.texi: Likewise.
31910         * doc/glibc-headers/*.texi: Likewise.
31912 2011-09-11  Bruno Haible  <bruno@clisp.org>
31914         unistd et al.: Don't assume <unistd.h> exists.
31915         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
31916         does not exist.
31917         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
31918         exist. But include <stdlib.h>.
31919         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
31920         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
31921         symlink() does not exist.
31922         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
31923         include <io.h> instead.
31924         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
31925         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
31926         include <direct.h> instead.
31927         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
31928         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
31929         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
31930         <io.h> instead.
31931         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
31932         correctly if the system does not have hard links.
31933         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
31934         <direct.h> instead.
31935         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
31936         it when looking for function declarations.
31937         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
31938         <direct.h> and <io.h> instead.
31939         * doc/posix-headers/unistd.texi: More details about MSVC problem.
31941 2011-09-11  Bruno Haible  <bruno@clisp.org>
31943         strcase: Support for MSVC.
31944         * modules/strcase (Status, Notice): Remove obsoletion mark.
31945         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
31946         * doc/posix-functions/strncasecmp.texi: Likewise.
31948         strings: Don't assume <strings.h> exists.
31949         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
31950         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
31951         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
31952         * doc/posix-headers/strings.texi: Mention the MSVC problem.
31954 2011-09-11  Bruno Haible  <bruno@clisp.org>
31956         dirent: Don't assume <dirent.h> exists.
31957         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
31958         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
31959         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
31960         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
31962 2011-09-11  Bruno Haible  <bruno@clisp.org>
31964         Fix wint_t on MSVC.
31965         * lib/wchar.in.h (wint_t): On MSVC, override it.
31966         * lib/wctype.in.h (wint_t): Likewise.
31967         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
31968         MSVC.
31969         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
31970         * doc/posix-headers/wctype.texi: Likewise.
31972 2011-09-11  Bruno Haible  <bruno@clisp.org>
31974         sys_types: Fix typo.
31975         * lib/sys_types.in.h: Fix typo in comment.
31976         Reported by Paul Eggert.
31978         Support for MSVC compiler: Ensure size_t gets defined.
31979         * modules/strings (Depends-on): Add 'sys_types'.
31980         * modules/sys_uio (Depends-on): Likewise.
31981         * lib/sys_uio.in.h: Update comment.
31983         C++ tests for module 'sys_types'.
31984         * modules/sys_types-c++-tests: New file.
31985         * tests/test-sys_types-c++.cc: New file.
31987         Tests for module 'sys_types'.
31988         * modules/sys_types-tests: New file.
31989         * tests/test-sys_types.c: New file.
31991         New module 'sys_types'.
31992         * lib/sys_types.in.h: New file.
31993         * m4/sys_types_h.m4: New file.
31994         * modules/sys_types: New file.
31995         * doc/posix-headers/sys_types.texi: Mention the new module and the
31996         size_t problem on MSVC 9.
31998 2011-09-11  Bruno Haible  <bruno@clisp.org>
32000         Support for MSVC compiler: Avoid division by a literal 0.
32001         * lib/math.in.h (NAN): Define through a function call also on MSVC.
32002         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
32003         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
32004         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
32005         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
32006         * tests/infinity.h: New file.
32007         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
32008         on MSVC.
32009         * tests/test-ceilf1.c: Include infinity.h.
32010         (main): Use Infinityf.
32011         * tests/test-ceil1.c: Include infinity.h.
32012         (main): Use Infinityd.
32013         * tests/test-ceill.c: Include infinity.h.
32014         (main): Use Infinityl.
32015         * tests/test-dprintf-posix.c: Include infinity.h.
32016         (test_function): Use Infinityd.
32017         * tests/test-floorf1.c: Include infinity.h.
32018         (main): Use Infinityf.
32019         * tests/test-floor1.c: Include infinity.h.
32020         (main): Use Infinityd.
32021         * tests/test-floorl.c: Include infinity.h.
32022         (main): Use Infinityl.
32023         * tests/test-fprintf-posix.c: Include infinity.h.
32024         (test_function): Use Infinityd.
32025         * tests/test-frexp.c: Include infinity.h.
32026         (main): Use Infinityd.
32027         * tests/test-frexpl.c: Include infinity.h.
32028         (main): Use Infinityl.
32029         * tests/test-isfinite.c: Include infinity.h.
32030         (test_isfinitef): Use Infinityf.
32031         (test_isfinited): Use Infinityd.
32032         (test_isfinitel): Use Infinityl.
32033         * tests/test-isinf.c: Include infinity.h.
32034         (test_isinff): Use Infinityf.
32035         (test_isinfd): Use Infinityd.
32036         (test_isinfl): Use Infinityl.
32037         * tests/test-isnan.c: Include infinity.h.
32038         (test_float): Use Infinityf.
32039         (test_double): Use Infinityd.
32040         (test_long_double): Use Infinityl.
32041         * tests/test-isnanf.h: Include infinity.h.
32042         (main): Use Infinityf.
32043         * tests/test-isnand.h: Include infinity.h.
32044         (main): Use Infinityd.
32045         * tests/test-isnanl.h: Include infinity.h.
32046         (main): Use Infinityl.
32047         * tests/test-ldexpl.c: Include infinity.h.
32048         (main): Use Infinityl.
32049         * tests/test-printf-posix.h: Include infinity.h.
32050         (test_function): Use Infinityd.
32051         * tests/test-roundf1.c: Include infinity.h.
32052         (main): Use Infinityf.
32053         * tests/test-round1.c: Include infinity.h.
32054         (main): Use Infinityd.
32055         * tests/test-roundl.c: Include infinity.h.
32056         (main): Use Infinityl.
32057         * tests/test-signbit.c: Include infinity.h.
32058         (test_signbitf): Use Infinityf.
32059         (test_signbitd): Use Infinityd.
32060         (test_signbitl): Use Infinityl.
32061         * tests/test-snprintf-posix.h: Include infinity.h.
32062         (test_function): Use Infinityd, Infinityl.
32063         * tests/test-sprintf-posix.h: Include infinity.h.
32064         (test_function): Use Infinityd, Infinityl.
32065         * tests/test-truncf1.c: Include infinity.h.
32066         (main): Use Infinityf.
32067         * tests/test-trunc1.c: Include infinity.h.
32068         (main): Use Infinityd.
32069         * tests/test-truncl.c: Include infinity.h.
32070         (main): Use Infinityl.
32071         * tests/test-vasnprintf-posix.c: Include infinity.h.
32072         (test_function): Use Infinityd, Infinityl.
32073         * tests/test-vasprintf-posix.c: Include infinity.h.
32074         (test_function): Use Infinityd, Infinityl.
32075         * modules/ceilf-tests (Files): Add tests/infinity.h.
32076         * modules/ceil-tests (Files): Likewise.
32077         * modules/ceill-tests (Files): Likewise.
32078         * modules/dprintf-posix-tests (Files): Likewise.
32079         * modules/floorf-tests (Files): Likewise.
32080         * modules/floor-tests (Files): Likewise.
32081         * modules/floorl-tests (Files): Likewise.
32082         * modules/fprintf-posix-tests (Files): Likewise.
32083         * modules/frexp-tests (Files): Likewise.
32084         * modules/frexp-nolibm-tests (Files): Likewise.
32085         * modules/frexpl-tests (Files): Likewise.
32086         * modules/frexpl-nolibm-tests (Files): Likewise.
32087         * modules/isfinite-tests (Files): Likewise.
32088         * modules/isinf-tests (Files): Likewise.
32089         * modules/isnan-tests (Files): Likewise.
32090         * modules/isnanf-tests (Files): Likewise.
32091         * modules/isnanf-nolibm-tests (Files): Likewise.
32092         * modules/isnand-tests (Files): Likewise.
32093         * modules/isnand-nolibm-tests (Files): Likewise.
32094         * modules/isnanl-tests (Files): Likewise.
32095         * modules/isnanl-nolibm-tests (Files): Likewise.
32096         * modules/ldexpl-tests (Files): Likewise.
32097         * modules/printf-posix-tests (Files): Likewise.
32098         * modules/roundf-tests (Files): Likewise.
32099         * modules/round-tests (Files): Likewise.
32100         * modules/roundl-tests (Files): Likewise.
32101         * modules/signbit-tests (Files): Likewise.
32102         * modules/snprintf-posix-tests (Files): Likewise.
32103         * modules/sprintf-posix-tests (Files): Likewise.
32104         * modules/truncf-tests (Files): Likewise.
32105         * modules/trunc-tests (Files): Likewise.
32106         * modules/truncl-tests (Files): Likewise.
32107         * modules/vasnprintf-posix-tests (Files): Likewise.
32108         * modules/vasprintf-posix-tests (Files): Likewise.
32109         * modules/vdprintf-posix-tests (Files): Likewise.
32110         * modules/vfprintf-posix-tests (Files): Likewise.
32111         * modules/vprintf-posix-tests (Files): Likewise.
32112         * modules/vsnprintf-posix-tests (Files): Likewise.
32113         * modules/vsprintf-posix-tests (Files): Likewise.
32114         * modules/xprintf-posix-tests (Files): Likewise.
32116 2011-09-11  Bruno Haible  <bruno@clisp.org>
32118         Ensure pid_t gets defined.
32119         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
32120         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
32121         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32122         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32123         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32124         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
32125         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32126         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32127         * tests/test-fcntl-h.c: Check that pid_t is defined.
32128         * tests/test-sched.c: Likewise.
32129         * tests/test-termios.c: Likewise.
32130         * tests/test-time.c: Likewise.
32131         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
32132         * doc/posix-headers/signal.texi: Likewise.
32133         * doc/posix-headers/sys_types.texi: Likewise.
32134         * doc/posix-headers/time.texi: Likewise.
32136 2011-09-11  Bruno Haible  <bruno@clisp.org>
32138         acl: Fix compilation on Solaris 10 (older version).
32139         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
32140         of ACE_EVERYONE.
32141         * lib/set-mode-acl.c (qset_acl): Likewise.
32142         Reported by Christian Jullien <eligis@orange.fr>.
32144 2011-09-10  Bruno Haible  <bruno@clisp.org>
32146         iconv, unsetenv: Add support for MSVC compiler.
32147         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
32148         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
32150 2011-09-10  Bruno Haible  <bruno@clisp.org>
32152         *printf: Add support for MSVC compiler.
32153         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
32154         handles the exception caused by the %n directive. When cross-compiling,
32155         guess no on native Windows.
32156         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
32157         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
32158         emulate it through vsnprintf.
32159         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
32160         * doc/posix-functions/dprintf.texi: Update documentation regarding
32161         MSVC 9.
32162         * doc/posix-functions/fprintf.texi: Likewise.
32163         * doc/posix-functions/printf.texi: Likewise.
32164         * doc/posix-functions/snprintf.texi: Likewise.
32165         * doc/posix-functions/sprintf.texi: Likewise.
32166         * doc/posix-functions/swprintf.texi: Likewise.
32167         * doc/posix-functions/vdprintf.texi: Likewise.
32168         * doc/posix-functions/vfprintf.texi: Likewise.
32169         * doc/posix-functions/vprintf.texi: Likewise.
32170         * doc/posix-functions/vsnprintf.texi: Likewise.
32171         * doc/posix-functions/vsprintf.texi: Likewise.
32172         * doc/glibc-functions/asprintf.texi: Likewise.
32173         * doc/glibc-functions/obstack_printf.texi: Likewise.
32174         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
32175         * doc/glibc-functions/vasprintf.texi: Likewise.
32177 2011-09-10  Bruno Haible  <bruno@clisp.org>
32179         nocrash: Add support for native Windows.
32180         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
32182 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
32183             Bruno Haible  <bruno@clisp.org>
32185         absolute-header, include-next: Add support for MSVC compiler.
32186         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
32187         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
32188         directory separator in #line directives.
32189         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
32190         recognize also backslash as directory separator in #line directives.
32192 2011-09-08  Jim Meyering  <meyering@redhat.com>
32194         maint.mk: mark the post-release commit log with "maint: " prefix
32195         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
32196         one-line commit-log summary.
32198 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
32199             Bruno Haible  <bruno@clisp.org>
32201         Doc about crypt functions.
32202         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
32203         systems.
32204         * doc/posix-functions/encrypt.texi: Likewise.
32205         * doc/posix-functions/setkey.texi: Likewise.
32207 2011-09-08  Simon Josefsson  <simon@josefsson.org>
32209         * lib/gc.h: Fix copyright header.
32211 2011-09-07  Bruno Haible  <bruno@clisp.org>
32213         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
32214         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
32215         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
32217 2011-09-07  Bruno Haible  <bruno@clisp.org>
32219         openat: Work around compilation error with OSF/1 5.1 DTK cc.
32220         * lib/fopen.c: Use different syntax for include of <stdio.h>.
32221         * lib/freopen.c: Likewise.
32222         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
32223         * lib/lstat.c: Likewise.
32224         * lib/stat.c: Likewise.
32225         * lib/open.c: Use different syntax for include of <fcntl.h>.
32226         * lib/openat.c: Include fcntl.h again, explicitly.
32228 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
32230         parse-datetime: document the newly accepted format
32231         * doc/parse-datetime.texi (Combined date and time of day items):
32232         New section.
32234 2011-09-06  Bruno Haible  <bruno@clisp.org>
32236         acl: Fix a test failure on newer Solaris 10 with ZFS.
32237         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
32238         ENOSYS as no ACL.
32239         Reported by Jim Meyering.
32241 2011-09-06  Bruno Haible  <bruno@clisp.org>
32243         acl: Update for AIX >= 5.3 with NFS.
32244         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
32245         ENOSYS as no ACL.
32247         acl: Fix a test failure on AIX >= 5.3 with NFS.
32248         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
32249         as no ACL.
32251 2011-09-06  Bruno Haible  <bruno@clisp.org>
32253         acl: Fix a test failure on IRIX 6.5 with NFS.
32254         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
32255         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
32256         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
32257         * lib/copy-acl.c (qcopy_acl): Likewise.
32259 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
32261         openat: port to AIX 7.1 with large files
32262         AIX 7.1 does a "#define openat open64at" if large files are in use,
32263         so we can't simply #undef openat.  Use the orig_openat trick (similar
32264         to orig_open in lib/open.c) to work around the problem.  Problem
32265         reported by Kevin Brott for GNU tar, in the thread containing
32266         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
32267         * lib/openat.c (__need_system_fcntl_h): Define first.
32268         Include <fcntl.h> and <sys/types.h> before undefining.
32269         (orig_openat) [HAVE_OPENAT]: New inline function.
32270         (openat) [HAVE_OPENAT]: Do not undef.
32271         (rpl_openat): Use orig_openat, not openat.
32273 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
32274             Bruno Haible  <bruno@clisp.org>
32276         acl: Avoid errors on NonStop Kernel.
32277         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
32278         ENOTSUP errors.
32280 2011-09-05  Bruno Haible  <bruno@clisp.org>
32282         acl: Clean up Solaris code.
32283         * lib/acl-internal.h: Remove no-op #if.
32284         * lib/file-has-acl.c: Likewise.
32285         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
32286         * lib/copy-acl.c (qcopy_acl): Likewise.
32288 2011-09-05  Bruno Haible  <bruno@clisp.org>
32290         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
32291         binaries built on the original Solaris 10.
32292         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
32293         trivial.
32295 2011-09-05  Bruno Haible  <bruno@clisp.org>
32297         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
32298         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
32299         10.
32300         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
32301         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
32302         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
32303         instead of acl_get, facl_get, acl_set, facl_set.
32305 2011-09-05  Bruno Haible  <bruno@clisp.org>
32307         copy-file: Try unit tests on more file systems.
32308         * tests/test-copy-file-1.sh: New file.
32309         * tests/test-copy-file-2.sh: New file.
32310         * modules/copy-file-tests (Files): Add them.
32311         (Makefile.am): Add them to TESTS.
32313         acl: Try unit tests on more file systems.
32314         * tests/test-file-has-acl-1.sh: New file.
32315         * tests/test-file-has-acl-2.sh: New file.
32316         * tests/test-set-mode-acl-1.sh: New file.
32317         * tests/test-set-mode-acl-2.sh: New file.
32318         * tests/test-copy-acl-1.sh: New file.
32319         * tests/test-copy-acl-2.sh: New file.
32320         * modules/acl-tests (Files): Add them.
32321         (Makefile.am): Add them to TESTS.
32323 2011-09-04  Bruno Haible  <bruno@clisp.org>
32325         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
32326         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
32327         10.
32328         (OLD_ALLOW, OLD_DENY): New macros.
32329         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
32330         ACE_ACCESS_ALLOWED_ACE_TYPE.
32331         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
32332         ACE_ACCESS_DENIED_ACE_TYPE.
32333         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
32334         (NEW_ACE_EXECUTE): Fix value.
32335         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
32336         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
32337         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
32338         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
32339         NEW_ACE_SYNCHRONIZE): New macros.
32340         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
32341         instead of acl_fromtext, acl_set, facl_set.
32342         Fixes a coreutils/tests/cp/perm failure.
32344 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
32346         openat: test for fstatat (..., 0) bug
32347         Further testing with tar suggests that fstatat (..., 0)
32348         does not work in general, on AIX 7.1; see
32349         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
32350         So, give up entirely on AIX 7.1's fstatat, and fall back on our
32351         replacement fstatat (which is what older AIX releases were using
32352         anyway).
32353         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
32354         use is now changed to orig_fstatat.  This was probably the right
32355         thing to do anyway.
32356         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
32357         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
32358         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
32359         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
32360         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
32361         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
32362         if the bug is found.
32364         openat: test for fstatat (AT_FDCWD, ..., 0) bug
32365         This tests for another fstatat bug on AIX 7.1:
32366         fstatat (AT_FDCWD, ..., 0) does not work.  See
32367         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
32368         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
32369         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
32370         (rpl_fstatat): Adjust so that it works around either (or both)
32371         bugs if present.
32372         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
32374 2011-09-03  Karl Berry  <karl@gnu.org>
32376         * doc/regex.texi (Character Class Operators): Avoid literal ":"
32377         in index entries.
32379 2011-09-02  Bruno Haible  <bruno@clisp.org>
32381         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
32382         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
32383         values of AR, ARFLAGS, RANLIB.
32384         Reported by John W. Eaton <jwe@gnu.org> for Octave.
32386 2011-09-02  Bruno Haible  <bruno@clisp.org>
32388         Find 'ar' program that fits with --host argument.
32389         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
32391 2011-09-02  Bruno Haible  <bruno@clisp.org>
32393         tests: init.sh: Support any non-GNU diff.
32394         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
32395         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
32396         Solaris 8.
32398 2011-09-02  Bruno Haible  <bruno@clisp.org>
32400         tests: init.sh: work also with any non-GNU diff that supports -u
32401         * tests/init.sh: Relax check for diff -u support.
32402         Rather than checking for GNU diff via --version, simply check
32403         for support for -u itself.  Useful at least on OpenBSD 4.9,
32404         AIX 7.1, IRIX 6.5, and Solaris 10.
32406 2011-09-01  Bruno Haible  <bruno@clisp.org>
32408         strtoimax, strtoumax: Document problem on HP-UX 11.
32409         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
32410         * doc/posix-functions/strtoumax.texi: Likewise.
32412 2011-09-01  Bruno Haible  <bruno@clisp.org>
32414         strtoumax: Avoid link error on OSF/1 with DTK cc.
32415         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
32416         defined as a function.
32417         * modules/strtoumax (Depends-on, configure.ac): Test only whether
32418         strtoumax is defined, not whether it is declared.
32420 2011-09-01  Bruno Haible  <bruno@clisp.org>
32422         strtoimax: Avoid link error on OSF/1 with DTK cc.
32423         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
32424         defined as a function.
32425         * modules/strtoimax (Depends-on, configure.ac): Test only whether
32426         strtoimax is defined, not whether it is declared.
32428 2011-09-01  Bruno Haible  <bruno@clisp.org>
32430         imaxdiv: Avoid link error on OSF/1 with DTK cc.
32431         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
32432         as a function.
32433         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
32434         whether it is declared.
32436 2011-09-01  Bruno Haible  <bruno@clisp.org>
32438         imaxabs: Avoid link error on OSF/1 with DTK cc.
32439         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
32440         as a function.
32441         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
32442         whether it is declared.
32444 2011-09-01  Bruno Haible  <bruno@clisp.org>
32446         Tests for module 'strtoumax'.
32447         * modules/strtoumax-tests: New file.
32448         * tests/test-strtoumax.c: New file.
32450         Tests for module 'strtoimax'.
32451         * modules/strtoimax-tests: New file.
32452         * tests/test-strtoimax.c: New file.
32454         Tests for module 'imaxdiv'.
32455         * modules/imaxdiv-tests: New file.
32456         * tests/test-imaxdiv.c: New file.
32458         Tests for module 'imaxabs'.
32459         * modules/imaxabs-tests: New file.
32460         * tests/test-imaxabs.c: New file.
32462 2011-09-01  Bruno Haible  <bruno@clisp.org>
32464         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
32465         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
32466         pthread_create.
32468 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32470         openat: work around AIX 7.1 fstatat issue
32471         This should fix the problem that was not properly fixed
32472         in the previous change, dated 2011-08-30.
32473         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
32474         __need_system_stat_h defined.
32475         (orig_fstatat) [HAVE_FSTATAT]: New function.
32476         (rpl_fstatat): Go back to the old way of doing things,
32477         except call orig_fstatat instead of fstatat.
32478         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
32479         Remove unnecessary check whether fstatat fills in st_size etc.
32481 2011-09-01  Bruno Haible  <bruno@clisp.org>
32483         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
32484         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
32485         just include the system's header.
32487 2011-08-31  Jim Meyering  <meyering@redhat.com>
32489         tests: avoid spurious assertion failure in test-float.c on ppc64
32490         * tests/test-float.c (test_long_double): Comment out an assertion,
32491         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
32492         with gcc-4.4.4.
32494         maint: indent with spaces, not TABs
32495         I need to get in the habit of running gnulib's "make check".
32496         Both of these would have been caught.
32497         * m4/largefile.m4: Indent with spaces, not TABs.
32498         * lib/parse-datetime.y (iso_8601_time): Likewise.
32499         Spotted by Pádraig Brady.
32501         test-parse-datetime.c: accommodate a relatively strict gcc warning
32502         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
32503         to avoid a warning from gcc's -Werror=missing-declarations.
32504         Insert a few spaces-before-funcall-parenthesis.
32506 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
32508         parse-datetime: accept ISO 8601 date and time rep with "T" separator
32509         The parser now accepts ISO 8601 date-time strings with "T" as the
32510         separator.  It has long parsed dates like "2004-02-29 16:21:42"
32511         with a space between the date and time strings.  Now it also parses
32512         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
32513         variants like "2004-02-29T16:21:42.333-07:00"
32514         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
32515         of day representation using the 'T' separator character.
32516         * doc/parse-datetime.texi (General date syntax): replace use of
32517         deprecated --iso-8601 option with --rfc-3339 in example of date
32518         command output formats that can be parsed.
32519         * tests/test-parse-datetime.c (tm_diff): New function, taken from
32520         lib/parse-datetime.y.
32521         (gmt_offset): New function.
32522         (main): Add additional test cases to validate ISO8601 extended
32523         date and time of day parsing.
32525 2011-08-31  Bruno Haible  <bruno@clisp.org>
32527         freopen: Documentation.
32528         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
32529         name.
32530         Reported by Claudio Bley <claudio.bley@gmail.com>.
32532 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
32534         freopen: Don't crash if the filename argument is NULL.
32535         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
32536         NULL.
32538 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
32540         openat: work around AIX 7.1 fstatat bug
32541         Problem reported by Kevin Brott for GNU tar, in the thread containing
32542         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
32543         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
32544         FSTATAT_ST_SIZE_ETC_BROKEN.
32545         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
32546         rpl_fstatat.
32547         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
32548         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
32549         AC_CHECK_FUNCS_ONCE for fstatat.
32550         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
32551         fchmodat, mkdirat, openat and unlinkat.
32553 2011-08-30  Bruno Haible  <bruno@clisp.org>
32555         Avoid endless recursions if config.h includes some header files.
32556         * lib/fopen.c (__need_FILE): Define already before including config.h.
32557         * lib/freopen.c (__need_FILE): Likewise.
32558         * lib/open.c (__need_system_fcntl_h): Likewise.
32559         * lib/stat.c (__need_system_sys_stat_h): Likewise.
32560         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
32561         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
32563 2011-08-25  Karl Berry  <karl@gnu.org>
32565         * config/srclist.txt (ylwrap): new try.
32566         * build-aux/ylwrap: new file.
32568 2011-08-23  Bruno Haible  <bruno@clisp.org>
32570         tmpdir: Use a good default directory on native Windows.
32571         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
32572         (P_tmpdir): Default to _P_tmpdir on native Windows.
32573         (path_search): On native Windows, try the value returned by GetTempPath
32574         before trying P_tmpdir.
32575         * modules/tmpdir (Depends-on): Add pathmax.
32576         Suggested by John Darrington <john@darrington.wattle.id.au>.
32578 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
32580         doc: fix typo in README-release
32581         * top/README-release: Capitalize first word of a sentence.
32583 2011-08-19  Jim Meyering  <meyering@redhat.com>
32585         fts: do not exhaust memory when processing million-entry directories
32586         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
32587         directory would require about 256*N bytes of memory.  Thus, it was
32588         easy to construct a directory too large to be processed by any of
32589         those tools.  With this change, fts' maximum memory utilization is
32590         now limited to around 30MB.
32591         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
32592         (fts_read): When we've processed the final entry (i.e., when
32593         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
32594         using the parent entry to read any remaining entries.  Dispatch
32595         depending on what fts_build returns:
32596         - NULL+stop, aka failure: stop
32597         - NULL otherwise: move up in the dir hierarchy
32598         - non-NULL: handle this new entry
32599         (fts_build): Declare and use new local, continue_readdir.
32600         Prepare to be called from fts_read, when the entries
32601         from a partially-read directory have just been exhausted.
32602         In that case, we'll skip the opendir and instead use the parent's
32603         fts_dirp and derive dir_fd from that.
32604         Finally, in the readdir loop, if we read max_entries entries,
32605         exit the loop ensuring *not* to call closedir.  This is required
32606         so that fts_dirp can be reused on a subsequent call.
32607         Prompted by Ben England's report of memory exhaustion in find
32608         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
32610         maint: fts: move decl of `dp' down into while loop; split a long line
32611         * lib/fts.c (fts_build): No semantic change.
32613         fts: add/use new struct member, fts_dirp
32614         We are about to use this to manage any directory with
32615         too many entries to read all of them into memory at once.
32616         To do that, we'll need to save the DIR* pointer in each
32617         affected FTSENT struct.
32618         * lib/fts_.h: Include <dirent.h>.
32619         (struct FTSENT) [fts_dirp]: New member.
32620         * lib/fts.c (closedir_and_clear): Define.
32621         Use it in place of closedir so that we are sure to
32622         clear the new fts_dirp member when done with it.
32623         (fts_alloc): Initialize the new member.
32624         (fts_lfree): Free, if needed.
32626         maint: fts: give __opendir2 a new parameter and rename
32627         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
32628         than surreptitiously using sole caller's "dir_fd".
32629         (fts_opendir): Rename from __opendir2.
32631         maint: fts.c: remove __opendir2's now-unused parameter, oflag
32632         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
32634         maint: fts.c: correct off-by-one indentation
32635         * lib/fts.c (fts_build): Correct indentation, change style
32636         of a couple of block comments, and bracing style.
32638         maint: fts.c: move __opendir2 #define "up" out of function body
32639         * lib/fts.c (__opendir2): Move "up".  No semantic change.
32641         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
32642         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
32643         out for a long time and besides was useful only on BSD systems.
32645 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
32647         regex: port to Stratus OpenVOS
32648         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
32649         define to empty, rather than attempting nonportable optimizations.
32650         Problem reported by Paul Green in:
32651         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
32652         and fix suggested by Eric Blake in:
32653         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
32655 2011-08-17  Eric Blake  <eblake@redhat.com>
32657         getcwd: fix test failures on mingw
32658         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
32659         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
32660         test if long directory cannot be created, and allow mingw errno.
32662         getcwd-lgpl: fix m4 to match relaxed test for BSD
32663         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
32664         (gl_FUNC_GETCWD_SIGNATURE): New macro.
32665         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
32666         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
32667         signature problem.
32669         getcwd: fix compilation on mingw64
32670         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
32671         getcwd.
32672         Reported by Marc-André Lureau.
32674         pipe2: silence compiler warning
32675         * lib/pipe2.c (pipe2): Hide label if it is not used.
32677 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
32679         relocatable-prog: fix link error
32680         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
32681         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
32682         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
32683         into modules/relocatable-lib without noticing that
32684         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
32685         also needs to build relocatable.c.
32687 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32689         getaddrinfo: fix sh typo in gai_strerrorA decl checking
32690         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
32691         shell code: it contained a 'break' that was not in a loop.
32692         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
32693         via a shell-language loop; this may have been true in old Autoconf
32694         versions, but it's not true in Autoconf 2.68.  I found this bug
32695         when testing coreutils git on Solaris 8, whose shell complains
32696         about the syntax error.
32698 2011-08-12  Simon Josefsson  <simon@josefsson.org>
32700         * lib/base64.c: Fix comment to reference RFC 4648.
32701         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
32702         <gvtulder@gmail.com>.
32704 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32706         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
32708         po/Makefile.in.in: fix make -q problem
32709         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
32710         rule, since there's no file named 'check-macro-version' and its
32711         use as a file breaks make -q.
32712         (all): Don't depend on check-macro-version.
32713         (CHECK_MACRO_VERSION): New macro.
32714         (stamp-po): Use it.
32716         configmake: fix make -q problem
32717         * modules/configmake (configmake.h): Update configmake.h's time stamp
32718         even if the file does not change.  Otherwise, 'make -q' fails.
32719         Problem reported by Simon Josefsson in
32720         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
32722 2011-08-11  Jim Meyering  <meyering@redhat.com>
32724         git-version-gen: correct the advice in a comment
32725         * build-aux/git-version-gen: Correct comment.
32726         Don't recommend to list .tarball-version in .gitignore.
32728 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32730         base64: fix off-by-one buffer size bug
32731         Problem and (trivial) fix reported by Gijs van Tulder in
32732         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
32733         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
32734         * tests/test-base64.c (main): Catch the bug.
32736 2011-08-10  Eric Blake  <eblake@redhat.com>
32738         closein: correct comments
32739         * lib/closein.c (close_stdin): Improve comments.
32741 2011-08-09  Bruno Haible  <bruno@clisp.org>
32743         More tests for 'fseeko'.
32744         * tests/test-fseeko3.c: New file, from Eric Blake.
32745         * tests/test-fseeko3.sh: New file.
32746         * modules/fseeko-tests (Files): Add them.
32747         (TESTS): Add test-fseeko3.sh.
32748         (check_PROGRAMS): Add test-fseeko3.
32750 2011-08-09  Eric Blake  <eblake@redhat.com>
32752         fseeko: remove unneeded hack
32753         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
32755         fseeko: fix bug on glibc
32756         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
32757         Reported by John W. Eaton.
32759 2011-08-08  Bruno Haible  <bruno@clisp.org>
32761         unictype/base: Fix interoperability with preinstalled libunistring.
32762         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
32763         Reported by Simon Josefsson.
32765 2011-08-08  Bruno Haible  <bruno@clisp.org>
32767         iswblank: Detect declaration correctly.
32768         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
32769         AC_CHECK_DECLS invocation.
32771 2011-08-08  Bruno Haible  <bruno@clisp.org>
32773         tcgetsid: Detect declaration correctly.
32774         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
32775         AC_CHECK_DECLS invocation.
32776         Reported by Simon Josefsson.
32778 2011-08-08  Eric Blake  <eblake@redhat.com>
32780         largefile: fix typo that regressed large file support
32781         * modules/largefile (configure.ac-early): Fix section name.
32783 2011-08-06  Karl Berry  <karl@gnu.org>
32785         * MODULES.html.sh (func_all_files): _Noreturn is no longer
32786         a separate module.
32788 2011-08-05  Simon Josefsson  <simon@josefsson.org>
32790         openat: Fix warnings and commens when building unlinkat.c on Hurd.
32791         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
32792         get prototype for free.
32794 2011-08-04  Bruno Haible  <bruno@clisp.org>
32796         Tests for module 'pathmax'.
32797         * modules/pathmax-tests: New file.
32798         * tests/test-pathmax.c: New file.
32800         canonicalize-lgpl: Support larger filenames on the Hurd.
32801         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
32802         Reported by Paul Eggert.
32804         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
32805         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
32806         * lib/chdir-long.h: Include pathmax.h.
32807         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
32808         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
32809         (PATH_MAX): Remove code that is done by pathmax.h.
32810         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
32811         * lib/tmpfile.c: Add a comment.
32812         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
32813         * modules/chdir-long (Depends-on): Add pathmax.
32814         * modules/getcwd (Depends-on): Add pathmax.
32815         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
32816         is not defined.
32817         * doc/posix-headers/limits.texi: Mention the pathmax module.
32818         * NEWS: Mention the change.
32820 2011-08-02  Bruno Haible  <bruno@clisp.org>
32822         pthread_sigmask: Actually use results of gl_THREADLIB.
32823         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
32824         gl_THREADLIB, not gl_[]THREADLIB.
32825         Reported by Eric Blake.
32827 2011-08-02  Jim Meyering  <meyering@redhat.com>
32829         maint.mk: relax the default _gl_TS_function_match regexp
32830         * top/maint.mk (_gl_TS_function_match): Don't require at least one
32831         space between function name and "(" in an "extern" declaration.
32832         That would fail to match a decl with no space there: extern void foo();
32834 2011-07-31  Iain Nicol  <iain@thenicols.net>
32836         git-version-gen: document that EXTRA_DIST must include .version
32837         * build-aux/git-version-gen: In the how-to-use comment, document
32838         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
32839         will fail when run from an unpacked distribution tarball.
32841 2011-08-01  Bruno Haible  <bruno@clisp.org>
32843         wctype-h: Fix last change.
32844         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
32845         REPLACE_TOWLOWER to 0.
32846         Reported by Sam Steingold <sds@gnu.org>.
32848 2011-07-31  Bruno Haible  <bruno@clisp.org>
32850         frexpl: Update autoconf test.
32851         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
32852         according to changes of 2011-06-20.
32854 2011-07-31  Bruno Haible  <bruno@clisp.org>
32856         sys_utsname: Add support for Minix.
32857         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
32858         <sys/utsname.h>.
32859         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32860         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
32862 2011-07-31  Bruno Haible  <bruno@clisp.org>
32864         strings: Add support for Minix.
32865         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
32866         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
32867         * doc/posix-headers/strings.texi: Document the Minix problem.
32869 2011-07-31  Bruno Haible  <bruno@clisp.org>
32871         wctype-h: Add support for Minix.
32872         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
32873         REPLACE_TOWLOWER.
32874         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
32875         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
32876         REPLACE_ISWCNTRL.
32878 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
32880         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
32881         This is a performance improvement for 64-bit hosts: it causes the
32882         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
32884 2011-07-31  Bruno Haible  <bruno@clisp.org>
32886         stdioext: Add support for Minix.
32887         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
32888         * lib/fpurge.c (fpurge): Likewise.
32889         * lib/freadahead.c (freadahead): Likewise.
32890         * lib/freadable.c (freadable): Likewise.
32891         * lib/freading.c (freading): Likewise.
32892         * lib/freadptr.c (freadptr): Likewise.
32893         * lib/freadseek.c (freadptrinc): Likewise.
32894         * lib/fseeko.c (rpl_fseeko): Likewise.
32895         * lib/fseterr.c (fseterr): Likewise.
32896         * lib/fwritable.c (fwritable): Likewise.
32897         * lib/fwriting.c (fwriting): Likewise.
32898         * lib/fflush.c (clear_ungetc_buffer): Update comment.
32899         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
32901 2011-07-31  Bruno Haible  <bruno@clisp.org>
32903         errno: Port to Minix.
32904         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
32905         ECONNABORTED are defined.
32906         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
32907         GNULIB_defined_ECONNABORTED): New macros.
32908         * lib/strerror-override.h (strerror_override): Test also
32909         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
32910         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
32911         ECONNABORTED.
32912         * doc/posix-headers/errno.texi: Mention the Minix problem.
32914 2011-07-31  Bruno Haible  <bruno@clisp.org>
32916         Work around declaration collisions on Minix.
32917         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
32918         defined, set REPLACE_MBSINIT.
32919         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
32920         defined, set REPLACE_MBRTOWC.
32921         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
32922         set REPLACE_MBRLEN.
32923         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
32924         defined, set REPLACE_MBSRTOWCS.
32925         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
32926         defined, set REPLACE_WCRTOMB.
32927         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
32928         defined, set REPLACE_WCSRTOMBS.
32930 2011-07-31  Bruno Haible  <bruno@clisp.org>
32932         Add support for Minix with ACK compiler.
32933         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
32934         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
32935         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
32937 2011-07-31  Bruno Haible  <bruno@clisp.org>
32939         Documentation about Minix.
32940         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
32941         * doc/glibc-headers/*.texi: Likewise.
32942         * doc/posix-functions/*.texi: Likewise.
32943         * doc/glibc-functions/*.texi: Likewise.
32945 2011-07-31  Bruno Haible  <bruno@clisp.org>
32947         snippet/warn-on-use: Fix indentation.
32948         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
32950 2011-07-25  Jim Meyering  <meyering@redhat.com>
32952         tests: test-update-copyright.sh: remove unnecessary "rm" commands
32953         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
32954         commands.
32956 2011-07-27  Jim Meyering  <meyering@redhat.com>
32958         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
32959         * top/maint.mk (gl_extract_significant_defines_): Now that
32960         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
32961         gnulib/lib/signal.in.h, and now that we recommend to
32962         define-if-undefined those two symbols in application code,
32963         we must filter them out of the "significant" list.
32964         This avoids a "make syntax-check" failure in coreutils.
32966 2011-07-26  Eric Blake  <eblake@redhat.com>
32968         warnings: add comments about previous patch
32969         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
32970         * m4/include_next.m4: Likewise.
32971         * m4/warn-on-use.m4: Likewise.
32972         * m4/warnings.m4: Likewise, and simplify use.
32973         Suggested by Stefano Lattarini.
32975         include-next, warnings: support older autoconf
32976         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
32977         AS_VAR_PUSHDEF in a way that works with older autoconf.
32978         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
32979         Reported by Daniel P. Berrange.
32981 2011-07-25  Bruno Haible  <bruno@clisp.org>
32983         fseek, ftell: Fix doc.
32984         * doc/posix-functions/fseek.texi: Reword statement about
32985         AC_SYS_LARGEFILE.
32986         * doc/posix-functions/ftell.texi: Likewise.
32988 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
32989             Bruno Haible  <bruno@clisp.org>
32991         Add dependencies to the 'largefile' module.
32992         * modules/fopen (Depends-on): Add 'largefile'.
32993         * modules/freopen (Depends-on): Likewise.
32994         * modules/fseeko (Depends-on): Likewise.
32995         * modules/ftello (Depends-on): Likewise.
32996         * modules/glob (Depends-on): Likewise.
32997         * modules/lseek (Depends-on): Likewise.
32998         * modules/lstat (Depends-on): Likewise.
32999         * modules/mkostemp (Depends-on): Likewise.
33000         * modules/mkostemps (Depends-on): Likewise.
33001         * modules/mkstemp (Depends-on): Likewise.
33002         * modules/mkstemps (Depends-on): Likewise.
33003         * modules/open (Depends-on): Likewise.
33004         * modules/openat (Depends-on): Likewise.
33005         * modules/pread (Depends-on): Likewise.
33006         * modules/pwrite (Depends-on): Likewise.
33007         * modules/scandir (Depends-on): Likewise.
33008         * modules/stat (Depends-on): Likewise.
33009         * modules/tmpfile (Depends-on): Likewise.
33010         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
33011         since the containing module now depends on the largefile module.
33012         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
33013         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
33014         off_t is fixed by gnulib.
33015         * doc/posix-functions/freopen.texi: Likewise.
33016         * doc/posix-functions/fseeko.texi: Likewise.
33017         * doc/posix-functions/fstatat.texi: Likewise.
33018         * doc/posix-functions/ftello.texi: Likewise.
33019         * doc/posix-functions/glob.texi: Likewise.
33020         * doc/posix-functions/lseek.texi: Likewise.
33021         * doc/posix-functions/lstat.texi: Likewise.
33022         * doc/posix-functions/mkstemp.texi: Likewise.
33023         * doc/posix-functions/open.texi: Likewise.
33024         * doc/posix-functions/openat.texi: Likewise.
33025         * doc/posix-functions/pread.texi: Likewise.
33026         * doc/posix-functions/pwrite.texi: Likewise.
33027         * doc/posix-functions/scandir.texi: Likewise.
33028         * doc/posix-functions/stat.texi: Likewise.
33029         * doc/posix-functions/tmpfile.texi: Likewise.
33030         * doc/glibc-functions/mkostemp.texi: Likewise.
33031         * doc/glibc-functions/mkostemps.texi: Likewise.
33032         * doc/glibc-functions/mkstemps.texi: Likewise.
33034 2011-07-25  Bruno Haible  <bruno@clisp.org>
33036         fcntl: Move AC_LIBOBJ invocation to module description.
33037         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
33038         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
33040         fcntl: Remove call-in from fchdir.m4.
33041         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
33042         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
33044         dup3: Remove potential call-in from fchdir.m4.
33045         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
33046         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
33048         dup2: Move AC_LIBOBJ invocation to module description.
33049         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
33050         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
33051         Don't invoke AC_LIBOBJ.
33052         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
33054         dup2: Remove call-in from fchdir.m4.
33055         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
33056         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
33058         fclose: Move AC_LIBOBJ invocation to module description.
33059         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
33060         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
33061         to 1.
33062         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
33064         fclose: Remove call-in from close.m4.
33065         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
33066         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
33068         close: Move AC_LIBOBJ invocation to module description.
33069         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
33070         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
33071         1.
33072         * modules/close (configure.ac): Invoke AC_LIBOBJ.
33074         close: Remove call-in from fchdir.m4.
33075         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
33076         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
33078         open: Move AC_LIBOBJ invocation to module description.
33079         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
33080         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
33081         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
33083         open: Remove call-in from fchdir.m4.
33084         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
33085         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
33087         fchdir: Start to remove gl_REPLACE_* idiom.
33088         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
33089         (gl_FUNC_FCHDIR): Invoke it.
33091 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
33093         * lib/ftell.c (ftell): Comment out cast.
33095         close: use gl_REPLACE_FCLOSE only if defined
33096         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
33097         is defined.  The close module doesn't depend on the fclose module
33098         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
33099         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
33100         I reproduced the problem with "./gnulib-tool --test close sys_socket".
33102 2011-07-24  Jim Meyering  <meyering@redhat.com>
33104         test-select.h: avoid warning when using gcc's -Wmissing-declarations
33105         * tests/test-select.h (test_function): Declare as "static".
33107 2011-07-24  Bruno Haible  <bruno@clisp.org>
33109         doc: Mention the effects of AC_SYS_LARGEFILE.
33110         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
33111         on this function.
33112         * doc/posix-functions/aio_error.texi: Likewise.
33113         * doc/posix-functions/aio_fsync.texi: Likewise.
33114         * doc/posix-functions/aio_read.texi: Likewise.
33115         * doc/posix-functions/aio_return.texi: Likewise.
33116         * doc/posix-functions/aio_suspend.texi: Likewise.
33117         * doc/posix-functions/aio_write.texi: Likewise.
33118         * doc/posix-functions/fgetpos.texi: Likewise.
33119         * doc/posix-functions/fopen.texi: Likewise.
33120         * doc/posix-functions/freopen.texi: Likewise.
33121         * doc/posix-functions/fsetpos.texi: Likewise.
33122         * doc/posix-functions/fstatvfs.texi: Likewise.
33123         * doc/posix-functions/ftruncate.texi: Likewise.
33124         * doc/posix-functions/ftw.texi: Likewise.
33125         * doc/posix-functions/getrlimit.texi: Likewise.
33126         * doc/posix-functions/glob.texi: Likewise.
33127         * doc/posix-functions/lio_listio.texi: Likewise.
33128         * doc/posix-functions/lockf.texi: Likewise.
33129         * doc/posix-functions/mkstemp.texi: Likewise.
33130         * doc/posix-functions/mmap.texi: Likewise.
33131         * doc/posix-functions/nftw.texi: Likewise.
33132         * doc/posix-functions/openat.texi: Likewise.
33133         * doc/posix-functions/opendir.texi: Likewise.
33134         * doc/posix-functions/posix_fadvise.texi: Likewise.
33135         * doc/posix-functions/posix_fallocate.texi: Likewise.
33136         * doc/posix-functions/pread.texi: Likewise.
33137         * doc/posix-functions/pwrite.texi: Likewise.
33138         * doc/posix-functions/readdir.texi: Likewise.
33139         * doc/posix-functions/readdir_r.texi: Likewise.
33140         * doc/posix-functions/rewinddir.texi: Likewise.
33141         * doc/posix-functions/scandir.texi: Likewise.
33142         * doc/posix-functions/seekdir.texi: Likewise.
33143         * doc/posix-functions/setrlimit.texi: Likewise.
33144         * doc/posix-functions/statvfs.texi: Likewise.
33145         * doc/posix-functions/telldir.texi: Likewise.
33146         * doc/posix-functions/tmpfile.texi: Likewise.
33147         * doc/posix-functions/truncate.texi: Likewise.
33148         * doc/glibc-functions/fallocate.texi: Likewise.
33149         * doc/glibc-functions/fstatfs.texi: Likewise.
33150         * doc/glibc-functions/fts_children.texi: Likewise.
33151         * doc/glibc-functions/fts_read.texi: Likewise.
33152         * doc/glibc-functions/getdirentries.texi: Likewise.
33153         * doc/glibc-functions/mkostemp.texi: Likewise.
33154         * doc/glibc-functions/mkostemps.texi: Likewise.
33155         * doc/glibc-functions/mkstemps.texi: Likewise.
33156         * doc/glibc-functions/preadv.texi: Likewise.
33157         * doc/glibc-functions/pwritev.texi: Likewise.
33158         * doc/glibc-functions/sendfile.texi: Likewise.
33159         * doc/glibc-functions/statfs.texi: Likewise.
33161 2011-07-24  Bruno Haible  <bruno@clisp.org>
33163         doc: Fix typo.
33164         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
33166 2011-07-24  Bruno Haible  <bruno@clisp.org>
33168         doc: Mention fsusage.
33169         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
33171 2011-07-24  Bruno Haible  <bruno@clisp.org>
33173         doc: Mention new glibc headers and functions.
33174         * doc/glibc-headers/gshadow.texi: New file.
33175         * doc/glibc-functions/endsgent.texi: New file.
33176         * doc/glibc-functions/fgetsgent.texi: New file.
33177         * doc/glibc-functions/fgetsgent_r.texi: New file.
33178         * doc/glibc-functions/getsgent.texi: New file.
33179         * doc/glibc-functions/getsgent_r.texi: New file.
33180         * doc/glibc-functions/getsgnam.texi: New file.
33181         * doc/glibc-functions/getsgnam_r.texi: New file.
33182         * doc/glibc-functions/putsgent.texi: New file.
33183         * doc/glibc-functions/setsgent.texi: New file.
33184         * doc/glibc-functions/sgetsgent.texi: New file.
33185         * doc/glibc-functions/sgetsgent_r.texi: New file.
33186         * doc/glibc-functions/malloc_info.texi: New file.
33187         * doc/glibc-functions/preadv.texi: New file.
33188         * doc/glibc-functions/pwritev.texi: New file.
33189         * doc/glibc-functions/register_printf_modifier.texi: New file.
33190         * doc/glibc-functions/register_printf_specifier.texi: New file.
33191         * doc/glibc-functions/register_printf_type.texi: New file.
33192         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
33193         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
33194         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
33195         * doc/glibc-functions/pthread_getname_np.texi: New file.
33196         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
33197         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
33198         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
33199         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
33200         * doc/glibc-functions/pthread_setname_np.texi: New file.
33201         * doc/glibc-functions/pthread_sigqueue.texi: New file.
33202         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
33203         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
33204         * doc/glibc-functions/qsort_r.texi: New file.
33205         * doc/glibc-functions/quick_exit.texi: New file.
33206         * doc/glibc-functions/syncfs.texi: New file.
33207         * doc/gnulib.texi: Include them.
33208         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
33209         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
33210         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
33211         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
33212         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
33213         * doc/glibc-functions/execvpe.texi: Likewise.
33215 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
33217         ftell: don't include <unistd.h>
33218         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
33219         guaranteed to define off_t, and the ftell module depends on the
33220         stdio module.
33222         ftell: do not assume wraparound signed arithmetic
33223         * lib/ftell.c: Include <limits.h>.
33224         (ftell): Don't assume wraparound signed arithmetic.
33226 2011-07-24  Bruno Haible  <bruno@clisp.org>
33228         close: No longer depend on module 'fclose'.
33229         * modules/close (Depends-on): Remove fclose.
33230         * NEWS: Mention the change.
33231         Suggested by Sam Steingold <sds@gnu.org>.
33233 2011-07-24  Bruno Haible  <bruno@clisp.org>
33235         fsusage: Enable large volume support on AIX >= 5.2.
33236         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
33237         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
33238         instead of STAT_STATVFS.
33239         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
33241         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
33242         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
33243         f_blocks field only on MacOS X.
33245         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
33246         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
33247         * modules/fsusage (Depends-on): Add largefile.
33249 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
33251         * README: Modernize discussion of signed integers.
33252         Assuming overflow wraparound is no longer safe.
33253         Mention ones' complement and signed magnitude.
33255 2011-07-22  Bruno Haible  <bruno@clisp.org>
33257         select tests, pselect tests: Refactor.
33258         * tests/test-select.h: New file, extracted from tests/test-select.c.
33259         (select_fn): New type.
33260         (test, do_select, do_select_nowait, do_select_wait, test_tty,
33261         test_connect_first, test_accept_first, test_pair, test_socket_pair,
33262         test_pipe): Add my_select argument.
33263         (test_function): Renamed from main. Add my_select argument.
33264         * tests/test-select.c: Move most code to tests/test-select.h. Include
33265         test-select.h.
33266         * modules/select-tests (Files): Add tests/test-select.h.
33267         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
33268         (my_select, main): New functions.
33269         * modules/pselect-tests (Files): Add tests/test-select.h,
33270         tests/macros.h, tests/signature.h.
33271         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
33272         (configure.ac): Check for <sys/wait.h>.
33274 2011-07-22  Bruno Haible  <bruno@clisp.org>
33276         sys_select tests: Check the signature of FD_*.
33277         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
33278         signature tests from here...
33279         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
33280         here.
33281         * modules/sys_select-tests (Files): Add tests/signature.h.
33283 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33285         largefile: new module, replacing large-inode
33286         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
33287         * MODULES.html.sh: Add largefile, remove large-inode.
33288         * modules/largefile, m4/largefile.m4: New files.
33289         * modules/large-inode, m4/large-inode.m4: Remove.
33291         fsusage: port to MacOS X 10.7 with 4 TiB file systems
33292         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
33293         implementations that use only 32 bits to count blocks.
33294         On typical hosts with 1024-byte blocks, this fails with file
33295         systems as small as 4 TiB.  Problem reported by Herb Wartens
33296         <http://debbugs.gnu.org/9140> and this should also fix a similar
33297         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
33299         large-inode: New module
33300         * MODULES.html.sh: Add it.
33301         * modules/large-inode, m4/large-inode.m4: New files.
33303         extensions: Enable extensions on MacOS X 10.5 and later.
33304         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
33306 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
33308         file-has-acl: use acl_extended_file_nofollow if available
33309         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
33310         (acl_extended_file): New macro.
33311         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
33312         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
33314 2011-07-21  Bruno Haible  <bruno@clisp.org>
33316         Declare system functions in a way that works with C++.
33317         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
33318         declare fdopendir as extern "C".
33319         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
33320         declare frexpl as extern "C".
33321         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
33322         declare gai_strerror as extern "C".
33323         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
33324         programs, declare gai_strerror as extern "C".
33325         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
33326         declare getlogin_r as extern "C".
33327         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
33328         as extern "C".
33329         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
33330         declare ldexpl as extern "C".
33331         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
33332         as extern "C".
33333         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
33334         program, declare getmntinfo as extern "C".
33335         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
33336         stpncpy as extern "C".
33337         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
33338         program, declare __xpg_strerror_r as extern "C".
33339         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
33340         strndup as extern "C".
33341         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
33342         declare memset and bzero as extern "C".
33343         Reported by Sam Steingold <sds@gnu.org>.
33345 2011-07-12  Jim Meyering  <meyering@redhat.com>
33347         maint.mk: prohibit inclusion of "verify.h" without use
33348         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
33350 2011-07-19  Pádraig Brady  <P@draigBrady.com>
33352         timer-time: A new module to check for timer_settime()
33353         * m4/timer_time.m4: Check for the posix function.
33354         * modules/timer-time: Add the new module.
33355         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
33356         Mention it.
33358 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
33359             Bruno Haible  <bruno@clisp.org>
33361         pthread_sigmask: assume POSIX threads if --avoid=threadlib
33362         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
33363         not defined, assume POSIX threads and look for pthread_sigmask in
33364         $LIBS, without changing $CPPFLAGS.
33366 2011-07-19  Bruno Haible  <bruno@clisp.org>
33368         strstr: Update cross-compilation guess.
33369         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
33370         CPUs, guess no, in view of glibc
33371         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
33372         Suggested by Eric Blake. Reported by Reuben Thomas.
33374 2011-07-19  Pádraig Brady  <P@draigBrady.com>
33376         getopt-gnu: suppress core dumps from detection code
33377         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
33378         to suppress core dumps that may well occur on glibc systems.
33379         * modules/getopt-gnu: Depend on nocrash.
33381 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
33383         pthread_sigmask: ensure usleep is declared
33384         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
33385         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
33387 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
33389         doc: Document NonStop portability issues.
33390         * doc/posix-functions/sigaction.texi (sigaction):
33391         * doc/posix-headers/signal.texi (signal.h):
33392         Document NonStop.  See Joachim Schmitz in
33393         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
33395 2011-07-15  Bruno Haible  <bruno@clisp.org>
33397         ffsl, ffsll: Avoid unportable behaviour.
33398         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
33400 2011-07-15  Bruno Haible  <bruno@clisp.org>
33402         ffs: More tests.
33403         * tests/test-ffs.c (NBITS): New macro.
33404         (main): Add more tests.
33405         * tests/test-ffsl.c (NBITS): New macro.
33406         (main): Add more tests.
33407         * tests/test-ffsll.c (NBITS): New macro.
33408         (main): Add more tests.
33410 2011-07-15  Eric Blake  <eblake@redhat.com>
33412         ffsl, ffsll: new modules
33413         * modules/ffsl: New file.
33414         * modules/ffsll: Likewise.
33415         * m4/ffsl.m4: Likewise.
33416         * m4/ffsll.m4: Likewise.
33417         * lib/ffsl.c: Likewise.
33418         * lib/ffsl.h: Likewise.
33419         * lib/ffsll.c: Likewise.
33420         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
33421         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
33422         * modules/string (Makefile.am): Substitute witnesses.
33423         * lib/strings.in.h (ffsl, ffsll): Declare.
33424         * modules/ffsl-tests: New test file.
33425         * modules/ffsll-tests: Likewise.
33426         * tests/test-ffsl.c: Likewise.
33427         * tests/test-ffsll.c: Likewise.
33428         * MODULES.html.sh (Integer arithmetic functions): Mention it.
33429         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
33430         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
33432         ffs: fix m4 prerequisite
33433         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
33435         ffs: avoid undefined behavior
33436         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
33437         * tests/test-ffs.c (naive, main): Avoid signed shifts.
33438         Reported by Bruno Haible.
33440 2011-07-12  Bruno Haible  <bruno@clisp.org>
33442         pthread_sigmask: Rely on module 'threadlib'.
33443         * modules/pthread_sigmask (Depends-on): Add threadlib.
33444         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
33445         is defined.
33447 2011-07-12  Bruno Haible  <bruno@clisp.org>
33449         regex: Depend on module 'strcase'.
33450         * modules/regex (Depends-on): Add strcase, for strcasecmp().
33452 2011-07-12  Jim Meyering  <meyering@redhat.com>
33454         warn-on-use: fix typo in file name
33455         * modules/snippet/warn-on-use (Files): Correct file name:
33456         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
33458 2011-07-12  Bruno Haible  <bruno@clisp.org>
33460         strings: Document module.
33461         * doc/posix-headers/strings.texi: Mention module 'strings'.
33463 2011-07-12  Bruno Haible  <bruno@clisp.org>
33465         Rename module '_Noreturn' to 'snippet/_Noreturn'.
33466         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
33467         (Files, Makefile.am): Update.
33468         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
33469         * modules/stdlib (Depends-on): Update.
33471 2011-07-12  Bruno Haible  <bruno@clisp.org>
33473         * NEWS: Mention the changes.
33475         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
33476         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
33477         (Files, Makefile.am): Update.
33478         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
33479         * modules/arpa_inet (Depends-on): Update.
33480         * modules/ctype (Depends-on): Update.
33481         * modules/dirent (Depends-on): Update.
33482         * modules/fcntl-h (Depends-on): Update.
33483         * modules/glob (Depends-on): Update.
33484         * modules/iconv-h (Depends-on): Update.
33485         * modules/inttypes-incomplete (Depends-on): Update.
33486         * modules/langinfo (Depends-on): Update.
33487         * modules/locale (Depends-on): Update.
33488         * modules/math (Depends-on): Update.
33489         * modules/netdb (Depends-on): Update.
33490         * modules/poll-h (Depends-on): Update.
33491         * modules/pty (Depends-on): Update.
33492         * modules/search (Depends-on): Update.
33493         * modules/signal (Depends-on): Update.
33494         * modules/spawn (Depends-on): Update.
33495         * modules/stdio (Depends-on): Update.
33496         * modules/stdlib (Depends-on): Update.
33497         * modules/string (Depends-on): Update.
33498         * modules/strings (Depends-on): Update.
33499         * modules/sys_file (Depends-on): Update.
33500         * modules/sys_ioctl (Depends-on): Update.
33501         * modules/sys_select (Depends-on): Update.
33502         * modules/sys_socket (Depends-on): Update.
33503         * modules/sys_stat (Depends-on): Update.
33504         * modules/sys_time (Depends-on): Update.
33505         * modules/sys_times (Depends-on): Update.
33506         * modules/sys_utsname (Depends-on): Update.
33507         * modules/sys_wait (Depends-on): Update.
33508         * modules/termios (Depends-on): Update.
33509         * modules/time (Depends-on): Update.
33510         * modules/unistd (Depends-on): Update.
33511         * modules/wchar (Depends-on): Update.
33512         * modules/wctype-h (Depends-on): Update.
33513         * MODULES.html.sh (Support for building libraries and executables):
33514         Update.
33516         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
33517         * modules/snippet/unused-parameter: Renamed from
33518         modules/unused-parameter.
33519         (Files, Makefile.am): Update.
33520         * build-aux/snippet/unused-parameter.h: Renamed from
33521         build-aux/unused-parameter.h.
33522         * modules/selinux-h (Depends-on): Update.
33523         * modules/unistr/base (Depends-on): Update.
33524         * MODULES.html.sh (Core language properties): Update.
33526         Rename module 'link-warning' to 'snippet/link-warning'.
33527         * modules/snippet/link-warning: Renamed from modules/link-warning.
33528         (Files, Makefile.am): Update.
33529         * build-aux/snippet/link-warning.h: Renamed from
33530         build-aux/link-warning.h.
33531         * MODULES.html.sh (Support for building libraries and executables):
33532         Update.
33534         Rename module 'c++defs' to 'snippet/c++defs'.
33535         * modules/snippet/c++defs: Renamed from modules/c++defs.
33536         (Files, Makefile.am): Update.
33537         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
33538         * modules/arpa_inet (Depends-on): Update.
33539         * modules/ctype (Depends-on): Update.
33540         * modules/dirent (Depends-on): Update.
33541         * modules/fcntl-h (Depends-on): Update.
33542         * modules/glob (Depends-on): Update.
33543         * modules/iconv-h (Depends-on): Update.
33544         * modules/langinfo (Depends-on): Update.
33545         * modules/locale (Depends-on): Update.
33546         * modules/math (Depends-on): Update.
33547         * modules/netdb (Depends-on): Update.
33548         * modules/poll-h (Depends-on): Update.
33549         * modules/pty (Depends-on): Update.
33550         * modules/search (Depends-on): Update.
33551         * modules/signal (Depends-on): Update.
33552         * modules/spawn (Depends-on): Update.
33553         * modules/stdio (Depends-on): Update.
33554         * modules/stdlib (Depends-on): Update.
33555         * modules/string (Depends-on): Update.
33556         * modules/strings (Depends-on): Update.
33557         * modules/sys_ioctl (Depends-on): Update.
33558         * modules/sys_select (Depends-on): Update.
33559         * modules/sys_socket (Depends-on): Update.
33560         * modules/sys_stat (Depends-on): Update.
33561         * modules/sys_time (Depends-on): Update.
33562         * modules/sys_wait (Depends-on): Update.
33563         * modules/termios (Depends-on): Update.
33564         * modules/time (Depends-on): Update.
33565         * modules/unistd (Depends-on): Update.
33566         * modules/wchar (Depends-on): Update.
33567         * modules/wctype-h (Depends-on): Update.
33569         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
33570         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
33571         (Files, Makefile.am): Update.
33572         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
33573         * modules/argv-iter (Depends-on): Update.
33574         * modules/arpa_inet (Depends-on): Update.
33575         * modules/dirent (Depends-on): Update.
33576         * modules/fcntl-h (Depends-on): Update.
33577         * modules/fnmatch (Depends-on): Update.
33578         * modules/getopt-posix (Depends-on): Update.
33579         * modules/glob (Depends-on): Update.
33580         * modules/iconv-h (Depends-on): Update.
33581         * modules/inttypes-incomplete (Depends-on): Update.
33582         * modules/locale (Depends-on): Update.
33583         * modules/math (Depends-on): Update.
33584         * modules/netdb (Depends-on): Update.
33585         * modules/search (Depends-on): Update.
33586         * modules/signal (Depends-on): Update.
33587         * modules/spawn (Depends-on): Update.
33588         * modules/stdio (Depends-on): Update.
33589         * modules/stdlib (Depends-on): Update.
33590         * modules/string (Depends-on): Update.
33591         * modules/strings (Depends-on): Update.
33592         * modules/sys_socket (Depends-on): Update.
33593         * modules/sys_stat (Depends-on): Update.
33594         * modules/sys_time (Depends-on): Update.
33595         * modules/sys_times (Depends-on): Update.
33596         * modules/sys_utsname (Depends-on): Update.
33597         * modules/time (Depends-on): Update.
33598         * modules/unistd (Depends-on): Update.
33599         * modules/wchar (Depends-on): Update.
33600         * MODULES.html.sh (Support for building libraries and executables):
33601         Update.
33603 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
33605         Improvements on _Noreturn and related modules.
33607         modules/_Exit-tests: test _Noreturn too
33608         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
33609         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
33610         (main): Use them.
33612         stdnoreturn, stdnoreturn-tests: remove modules
33613         They're not needed here and a bit premature for use elsewhere.  See
33614         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
33615         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
33616         * tests/test-stdnoreturn.c: Remove files.
33617         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
33618         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
33619         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
33620         and using noreturn.
33621         * modules/openat, modules/sigpipe-die, modules/xalloc:
33622         * modules/xmemdup0, modules/xstrtol:
33623         Remove dependency on stdnoreturn.
33625         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
33626         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
33627         Reparenthesize to avoid GCC warning.
33628         Support Microsoft's syntax.
33629         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
33631         _Noreturn-tests: remove module
33632         * modules/_Noreturn-tests: Remove.
33633         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
33634         * tests/test-_Noreturn.c: Remove.
33635         * tests/test-stdnoreturn.c: Merge from the old
33636         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
33638 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
33640         _Noreturn, stdnoreturn, and related modules.
33642         * top/maint.mk: Adjust to new noreturn support.
33643         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
33644         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
33646         xalloc: use stdnoreturn.h
33647         * lib/xalloc.h: Include <stdnoreturn.h>.
33648         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
33649         * modules/xalloc (Depends-on): Add stdnoreturn.
33651         xstrtol: use stdnoreturn.h
33652         * lib/xstrtol.h: Include <stdnoreturn.h>.
33653         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
33654         * modules/xstrtol (Depends-on): Add stdnoreturn.
33656         xmemdup0: use stdnoreturn.h
33657         * lib/xmemdup0.h: Include <stdnoreturn.h>.
33658         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
33659         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
33661         sigpipe-die: use stdnoreturn.h
33662         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
33663         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
33664         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
33666         openat: use stdnoreturn.h
33667         * lib/openat.h: Include <stdnoreturn.h>.
33668         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
33669         * modules/openat (Depends-on): Add stdnoreturn.
33671         * lib/openat-die.c (openat_save_fail): Modernize comment.
33673         * lib/xalloc-die.c (xalloc_die): Modernize comment.
33675         * lib/glthread/thread.h: Modernize comment.
33677         obstack: use _Noreturn
33678         * lib/obstack.c (__attribute__): Remove macro.
33679         (print_and_abort): Use _Noreturn.
33681         c-stack: use _Noreturn
33682         * lib/c-stack.c (die, overflow_handler, segv_handler):
33683         Use _Noreturn rather than __attribute__((noreturn)).
33685         argmatch-tests, exclude_tests: use _Noreturn
33686         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
33687         Remove.
33688         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
33690         stdlib: use _Noreturn
33691         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
33692         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
33693         * modules/stdlib (Depends-on): Add _Noreturn.
33694         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
33696         stdnoreturn-tests: new module
33697         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
33699         stdnoreturn: new module
33700         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
33701         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
33703         _Noreturn-tests: new module
33704         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
33706         _Noreturn: new module
33707         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
33708         New section, mentioning it.
33709         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
33711         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
33713 2011-07-11  Eric Blake  <eblake@redhat.com>
33715         ffs: new module
33716         * modules/ffs: New file.
33717         * m4/ffs.m4: Likewise.
33718         * lib/ffs.c: Likewise.
33719         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
33720         * modules/strings (Makefile.am): Substitute witness.
33721         (Depends-on): Add c++defs.
33722         * lib/strings.in.h (ffs): Declare.
33723         * modules/ffs-tests: New test file.
33724         * tests/test-ffs.c: Test new module.
33725         * MODULES.html.sh (Integer arithmetic functions): Mention it.
33726         * doc/posix-functions/ffs.texi (ffs): Likewise.
33728         regex: avoid compiler warning
33729         * lib/regex.c (includes): Include <strings.h>, for use of
33730         strcasecmp in regcomp.c.
33731         Reported by Joachim Schmitz.
33733 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33735         stdint: respect system's intmax_t if INTMAX_MAX
33736         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
33737         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
33738         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
33739         long but int64_t is long long, and where we will clash with the
33740         system intmax_t if we override it.  See
33741         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
33742         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
33743         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
33744         similarly for UINTMAX_C.
33746 2011-07-08  Bruno Haible  <bruno@clisp.org>
33748         pthread_sigmask tests: Avoid a compiler warning.
33749         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
33750         non-zero.
33752         sigprocmask tests: A better way to avoid a compiler warning.
33753         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
33754         (main): Complain if system() returns non-zero.
33755         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
33757 2011-07-08  Bruno Haible  <bruno@clisp.org>
33759         pthread_sigmask: Work around IRIX bug.
33760         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
33761         bug.
33762         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
33763         there may be unblocked pending signals.
33764         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
33766 2011-07-08  Bruno Haible  <bruno@clisp.org>
33768         pthread_sigmask: Work around Cygwin bug.
33769         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
33770         bug.
33771         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
33772         the system's pthread_sigmask function.
33773         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
33775 2011-07-08  Bruno Haible  <bruno@clisp.org>
33777         pthread_sigmask: Work around bug in single-threaded implementation.
33778         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
33779         FreeBSD, HP-UX, Solaris bug.
33780         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
33781         * lib/pthread_sigmask.c: Include <stddef.h>.
33782         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
33783         the system's pthread_sigmask function.
33784         * modules/pthread_sigmask (configure.ac): Invoke
33785         gl_PREREQ_PTHREAD_SIGMASK.
33786         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
33787         HP-UX, Solaris.
33789 2011-07-08  Eric Blake  <eblake@redhat.com>
33791         test-sigprocmask: avoid compiler warning
33792         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
33793         * tests/test-sigprocmask.c (main): Use it to silence warning.
33794         Reported by Jim Meyering.
33796         test-snprintf: avoid compiler warning
33797         * tests/test-snprintf.c (main): Avoid shadowed declaration.
33798         * tests/test-vsnprintf.c (main): Likewise.
33799         Reported by Jim Meyering.
33801 2011-07-08  Bruno Haible  <bruno@clisp.org>
33803         Tests for module 'pthread_sigmask'.
33804         * modules/pthread_sigmask-tests: New file.
33805         * tests/test-pthread_sigmask1.c: New file, based on
33806         tests/test-sigprocmask.c.
33807         * tests/test-pthread_sigmask2.c: New file.
33809 2011-07-08  Jim Meyering  <meyering@redhat.com>
33811         test-getopt.h: avoid warning about an unused variable
33812         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
33814 2011-07-07  Jim Meyering  <meyering@redhat.com>
33816         maint: reduce list of files exempt from sc_prohibit_leading_TABs
33817         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
33818         now that it no longer contains leading TABs.
33819         Remove unused "url=FIXME" statement.
33821 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
33823         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
33824         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
33825         When gl_THREADLIB is not in use, assume that the POSIX sematics
33826         are desired.  This is better for Emacs, which uses POSIX semantics
33827         on GNUish and/or POSIXish platforms, and does not use threads at
33828         all otherwise.
33830         pthread_sigmask: fix typo when testing for libraries
33831         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
33832         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
33834 2011-07-08  Eric Blake  <eblake@redhat.com>
33836         fts: introduce FTS_NOATIME
33837         * lib/fts_.h (FTS_NOATIME): New bit flag.
33838         (FTS_OPTIONMASK): Adjust.
33839         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
33840         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
33842 2011-07-08  Bruno Haible  <bruno@clisp.org>
33844         Tests for module 'thread'.
33845         * modules/thread-tests: New file.
33846         * tests/test-thread_self.c: New file.
33847         * tests/test-thread_create.cc: New file.
33849 2011-07-08  Bruno Haible  <bruno@clisp.org>
33851         thread: Avoid gcc warnings when using gl_thread_self().
33852         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
33853         'void *'.
33854         (gl_thread_self_pointer): Update.
33856 2011-07-07  Bruno Haible  <bruno@clisp.org>
33858         signal-c++-tests: Check declaration of pthread_sigmask.
33859         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
33860         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
33861         $(LIB_PTHREAD_SIGMASK).
33863 2011-07-07  Bruno Haible  <bruno@clisp.org>
33865         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
33866         * lib/signal.in.h (pthread_sigmask): Override if
33867         REPLACE_PTHREAD_SIGMASK is 1.
33868         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
33869         REPLACE_PTHREAD_SIGMASK.
33870         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
33871         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
33872         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
33873         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
33874         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
33876 2011-07-07  Bruno Haible  <bruno@clisp.org>
33878         pthread_sigmask: Ensure declaration in <signal.h>.
33879         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
33880         include <pthread.h>.
33881         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
33882         problem.
33884 2011-07-07  Bruno Haible  <bruno@clisp.org>
33886         pthread_sigmask: Document the module.
33887         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
33889 2011-07-07  Bruno Haible  <bruno@clisp.org>
33891         pthread_sigmask: Follow gnulib conventions.
33892         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
33893         gl_PTHREAD_SIGMASK.
33894         * modules/pthread_sigmask (configure.ac): Update.
33896 2011-07-07  Bruno Haible  <bruno@clisp.org>
33898         pthread_sigmask: Make declaration C++ safe.
33899         * lib/signal.in.h: In two special conditions, just do an #include_next.
33900         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
33901         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
33902         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
33903         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
33904         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
33905         not REPLACE_PTHREAD_MASK.
33906         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
33907         not REPLACE_PTHREAD_MASK.
33908         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
33910 2011-07-07  Bruno Haible  <bruno@clisp.org>
33912         pthread_sigmask: Fix return value.
33913         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
33914         * lib/pthread_sigmask.c: New file.
33915         * modules/pthread_sigmask (Files): Add it.
33916         (configure.ac): Invoke AC_LIBOBJ.
33918 2011-07-07  Eric Blake  <eblake@redhat.com>
33920         getopt: more portable argv creation
33921         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
33922         const, use char arrays rather than strings.
33923         Suggested by Paul Eggert.
33925 2011-07-07  Bruno Haible  <bruno@clisp.org>
33927         Tests for module 'sigprocmask'.
33928         * modules/sigprocmask-tests: New file.
33929         * tests/test-sigprocmask.c: New file.
33931 2011-07-07  Bruno Haible  <bruno@clisp.org>
33933         float tests: Tweak.
33934         * tests/test-float.c (main): Tweak skip message.
33936 2011-07-07  Eric Blake  <eblake@redhat.com>
33938         getopt: avoid compiler warning during configure
33939         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
33940         assigning string literals to non-const pointer.
33942         getopt-gnu: avoid crash in glibc getopt
33943         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
33944         * tests/test-getopt.h (test_getopt): Enhance test.
33945         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33946         * doc/posix-functions/getopt.texi (getopt): Document it.
33947         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33948         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33949         Likewise.
33951 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
33953         getopt: handle W; without long options in getopt [BZ #12922]
33954         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
33955         but no long options are defined, just return 'W'.
33957 2011-07-07  Bruno Haible  <bruno@clisp.org>
33959         Avoid literal tabs.
33960         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
33961         variable containing a tab instead of a literal tab.
33962         Reported by Jim Meyering.
33964 2011-07-07  Bruno Haible  <bruno@clisp.org>
33966         Comments.
33967         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
33969 2011-07-06  Bruno Haible  <bruno@clisp.org>
33971         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
33972         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
33973         <winsock2.h>.
33974         (rpl_fd_isset, FD_ISSET): New definitions, copied from
33975         lib/sys_socket.in.h.
33976         (close, gethostname): Hide declarations from <winsock2.h>.
33977         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33978         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
33979         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
33980         (select): Don't override if gnulib's <sys/select.h> was already
33981         included.
33982         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
33983         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
33984         setsockopt, shutdown, select): Tweak indentation.
33986 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33988         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
33989         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
33990         in an application that does not use the sys_select module.
33992 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
33994         poll: do not return 0 on timeout=-1
33995         * lib/poll.c: Loop with yield if no events occurred.
33997 2011-07-06  Eric Blake  <eblake@redhat.com>
33999         pthread_sigmask: always replace when not using pthread
34000         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
34001         replacement when using some threading other than pthread.  Fix
34002         logic bug.
34004 2011-07-06  Bruno Haible  <bruno@clisp.org>
34006         Comments.
34007         * m4/printf.m4: Update comments about mingw.
34009 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34011         sys_select: define sigset_t more portably
34012         * lib/sys_select.in.h: Always include <sys/types.h>, since
34013         we now need sigset_t and mingw defines it there.
34014         Include <signal.h> before split inclusion guard, to avoid
34015         mishaps on Solaris, whose <signal.h> eventually includes us.
34016         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
34017         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
34018         which come from ...
34019         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34020         gl_CHECK_TYPE_SIGSET_T.
34021         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
34022         does the real work.
34023         * modules/sys_select (Depends-on): Add 'signal'.
34025         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
34026         Suggested by Bruno Haible.
34028         pselect: Use pthread_sigmask, not sigprocmask.
34029         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
34030         multithreaded apps better than sigprocmask does.
34031         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
34032         sigprocmask directly.
34034 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34036         * lib/pselect.c (pselect): Use plain name, without "rpl_".
34037         Don't #undef,  since we don't need any underlying pselect.
34038         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
34039         (Depends-on): Add select.
34040         (Link): Add $(LIBSOCKET).
34041         These changes suggested by Bruno Haible.
34043         pselect: document better
34044         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
34045         * doc/posix-functions/pselect.texi (pselect): Document new module.
34047         pthread_sigmask: new module
34048         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
34049         * doc/posix-functions/pthread_sigmask.texi: Document new module.
34050         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
34051         This is done only as a macro; I don't know how well that'll
34052         work for C++.  Move <sys/types.h> include before the include_next,
34053         to avoid mishap on Solaris.
34054         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
34055         * modules/signal (Makefile.am): Substitute the check's results.
34056         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
34058         test-pselect: new module
34059         * modules/pselect-tests, tests/test-pselect.c: New files.
34060         * tests/test-select.c, tests/test-sys_select-c++.cc:
34061         If TEST_PSELECT is defined, test pselect instead of testing select.
34063         * tests/test-sys_select.c (sigset_t): Test for it, too.
34064         Suggested by Bruno Haible.
34066 2011-07-05  Eric Blake  <eblake@redhat.com>
34068         snprintf: guarantee %1$d, for libintl
34069         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
34070         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
34071         * doc/posix-functions/snprintf.texi (snprintf): Update.
34072         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
34073         * tests/test-snprintf.c (main): Enhance test.
34074         * tests/test-vsnprintf.c (main): Likewise.
34076 2011-07-05  Jim Meyering  <meyering@redhat.com>
34078         maint: exempt stdio-read.c and stdio-write.c from the cppi check
34079         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
34080         per Bruno's request, to accommodate this idiom (no space after "#")
34081         even when the function is inside an #if block:
34082         char *
34083         gets (char *s)
34084         #undef gets
34085         {
34086           ...
34087         }
34089 2011-07-04  Jim Meyering  <meyering@redhat.com>
34091         maint: indent with spaces, not TABs, and add a rule to check this
34092         * tests/test-userspec.c: Indent with spaces, not TABs.
34093         * tests/test-argp.c: Likewise.
34094         * tests/test-c-stack2.sh: Likewise.
34095         * tests/test-parse-duration.sh: Likewise
34096         * m4/strtod.m4: Likewise.
34097         * m4/alloca.m4: Likewise.
34098         * m4/pselect.m4: Likewise.
34099         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
34101 2011-07-03  Jim Meyering  <meyering@redhat.com>
34103         maint.mk: correct omissions in prohibit_argmatch_without_use check
34104         This rule would mistakenly report that argmatch.h is included without
34105         use even when both the argmatch and invalid_arg macro were used.
34106         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
34107         of argmatch and invalid_arg.
34109 2011-07-03  Bruno Haible  <bruno@clisp.org>
34111         Comments about EINTR.
34112         * lib/safe-read.h: Explain the purpose of this module.
34113         * lib/safe-write.h: Likewise.
34114         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
34115         module.
34116         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
34117         module.
34118         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34120 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
34122         xnanosleep: Rewrite to use new dtotimespec module.
34123         It has the conversion code that used to be in xnanosleep.
34124         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
34125         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
34126         (TIME_T_MAX): Remove.
34127         (xnanosleep): Rewrite in terms of dtotimespec.
34128         * modules/xnanosleep (Depends-on): Add dtotimespec.
34129         Remove intprops, stdbool.
34131         timespec-add, timespec-sub: new modules
34132         * lib/timespec.h (timespec_add, timespec_sub): New decls.
34133         * lib/timespec-add.c, lib/timespec-sub.c:
34134         * modules/timespec-add, modules/timespec-sub: New files.
34136         dtotimespec: new module
34137         * lib/timespec.h (dtotimespec): New decl.
34138         * lib/dtotimespec.c, modules/dtotimespec: New files.
34140         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
34142         pselect: new module
34143         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
34144         (pselect): New decls.
34145         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
34146         since the standard pselect decl uses 'restrict'.
34147         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
34148         HAVE_PSELECT, REPLACE_PSELECT.
34149         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
34150         HAVE_PSELECT, REPLACE_PSELECT.
34151         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
34153         sys_select: don't depend on sys_socket
34154         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
34155         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
34156         This fix works on GNU and GNU-like platforms, but has not been tested
34157         on native Windows.
34158         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
34159         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
34160         gl_HEADER_SYS_SOCKET.
34161         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
34162         gl_PREREQ_SYS_H_WINSOCK2.
34164 2011-06-29  Eric Blake  <eblake@redhat.com>
34166         pipe2: fix C89 compile problem
34167         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
34168         Reported by Bruno Haible.
34170         pipe, pipe2: don't corrupt fd on error
34171         * lib/pipe.c (pipe): Leave fd unchanged on error.
34172         * lib/pipe2.c (pipe2): Likewise.
34173         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
34174         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34176 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
34178         mmap-anon: do not use regular expressions inadvertently
34179         * m4/mmap-anon.m4: Remove trailing period from strings sought
34180         in the output.
34182 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
34184         nanosleep: fix integer overflow problem
34185         * lib/nanosleep.c (my_usleep): Don't assume signed integer
34186         arithmetic wraps around on overflow.
34188         nanosleep: simplify carrying
34189         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
34190         first call to the underyling nanosleep, not for the last one.
34191         This doesn't fix any bugs, but it simplifies the computation of
34192         the remaining delay.  Found while auditing integer overflow issues.
34194         dup2: remove test for existence of fcntl
34195         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
34196         "#if HAVE_FCNTL", in the configure-time test program.
34197         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
34198         and therefore speeds up "configure" a bit.  Found while
34199         adding the dup2 module to Emacs.
34201 2011-06-24  Eric Blake  <eblake@redhat.com>
34203         maint.mk: enhance useless header checks
34204         * top/maint.mk (_sc_header_without_use): Check both include
34205         styles.
34206         (sc_prohibit_assert_without_use)
34207         (sc_prohibit_close_stream_without_use)
34208         (sc_prohibit_getopt_without_use)
34209         (sc_prohibit_quotearg_without_use)
34210         (sc_prohibit_quote_without_use)
34211         (sc_prohibit_long_options_without_use)
34212         (sc_prohibit_inttostr_without_use)
34213         (sc_prohibit_ignore_value_without_use)
34214         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
34215         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
34216         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
34217         (sc_prohibit_hash_pjw_without_use)
34218         (sc_prohibit_safe_read_without_use)
34219         (sc_prohibit_argmatch_without_use)
34220         (sc_prohibit_canonicalize_without_use)
34221         (sc_prohibit_root_dev_ino_without_use)
34222         (sc_prohibit_openat_without_use)
34223         (sc_prohibit_c_ctype_without_use)
34224         (sc_prohibit_signal_without_use)
34225         (sc_prohibit_stdio--_without_use)
34226         (sc_prohibit_stdio-safer_without_use)
34227         (sc_prohibit_strings_without_use)
34228         (sc_prohibit_intprops_without_use)
34229         (sc_prohibit_stddef_without_use)
34230         (sc_prohibit_xfreopen_without_use): Update clients.
34232 2011-06-24  Jim Meyering  <meyering@redhat.com>
34234         syntax-check: keep one maint.mk rule in sync with its header
34235         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
34236         of the bug Eric has just fixed, with today's commit 25e4c2ec.
34237         I prefer to avoid temporary files here, so use <(...), but that
34238         is not supported by /bin/sh, so...
34239         (SHELL): Define to /bin/bash.
34241 2011-06-24  Eric Blake  <eblake@redhat.com>
34243         maint.mk: update sc_prohibit_intprops_without_use
34244         * top/maint.mk (_intprops_names): Match recent changes.
34246 2011-06-24  Bruno Haible  <bruno@clisp.org>
34248         strerror-override: No-op tweak.
34249         * lib/strerror-override.h (strerror_override): Reorder conditions,
34250         for consistency with lib/strerror-override.c.
34252 2011-06-23  Eric Blake  <eblake@redhat.com>
34254         maint.mk: test further PATH_MAX issues
34255         * top/maint.mk (sc_prohibit_path_max_array): Rename...
34256         (sc_prohibit_path_max_allocation): ...and also test alloca.
34257         Suggested by Jim Meyering.
34259 2011-06-22  Eric Blake  <eblake@redhat.com>
34261         maint.mk: add syntax-check to avoid char[PATH_MAX]
34262         * top/maint.mk (sc_prohibit_path_max_array): New rule.
34264         stat: be robust to PATH_MAX definition
34265         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
34266         * modules/stat (Depends-on): Add verify.
34268         link: work around IRIX bug
34269         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
34270         * lib/link.c (rpl_link): Work around it.
34271         * tests/test-link.h (test_link): Enhance test.
34272         * doc/posix-functions/link.texi (link): Document the bug.
34274         getopt: silence clang warning
34275         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
34276         dereference.
34277         Reported by Gustavo Martin Domato.
34279 2011-06-22  Jim Meyering  <meyering@redhat.com>
34281         bootstrap: do not insert a blank line into each .gitignore file
34282         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
34284 2011-06-21  Eric Blake  <eblake@redhat.com>
34286         perror: test for output mismatch
34287         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
34288         perror on IRIX.
34290         strerror_r: fix OpenBSD behavior on out-of-range
34291         * lib/strerror_r.c (strerror_r): Always use maximal string.
34292         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
34294         strerror_r: fix OpenBSD behavior on 0
34295         * lib/strerror-override.c (strerror_override): Also override 0
34296         when needed.
34297         * lib/strerror-override.h (strerror_override): Likewise.
34298         * lib/strerror.c (strerror): Simplify, now that 0 override is done
34299         earlier.
34300         * lib/strerror_r.c (strerror_r): Likewise.
34301         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
34302         behavior...
34303         (gl_FUNC_STRERROR_0): ...into new macro.
34304         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
34305         is overridden.
34306         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
34307         * modules/strerror-override (Files): Add strerror.m4.
34308         (configure.ac): Also provide override for 0 when needed.
34309         * doc/posix-functions/strerror.texi (strerror): Document this.
34310         * doc/posix-functions/perror.texi (perror): Likewise.
34312         perror: adjust array size
34313         * modules/perror (Depends-on): Add strerror-override.
34314         * lib/perror.c (perror): Use it to avoid magic number.
34316         strerror-override: reduce size
34317         * lib/strerror-override.c (strerror_override): Use fewer lines.
34319 2011-06-20  Bruno Haible  <bruno@clisp.org>
34321         pathmax: Ensure correct value for PATH_MAX on HP-UX.
34322         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
34324 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34326         alloca: port to compilers that can optimize like GCC 4.6.0
34327         * lib/alloca.c (find_stack_direction): New signature, taken from
34328         Autoconf git.  This works with GCC 4.6.0.  This code should never
34329         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
34330         be used with other compilers that optimize as well as GCC 4.6.0 does.
34331         (alloca): Adjust to new signature.
34332         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
34333         New macro, which patches Autoconf in a similar way.
34335         c-stack: stop worrying about stack direction
34336         * lib/c-stack.c (find_stack_direction): Remove.
34337         (segv_handler): Don't worry about stack direction growth, as it's
34338         too much of a pain to configure this correctly, given how compilers
34339         are optimizing-away our stack-growth detection code.  Instead, assume
34340         that any access to just before or just after the stack is OK.
34341         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
34342         Don't require AC_FUNC_ALLOCA; no longer needed.
34344 2011-06-20  Eric Blake  <eblake@redhat.com>
34346         test-stat: don't allocate PATH_MAX bytes
34347         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
34348         PATH_MAX-sized buffer.
34349         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
34350         * modules/stat-tests (Depends-on): Likewise.
34351         * tests/test-fstatat.c (includes): Drop pathmax.h.
34352         * tests/test-stat.c (includes): Likewise.
34353         Reported by Bruno Haible.
34355 2011-06-20  Bruno Haible  <bruno@clisp.org>
34357         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
34358         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
34359         * lib/float.c: New file.
34360         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
34361         REPLACE_FLOAT_LDBL.
34362         * modules/float (Files): Add lib/float.c.
34363         (configure.ac): Invoke AC_LIBOBJ.
34364         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
34366 2011-06-20  Bruno Haible  <bruno@clisp.org>
34368         Tests for module 'float'.
34369         * modules/float-tests: New file.
34370         * tests/test-float.c: New file.
34372 2011-06-19  Bruno Haible  <bruno@clisp.org>
34374         isinf: Coding style.
34375         * lib/isinf.c: Use GNU coding style.
34377 2011-06-19  Bruno Haible  <bruno@clisp.org>
34379         linkat test: Avoid test failure on AIX 7.1.
34380         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
34381         * tests/test-link.h (test_link): Likewise.
34383 2011-06-19  Bruno Haible  <bruno@clisp.org>
34385         pread test: Avoid test failure on OpenBSD 4.9.
34386         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
34388 2011-06-19  Bruno Haible  <bruno@clisp.org>
34390         sprintf-posix: Fix test failure on AIX 7.1.
34391         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
34392         * doc/posix-functions/dprintf.texi: Mention limited precision problem
34393         on AIX.
34394         * doc/posix-functions/fprintf.texi: Likewise.
34395         * doc/posix-functions/printf.texi: Likewise.
34396         * doc/posix-functions/snprintf.texi: Likewise.
34397         * doc/posix-functions/sprintf.texi: Likewise.
34398         * doc/posix-functions/vdprintf.texi: Likewise.
34399         * doc/posix-functions/vfprintf.texi: Likewise.
34400         * doc/posix-functions/vprintf.texi: Likewise.
34401         * doc/posix-functions/vsnprintf.texi: Likewise.
34402         * doc/posix-functions/vsprintf.texi: Likewise.
34404 2011-06-19  Bruno Haible  <bruno@clisp.org>
34406         roundl-ieee: Fix test failure on AIX 7.1.
34407         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
34408         * doc/posix-functions/roundl.texi: Mention problem with negative
34409         arguments.
34411 2011-06-19  Bruno Haible  <bruno@clisp.org>
34413         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
34414         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
34415         * doc/posix-functions/round.texi: Mention problem with negative
34416         arguments.
34417         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
34419 2011-06-19  Bruno Haible  <bruno@clisp.org>
34421         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
34422         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
34423         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
34424         * doc/posix-functions/roundf.texi: Mention problem with negative
34425         arguments.
34426         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
34428 2011-06-19  Bruno Haible  <bruno@clisp.org>
34430         ceilf-ieee: Work around bug on MacOS X 10.5.
34431         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
34433         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
34434         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
34435         IEEE compliant, avoid compiler optimizations.
34436         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
34437         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
34438         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
34439         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
34440         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
34441         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
34442         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
34443         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
34444         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
34445         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
34447 2011-06-19  Bruno Haible  <bruno@clisp.org>
34449         ceilf-ieee: Work around bug on AIX 7.1.
34450         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
34451         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
34453 2011-06-19  Bruno Haible  <bruno@clisp.org>
34455         ceil-ieee: Work around bug on AIX 7.1.
34456         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
34457         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
34459 2011-06-18  Bruno Haible  <bruno@clisp.org>
34461         fsync test: Avoid test failure on MacOS X and AIX.
34462         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
34463         EINVAL.
34465 2011-06-18  Bruno Haible  <bruno@clisp.org>
34467         openat, fdopendir tests: Fix link errors.
34468         * modules/openat-tests (Depends-on): Add progname.
34469         * modules/fdopendir-tests (Depends-on): Likewise.
34470         * tests/test-fchownat.c: Include progname.h.
34471         (main): Call set_program_name.
34472         * tests/test-fstatat.c: Include progname.h.
34473         (main): Call set_program_name.
34474         * tests/test-mkdirat.c: Include progname.h.
34475         (main): Call set_program_name.
34476         * tests/test-openat.c: Include progname.h.
34477         (main): Call set_program_name.
34478         * tests/test-unlinkat.c: Include progname.h.
34479         (main): Call set_program_name.
34480         * tests/test-fdopendir.c: Include progname.h.
34481         (main): Call set_program_name.
34483 2011-06-18  Bruno Haible  <bruno@clisp.org>
34485         Doc update.
34486         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
34487         HP-UX.
34488         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
34490 2011-06-18  Bruno Haible  <bruno@clisp.org>
34492         getcwd tests: Avoid compilation error on HP-UX 11.31.
34493         * modules/getcwd-tests (Depends-on): Add pathmax.
34494         * tests/test-getcwd.c: Include pathmax.h.
34496 2011-06-18  Bruno Haible  <bruno@clisp.org>
34498         isfinite, isinf: Fix link error on AIX 6 and 7.
34499         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
34500         needed, also test the macro with a 'float' argument.
34501         * m4/isinf.m4 (gl_ISINF): Likewise.
34503 2011-06-18  Bruno Haible  <bruno@clisp.org>
34505         getloadavg: Don't clobber LIBS. Regression from previous commit.
34506         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
34507         AC_CHECK_LIB from here...
34508         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
34509         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
34510         gl_func_getloadavg_done.
34511         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34513 2011-06-18  Bruno Haible  <bruno@clisp.org>
34515         clean-temp: Improve documentation.
34516         * lib/clean-temp.h: Explain better how to use this module.
34517         Reported by John Darrington <john@darrington.wattle.id.au>.
34519 2011-06-17  Bruno Haible  <bruno@clisp.org>
34521         pread, pwrite: Avoid cc warning on AIX.
34522         * lib/unistd.in.h (pread): Undefine before defining as a macro.
34523         (pwrite): Likewise.
34525 2011-06-17  Bruno Haible  <bruno@clisp.org>
34527         spawn-pipe tests: Fix link error.
34528         * tests/test-spawn-pipe-child.c: Undefine fprintf.
34529         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34531 2011-06-17  Bruno Haible  <bruno@clisp.org>
34533         Tests: Remove unnecessary dependency.
34534         * modules/canonicalize-tests (Depends-on): Remove progname.
34535         * modules/chown-tests (Depends-on): Likewise.
34536         * modules/dirname-tests (Depends-on): Likewise.
34537         * modules/fdopendir-tests (Depends-on): Likewise.
34538         * modules/fdutimensat-tests (Depends-on): Likewise.
34539         * modules/hash-tests (Depends-on): Likewise.
34540         * modules/lchown-tests (Depends-on): Likewise.
34541         * modules/linkat-tests (Depends-on): Likewise.
34542         * modules/renameat-tests (Depends-on): Likewise.
34543         * modules/spawn-pipe-tests (Depends-on): Likewise.
34544         * modules/utimensat-tests (Depends-on): Likewise.
34546 2011-06-17  Bruno Haible  <bruno@clisp.org>
34548         spawn-pipe tests: Fix link error.
34549         * tests/test-spawn-pipe-child.c: Undefine fflush.
34551 2011-06-17  Bruno Haible  <bruno@clisp.org>
34553         Fix tests link errors.
34554         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
34555         * modules/chown-tests (Makefile.am): Don't link test-chown with
34556         LIBINTL.
34557         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
34558         LIBINTL.
34559         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
34560         LIBINTL.
34561         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
34562         LIBINTL.
34564 2011-06-16  Bruno Haible  <bruno@clisp.org>
34566         crypto/gc-sha1: Fix recent regression.
34567         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
34568         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
34570         crypto/gc-md5: Fix recent regression.
34571         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
34573         crypto/gc-md4: Fix recent regression.
34574         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
34575         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
34577         crypto/gc-arctwo: Fix recent regression.
34578         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
34579         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
34581         crypto/gc-rijndael: Fix recent regression.
34582         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
34583         (configure.ac): Invoke AC_LIBOBJ here.
34584         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
34585         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34587         crypto/gc-hmac-sha1: Fix recent regression.
34588         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
34589         (configure.ac): Invoke AC_LIBOBJ here.
34590         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
34591         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34593         crypto/gc-hmac-md5: Fix recent regression.
34594         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
34595         (configure.ac): Invoke AC_LIBOBJ here.
34596         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
34597         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34599         crypto/gc-des: Fix recent regression.
34600         * modules/crypto/gc-des (Files): Remove m4/des.m4.
34601         (configure.ac): Invoke AC_LIBOBJ here.
34602         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
34603         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34605         crypto/gc-arcfour: Fix recent regression.
34606         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
34607         (configure.ac): Invoke AC_LIBOBJ here.
34608         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
34609         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34611 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
34613         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
34614         After the 2011-05-21 change, this macro requires
34615         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
34616         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
34618 2011-06-16  Bruno Haible  <bruno@clisp.org>
34620         fprintftime: Move AC_LIBOBJ invocations to module description.
34621         * m4/fprintftime.m4: Remove file.
34622         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
34623         (configure.ac): Remove gl_FPRINTFTIME call.
34624         (Makefile.am): Augment lib_SOURCES.
34625         Reported by Jim Meyering.
34627 2011-06-16  Bruno Haible  <bruno@clisp.org>
34629         tmpfile-safer: Finish 2011-05-23 commit.
34630         * m4/stdio-safer.m4: Really remove file.
34631         Reported by Jim Meyering.
34633 2011-06-16  Bruno Haible  <bruno@clisp.org>
34635         syntax-check: Fix typo.
34636         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
34637         printf-posix.m4.
34638         Reported by Jim Meyering.
34640 2011-06-13  Jim Meyering  <meyering@redhat.com>
34642         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
34643         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
34645 2011-05-23  Bruno Haible  <bruno@clisp.org>
34647         yesno: Move AC_LIBOBJ invocations to module description.
34648         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
34649         * modules/yesno (Makefile.am): Augment lib_SOURCES.
34651 2011-05-23  Bruno Haible  <bruno@clisp.org>
34653         xstrtol: Move AC_LIBOBJ invocations to module description.
34654         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
34655         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
34657 2011-05-23  Bruno Haible  <bruno@clisp.org>
34659         xstrtold: Move AC_LIBOBJ invocations to module description.
34660         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
34661         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
34663 2011-05-23  Bruno Haible  <bruno@clisp.org>
34665         xstrtod: Move AC_LIBOBJ invocations to module description.
34666         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
34667         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
34669 2011-05-23  Bruno Haible  <bruno@clisp.org>
34671         xnanosleep: Move AC_LIBOBJ invocations to module description.
34672         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
34673         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
34675 2011-05-23  Bruno Haible  <bruno@clisp.org>
34677         xgetcwd: Move AC_LIBOBJ invocations to module description.
34678         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
34679         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
34681 2011-05-23  Bruno Haible  <bruno@clisp.org>
34683         xalloc: Move AC_LIBOBJ invocations to module description.
34684         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
34685         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
34687 2011-05-23  Bruno Haible  <bruno@clisp.org>
34689         write-any-file: Move AC_LIBOBJ invocations to module description.
34690         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
34691         invocation.
34692         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
34694 2011-05-23  Bruno Haible  <bruno@clisp.org>
34696         utimens: Move AC_LIBOBJ invocations to module description.
34697         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
34698         * modules/utimens (Makefile.am): Augment lib_SOURCES.
34700 2011-05-23  Bruno Haible  <bruno@clisp.org>
34702         utimecmp: Move AC_LIBOBJ invocations to module description.
34703         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
34704         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
34706 2011-05-23  Bruno Haible  <bruno@clisp.org>
34708         userspec: Move AC_LIBOBJ invocations to module description.
34709         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
34710         * modules/userspec (Makefile.am): Augment lib_SOURCES.
34712 2011-05-23  Bruno Haible  <bruno@clisp.org>
34714         unlinkdir: Move AC_LIBOBJ invocations to module description.
34715         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
34716         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
34718 2011-05-23  Bruno Haible  <bruno@clisp.org>
34720         unistd-safer: Move AC_LIBOBJ invocations to module description.
34721         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
34722         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
34724 2011-05-23  Bruno Haible  <bruno@clisp.org>
34726         tempname: Move AC_LIBOBJ invocations to module description.
34727         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
34728         * modules/tempname (Makefile.am): Augment lib_SOURCES.
34730 2011-05-23  Bruno Haible  <bruno@clisp.org>
34732         strftime: Move AC_LIBOBJ invocations to module description.
34733         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
34734         * modules/strftime (Makefile.am): Augment lib_SOURCES.
34736 2011-05-23  Bruno Haible  <bruno@clisp.org>
34738         stdlib-safer: Move AC_LIBOBJ invocations to module description.
34739         * m4/stdlib-safer.m4: Remove file.
34740         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
34741         (configure.ac): Remove gl_STDLIB_SAFER call.
34742         (Makefile.am): Augment lib_SOURCES.
34744 2011-05-23  Bruno Haible  <bruno@clisp.org>
34746         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
34747         * m4/stdio-safer.m4: Remove file.
34748         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
34749         (configure.ac): Remove gl_TMPFILE_SAFER call.
34750         (Makefile.am): Augment lib_SOURCES.
34752 2011-05-23  Bruno Haible  <bruno@clisp.org>
34754         popen-safer: Move AC_LIBOBJ invocations to module description.
34755         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
34756         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
34757         (configure.ac): Remove gl_POPEN_SAFER call.
34758         (Makefile.am): Augment lib_SOURCES.
34760 2011-05-23  Bruno Haible  <bruno@clisp.org>
34762         freopen-safer: Move AC_LIBOBJ invocations to module description.
34763         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
34764         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
34765         (configure.ac): Remove gl_FREOPEN_SAFER call.
34766         (Makefile.am): Augment lib_SOURCES.
34768 2011-05-23  Bruno Haible  <bruno@clisp.org>
34770         fopen-safer: Move AC_LIBOBJ invocations to module description.
34771         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
34772         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
34773         (configure.ac): Remove gl_FOPEN_SAFER call.
34774         (Makefile.am): Augment lib_SOURCES.
34776 2011-05-23  Bruno Haible  <bruno@clisp.org>
34778         crypto/sha512: Move AC_LIBOBJ invocations to module description.
34779         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
34780         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
34782 2011-05-23  Bruno Haible  <bruno@clisp.org>
34784         crypto/sha256: Move AC_LIBOBJ invocations to module description.
34785         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
34786         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
34788 2011-05-23  Bruno Haible  <bruno@clisp.org>
34790         crypto/sha1: Move AC_LIBOBJ invocations to module description.
34791         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
34792         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
34794 2011-05-23  Bruno Haible  <bruno@clisp.org>
34796         settime: Move AC_LIBOBJ invocations to module description.
34797         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
34798         * modules/settime (Makefile.am): Augment lib_SOURCES.
34800 2011-05-23  Bruno Haible  <bruno@clisp.org>
34802         savedir: Move AC_LIBOBJ invocations to module description.
34803         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
34804         * modules/savedir (Makefile.am): Augment lib_SOURCES.
34806 2011-05-23  Bruno Haible  <bruno@clisp.org>
34808         save-cwd: Move AC_LIBOBJ invocations to module description.
34809         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
34810         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
34812 2011-05-23  Bruno Haible  <bruno@clisp.org>
34814         same: Move AC_LIBOBJ invocations to module description.
34815         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
34816         * modules/same (Makefile.am): Augment lib_SOURCES.
34818 2011-05-23  Bruno Haible  <bruno@clisp.org>
34820         safe-write: Move AC_LIBOBJ invocations to module description.
34821         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
34822         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
34823         instead of gl_SAFE_WRITE.
34824         (Makefile.am): Augment lib_SOURCES.
34826 2011-05-23  Bruno Haible  <bruno@clisp.org>
34828         safe-read: Move AC_LIBOBJ invocations to module description.
34829         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
34830         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
34831         of gl_SAFE_READ.
34832         (Makefile.am): Augment lib_SOURCES.
34834 2011-05-23  Bruno Haible  <bruno@clisp.org>
34836         safe-alloc: Move AC_LIBOBJ invocations to module description.
34837         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
34838         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
34840 2011-05-23  Bruno Haible  <bruno@clisp.org>
34842         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
34843         * m4/rijndael.m4: Remove file.
34844         * modules/crypto/rijndael (Files): Remove it.
34845         (configure.ac): Remove gl_RIJNDAEL call.
34846         (Makefile.am): Augment lib_SOURCES.
34848 2011-05-23  Bruno Haible  <bruno@clisp.org>
34850         readtokens: Move AC_LIBOBJ invocations to module description.
34851         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
34852         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
34854 2011-05-23  Bruno Haible  <bruno@clisp.org>
34856         read-file: Move AC_LIBOBJ invocations to module description.
34857         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
34858         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
34859         of gl_FUNC_READ_FILE.
34860         (Makefile.am): Augment lib_SOURCES.
34862 2011-05-23  Bruno Haible  <bruno@clisp.org>
34864         quotearg: Move AC_LIBOBJ invocations to module description.
34865         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
34866         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
34868 2011-05-23  Bruno Haible  <bruno@clisp.org>
34870         quote: Move AC_LIBOBJ invocations to module description.
34871         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
34872         * modules/quote (Makefile.am): Augment lib_SOURCES.
34874 2011-05-23  Bruno Haible  <bruno@clisp.org>
34876         posixver: Move AC_LIBOBJ invocations to module description.
34877         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
34878         * modules/posixver (Makefile.am): Augment lib_SOURCES.
34880 2011-05-23  Bruno Haible  <bruno@clisp.org>
34882         posixtm: Move AC_LIBOBJ invocations to module description.
34883         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
34884         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
34886 2011-05-23  Bruno Haible  <bruno@clisp.org>
34888         physmem: Move AC_LIBOBJ invocations to module description.
34889         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
34890         * modules/physmem (Makefile.am): Augment lib_SOURCES.
34892 2011-05-23  Bruno Haible  <bruno@clisp.org>
34894         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
34895         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
34896         invocation.
34897         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
34899 2011-05-23  Bruno Haible  <bruno@clisp.org>
34901         mpsort: Move AC_LIBOBJ invocations to module description.
34902         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
34903         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
34905 2011-05-23  Bruno Haible  <bruno@clisp.org>
34907         modechange: Move AC_LIBOBJ invocations to module description.
34908         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
34909         * modules/modechange (Makefile.am): Augment lib_SOURCES.
34911 2011-05-23  Bruno Haible  <bruno@clisp.org>
34913         mkdir-p: Move AC_LIBOBJ invocations to module description.
34914         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
34915         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
34917 2011-05-23  Bruno Haible  <bruno@clisp.org>
34919         mkancesdirs: Move AC_LIBOBJ invocations to module description.
34920         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
34921         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
34923 2011-05-23  Bruno Haible  <bruno@clisp.org>
34925         mgetgroups: Move AC_LIBOBJ invocations to module description.
34926         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
34927         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
34929 2011-05-23  Bruno Haible  <bruno@clisp.org>
34931         memxor: Move AC_LIBOBJ invocations to module description.
34932         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
34933         * modules/memxor (Makefile.am): Augment lib_SOURCES.
34935 2011-05-23  Bruno Haible  <bruno@clisp.org>
34937         memcoll: Move AC_LIBOBJ invocations to module description.
34938         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
34939         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
34941 2011-05-23  Bruno Haible  <bruno@clisp.org>
34943         memcasecmp: Move AC_LIBOBJ invocations to module description.
34944         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
34945         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
34947 2011-05-23  Bruno Haible  <bruno@clisp.org>
34949         crypto/md5: Move AC_LIBOBJ invocations to module description.
34950         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
34951         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
34953 2011-05-23  Bruno Haible  <bruno@clisp.org>
34955         crypto/md4: Move AC_LIBOBJ invocations to module description.
34956         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
34957         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
34959 2011-05-23  Bruno Haible  <bruno@clisp.org>
34961         crypto/md2: Move AC_LIBOBJ invocations to module description.
34962         * m4/md2.m4: Remove file.
34963         * modules/crypto/md2 (Files): Remove it.
34964         (configure.ac): Remove gl_MD2 call.
34965         (Makefile.am): Augment lib_SOURCES.
34967 2011-05-23  Bruno Haible  <bruno@clisp.org>
34969         long-options: Move AC_LIBOBJ invocations to module description.
34970         * m4/long-options.m4: Remove file.
34971         * modules/long-options (Files): Remove it.
34972         (configure.ac): Remove gl_LONG_OPTIONS call.
34973         (Makefile.am): Augment lib_SOURCES.
34975 2011-05-23  Bruno Haible  <bruno@clisp.org>
34977         i-ring: Move AC_LIBOBJ invocations to module description.
34978         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
34979         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
34981 2011-05-23  Bruno Haible  <bruno@clisp.org>
34983         idcache: Move AC_LIBOBJ invocations to module description.
34984         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
34985         * modules/idcache (Makefile.am): Augment lib_SOURCES.
34987 2011-05-23  Bruno Haible  <bruno@clisp.org>
34989         human: Move AC_LIBOBJ invocations to module description.
34990         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
34991         * modules/human (Makefile.am): Augment lib_SOURCES.
34993 2011-05-23  Bruno Haible  <bruno@clisp.org>
34995         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
34996         * m4/hmac-sha1.m4: Remove file.
34997         * modules/crypto/hmac-sha1 (Files): Remove it.
34998         (configure.ac): Remove gl_HMAC_SHA1 call.
34999         (Makefile.am): Augment lib_SOURCES.
35001 2011-05-23  Bruno Haible  <bruno@clisp.org>
35003         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
35004         * m4/hmac-md5.m4: Remove file.
35005         * modules/crypto/hmac-md5 (Files): Remove it.
35006         (configure.ac): Remove gl_HMAC_MD5 call.
35007         (Makefile.am): Augment lib_SOURCES.
35009 2011-05-23  Bruno Haible  <bruno@clisp.org>
35011         hash: Move AC_LIBOBJ invocations to module description.
35012         * m4/hash.m4: Remove file.
35013         * modules/hash (Files): Remove it.
35014         (configure.ac): Remove gl_HASH call.
35015         (Makefile.am): Augment lib_SOURCES.
35017 2011-05-23  Bruno Haible  <bruno@clisp.org>
35019         hard-locale: Move AC_LIBOBJ invocations to module description.
35020         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
35021         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
35023 2011-05-23  Bruno Haible  <bruno@clisp.org>
35025         getugroups: Move AC_LIBOBJ invocations to module description.
35026         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
35027         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
35029 2011-05-23  Bruno Haible  <bruno@clisp.org>
35031         gettime: Move AC_LIBOBJ invocations to module description.
35032         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
35033         * modules/gettime (Makefile.am): Augment lib_SOURCES.
35035 2011-05-23  Bruno Haible  <bruno@clisp.org>
35037         getndelim2: Move AC_LIBOBJ invocations to module description.
35038         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
35039         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
35041 2011-05-23  Bruno Haible  <bruno@clisp.org>
35043         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
35044         * m4/gc-pbkdf2-sha1.m4: Remove file.
35045         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
35046         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
35047         (Makefile.am): Augment lib_SOURCES.
35049 2011-05-23  Bruno Haible  <bruno@clisp.org>
35051         fts: Move AC_LIBOBJ invocations to module description.
35052         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
35053         * modules/fts (configure.ac): ... to here.
35055 2011-05-23  Bruno Haible  <bruno@clisp.org>
35057         file-type: Move AC_LIBOBJ invocations to module description.
35058         * m4/file-type.m4: Remove file.
35059         * modules/file-type (Files): Remove it.
35060         (configure.ac): Remove gl_FILE_TYPE call.
35061         (Makefile.am): Augment lib_SOURCES.
35063 2011-05-23  Bruno Haible  <bruno@clisp.org>
35065         filenamecat*: Respect rules for use of AC_LIBOBJ.
35066         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
35067         Remove AC_LIBOBJ invocation.
35068         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
35069         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
35071 2011-05-23  Bruno Haible  <bruno@clisp.org>
35073         filemode: Move AC_LIBOBJ invocations to module description.
35074         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
35075         * modules/filemode (Makefile.am): Augment lib_SOURCES.
35077 2011-05-23  Bruno Haible  <bruno@clisp.org>
35079         openat-safer: Move AC_LIBOBJ invocations to module description.
35080         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
35081         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
35083 2011-05-23  Bruno Haible  <bruno@clisp.org>
35085         fcntl-safer: Move AC_LIBOBJ invocations to module description.
35086         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
35087         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
35089 2011-05-23  Bruno Haible  <bruno@clisp.org>
35091         exclude: Move AC_LIBOBJ invocations to module description.
35092         * m4/exclude.m4: Remove file.
35093         * modules/exclude (Files): Remove it.
35094         (configure.ac): Remove gl_EXCLUDE call.
35095         (Makefile.am): Augment lib_SOURCES.
35097 2011-05-23  Bruno Haible  <bruno@clisp.org>
35099         dirname*: Respect rules for use of AC_LIBOBJ.
35100         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
35101         invocations.
35102         * modules/dirname (Makefile.am): Augment lib_SOURCES.
35103         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
35105 2011-05-23  Bruno Haible  <bruno@clisp.org>
35107         dirent-safer: Move AC_LIBOBJ invocations to module description.
35108         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
35109         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
35111 2011-05-23  Bruno Haible  <bruno@clisp.org>
35113         crypto/des: Move AC_LIBOBJ invocations to module description.
35114         * m4/des.m4: Remove file.
35115         * modules/crypto/des (Files): Remove it.
35116         (configure.ac): Remove gl_DES call.
35117         (Makefile.am): Augment lib_SOURCES.
35119 2011-05-23  Bruno Haible  <bruno@clisp.org>
35121         cycle-check: Move AC_LIBOBJ invocations to module description.
35122         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
35123         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
35125 2011-05-23  Bruno Haible  <bruno@clisp.org>
35127         c-strtold: Move AC_LIBOBJ invocations to module description.
35128         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
35129         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
35131 2011-05-23  Bruno Haible  <bruno@clisp.org>
35133         c-strtod: Move AC_LIBOBJ invocations to module description.
35134         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
35135         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
35137 2011-05-23  Bruno Haible  <bruno@clisp.org>
35139         crc: Move AC_LIBOBJ invocations to module description.
35140         * m4/crc.m4: Remove file.
35141         * modules/crc (Files): Remove it.
35142         (configure.ac): Remove gl_CRC call.
35143         (Makefile.am): Augment lib_SOURCES.
35145 2011-05-23  Bruno Haible  <bruno@clisp.org>
35147         close-stream: Move AC_LIBOBJ invocations to module description.
35148         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
35149         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
35151 2011-05-23  Bruno Haible  <bruno@clisp.org>
35153         closeout: Move AC_LIBOBJ invocations to module description.
35154         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
35155         * modules/closeout (Makefile.am): Augment lib_SOURCES.
35157 2011-05-23  Bruno Haible  <bruno@clisp.org>
35159         closein: Move AC_LIBOBJ invocations to module description.
35160         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
35161         * modules/closein (Makefile.am): Augment lib_SOURCES.
35163 2011-05-23  Bruno Haible  <bruno@clisp.org>
35165         cloexec: Move AC_LIBOBJ invocations to module description.
35166         * m4/cloexec.m4: Remove file.
35167         * modules/cloexec (Files): Remove it.
35168         (configure.ac): Remove gl_CLOEXEC call.
35169         (Makefile.am): Augment lib_SOURCES.
35171 2011-05-23  Bruno Haible  <bruno@clisp.org>
35173         check-version: Move AC_LIBOBJ invocations to module description.
35174         * m4/check-version.m4: Remove file.
35175         * modules/check-version (Files): Remove it.
35176         (configure.ac): Remove gl_CHECK_VERSION call.
35177         (Makefile.am): Augment lib_SOURCES.
35179 2011-05-23  Bruno Haible  <bruno@clisp.org>
35181         chdir-safer: Move AC_LIBOBJ invocations to module description.
35182         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
35183         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
35185 2011-05-23  Bruno Haible  <bruno@clisp.org>
35187         canonicalize: Move AC_LIBOBJ invocations to module description.
35188         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
35189         AC_LIBOBJ invocation.
35190         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
35192 2011-05-23  Bruno Haible  <bruno@clisp.org>
35194         canon-host: Move AC_LIBOBJ invocations to module description.
35195         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
35196         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
35197         instead of gl_CANON_HOST.
35198         (Makefile.am): Augment lib_SOURCES.
35200 2011-05-23  Bruno Haible  <bruno@clisp.org>
35202         backupfile: Move AC_LIBOBJ invocations to module description.
35203         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
35204         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
35206 2011-05-23  Bruno Haible  <bruno@clisp.org>
35208         argmatch: Move AC_LIBOBJ invocations to module description.
35209         * m4/argmatch.m4: Remove file.
35210         * modules/argmatch (Files): Remove it.
35211         (configure.ac): Remove gl_ARGMATCH call.
35212         (Makefile.am): Augment lib_SOURCES.
35214 2011-05-23  Bruno Haible  <bruno@clisp.org>
35216         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
35217         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
35218         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
35220 2011-05-23  Bruno Haible  <bruno@clisp.org>
35222         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
35223         * m4/arcfour.m4: Remove file.
35224         * modules/crypto/arcfour (Files): Remove it.
35225         (configure.ac): Remove gl_ARCFOUR call.
35226         (Makefile.am): Augment lib_SOURCES.
35228 2011-05-22  Bruno Haible  <bruno@clisp.org>
35230         write: Move AC_LIBOBJ invocations to module description.
35231         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
35232         * modules/write (configure.ac): ... to here.
35234 2011-05-22  Bruno Haible  <bruno@clisp.org>
35236         wmemset: Move AC_LIBOBJ invocations to module description.
35237         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
35238         here...
35239         * modules/wmemset (configure.ac): ... to here.
35241 2011-05-22  Bruno Haible  <bruno@clisp.org>
35243         wmemmove: Move AC_LIBOBJ invocations to module description.
35244         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
35245         here...
35246         * modules/wmemmove (configure.ac): ... to here.
35248 2011-05-22  Bruno Haible  <bruno@clisp.org>
35250         wmemcpy: Move AC_LIBOBJ invocations to module description.
35251         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
35252         here...
35253         * modules/wmemcpy (configure.ac): ... to here.
35255 2011-05-22  Bruno Haible  <bruno@clisp.org>
35257         wmemcmp: Move AC_LIBOBJ invocations to module description.
35258         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
35259         here...
35260         * modules/wmemcmp (configure.ac): ... to here.
35262 2011-05-22  Bruno Haible  <bruno@clisp.org>
35264         wmemchr: Move AC_LIBOBJ invocations to module description.
35265         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
35266         here...
35267         * modules/wmemchr (configure.ac): ... to here.
35269 2011-05-22  Bruno Haible  <bruno@clisp.org>
35271         wcswidth: Move AC_LIBOBJ invocations to module description.
35272         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
35273         here...
35274         * modules/wcswidth (configure.ac): ... to here.
35276 2011-05-22  Bruno Haible  <bruno@clisp.org>
35278         wcwidth: Respect rules for use of AC_LIBOBJ.
35279         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
35280         invocation from here...
35281         * modules/wcwidth (configure.ac): ... to here.
35282         (Depends-on): Update conditions.
35284 2011-05-22  Bruno Haible  <bruno@clisp.org>
35286         wctype: Move AC_LIBOBJ invocations to module description.
35287         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
35288         invocation from here...
35289         * modules/wctype (configure.ac): ... to here.
35290         (Depends-on): Update conditions.
35292 2011-05-22  Bruno Haible  <bruno@clisp.org>
35294         wctrans: Move AC_LIBOBJ invocations to module description.
35295         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
35296         invocation from here...
35297         * modules/wctrans (configure.ac): ... to here.
35299 2011-05-22  Bruno Haible  <bruno@clisp.org>
35301         wctomb: Move AC_LIBOBJ invocations to module description.
35302         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
35303         invocations from here...
35304         * modules/wctomb (configure.ac): ... to here.
35306 2011-05-22  Bruno Haible  <bruno@clisp.org>
35308         wctob: Move AC_LIBOBJ invocations to module description.
35309         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
35310         gl_PREREQ_WCTOB invocations from here...
35311         * modules/wctob (configure.ac): ... to here.
35312         (Depends-on): Update conditions.
35314 2011-05-22  Bruno Haible  <bruno@clisp.org>
35316         wcsxfrm: Move AC_LIBOBJ invocations to module description.
35317         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
35318         here...
35319         * modules/wcsxfrm (configure.ac): ... to here.
35321 2011-05-22  Bruno Haible  <bruno@clisp.org>
35323         wcstok: Move AC_LIBOBJ invocations to module description.
35324         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
35325         * modules/wcstok (configure.ac): ... to here.
35327 2011-05-22  Bruno Haible  <bruno@clisp.org>
35329         wcsstr: Move AC_LIBOBJ invocations to module description.
35330         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
35331         * modules/wcsstr (configure.ac): ... to here.
35333 2011-05-22  Bruno Haible  <bruno@clisp.org>
35335         wcsspn: Move AC_LIBOBJ invocations to module description.
35336         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
35337         * modules/wcsspn (configure.ac): ... to here.
35339 2011-05-22  Bruno Haible  <bruno@clisp.org>
35341         wcsrtombs: Move AC_LIBOBJ invocations to module description.
35342         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
35343         gl_PREREQ_WCSRTOMBS invocations from here...
35344         * modules/wcsrtombs (configure.ac): ... to here.
35346 2011-05-22  Bruno Haible  <bruno@clisp.org>
35348         wcsrchr: Move AC_LIBOBJ invocations to module description.
35349         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
35350         here...
35351         * modules/wcsrchr (configure.ac): ... to here.
35353 2011-05-22  Bruno Haible  <bruno@clisp.org>
35355         wcspbrk: Move AC_LIBOBJ invocations to module description.
35356         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
35357         here...
35358         * modules/wcspbrk (configure.ac): ... to here.
35360 2011-05-22  Bruno Haible  <bruno@clisp.org>
35362         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
35363         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
35364         gl_PREREQ_WCSNRTOMBS invocations from here...
35365         * modules/wcsnrtombs (configure.ac): ... to here.
35367 2011-05-22  Bruno Haible  <bruno@clisp.org>
35369         wcsnlen: Move AC_LIBOBJ invocations to module description.
35370         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
35371         here...
35372         * modules/wcsnlen (configure.ac): ... to here.
35374 2011-05-22  Bruno Haible  <bruno@clisp.org>
35376         wcsncpy: Move AC_LIBOBJ invocations to module description.
35377         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
35378         here...
35379         * modules/wcsncpy (configure.ac): ... to here.
35381 2011-05-22  Bruno Haible  <bruno@clisp.org>
35383         wcsncmp: Move AC_LIBOBJ invocations to module description.
35384         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
35385         here...
35386         * modules/wcsncmp (configure.ac): ... to here.
35388 2011-05-22  Bruno Haible  <bruno@clisp.org>
35390         wcsncat: Move AC_LIBOBJ invocations to module description.
35391         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
35392         here...
35393         * modules/wcsncat (configure.ac): ... to here.
35395 2011-05-22  Bruno Haible  <bruno@clisp.org>
35397         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
35398         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
35399         from here...
35400         * modules/wcsncasecmp (configure.ac): ... to here.
35402 2011-05-22  Bruno Haible  <bruno@clisp.org>
35404         wcslen: Move AC_LIBOBJ invocations to module description.
35405         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
35406         * modules/wcslen (configure.ac): ... to here.
35408 2011-05-22  Bruno Haible  <bruno@clisp.org>
35410         wcsdup: Move AC_LIBOBJ invocations to module description.
35411         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
35412         * modules/wcsdup (configure.ac): ... to here.
35414 2011-05-22  Bruno Haible  <bruno@clisp.org>
35416         wcscspn: Move AC_LIBOBJ invocations to module description.
35417         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
35418         here...
35419         * modules/wcscspn (configure.ac): ... to here.
35421 2011-05-22  Bruno Haible  <bruno@clisp.org>
35423         wcscpy: Move AC_LIBOBJ invocations to module description.
35424         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
35425         * modules/wcscpy (configure.ac): ... to here.
35427 2011-05-22  Bruno Haible  <bruno@clisp.org>
35429         wcscoll: Move AC_LIBOBJ invocations to module description.
35430         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
35431         here...
35432         * modules/wcscoll (configure.ac): ... to here.
35434 2011-05-22  Bruno Haible  <bruno@clisp.org>
35436         wcscmp: Move AC_LIBOBJ invocations to module description.
35437         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
35438         * modules/wcscmp (configure.ac): ... to here.
35440 2011-05-22  Bruno Haible  <bruno@clisp.org>
35442         wcschr: Move AC_LIBOBJ invocations to module description.
35443         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
35444         * modules/wcschr (configure.ac): ... to here.
35446 2011-05-22  Bruno Haible  <bruno@clisp.org>
35448         wcscat: Move AC_LIBOBJ invocations to module description.
35449         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
35450         * modules/wcscat (configure.ac): ... to here.
35452 2011-05-22  Bruno Haible  <bruno@clisp.org>
35454         wcscasecmp: Move AC_LIBOBJ invocations to module description.
35455         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
35456         here...
35457         * modules/wcscasecmp (configure.ac): ... to here.
35459 2011-05-22  Bruno Haible  <bruno@clisp.org>
35461         wcrtomb: Move AC_LIBOBJ invocations to module description.
35462         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
35463         invocations from here...
35464         * modules/wcrtomb (configure.ac): ... to here.
35466 2011-05-22  Bruno Haible  <bruno@clisp.org>
35468         wcpncpy: Move AC_LIBOBJ invocations to module description.
35469         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
35470         here...
35471         * modules/wcpncpy (configure.ac): ... to here.
35473 2011-05-22  Bruno Haible  <bruno@clisp.org>
35475         wcpcpy: Move AC_LIBOBJ invocations to module description.
35476         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
35477         * modules/wcpcpy (configure.ac): ... to here.
35479 2011-05-22  Bruno Haible  <bruno@clisp.org>
35481         waitpid: Move AC_LIBOBJ invocations to module description.
35482         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
35483         invocation from here...
35484         * modules/waitpid (configure.ac): ... to here.
35486 2011-05-22  Bruno Haible  <bruno@clisp.org>
35488         utimensat: Move AC_LIBOBJ invocations to module description.
35489         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
35490         here...
35491         * modules/utimensat (configure.ac): ... to here.
35493 2011-05-22  Bruno Haible  <bruno@clisp.org>
35495         usleep: Move AC_LIBOBJ invocations to module description.
35496         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
35497         here...
35498         * modules/usleep (configure.ac): ... to here.
35500 2011-05-22  Bruno Haible  <bruno@clisp.org>
35502         unlockpt: Move AC_LIBOBJ invocations to module description.
35503         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
35504         gl_PREREQ_UNLOCKPT invocations from here...
35505         * modules/unlockpt (configure.ac): ... to here.
35507 2011-05-22  Bruno Haible  <bruno@clisp.org>
35509         unlink: Respect rules for use of AC_LIBOBJ.
35510         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
35511         * modules/unlink (configure.ac): ... to here.
35513 2011-05-22  Bruno Haible  <bruno@clisp.org>
35515         uname: Move AC_LIBOBJ invocations to module description.
35516         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
35517         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
35518         here...
35519         * modules/uname (configure.ac): ... to here.
35521 2011-05-22  Bruno Haible  <bruno@clisp.org>
35523         ttyname_r: Move AC_LIBOBJ invocations to module description.
35524         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
35525         gl_PREREQ_TTYNAME_R invocations from here...
35526         * modules/ttyname_r (configure.ac): ... to here.
35528 2011-05-22  Bruno Haible  <bruno@clisp.org>
35530         tsearch: Move AC_LIBOBJ invocations to module description.
35531         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
35532         invocations from here...
35533         * modules/tsearch (configure.ac): ... to here.
35535 2011-05-22  Bruno Haible  <bruno@clisp.org>
35537         towctrans: Move AC_LIBOBJ invocations to module description.
35538         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
35539         AC_LIBOBJ invocation from here...
35540         * modules/towctrans (configure.ac): ... to here.
35542 2011-05-22  Bruno Haible  <bruno@clisp.org>
35544         tmpfile: Move AC_LIBOBJ invocations to module description.
35545         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
35546         invocations from here...
35547         * modules/tmpfile (configure.ac): ... to here.
35549 2011-05-22  Bruno Haible  <bruno@clisp.org>
35551         times: Move AC_LIBOBJ invocations to module description.
35552         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
35553         * modules/times (configure.ac): ... to here.
35555 2011-05-22  Bruno Haible  <bruno@clisp.org>
35557         time_r: Move AC_LIBOBJ invocations to module description.
35558         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
35559         invocations from here...
35560         * modules/time_r (configure.ac): ... to here.
35562 2011-05-22  Bruno Haible  <bruno@clisp.org>
35564         timegm: Move AC_LIBOBJ invocations to module description.
35565         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
35566         invocations from here...
35567         * modules/timegm (configure.ac): ... to here.
35569 2011-05-22  Bruno Haible  <bruno@clisp.org>
35571         tcgetsid: Move AC_LIBOBJ invocations to module description.
35572         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
35573         and gl_PREREQ_TCGETSID invocations from here...
35574         * modules/tcgetsid (configure.ac): ... to here.
35575         (Depends-on): Update conditions.
35577 2011-05-22  Bruno Haible  <bruno@clisp.org>
35579         symlinkat: Move AC_LIBOBJ invocations to module description.
35580         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
35581         here...
35582         * modules/symlinkat (configure.ac): ... to here.
35584 2011-05-22  Bruno Haible  <bruno@clisp.org>
35586         symlink: Move AC_LIBOBJ invocations to module description.
35587         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
35588         here...
35589         * modules/symlink (configure.ac): ... to here.
35591 2011-05-22  Bruno Haible  <bruno@clisp.org>
35593         strverscmp: Move AC_LIBOBJ invocations to module description.
35594         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
35595         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
35596         from here...
35597         * modules/strverscmp (configure.ac): ... to here.
35599 2011-05-22  Bruno Haible  <bruno@clisp.org>
35601         strtok_r: Move AC_LIBOBJ invocations to module description.
35602         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
35603         and gl_PREREQ_STRTOK_R invocations from here...
35604         * modules/strtok_r (configure.ac): ... to here.
35605         (Depends-on): Update conditions.
35607 2011-05-22  Bruno Haible  <bruno@clisp.org>
35609         strtoumax: Move AC_LIBOBJ invocations to module description.
35610         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
35611         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
35612         from here...
35613         * modules/strtoumax (configure.ac): ... to here.
35615 2011-05-22  Bruno Haible  <bruno@clisp.org>
35617         strtoimax: Move AC_LIBOBJ invocations to module description.
35618         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
35619         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
35620         from here...
35621         * modules/strtoimax (configure.ac): ... to here.
35623 2011-05-22  Bruno Haible  <bruno@clisp.org>
35625         strtoull: Move AC_LIBOBJ invocations to module description.
35626         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
35627         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
35628         from here...
35629         * modules/strtoull (configure.ac): ... to here.
35631 2011-05-22  Bruno Haible  <bruno@clisp.org>
35633         strtoll: Move AC_LIBOBJ invocations to module description.
35634         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
35635         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
35636         here...
35637         * modules/strtoll (configure.ac): ... to here.
35639 2011-05-22  Bruno Haible  <bruno@clisp.org>
35641         strtoul: Move AC_LIBOBJ invocations to module description.
35642         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
35643         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
35644         * modules/strtoul (configure.ac): ... to here.
35646 2011-05-22  Bruno Haible  <bruno@clisp.org>
35648         strtol: Move AC_LIBOBJ invocations to module description.
35649         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
35650         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
35651         * modules/strtol (configure.ac): ... to here.
35653 2011-05-22  Bruno Haible  <bruno@clisp.org>
35655         strtod: Move AC_LIBOBJ invocations to module description.
35656         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
35657         invocations from here...
35658         * modules/strtod (configure.ac): ... to here.
35660 2011-05-22  Bruno Haible  <bruno@clisp.org>
35662         strstr*: Move AC_LIBOBJ invocations to module description.
35663         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
35664         invocations from here...
35665         * modules/strstr-simple (configure.ac): ... to here.
35666         * modules/strstr (configure.ac): ... and here.
35668 2011-05-22  Bruno Haible  <bruno@clisp.org>
35670         strsignal: Move AC_LIBOBJ invocations to module description.
35671         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
35672         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
35673         * modules/strsignal (configure.ac): ... to here.
35674         (Depends-on): Update conditions.
35676 2011-05-22  Bruno Haible  <bruno@clisp.org>
35678         strsep: Move AC_LIBOBJ invocations to module description.
35679         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
35680         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
35681         here...
35682         * modules/strsep (configure.ac): ... to here.
35684 2011-05-22  Bruno Haible  <bruno@clisp.org>
35686         strptime: Move AC_LIBOBJ invocations to module description.
35687         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
35688         gl_PREREQ_STRPTIME invocations from here...
35689         * modules/strptime (configure.ac): ... to here.
35691 2011-05-22  Bruno Haible  <bruno@clisp.org>
35693         strpbrk: Move AC_LIBOBJ invocations to module description.
35694         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
35695         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
35696         here...
35697         * modules/strpbrk (configure.ac): ... to here.
35699 2011-05-22  Bruno Haible  <bruno@clisp.org>
35701         strnlen: Move AC_LIBOBJ invocations to module description.
35702         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
35703         invocations from here...
35704         * modules/strnlen (configure.ac): ... to here.
35706 2011-05-22  Bruno Haible  <bruno@clisp.org>
35708         strndup: Move AC_LIBOBJ invocations to module description.
35709         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
35710         invocations from here...
35711         * modules/strndup (configure.ac): ... to here.
35712         (Depends-on): Update conditions.
35714 2011-05-22  Bruno Haible  <bruno@clisp.org>
35716         strncat: Move AC_LIBOBJ invocations to module description.
35717         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
35718         invocations from here...
35719         * modules/strncat (configure.ac): ... to here.
35721 2011-05-22  Bruno Haible  <bruno@clisp.org>
35723         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
35724         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
35725         invocations from here...
35726         * modules/strdup (configure.ac): ... to here.
35727         * modules/strdup-posix (configure.ac): ... and here.
35729 2011-05-22  Bruno Haible  <bruno@clisp.org>
35731         strcspn: Move AC_LIBOBJ invocations to module description.
35732         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
35733         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
35734         here...
35735         * modules/strcspn (configure.ac): ... to here.
35737 2011-05-22  Bruno Haible  <bruno@clisp.org>
35739         strchrnul: Move AC_LIBOBJ invocations to module description.
35740         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
35741         gl_PREREQ_STRCHRNUL invocations from here...
35742         * modules/strchrnul (configure.ac): ... to here.
35744 2011-05-22  Bruno Haible  <bruno@clisp.org>
35746         strcasestr*: Move AC_LIBOBJ invocations to module description.
35747         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
35748         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
35749         * modules/strcasestr-simple (configure.ac): ... to here.
35750         * modules/strcasestr (configure.ac): ... and here.
35752 2011-05-22  Bruno Haible  <bruno@clisp.org>
35754         strcase: Move AC_LIBOBJ invocations to module description.
35755         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
35756         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
35757         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
35758         gl_PREREQ_STRNCASECMP invocations from here...
35759         * modules/strcase (configure.ac): ... to here.
35761 2011-05-22  Bruno Haible  <bruno@clisp.org>
35763         stpncpy: Move AC_LIBOBJ invocations to module description.
35764         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
35765         here...
35766         * modules/stpncpy (configure.ac): ... to here.
35768 2011-05-22  Bruno Haible  <bruno@clisp.org>
35770         stpcpy: Move AC_LIBOBJ invocations to module description.
35771         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
35772         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
35773         here...
35774         * modules/stpcpy (configure.ac): ... to here.
35776 2011-05-21  Bruno Haible  <bruno@clisp.org>
35778         stat: Move AC_LIBOBJ invocations to module description.
35779         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
35780         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
35781         here...
35782         * modules/stat (configure.ac): ... to here.
35784 2011-05-21  Bruno Haible  <bruno@clisp.org>
35786         sleep: Move AC_LIBOBJ invocations to module description.
35787         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
35788         * modules/sleep (configure.ac): ... to here.
35790 2011-05-21  Bruno Haible  <bruno@clisp.org>
35792         signbit: Move AC_LIBOBJ invocations to module description.
35793         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
35794         * modules/signbit (configure.ac): ... to here.
35796 2011-05-21  Bruno Haible  <bruno@clisp.org>
35798         sigprocmask: Move AC_LIBOBJ invocations to module description.
35799         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
35800         gl_PREREQ_SIGPROMASK invocations from here...
35801         * modules/sigprocmask (configure.ac): ... to here.
35803 2011-05-21  Bruno Haible  <bruno@clisp.org>
35805         sigaction: Move AC_LIBOBJ invocations to module description.
35806         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
35807         gl_PREREQ_SIGACTION invocations from here...
35808         * modules/sigaction (configure.ac): ... to here.
35810 2011-05-21  Bruno Haible  <bruno@clisp.org>
35812         sig2str: Move AC_LIBOBJ invocations to module description.
35813         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
35814         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
35815         here...
35816         * modules/sig2str (configure.ac): ... to here.
35818 2011-05-21  Bruno Haible  <bruno@clisp.org>
35820         setlocale: Move AC_LIBOBJ invocations to module description.
35821         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
35822         gl_PREREQ_SETLOCALE invocations from here...
35823         * modules/setlocale (configure.ac): ... to here.
35825 2011-05-21  Bruno Haible  <bruno@clisp.org>
35827         unsetenv: Move AC_LIBOBJ invocations to module description.
35828         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
35829         and gl_PREREQ_UNSETENV invocations from here...
35830         * modules/unsetenv (configure.ac): ... to here.
35831         (Depends-on): Update.
35833 2011-05-21  Bruno Haible  <bruno@clisp.org>
35835         setenv: Move AC_LIBOBJ invocations to module description.
35836         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
35837         here...
35838         * modules/setenv (configure.ac): ... to here.
35840 2011-05-21  Bruno Haible  <bruno@clisp.org>
35842         selinux-h: Move AC_LIBOBJ invocations to module description.
35843         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
35844         AC_LIBOBJ invocation from here...
35845         * modules/selinux-h (configure.ac): ... to here.
35847 2011-05-21  Bruno Haible  <bruno@clisp.org>
35849         select: Respect rules for use of AC_LIBOBJ.
35850         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
35851         here...
35852         * modules/select (configure.ac): ... to here.
35854 2011-05-21  Bruno Haible  <bruno@clisp.org>
35856         scandir: Move AC_LIBOBJ invocations to module description.
35857         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
35858         invocations from here...
35859         * modules/scandir (configure.ac): ... to here.
35861 2011-05-21  Bruno Haible  <bruno@clisp.org>
35863         rpmatch: Move AC_LIBOBJ invocations to module description.
35864         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
35865         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
35866         here...
35867         * modules/rpmatch (configure.ac): ... to here.
35869 2011-05-21  Bruno Haible  <bruno@clisp.org>
35871         rmdir: Respect rules for use of AC_LIBOBJ.
35872         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
35873         * modules/rmdir (configure.ac): ... to here.
35875 2011-05-21  Bruno Haible  <bruno@clisp.org>
35877         renameat: Move AC_LIBOBJ invocations to module description.
35878         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
35879         here...
35880         * modules/renameat (configure.ac): ... to here.
35882 2011-05-21  Bruno Haible  <bruno@clisp.org>
35884         rename: Respect rules for use of AC_LIBOBJ.
35885         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
35886         here...
35887         * modules/rename (configure.ac): ... to here.
35889 2011-05-21  Bruno Haible  <bruno@clisp.org>
35891         remove: Move AC_LIBOBJ invocations to module description.
35892         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
35893         here...
35894         * modules/remove (configure.ac): ... to here.
35896 2011-05-21  Bruno Haible  <bruno@clisp.org>
35898         relocatable-lib: Move AC_LIBOBJ invocations to module description.
35899         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
35900         macro.
35901         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
35902         * modules/relocatable-lib (configure.ac): ... to here.
35903         * modules/relocatable-prog-wrapper (configure.ac): Invoke
35904         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
35906 2011-05-21  Bruno Haible  <bruno@clisp.org>
35908         relocatable-prog: Move AC_LIBOBJ invocations to module description.
35909         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
35910         here...
35911         * modules/relocatable-prog (configure.ac): ... to here.
35913 2011-05-21  Bruno Haible  <bruno@clisp.org>
35915         regex: Move AC_LIBOBJ invocations to module description.
35916         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
35917         invocations from here...
35918         * modules/regex (configure.ac): ... to here.
35920 2011-05-21  Bruno Haible  <bruno@clisp.org>
35922         realloc-*: Move AC_LIBOBJ invocations to module description.
35923         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
35924         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
35925         AC_LIBOBJ invocations from here...
35926         * modules/realloc-gnu (configure.ac): ... to here.
35927         * modules/realloc-posix (configure.ac): ... and here.
35929 2011-05-21  Bruno Haible  <bruno@clisp.org>
35931         readutmp: Move AC_LIBOBJ invocations to module description.
35932         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
35933         * modules/readutmp (configure.ac): ... to here.
35935 2011-05-21  Bruno Haible  <bruno@clisp.org>
35937         readlinkat: Move AC_LIBOBJ invocations to module description.
35938         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
35939         here...
35940         * modules/readlinkat (configure.ac): ... to here.
35942 2011-05-21  Bruno Haible  <bruno@clisp.org>
35944         readlink: Move AC_LIBOBJ invocations to module description.
35945         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
35946         gl_PREREQ_READLINK invocations from here...
35947         * modules/readlink (configure.ac): ... to here.
35949 2011-05-21  Bruno Haible  <bruno@clisp.org>
35951         readline: Move AC_LIBOBJ invocations to module description.
35952         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
35953         gl_PREREQ_READLINE invocations from here...
35954         * modules/readline (configure.ac): ... to here.
35956 2011-05-21  Bruno Haible  <bruno@clisp.org>
35958         read: Move AC_LIBOBJ invocations to module description.
35959         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
35960         * modules/read (configure.ac): ... to here.
35962 2011-05-21  Bruno Haible  <bruno@clisp.org>
35964         rawmemchr: Move AC_LIBOBJ invocations to module description.
35965         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
35966         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
35967         from here...
35968         * modules/rawmemchr (configure.ac): ... to here.
35970 2011-05-21  Bruno Haible  <bruno@clisp.org>
35972         random_r: Move AC_LIBOBJ invocations to module description.
35973         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
35974         gl_PREREQ_RANDOM_R invocations from here...
35975         * modules/random_r (configure.ac): ... to here.
35977 2011-05-21  Bruno Haible  <bruno@clisp.org>
35979         pwrite: Move AC_LIBOBJ invocations to module description.
35980         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
35981         * modules/pwrite (configure.ac): ... to here.
35983 2011-05-21  Bruno Haible  <bruno@clisp.org>
35985         putenv: Move AC_LIBOBJ invocations to module description.
35986         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
35987         * modules/putenv (configure.ac): ... to here.
35989 2011-05-21  Bruno Haible  <bruno@clisp.org>
35991         login_tty: Move AC_LIBOBJ invocations to module description.
35992         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
35993         * modules/login_tty (configure.ac): ... to here.
35995 2011-05-21  Bruno Haible  <bruno@clisp.org>
35997         openpty: Move AC_LIBOBJ invocations to module description.
35998         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
35999         * modules/openpty (configure.ac): ... to here.
36001 2011-05-21  Bruno Haible  <bruno@clisp.org>
36003         forkpty: Move AC_LIBOBJ invocations to module description.
36004         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
36005         * modules/forkpty (configure.ac): ... to here.
36007 2011-05-21  Bruno Haible  <bruno@clisp.org>
36009         ptsname: Move AC_LIBOBJ invocations to module description.
36010         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
36011         invocations from here...
36012         * modules/ptsname (configure.ac): ... to here.
36014 2011-05-21  Bruno Haible  <bruno@clisp.org>
36016         pread: Move AC_LIBOBJ invocations to module description.
36017         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
36018         * modules/pread (configure.ac): ... to here.
36020 2011-05-21  Bruno Haible  <bruno@clisp.org>
36022         posix_spawn*: Move AC_LIBOBJ invocations to module description.
36023         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
36024         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
36025         * modules/posix_spawn (configure.ac): ... to here.
36026         * modules/posix_spawnp (configure.ac): ... and here.
36028 2011-05-21  Bruno Haible  <bruno@clisp.org>
36030         popen: Move AC_LIBOBJ invocations to module description.
36031         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
36032         invocations from here...
36033         * modules/popen (configure.ac): ... to here.
36035 2011-05-21  Bruno Haible  <bruno@clisp.org>
36037         poll: Move AC_LIBOBJ invocations to module description.
36038         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
36039         invocations from here...
36040         * modules/poll (configure.ac): ... to here.
36042 2011-05-21  Bruno Haible  <bruno@clisp.org>
36044         pipe-posix: Move AC_LIBOBJ invocations to module description.
36045         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
36046         * modules/pipe-posix (configure.ac): ... to here.
36048 2011-05-21  Bruno Haible  <bruno@clisp.org>
36050         openat: Respect rules for use of AC_LIBOBJ.
36051         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
36052         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
36053         * modules/openat (configure.ac): ... to here.
36055 2011-05-21  Bruno Haible  <bruno@clisp.org>
36057         obstack-printf*: Move AC_LIBOBJ invocations to module description.
36058         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
36059         invocation from here...
36060         * modules/obstack-printf (configure.ac): ... to here.
36061         * modules/obstack-printf-posix (configure.ac): ... and here.
36063 2011-05-21  Bruno Haible  <bruno@clisp.org>
36065         nl_langinfo: Move AC_LIBOBJ invocations to module description.
36066         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
36067         from here...
36068         * modules/nl_langinfo (configure.ac): ... to here.
36070 2011-05-21  Bruno Haible  <bruno@clisp.org>
36072         nanosleep: Move AC_LIBOBJ invocations to module description.
36073         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
36074         gl_PREREQ_NANOSLEEP invocations from here...
36075         * modules/nanosleep (configure.ac): ... to here.
36077 2011-05-21  Bruno Haible  <bruno@clisp.org>
36079         mountlist: Move AC_LIBOBJ invocations to module description.
36080         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
36081         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
36082         * modules/mountlist (configure.ac): ... to here.
36084 2011-05-21  Bruno Haible  <bruno@clisp.org>
36086         mktime: Respect rules for use of AC_LIBOBJ.
36087         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
36088         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
36089         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
36090         (gl_FUNC_MKTIME_INTERNAL): ... and here...
36091         * modules/mktime (configure.ac): ... to here.
36092         * modules/mktime-internal (configure.ac): ... and here.
36093         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
36095 2011-05-21  Bruno Haible  <bruno@clisp.org>
36097         mkstemps: Move AC_LIBOBJ invocations to module description.
36098         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
36099         here...
36100         * modules/mkstemps (configure.ac): ... to here.
36102 2011-05-21  Bruno Haible  <bruno@clisp.org>
36104         mkstemp: Move AC_LIBOBJ invocations to module description.
36105         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
36106         gl_PREREQ_MKSTEMP invocations from here...
36107         * modules/mkstemp (configure.ac): ... to here.
36109 2011-05-21  Bruno Haible  <bruno@clisp.org>
36111         mkostemps: Move AC_LIBOBJ invocations to module description.
36112         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
36113         here...
36114         * modules/mkostemps (configure.ac): ... to here.
36116 2011-05-21  Bruno Haible  <bruno@clisp.org>
36118         mkostemp: Move AC_LIBOBJ invocations to module description.
36119         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
36120         gl_PREREQ_MKOSTEMP invocations from here...
36121         * modules/mkostemp (configure.ac): ... to here.
36123 2011-05-21  Bruno Haible  <bruno@clisp.org>
36125         mknod: Move AC_LIBOBJ invocations to module description.
36126         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
36127         * modules/mknod (configure.ac): ... to here.
36129 2011-05-21  Bruno Haible  <bruno@clisp.org>
36131         mkfifoat: Move AC_LIBOBJ invocations to module description.
36132         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
36133         here...
36134         * modules/mkfifoat (configure.ac): ... to here.
36136 2011-05-21  Bruno Haible  <bruno@clisp.org>
36138         mkfifo: Respect rules for use of AC_LIBOBJ.
36139         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
36140         here...
36141         * modules/mkfifo (configure.ac): ... to here.
36143 2011-05-21  Bruno Haible  <bruno@clisp.org>
36145         mkdtemp: Move AC_LIBOBJ invocations to module description.
36146         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
36147         invocations from here...
36148         * modules/mkdtemp (configure.ac): ... to here.
36150 2011-05-21  Bruno Haible  <bruno@clisp.org>
36152         mkdir: Move AC_LIBOBJ invocations to module description.
36153         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
36154         * modules/mkdir (configure.ac): ... to here.
36156 2011-05-21  Bruno Haible  <bruno@clisp.org>
36158         memset: Move AC_LIBOBJ invocations to module description.
36159         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
36160         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
36161         here...
36162         * modules/memset (configure.ac): ... to here.
36164 2011-05-21  Bruno Haible  <bruno@clisp.org>
36166         memrchr: Move AC_LIBOBJ invocations to module description.
36167         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
36168         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
36169         here...
36170         * modules/memrchr (configure.ac): ... to here.
36172 2011-05-21  Bruno Haible  <bruno@clisp.org>
36174         mempcpy: Move AC_LIBOBJ invocations to module description.
36175         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
36176         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
36177         here...
36178         * modules/mempcpy (configure.ac): ... to here.
36180 2011-05-21  Bruno Haible  <bruno@clisp.org>
36182         memmove: Move AC_LIBOBJ invocations to module description.
36183         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
36184         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
36185         here...
36186         * modules/memmove (configure.ac): ... to here.
36188 2011-05-21  Bruno Haible  <bruno@clisp.org>
36190         memmem*: Move AC_LIBOBJ invocations to module description.
36191         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
36192         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
36193         here...
36194         (gl_FUNC_MEMMEM): ... and here...
36195         * modules/memmem-simple (configure.ac): ... to here.
36196         * modules/memmem (configure.ac): ... and here.
36198 2011-05-21  Bruno Haible  <bruno@clisp.org>
36200         memcpy: Move AC_LIBOBJ invocations to module description.
36201         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
36202         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
36203         here...
36204         * modules/memcpy (configure.ac): ... to here.
36206 2011-05-21  Bruno Haible  <bruno@clisp.org>
36208         memcmp: Simplify autoconf macro.
36209         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
36210         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
36211         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
36213 2011-05-21  Bruno Haible  <bruno@clisp.org>
36215         memcmp: Move AC_LIBOBJ invocations to module description.
36216         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
36217         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
36218         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
36219         * modules/memcmp (configure.ac): ... to here.
36220         (Depends-on): Update conditions.
36222 2011-05-21  Bruno Haible  <bruno@clisp.org>
36224         memchr: Respect rules for use of AC_LIBOBJ.
36225         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
36226         invocations from here...
36227         * modules/memchr (configure.ac): ... to here.
36229 2011-05-21  Bruno Haible  <bruno@clisp.org>
36231         mbtowc: Move AC_LIBOBJ invocations to module description.
36232         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
36233         invocations from here...
36234         * modules/mbtowc (configure.ac): ... to here.
36236 2011-05-21  Bruno Haible  <bruno@clisp.org>
36238         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
36239         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
36240         gl_PREREQ_MBSRTOWCS invocations from here...
36241         * modules/mbsrtowcs (configure.ac): ... to here.
36243 2011-05-21  Bruno Haible  <bruno@clisp.org>
36245         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
36246         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
36247         gl_PREREQ_MBSNRTOWCS invocations from here...
36248         * modules/mbsnrtowcs (configure.ac): ... to here.
36250 2011-05-21  Bruno Haible  <bruno@clisp.org>
36252         mbsinit: Move AC_LIBOBJ invocations to module description.
36253         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
36254         invocations from here...
36255         * modules/mbsinit (configure.ac): ... to here.
36257 2011-05-21  Bruno Haible  <bruno@clisp.org>
36259         mbrlen: Move AC_LIBOBJ invocations to module description.
36260         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
36261         invocations from here...
36262         * modules/mbrlen (configure.ac): ... to here.
36264 2011-05-21  Bruno Haible  <bruno@clisp.org>
36266         mbrtowc: Respect rules for use of AC_LIBOBJ.
36267         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
36268         invocations from here...
36269         * modules/mbrtowc (configure.ac): ... to here.
36271 2011-05-21  Bruno Haible  <bruno@clisp.org>
36273         malloc-*: Move AC_LIBOBJ invocations to module description.
36274         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
36275         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
36276         AC_LIBOBJ invocations from here...
36277         * modules/malloc-gnu (configure.ac): ... to here.
36278         * modules/malloc-posix (configure.ac): ... and here.
36280 2011-05-21  Bruno Haible  <bruno@clisp.org>
36282         lstat, openat: Respect rules for use of AC_LIBOBJ.
36283         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
36284         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
36285         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
36286         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
36287         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
36288         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
36289         here.
36290         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
36292 2011-05-21  Bruno Haible  <bruno@clisp.org>
36294         lseek: Move AC_LIBOBJ invocations to module description.
36295         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
36296         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
36297         * modules/lseek (configure.ac): ... to here.
36299 2011-05-21  Bruno Haible  <bruno@clisp.org>
36301         linkat: Move AC_LIBOBJ invocations to module description.
36302         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
36303         here...
36304         * modules/linkat (configure.ac): ... to here.
36306 2011-05-21  Bruno Haible  <bruno@clisp.org>
36308         link: Respect rules for use of AC_LIBOBJ.
36309         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
36310         * modules/link (configure.ac): ... to here.
36312 2011-05-21  Bruno Haible  <bruno@clisp.org>
36314         lchown: Move AC_LIBOBJ invocations to module description.
36315         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
36316         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
36317         * modules/lchown (configure.ac): ... to here.
36319 2011-05-21  Bruno Haible  <bruno@clisp.org>
36321         iswctype: Move AC_LIBOBJ invocations to module description.
36322         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
36323         here...
36324         * modules/iswctype (configure.ac): ... to here.
36326 2011-05-21  Bruno Haible  <bruno@clisp.org>
36328         iswblank: Move AC_LIBOBJ invocations to module description.
36329         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
36330         here...
36331         * modules/iswblank (configure.ac): ... to here.
36333 2011-05-21  Bruno Haible  <bruno@clisp.org>
36335         atanl: Move AC_LIBOBJ invocations to module description.
36336         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
36337         * modules/atanl (configure.ac): ... to here.
36339 2011-05-21  Bruno Haible  <bruno@clisp.org>
36341         acosl: Move AC_LIBOBJ invocations to module description.
36342         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
36343         * modules/acosl (configure.ac): ... to here.
36345 2011-05-21  Bruno Haible  <bruno@clisp.org>
36347         asinl: Respect rules for use of AC_LIBOBJ.
36348         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
36349         * modules/asinl (configure.ac): ... to here.
36351 2011-05-21  Bruno Haible  <bruno@clisp.org>
36353         tanl: Move AC_LIBOBJ invocations to module description.
36354         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
36355         * modules/tanl (configure.ac): ... to here.
36357 2011-05-21  Bruno Haible  <bruno@clisp.org>
36359         cosl: Move AC_LIBOBJ invocations to module description.
36360         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
36361         * modules/cosl (configure.ac): ... to here.
36363 2011-05-21  Bruno Haible  <bruno@clisp.org>
36365         sinl: Move AC_LIBOBJ invocations to module description.
36366         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
36367         * modules/sinl (configure.ac): ... to here.
36369 2011-05-21  Bruno Haible  <bruno@clisp.org>
36371         logl: Move AC_LIBOBJ invocations to module description.
36372         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
36373         * modules/logl (configure.ac): ... to here.
36375 2011-05-21  Bruno Haible  <bruno@clisp.org>
36377         expl: Move AC_LIBOBJ invocations to module description.
36378         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
36379         * modules/expl (configure.ac): ... to here.
36381 2011-05-21  Bruno Haible  <bruno@clisp.org>
36383         roundl: Move AC_LIBOBJ invocations to module description.
36384         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
36385         * modules/roundl (configure.ac): ... to here.
36387 2011-05-21  Bruno Haible  <bruno@clisp.org>
36389         round: Move AC_LIBOBJ invocations to module description.
36390         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
36391         * modules/round (configure.ac): ... to here.
36393 2011-05-21  Bruno Haible  <bruno@clisp.org>
36395         roundf: Move AC_LIBOBJ invocations to module description.
36396         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
36397         * modules/roundf (configure.ac): ... to here.
36399 2011-05-21  Bruno Haible  <bruno@clisp.org>
36401         truncl: Move AC_LIBOBJ invocations to module description.
36402         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
36403         * modules/truncl (configure.ac): ... to here.
36405 2011-05-21  Bruno Haible  <bruno@clisp.org>
36407         trunc: Move AC_LIBOBJ invocations to module description.
36408         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
36409         * modules/trunc (configure.ac): ... to here.
36411 2011-05-21  Bruno Haible  <bruno@clisp.org>
36413         truncf: Move AC_LIBOBJ invocations to module description.
36414         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
36415         * modules/truncf (configure.ac): ... to here.
36417 2011-05-21  Bruno Haible  <bruno@clisp.org>
36419         ceill: Move AC_LIBOBJ invocations to module description.
36420         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
36421         * modules/ceill (configure.ac): ... to here.
36423 2011-05-21  Bruno Haible  <bruno@clisp.org>
36425         ceil: Move AC_LIBOBJ invocations to module description.
36426         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
36427         * modules/ceil (configure.ac): ... to here.
36429 2011-05-21  Bruno Haible  <bruno@clisp.org>
36431         ceilf: Move AC_LIBOBJ invocations to module description.
36432         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
36433         * modules/ceilf (configure.ac): ... to here.
36435 2011-05-21  Bruno Haible  <bruno@clisp.org>
36437         floorl: Respect rules for use of AC_LIBOBJ.
36438         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
36439         * modules/floorl (configure.ac): ... to here.
36441 2011-05-21  Bruno Haible  <bruno@clisp.org>
36443         floor: Respect rules for use of AC_LIBOBJ.
36444         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
36445         * modules/floor (configure.ac): ... to here.
36447 2011-05-21  Bruno Haible  <bruno@clisp.org>
36449         floorf: Move AC_LIBOBJ invocations to module description.
36450         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
36451         * modules/floorf (configure.ac): ... to here.
36453 2011-05-20  Bruno Haible  <bruno@clisp.org>
36455         sqrtl: Respect rules for use of AC_LIBOBJ.
36456         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
36457         * modules/sqrtl (configure.ac): ... to here.
36459 2011-05-20  Bruno Haible  <bruno@clisp.org>
36461         ldexpl: Respect rules for use of AC_LIBOBJ.
36462         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
36463         * modules/ldexpl (configure.ac): ... to here.
36465 2011-05-20  Bruno Haible  <bruno@clisp.org>
36467         frexpl*: Respect rules for use of AC_LIBOBJ.
36468         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
36469         invocation from here...
36470         * modules/frexpl (configure.ac): ... to here.
36471         * modules/frexpl-nolibm (configure.ac): ... and here.
36473 2011-05-20  Bruno Haible  <bruno@clisp.org>
36475         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
36476         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
36477         invocation from here...
36478         * modules/frexp (configure.ac): ... to here.
36479         * modules/frexp-nolibm (configure.ac): ... and here.
36481 2011-05-20  Bruno Haible  <bruno@clisp.org>
36483         isnan: Respect rules for use of AC_LIBOBJ.
36484         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
36485         invocations here.
36486         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
36487         REPLACE_ISNAN.
36488         * modules/isnand (configure.ac): Likewise.
36489         * modules/isnanl (configure.ac): Likewise.
36491 2011-05-20  Bruno Haible  <bruno@clisp.org>
36493         isnanl*: Respect rules for use of AC_LIBOBJ.
36494         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
36495         invocation from here...
36496         * modules/isnanl (configure.ac): ... to here.
36497         * modules/isnanl-nolibm (configure.ac): ... and here.
36499 2011-05-20  Bruno Haible  <bruno@clisp.org>
36501         isnand*: Move AC_LIBOBJ invocations to module description.
36502         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
36503         invocation from here...
36504         * modules/isnand (configure.ac): ... to here.
36505         * modules/isnand-nolibm (configure.ac): ... and here.
36507 2011-05-20  Bruno Haible  <bruno@clisp.org>
36509         isnanf*: Move AC_LIBOBJ invocations to module description.
36510         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
36511         invocation from here...
36512         * modules/isnanf (configure.ac): ... to here.
36513         * modules/isnanf-nolibm (configure.ac): ... and here.
36515 2011-05-20  Bruno Haible  <bruno@clisp.org>
36517         isnan*: Separate the AC_LIBOBJ invocations.
36518         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
36519         AC_LIBOBJ invocation.
36520         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
36521         here.
36522         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
36523         AC_LIBOBJ invocation.
36524         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
36525         here.
36526         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
36527         AC_LIBOBJ invocation.
36528         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
36529         here.
36530         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
36532 2011-05-08  Bruno Haible  <bruno@clisp.org>
36534         isinf: Move AC_LIBOBJ invocations to module description.
36535         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
36536         * modules/isinf (configure.ac): ... to here.
36538 2011-05-08  Bruno Haible  <bruno@clisp.org>
36540         isfinite: Move AC_LIBOBJ invocations to module description.
36541         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
36542         * modules/isfinite (configure.ac): ... to here.
36544 2011-05-08  Bruno Haible  <bruno@clisp.org>
36546         isblank: Move AC_LIBOBJ invocations to module description.
36547         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
36548         here...
36549         * modules/isblank (configure.ac): ... to here.
36551 2011-05-08  Bruno Haible  <bruno@clisp.org>
36553         isapipe: Move AC_LIBOBJ invocations to module description.
36554         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
36555         gl_PREREQ_ISAPIPE invocations from here...
36556         * modules/isapipe (configure.ac): ... to here.
36557         (Depends-on): Update condition.
36559 2011-05-08  Bruno Haible  <bruno@clisp.org>
36561         ioctl: Move AC_LIBOBJ invocations to module description.
36562         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
36563         invocations from here...
36564         * modules/ioctl (configure.ac): ... to here.
36565         (Depends-on): Update condition.
36567 2011-05-08  Bruno Haible  <bruno@clisp.org>
36569         imaxdiv: Move AC_LIBOBJ invocations to module description.
36570         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
36571         invocations from here...
36572         * modules/imaxdiv (configure.ac): ... to here.
36574 2011-05-08  Bruno Haible  <bruno@clisp.org>
36576         imaxabs: Move AC_LIBOBJ invocations to module description.
36577         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
36578         invocations from here...
36579         * modules/imaxabs (configure.ac): ... to here.
36581 2011-05-08  Bruno Haible  <bruno@clisp.org>
36583         getaddrinfo: Move AC_LIBOBJ invocations to module description.
36584         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
36585         AC_LIBOBJ invocations from here...
36586         * modules/getaddrinfo (configure.ac): ... to here.
36587         (Depends-on): Add conditions.
36589 2011-05-08  Bruno Haible  <bruno@clisp.org>
36591         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
36592         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
36593         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
36594         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
36595         (gl_PREREQ_INET_PTON): ... from here.
36596         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
36597         gl_PREREQ_INET_PTON here.
36598         (Depends-on): Update condition.
36600 2011-05-08  Bruno Haible  <bruno@clisp.org>
36602         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
36603         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
36604         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
36605         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
36606         (gl_PREREQ_INET_NTOP): ... from here.
36607         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
36608         gl_PREREQ_INET_NTOP here.
36609         (Depends-on): Update condition.
36611 2011-05-08  Bruno Haible  <bruno@clisp.org>
36613         iconv_open: Move AC_LIBOBJ invocations to module description.
36614         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
36615         AC_LIBOBJ invocations from here...
36616         * modules/iconv_open (configure.ac): ... to here.
36618 2011-05-08  Bruno Haible  <bruno@clisp.org>
36620         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
36621         If module 'iconv_open' is among the main modules and module
36622         'iconv_open-utf' is among the tests dependencies, then
36623         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
36624         return the special iconv_t values. Therefore iconv() and iconv_close()
36625         must support these special iconv_t values, already in lib, not only in
36626         tests.
36627         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
36628         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
36629         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
36630         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
36631         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
36632         (Depends-on): Add the dependencies of iconv_open-utf.
36633         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
36634         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
36635         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
36637 2011-05-08  Bruno Haible  <bruno@clisp.org>
36639         group-member: Move AC_LIBOBJ invocations to module description.
36640         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
36641         gl_PREREQ_GROUP_MEMBER invocations from here...
36642         * modules/group-member (configure.ac): ... to here.
36644 2011-05-08  Bruno Haible  <bruno@clisp.org>
36646         grantpt: Move AC_LIBOBJ invocations to module description.
36647         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
36648         invocations from here...
36649         * modules/grantpt (configure.ac): ... to here.
36651 2011-05-08  Bruno Haible  <bruno@clisp.org>
36653         glob: Move AC_LIBOBJ invocations to module description.
36654         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
36655         from here...
36656         * modules/glob (configure.ac): ... to here.
36658 2011-05-08  Bruno Haible  <bruno@clisp.org>
36660         getusershell: Move AC_LIBOBJ invocations to module description.
36661         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
36662         Move AC_LIBOBJ invocation from here...
36663         * modules/getusershell (configure.ac): ... to here.
36664         (Depends-on): Update condition.
36666 2011-05-08  Bruno Haible  <bruno@clisp.org>
36668         gettimeofday: Move AC_LIBOBJ invocations to module description.
36669         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
36670         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
36671         gl_PREREQ_GETTIMEOFDAY invocations from here...
36672         * modules/gettimeofday (configure.ac): ... to here.
36674 2011-05-08  Bruno Haible  <bruno@clisp.org>
36676         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
36677         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
36678         just gl_FUNC_TZSET.
36679         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
36680         (gl_FUNC_TZSET_CLOBBER): Remove actions.
36681         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
36682         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
36684 2011-05-08  Bruno Haible  <bruno@clisp.org>
36686         getsubopt: Move AC_LIBOBJ invocations to module description.
36687         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
36688         gl_PREREQ_GETSUBOPT invocations from here...
36689         * modules/getsubopt (configure.ac): ... to here.
36691 2011-05-08  Bruno Haible  <bruno@clisp.org>
36693         getpass-gnu: Move AC_LIBOBJ invocations to module description.
36694         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
36695         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
36696         * modules/getpass-gnu (configure.ac): ... to here.
36698 2011-05-08  Bruno Haible  <bruno@clisp.org>
36700         getpass: Move AC_LIBOBJ invocations to module description.
36701         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
36702         gl_PREREQ_GETPASS invocations from here...
36703         * modules/getpass (configure.ac): ... to here.
36705 2011-05-08  Bruno Haible  <bruno@clisp.org>
36707         getpagesize: Move AC_LIBOBJ invocations to module description.
36708         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
36709         from here...
36710         * modules/getpagesize (configure.ac): ... to here.
36712 2011-05-08  Bruno Haible  <bruno@clisp.org>
36714         getopt: Move AC_LIBOBJ invocations to module description.
36715         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
36716         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
36717         invocations from here...
36718         * modules/getopt-gnu (configure.ac): ... to here.
36719         * modules/getopt-posix (configure.ac): ... and here.
36720         (Depends-on): Update condition.
36722 2011-05-08  Bruno Haible  <bruno@clisp.org>
36724         getopt, argp: Respect rules for use of AC_LIBOBJ.
36725         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
36726         (gl_REPLACE_GETOPT_ALWAYS): New macro.
36727         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
36728         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
36730 2011-05-08  Bruno Haible  <bruno@clisp.org>
36732         getlogin_r: Move AC_LIBOBJ invocations to module description.
36733         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
36734         gl_PREREQ_GETLOGIN_R invocations from here...
36735         * modules/getlogin_r (configure.ac): ... to here.
36737 2011-05-08  Bruno Haible  <bruno@clisp.org>
36739         getlogin: Move AC_LIBOBJ invocations to module description.
36740         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
36741         here...
36742         * modules/getlogin (configure.ac): ... to here.
36744 2011-05-08  Bruno Haible  <bruno@clisp.org>
36746         getloadavg: Move AC_LIBOBJ invocations to module description.
36747         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
36748         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
36749         * modules/getloadavg (configure.ac): ... to here.
36751 2011-05-08  Bruno Haible  <bruno@clisp.org>
36753         gethrxtime: Move AC_LIBOBJ invocations to module description.
36754         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
36755         LIB_GETHRXTIME from here...
36756         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
36757         invocations from here...
36758         * modules/gethrxtime (configure.ac): ... to here.
36760 2011-05-08  Bruno Haible  <bruno@clisp.org>
36762         gethostname: Move AC_LIBOBJ invocations to module description.
36763         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
36764         gl_PREREQ_GETHOSTNAME invocations from here...
36765         * modules/gethostname (configure.ac): ... to here.
36767 2011-05-08  Bruno Haible  <bruno@clisp.org>
36769         getgroups: Move AC_LIBOBJ invocations to module description.
36770         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
36771         here...
36772         * modules/getgroups (configure.ac): ... to here.
36774 2011-05-08  Bruno Haible  <bruno@clisp.org>
36776         getdtablesize: Move AC_LIBOBJ invocations to module description.
36777         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
36778         invocation from here...
36779         * modules/getdtablesize (configure.ac): ... to here.
36781 2011-05-08  Bruno Haible  <bruno@clisp.org>
36783         getdomainname: Move AC_LIBOBJ invocations to module description.
36784         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
36785         gl_PREREQ_GETDOMAINNAME invocations from here...
36786         * modules/getdomainname (configure.ac): ... to here.
36788 2011-05-08  Bruno Haible  <bruno@clisp.org>
36790         getline: Move AC_LIBOBJ invocations to module description.
36791         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
36792         invocations from here...
36793         * modules/getline (configure.ac): ... to here.
36795 2011-05-08  Bruno Haible  <bruno@clisp.org>
36797         getline: Simplify.
36798         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
36799         It's already handled through the module dependency.
36801 2011-05-08  Bruno Haible  <bruno@clisp.org>
36803         getdelim: Move AC_LIBOBJ invocations to module description.
36804         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
36805         and gl_PREREQ_GETDELIM invocations from here...
36806         * modules/getdelim (configure.ac): ... to here.
36807         (Depends-on): Fix condition.
36809 2011-05-08  Bruno Haible  <bruno@clisp.org>
36811         getcwd: Move AC_LIBOBJ invocations to module description.
36812         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
36813         invocations from here...
36814         * modules/getcwd (configure.ac): ... to here.
36816 2011-05-08  Bruno Haible  <bruno@clisp.org>
36818         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
36819         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
36820         here...
36821         * modules/getcwd-lgpl (configure.ac): ... to here.
36823 2011-05-07  Bruno Haible  <bruno@clisp.org>
36825         crypto/gc: Move AC_LIBOBJ invocations to module description.
36826         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
36827         * modules/crypto/gc (configure.ac): ... to here.
36829 2011-05-07  Bruno Haible  <bruno@clisp.org>
36831         fwriting: Move AC_LIBOBJ invocations to module description.
36832         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
36833         here...
36834         * modules/fwriting (configure.ac): ... to here.
36836 2011-05-07  Bruno Haible  <bruno@clisp.org>
36838         fwritable: Move AC_LIBOBJ invocations to module description.
36839         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
36840         here...
36841         * modules/fwritable (configure.ac): ... to here.
36843 2011-05-07  Bruno Haible  <bruno@clisp.org>
36845         futimens: Move AC_LIBOBJ invocations to module description.
36846         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
36847         here...
36848         * modules/futimens (configure.ac): ... to here.
36850 2011-05-07  Bruno Haible  <bruno@clisp.org>
36852         ftruncate: Move AC_LIBOBJ invocations to module description.
36853         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
36854         gl_PREREQ_FTRUNCATE invocations from here...
36855         * modules/ftruncate (configure.ac): ... to here.
36857 2011-05-07  Bruno Haible  <bruno@clisp.org>
36859         fsync: Move AC_LIBOBJ invocations to module description.
36860         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
36861         invocations from here...
36862         * modules/fsync (configure.ac): ... to here.
36864 2011-05-07  Bruno Haible  <bruno@clisp.org>
36866         fsusage: Move AC_LIBOBJ invocations to module description.
36867         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
36868         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
36869         * modules/fsusage (configure.ac): ... to here.
36871 2011-05-07  Bruno Haible  <bruno@clisp.org>
36873         freopen: Move AC_LIBOBJ invocations to module description.
36874         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
36875         invocations from here...
36876         * modules/freopen (configure.ac): ... to here.
36878 2011-05-07  Bruno Haible  <bruno@clisp.org>
36880         free: Move AC_LIBOBJ invocations to module description.
36881         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
36882         invocations from here...
36883         * modules/free (configure.ac): ... to here.
36885 2011-05-07  Bruno Haible  <bruno@clisp.org>
36887         freadable: Move AC_LIBOBJ invocations to module description.
36888         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
36889         here...
36890         * modules/freadable (configure.ac): ... to here.
36892 2011-05-07  Bruno Haible  <bruno@clisp.org>
36894         fpurge: Move AC_LIBOBJ invocations to module description.
36895         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
36896         invocations from here...
36897         * modules/fpurge (configure.ac): ... to here.
36899 2011-05-07  Bruno Haible  <bruno@clisp.org>
36901         fpending: Move AC_LIBOBJ invocations to module description.
36902         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
36903         gl_FUNC_FPENDING.
36904         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
36905         invocations from here...
36906         * modules/fpending (configure.ac): ... to here.
36908 2011-05-07  Bruno Haible  <bruno@clisp.org>
36910         fopen: Move AC_LIBOBJ invocations to module description.
36911         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
36912         invocations from here...
36913         * modules/fopen (configure.ac): ... to here.
36915 2011-05-07  Bruno Haible  <bruno@clisp.org>
36917         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
36918         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
36919         gl_FUNC_FNMATCH_POSIX.
36920         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
36921         invocations from here...
36922         * modules/fnmatch (configure.ac): ... to here.
36923         * modules/fnmatch-gnu (configure.ac): ... and here.
36925 2011-05-07  Bruno Haible  <bruno@clisp.org>
36927         flock: Move AC_LIBOBJ invocations to module description.
36928         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
36929         invocations from here...
36930         * modules/flock (configure.ac): ... to here.
36932 2011-05-07  Bruno Haible  <bruno@clisp.org>
36934         fileblocks: Move AC_LIBOBJ invocations to module description.
36935         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
36936         gl_PREREQ_FILEBLOCKS invocations from here...
36937         * modules/fileblocks (configure.ac): ... to here.
36939 2011-05-06  Bruno Haible  <bruno@clisp.org>
36941         fflush: Move AC_LIBOBJ invocations to module description.
36942         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
36943         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
36944         invocations from here...
36945         * modules/fflush (configure.ac): ... to here.
36947 2011-05-06  Bruno Haible  <bruno@clisp.org>
36949         fdopendir: Move AC_LIBOBJ invocations to module description.
36950         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
36951         here...
36952         * modules/fdopendir (configure.ac): ... to here.
36953         (Depends-on): Improve conditions.
36955 2011-05-06  Bruno Haible  <bruno@clisp.org>
36957         _Exit: Move AC_LIBOBJ invocations to module description.
36958         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
36959         invocations from here...
36960         * modules/_Exit (configure.ac): ... to here.
36962 2011-05-21  Bruno Haible  <bruno@clisp.org>
36964         euidaccess: Respect rules for use of AC_LIBOBJ.
36965         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
36966         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
36967         from here...
36968         * modules/euidaccess (configure.ac): ... to here.
36970 2011-05-06  Bruno Haible  <bruno@clisp.org>
36972         error: Move AC_LIBOBJ invocations to module description.
36973         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
36974         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
36975         invocations from here...
36976         * modules/error (configure.ac): ... to here.
36978 2011-05-06  Bruno Haible  <bruno@clisp.org>
36980         duplocale: Move AC_LIBOBJ invocations to module description.
36981         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
36982         gl_PREREQ_DUPLOCALE invocations from here...
36983         * modules/duplocale (configure.ac): ... to here.
36985 2011-05-05  Bruno Haible  <bruno@clisp.org>
36987         dirfd: Move AC_LIBOBJ invocations to module description.
36988         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
36989         gl_FUNC_DIRFD.
36990         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
36991         here...
36992         * modules/dirfd (configure.ac): ... to here.
36993         (Depends-on): Fix condition.
36995 2011-05-05  Bruno Haible  <bruno@clisp.org>
36997         chown: Respect rules for use of AC_LIBOBJ.
36998         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
36999         * modules/chown (configure.ac): ... to here.
37001 2011-05-05  Bruno Haible  <bruno@clisp.org>
37003         chdir-long: Move AC_LIBOBJ invocations to module description.
37004         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
37005         gl_PREREQ_CHDIR_LONG invocations from here...
37006         * modules/chdir-long (configure.ac): ... to here.
37008 2011-05-05  Bruno Haible  <bruno@clisp.org>
37010         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
37011         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
37012         from here...
37013         * modules/canonicalize-lgpl (configure.ac): ... to here.
37015 2011-05-05  Bruno Haible  <bruno@clisp.org>
37017         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
37018         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
37019         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
37020         REPLACE_CALLOC.
37021         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
37022         * modules/calloc-gnu (configure.ac): Likewise.
37024 2011-05-05  Bruno Haible  <bruno@clisp.org>
37026         btowc: Move AC_LIBOBJ invocations to module description.
37027         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
37028         invocations from here...
37029         * modules/btowc (configure.ac): ... to here.
37031 2011-05-21  Bruno Haible  <bruno@clisp.org>
37033         atexit: Move AC_LIBOBJ invocations to module description.
37034         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
37035         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
37036         here...
37037         * modules/atexit (configure.ac): ... to here.
37039 2011-05-05  Bruno Haible  <bruno@clisp.org>
37041         atoll: Move AC_LIBOBJ invocations to module description.
37042         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
37043         invocations from here...
37044         * modules/atoll (configure.ac): ... to here.
37046 2011-05-05  Bruno Haible  <bruno@clisp.org>
37048         argz: Move AC_LIBOBJ invocations to module description.
37049         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
37050         * modules/argz (configure.ac): ... to here.
37052 2011-05-05  Bruno Haible  <bruno@clisp.org>
37054         alphasort: Move AC_LIBOBJ invocations to module description.
37055         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
37056         gl_PREREQ_ALPHASORT invocations from here...
37057         * modules/alphasort (configure.ac): ... to here.
37059 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
37061         verify: new macro verify_expr; verify_true deprecated
37062         * NEWS: Mention this.
37063         * doc/verify.texi (Compile-time Assertions): Document this.
37064         * lib/verify.h (verify_true): Deprecate.
37065         (verify_expr): New macro.
37066         * tests/test-verify.c (function): Test verify_expr.
37068 2011-06-14  Jim Meyering  <meyering@redhat.com>
37070         init.sh: give more portable redirection-related advice in a comment
37071         * tests/init.sh (stderr_fileno_): Update the advice in comments.
37072         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
37073         for lots of discussion.  Stefano Lattarini suggested the solution
37074         of putting "9>&2" after the command.  Reported by Bruno Haible.
37076 2011-06-13  Bruno Haible  <bruno@clisp.org>
37078         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
37079         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
37080         'none'.
37082 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
37084         ftoastr: use strtof only if HAVE_STRTOF
37085         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
37086         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
37087         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
37088         * modules/ftoastr (configure.ac): Check for strtof.
37090 2011-06-13  Bruno Haible  <bruno@clisp.org>
37092         gnulib-tool: Addendum to 2011-06-08 commit.
37093         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
37094         and --witness-c-macro have been given, augment AM_CPPFLAGS.
37096 2011-06-13  Bruno Haible  <bruno@clisp.org>
37098         fseeko: Provide a non-inline replacement of fseek().
37099         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
37100         * modules/fseeko (Depends-on): Add fseek.
37101         * modules/fseek (License): Change to LGPLv2+.
37103 2011-06-13  Bruno Haible  <bruno@clisp.org>
37105         ftello: Provide a non-inline replacement of ftell().
37106         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
37107         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
37108         not have ftello() (such as on mingw).
37109         * modules/ftello (Depends-on): Add ftell.
37110         * modules/ftell (License): Change to LGPLv2+.
37112 2011-05-07  Bruno Haible  <bruno@clisp.org>
37114         ftell: Move AC_LIBOBJ invocations to module description.
37115         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
37116         * modules/ftell (configure.ac): ... to here.
37118 2011-05-07  Bruno Haible  <bruno@clisp.org>
37120         ftello: Respect rules for use of AC_LIBOBJ.
37121         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
37122         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
37123         here...
37124         * modules/ftello (configure.ac): ... to here.
37126 2011-05-07  Bruno Haible  <bruno@clisp.org>
37128         fseeko: Simplify.
37129         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
37130         (gl_FUNC_FSEEKO): Inline it here.
37132 2011-05-07  Bruno Haible  <bruno@clisp.org>
37134         fseek: Move AC_LIBOBJ invocations to module description.
37135         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
37136         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
37137         * modules/fseek (configure.ac): ... to here.
37139 2011-05-07  Bruno Haible  <bruno@clisp.org>
37141         fseek: Respect rules for use of AC_LIBOBJ.
37142         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
37143         here...
37144         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
37146 2011-05-07  Bruno Haible  <bruno@clisp.org>
37148         fseeko: Respect rules for use of AC_LIBOBJ.
37149         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
37150         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
37151         here...
37152         * modules/fseeko (configure.ac): ... to here.
37154 2011-06-13  Bruno Haible  <bruno@clisp.org>
37156         gnulib-tool: Allow comments in the 'Depends-on' section.
37157         * doc/gnulib.texi (Module description): Mention comment syntax in the
37158         Depends-on section.
37159         * gnulib-tool (func_get_dependencies): Filter out comment lines.
37161 2011-06-13  Bruno Haible  <bruno@clisp.org>
37163         file-set.h: guard __attibute__ use, now that it's not always defined
37164         * lib/file-set.h (record_file): Use __attribute__ only with compiler
37165         versions that support it.  This fixes a coreutils build failure with
37166         the vendor cc on HP-UX 11.31.
37168 2011-06-12  Bruno Haible  <bruno@clisp.org>
37170         acl: Add support for HP-UX >= 11.11 JFS ACLs.
37171         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
37172         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
37173         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
37174         (acl, aclsort): New declarations.
37175         (aclv_nontrivial): New declaration.
37176         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
37177         (file_has_acl): Read also the second kind of HP-UX ACLs.
37178         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
37179         kind of HP-UX ACLs if the first kind fails.
37180         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
37181         second kind of HP-UX ACLs.
37182         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
37183         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
37184         agree.
37185         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
37186         hpuxjfs.
37187         Handle hpuxjfs.
37188         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
37189         hpuxjfs.
37190         Handle hpuxjfs.
37191         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
37192         (func_test_same_acls): Use both lsacl and getacl.
37193         Handle hpuxjfs.
37194         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
37195         (func_test_same_acls): Use both lsacl and getacl.
37196         Handle hpuxjfs.
37198 2011-06-12  Bruno Haible  <bruno@clisp.org>
37200         acl: Complete the 2010-08-10 fix.
37201         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
37202         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
37203         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
37204         explicitly.
37205         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
37206         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
37208 2011-06-12  Bruno Haible  <bruno@clisp.org>
37210         spawn-pipe tests: Comments.
37211         * tests/test-spawn-pipe-child.c (main): Update comment.
37212         Reported by James Youngman <jay@gnu.org>.
37214 2011-06-11  James Youngman  <jay@gnu.org>
37216         New module 'stat-size'.
37217         * modules/stat-size: New module.  Provides macros for accessing
37218         file size information in instances of struct stat.  Depends on the
37219         fileblocks module because it calls st_blocks.
37220         * lib/stat-size.h: New file, adapted from coreutils' system.h.
37221         * doc/gnulib.texi: Include stat-size.texi.
37222         * doc/stat-size.texi: Documentation for this module.
37223         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
37224         * m4/fileblocks.m4: Mention that stat-size depends on the call to
37225         AC_STRUCT_ST_BLOCKS.
37227 2011-06-09  Bruno Haible  <bruno@clisp.org>
37229         thread: Support pthreads-win32.
37230         * lib/glthread/thread.h (gl_thread_self): Define differently on
37231         pthreads-win32.
37232         (gl_null_thread): New declaration.
37233         (gl_thread_self_pointer): New macro.
37234         * lib/glthread/thread.c (gl_null_thread): New constant.
37235         * tests/test-lock.c: Use gl_thread_self_pointer instead of
37236         gl_thread_self.
37237         * tests/test-tls.c: Likewise.
37238         Suggested by Paul Eggert. Reported by Eric Blake.
37240 2011-06-09  Bruno Haible  <bruno@clisp.org>
37242         thread: Fix confusion between NULL and 0.
37243         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
37244         Reported by Paul Eggert.
37246 2011-06-09  Bruno Haible  <bruno@clisp.org>
37248         spawn-pipe tests: Avoid test failure on HP-UX 11.
37249         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
37250         is closed.
37252 2011-06-09  Bruno Haible  <bruno@clisp.org>
37254         acl tests: Fix compilation error on HP-UX 11.
37255         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
37257 2011-06-09  Bruno Haible  <bruno@clisp.org>
37259         rmdir: Avoid test failure on HP-UX 10.20.
37260         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
37261         EEXIST.
37263 2011-06-08  Eric Blake  <eblake@redhat.com>
37265         perror: fix test on mingw
37266         * modules/perror-tests (Depends-on): Add dup2.
37268         strerror_r-posix: fix on MacOS
37269         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
37270         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
37271         logic bug.
37272         * lib/strerror_r.c (strerror_r): Fix the bug.
37273         * lib/strerror.c (strerror): Likewise.
37274         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
37275         problem.
37276         * doc/posix-functions/strerror.texi (strerror): Likewise.
37277         * doc/posix-functions/perror.texi (perror): Likewise.
37278         * tests/test-strerror.c (main): Enhance test.
37279         * tests/test-strerror_r.c (main): Likewise.
37281 2011-06-08  Bruno Haible  <bruno@clisp.org>
37283         gnulib-tool: Better isolation between different gnulib-tool invocations.
37284         * gnulib-tool: New option --witness-c-macro.
37285         (witness_c_macro): New variable.
37286         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
37287         AM_CPPFLAGS define it as a C macro.
37288         (func_emit_tests_Makefile_am): Likewise.
37289         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
37290         read it from there.
37291         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
37292         m4_define, not AC_DEFUN.
37293         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
37294         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
37295         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
37296         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
37297         s|...|...|, to substitute the values of the GNULIB_* module indicator
37298         variables.
37299         * modules/dirent (Makefile.am): Likewise.
37300         * modules/fcntl-h (Makefile.am): Likewise.
37301         * modules/iconv-h (Makefile.am): Likewise.
37302         * modules/langinfo (Makefile.am): Likewise.
37303         * modules/locale (Makefile.am): Likewise.
37304         * modules/math (Makefile.am): Likewise.
37305         * modules/netdb (Makefile.am): Likewise.
37306         * modules/poll-h (Makefile.am): Likewise.
37307         * modules/pty (Makefile.am): Likewise.
37308         * modules/search (Makefile.am): Likewise.
37309         * modules/signal (Makefile.am): Likewise.
37310         * modules/spawn (Makefile.am): Likewise.
37311         * modules/stdio (Makefile.am): Likewise.
37312         * modules/stdlib (Makefile.am): Likewise.
37313         * modules/string (Makefile.am): Likewise.
37314         * modules/sys_ioctl (Makefile.am): Likewise.
37315         * modules/sys_select (Makefile.am): Likewise.
37316         * modules/sys_socket (Makefile.am): Likewise.
37317         * modules/sys_stat (Makefile.am): Likewise.
37318         * modules/sys_times (Makefile.am): Likewise.
37319         * modules/sys_utsname (Makefile.am): Likewise.
37320         * modules/sys_wait (Makefile.am): Likewise.
37321         * modules/termios (Makefile.am): Likewise.
37322         * modules/time (Makefile.am): Likewise.
37323         * modules/unistd (Makefile.am): Likewise.
37324         * modules/wchar (Makefile.am): Likewise.
37326 2011-06-08  Eric Blake  <eblake@redhat.com>
37328         strerror: simplify replacement
37329         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
37330         * modules/strerror (configure.ac): No prereqs needed here...
37331         * modules/strerror-override (configure.ac): ...but this needs it.
37332         (Files): Add file for needed prereq macro.
37334 2011-06-08  Bruno Haible  <bruno@clisp.org>
37336         strerror_r-posix: Tweaks.
37337         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
37338         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
37339         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
37340         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
37341         (gl_FUNC_STRERROR_R): ... to here.
37342         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
37344 2011-06-07  Eric Blake  <eblake@redhat.com>
37346         perror: document fixed bugs
37347         * doc/posix-functions/perror.texi (perror): Document recent
37348         patches.
37350 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
37352         stat-time: get_stat_birthtime failure is better-defined
37353         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
37354         return a timestamp whose tv_sec and tv_nsec values are both -1.
37355         Previously, the spec said only that the tv_nsec value was negative.
37356         This upward-compatible change simplifies GNU tar a bit.
37358 2011-06-07  Eric Blake  <eblake@redhat.com>
37360         strerror_r-posix: work around cygwin 1.7.9
37361         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
37362         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
37363         bug without replacing strerror_r.
37364         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
37365         strerror_r is buggy, but without requiring strerror_r compilation.
37366         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
37368         test-perror: relax test to ignore cygwin bug
37369         * tests/test-perror2.c (main): Relax test on requiring detection
37370         of stream errors, and use unbuffered stream.
37371         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
37372         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
37373         * doc/posix-functions/fputc.texi (fputc): Likewise.
37374         * doc/posix-functions/fputs.texi (fputs): Likewise.
37375         * doc/posix-functions/fputws.texi (fputws): Likewise.
37376         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
37377         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
37378         * doc/posix-functions/getopt.texi (getopt): Likewise.
37379         * doc/posix-functions/perror.texi (perror): Likewise.
37380         * doc/posix-functions/printf.texi (printf): Likewise.
37381         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
37382         * doc/posix-functions/psignal.texi (psignal): Likewise.
37383         * doc/posix-functions/putc.texi (putc): Likewise.
37384         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
37385         Likewise.
37386         * doc/posix-functions/putchar.texi (putchar): Likewise.
37387         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
37388         Likewise.
37389         * doc/posix-functions/puts.texi (puts): Likewise.
37390         * doc/posix-functions/putwc.texi (putwc): Likewise.
37391         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
37392         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
37393         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
37394         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
37395         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
37396         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
37397         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37398         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
37400 2011-05-22  Bruno Haible  <bruno@clisp.org>
37402         strerror: Move AC_LIBOBJ invocations to module description.
37403         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
37404         gl_PREREQ_STRERROR invocations from here...
37405         * modules/strerror (configure.ac): ... to here.
37407 2011-05-21  Bruno Haible  <bruno@clisp.org>
37409         perror: Use common idiom.
37410         * modules/perror (configure.ac): Reorder statements.
37412 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
37414         tests: fix usage message in 'mktempd_'
37415         * tests/init.sh (mktempd_): In the usage message, use literal
37416         'mktempd_', not '$ME' (which is even undefined), as the name of
37417         the subroutine.
37419 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
37421         tests init: new function 'fatal_', for hard errors
37422         Before this patch, the only way offered by tests/init.sh to
37423         properly signal a hard error was the `framework_failure_'
37424         function.  But the error message issued by that function,
37425         as its name would suggest, refers to a set-up failure in the
37426         testsuite, while hard errors can obviously also be due to
37427         other reasons.  The best way to fix this inconsistency is to
37428         introduce a new function with a more general error message.
37429         * tests/init.sh (fatal_): New function.
37431 2011-06-06  Eric Blake  <eblake@redhat.com>
37433         canonicalize-lgpl: use common idiom
37434         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
37435         over newer POSIX -Rf.
37436         Reported by Bruno Haible.
37438         canonicalize-lgpl: work around AIX realpath bug
37439         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
37440         * doc/posix-functions/realpath.texi (realpath): Document it.
37441         Reported by Bruno Haible.
37443         strerror: work around FreeBSD bug
37444         * lib/strerror.c (strerror): Special case 0.
37445         Reported by Bruno Haible.
37447         strerror-override: avoid bloating errno module
37448         * modules/errno (Files, configure.ac): Move replacement strings...
37449         * modules/strerror-override: ...to new module.
37450         * modules/strerror (Depends-on): Add strerror-override.
37451         * modules/strerror_r-posix (Depends-on): Likewise.
37452         * MODULES.html.sh: Document new module.
37453         Reported by Bruno Haible.
37455 2011-06-06  Bruno Haible  <bruno@clisp.org>
37457         spawn-pipe tests: Rename program.
37458         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
37459         * tests/test-spawn-pipe-child.c: Update comment.
37460         * tests/test-spawn-pipe.sh: Update.
37461         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
37463         spawn-pipe tests: Link the child program only against libc.
37464         * tests/test-spawn-pipe-child.c: New file, extracted from
37465         tests/test-spawn-pipe.c.
37466         (main): Expect only one argument.
37467         (is_open): New function, copied from tests/test-pipe.c.
37468         * tests/test-spawn-pipe.c: Don't include <errno.h>.
37469         (child_main): Remove function.
37470         (test_pipe): Pass only one argument to the child program.
37471         (main): Remove child process code. Expect the child program's name as
37472         first argument.
37473         * tests/test-spawn-pipe.sh: Pass the child program's name as first
37474         argument.
37475         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
37476         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
37477         test-spawn-pipe-child against no libraries.
37479 2011-06-06  Bruno Haible  <bruno@clisp.org>
37481         careadlinkat: Avoid mismatch between ssize_t and int.
37482         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
37483         * lib/careadlinkat.c (careadlinkatcwd): Define always.
37485 2011-06-06  Jim Meyering  <meyering@redhat.com>
37487         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
37488         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
37489         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
37491 2011-06-05  Bruno Haible  <bruno@clisp.org>
37493         ansi-c++-opt: Interoperability with libtool.
37494         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
37495         set the variable to "no", not to ":".
37496         * NEWS: Mention the change.
37498 2011-06-05  Bruno Haible  <bruno@clisp.org>
37500         acl: Fix test failure on AIX 7.
37501         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
37502         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
37504 2011-06-05  Bruno Haible  <bruno@clisp.org>
37506         pipe-filter-ii: Fix test failure on AIX and IRIX.
37507         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
37508         with EAGAIN, retry with a smaller buffer size.
37510 2011-06-05  Bruno Haible  <bruno@clisp.org>
37512         localename: Fix link dependencies.
37513         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
37514         * modules/localename-tests (Makefile.am): Link test-localename with
37515         $(LIBTHREAD).
37517 2011-06-05  Bruno Haible  <bruno@clisp.org>
37519         error: Avoid gcc warning.
37520         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
37522 2011-06-05  Bruno Haible  <bruno@clisp.org>
37524         unsetenv: Avoid gcc warning.
37525         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
37527 2011-06-05  Bruno Haible  <bruno@clisp.org>
37529         setenv: Avoid gcc warning.
37530         * lib/setenv.c (setenv): Provide declaration if system lacks it.
37532 2011-06-05  Bruno Haible  <bruno@clisp.org>
37534         sys_select: Ensure memset is declared also on AIX 7.
37535         * lib/sys_select.in.h: Include <string.h> also on AIX.
37536         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
37537         self-contained also on AIX 7.1.
37539 2011-06-04  Jim Meyering  <meyering@redhat.com>
37541         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
37542         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
37543         function name, "error".
37544         (_gl_translatable_diag_func_re): New configurable variable.
37546 2011-06-04  Bruno Haible  <bruno@clisp.org>
37548         getopt: Avoid gcc warning.
37549         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
37551 2011-06-04  Bruno Haible  <bruno@clisp.org>
37553         strerror_r: Fix comments.
37554         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
37555         commit.
37557 2011-06-04  Bruno Haible  <bruno@clisp.org>
37559         perror: Fix compilation error.
37560         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
37561         Undefine fprintf, not sprintf.
37562         * modules/perror (Depends-on): Remove intprops, verify.
37564 2011-06-04  Bruno Haible  <bruno@clisp.org>
37566         setlocale: Enable replacement on Cygwin 1.5.
37567         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
37568         Cygwin 1.5.x.
37569         * doc/posix-functions/setlocale.texi: Mention that the problem with the
37570         LC_CTYPE category also exists on Cygwin 1.5.x.
37572 2011-06-04  Bruno Haible  <bruno@clisp.org>
37574         strerror-override: Don't disable symbol renamings.
37575         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
37576         * lib/strerror-override.c: Include config.h.
37577         (strerror_override): Don't undefine.
37579 2011-06-03  Bruno Haible  <bruno@clisp.org>
37581         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
37582         * lib/localename.h: Update copyright header.
37583         * lib/localename.c: Likewise.
37584         * lib/relocatable.h: Likewise.
37585         * lib/relocatable.c: Likewise.
37587 2011-06-02  Bruno Haible  <bruno@clisp.org>
37589         doc: Fix a module name.
37590         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
37592 2011-06-02  Bruno Haible  <bruno@clisp.org>
37594         pipe2: Remove dependency on 'nonblocking' module.
37595         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
37596         O_NONBLOCK is defined by gnulib.
37597         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
37598         is zero.
37599         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
37600         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
37601         defined by gnulib.
37602         (get_nonblocking_flag): New function.
37603         (main): Test O_NONBLOCK flag only if it is nonzero.
37604         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
37606 2011-06-03  Jim Meyering  <meyering@redhat.com>
37608         maint: three new prohibit-header-without-use rules
37609         Prohibit use of cloexec.h, posixver.h, same.h without use.
37610         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
37611         (sc_prohibit_posixver_without_use): Likewise.
37612         (sc_prohibit_same_without_use): Likewise.
37614 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37616         allocator: 'die' routine is now given requested size
37617         * lib/allocator.h (struct allocator.die): New size arg.
37618         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
37619         If the actual problem is an ssize_t limitation, not a size_t or
37620         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
37622 2011-06-01  Eric Blake  <eblake@redhat.com>
37624         strerror: drop strerror_r dependency
37625         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
37626         * lib/strerror-override.c (strerror_override): ...to new file.
37627         * lib/strerror-override.h: Add prototype.
37628         * lib/strerror-impl.h: Delete.
37629         * lib/strerror.c (strerror): New implementation.
37630         * modules/errno (Files): Add new files.
37631         (configure.ac): Compile new file as appropriate.
37632         * modules/strerror (Files): Drop unused file.
37633         (Depends-on): Drop strerror_r-posix.
37634         * MODULES.html.sh: Document strerror_r-posix.
37635         Requested by Sam Steingold.
37637         perror: call strerror_r directly
37638         * modules/perror (Files): Drop strerror-impl.h.
37639         * lib/perror.c (perror): Use our own stack buffer, rather than
37640         calling a wrapper that uses static storage.
37641         * doc/posix-functions/perror.texi (perror): Document a limitation
37642         of our replacement.
37644         strerror_r: fix includes for FreeBSD
37645         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
37646         since we use abort on some platforms.
37647         Reported by Matthias Bolte.
37649 2011-05-31  Bruno Haible  <bruno@clisp.org>
37651         Fix link errors in tests: openat-die uses gettext-h.
37652         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
37653         against $(LIBINTL).
37654         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
37655         against $(LIBINTL).
37656         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
37657         $(LIBINTL).
37658         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
37659         against $(LIBINTL).
37660         * modules/linkat-tests (Makefile.am): Link test-linkat against
37661         $(LIBINTL).
37662         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
37663         $(LIBINTL).
37664         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
37665         against $(LIBINTL).
37666         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
37667         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
37668         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
37669         $(LIBINTL).
37670         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
37671         $(LIBINTL).
37672         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
37673         $(LIBINTL).
37674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37676 2011-05-31  Bruno Haible  <bruno@clisp.org>
37678         Fix link errors in tests: wait-process uses gettext-h.
37679         * modules/nonblocking-pipe-tests (Makefile.am): Set
37680         test_nonblocking_pipe_main_LDADD.
37681         * modules/nonblocking-socket-tests (Makefile.am): Link
37682         test-nonblocking-socket-main against $(LIBINTL).
37683         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37685 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
37687         assert-h: work around 'verify' incompatibility
37688         * lib/verify.h: Use @...@ directives, not ifdef.
37689         * modules/assert-h (assert.h): Implement the directives.
37690         (assert.h): Substitute the symbol-prefix more consistently.
37692 2011-05-29  Jim Meyering  <meyering@redhat.com>
37694         trim: remove three superfluous assignments
37695         * lib/trim.c (trim2): Remove three superfluous assignments
37696         and correct brace positioning.
37698 2011-05-29  Bruno Haible  <bruno@clisp.org>
37700         wctype-h: Avoid namespace pollution on Solaris 2.6.
37701         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
37702         identifiers.
37703         * doc/posix-headers/wctype.texi: Mention the problem.
37704         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37706 2011-05-28  Jim Meyering  <meyering@redhat.com>
37708         parse-datetime.y: accommodate -Wstrict-overflow
37709         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
37710         placate -Wstrict-overflow.
37712         trim: avoid a warning from -O2 -Wstrict-overflow
37713         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
37715 2011-05-29  Bruno Haible  <bruno@clisp.org>
37717         gnulib-tool: Fix bug in yesterday's commit.
37718         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
37719         twice.
37721 2011-05-29  Bruno Haible  <bruno@clisp.org>
37723         Allow multiple gnulib generated include files to be combined.
37724         * gnulib-tool (func_compute_include_guard_prefix): New function.
37725         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
37726         ${gl_include_guard_prefix} references.
37727         (func_import, func_create_testdir): Invoke
37728         func_compute_include_guard_prefix.
37729         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
37730         * lib/ctype.in.h: Likewise.
37731         * lib/dirent.in.h: Likewise.
37732         * lib/errno.in.h: Likewise.
37733         * lib/fcntl.in.h: Likewise.
37734         * lib/float.in.h: Likewise.
37735         * lib/getopt.in.h: Likewise.
37736         * lib/iconv.in.h: Likewise.
37737         * lib/langinfo.in.h: Likewise.
37738         * lib/locale.in.h: Likewise.
37739         * lib/math.in.h: Likewise.
37740         * lib/netdb.in.h: Likewise.
37741         * lib/netinet_in.in.h: Likewise.
37742         * lib/poll.in.h: Likewise.
37743         * lib/pthread.in.h: Likewise.
37744         * lib/pty.in.h: Likewise.
37745         * lib/sched.in.h: Likewise.
37746         * lib/se-selinux.in.h: Likewise.
37747         * lib/search.in.h: Likewise.
37748         * lib/signal.in.h: Likewise.
37749         * lib/spawn.in.h: Likewise.
37750         * lib/stdarg.in.h: Likewise.
37751         * lib/stddef.in.h: Likewise.
37752         * lib/stdint.in.h: Likewise.
37753         * lib/stdio.in.h: Likewise.
37754         * lib/stdlib.in.h: Likewise.
37755         * lib/string.in.h: Likewise.
37756         * lib/strings.in.h: Likewise.
37757         * lib/sys_file.in.h: Likewise.
37758         * lib/sys_ioctl.in.h: Likewise.
37759         * lib/sys_select.in.h: Likewise.
37760         * lib/sys_socket.in.h: Likewise.
37761         * lib/sys_stat.in.h: Likewise.
37762         * lib/sys_time.in.h: Likewise.
37763         * lib/sys_times.in.h: Likewise.
37764         * lib/sys_uio.in.h: Likewise.
37765         * lib/sys_utsname.in.h: Likewise.
37766         * lib/sys_wait.in.h: Likewise.
37767         * lib/sysexits.in.h: Likewise.
37768         * lib/termios.in.h: Likewise.
37769         * lib/time.in.h: Likewise.
37770         * lib/unistd.in.h: Likewise.
37771         * lib/wchar.in.h: Likewise.
37772         * lib/wctype.in.h: Likewise.
37773         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
37774         * modules/ctype (Makefile.am): Likewise.
37775         * modules/dirent (Makefile.am): Likewise.
37776         * modules/errno (Makefile.am): Likewise.
37777         * modules/fcntl-h (Makefile.am): Likewise.
37778         * modules/float (Makefile.am): Likewise.
37779         * modules/getopt-posix (Makefile.am): Likewise.
37780         * modules/iconv-h (Makefile.am): Likewise.
37781         * modules/langinfo (Makefile.am): Likewise.
37782         * modules/locale (Makefile.am): Likewise.
37783         * modules/math (Makefile.am): Likewise.
37784         * modules/netdb (Makefile.am): Likewise.
37785         * modules/netinet_in (Makefile.am): Likewise.
37786         * modules/poll-h (Makefile.am): Likewise.
37787         * modules/pthread (Makefile.am): Likewise.
37788         * modules/pty (Makefile.am): Likewise.
37789         * modules/sched (Makefile.am): Likewise.
37790         * modules/search (Makefile.am): Likewise.
37791         * modules/selinux-h (Makefile.am): Likewise.
37792         * modules/signal (Makefile.am): Likewise.
37793         * modules/spawn (Makefile.am): Likewise.
37794         * modules/stdarg (Makefile.am): Likewise.
37795         * modules/stddef (Makefile.am): Likewise.
37796         * modules/stdint (Makefile.am): Likewise.
37797         * modules/stdio (Makefile.am): Likewise.
37798         * modules/stdlib (Makefile.am): Likewise.
37799         * modules/string (Makefile.am): Likewise.
37800         * modules/strings (Makefile.am): Likewise.
37801         * modules/sys_file (Makefile.am): Likewise.
37802         * modules/sys_ioctl (Makefile.am): Likewise.
37803         * modules/sys_select (Makefile.am): Likewise.
37804         * modules/sys_socket (Makefile.am): Likewise.
37805         * modules/sys_stat (Makefile.am): Likewise.
37806         * modules/sys_time (Makefile.am): Likewise.
37807         * modules/sys_times (Makefile.am): Likewise.
37808         * modules/sys_uio (Makefile.am): Likewise.
37809         * modules/sys_utsname (Makefile.am): Likewise.
37810         * modules/sys_wait (Makefile.am): Likewise.
37811         * modules/sysexits (Makefile.am): Likewise.
37812         * modules/termios (Makefile.am): Likewise.
37813         * modules/time (Makefile.am): Likewise.
37814         * modules/unistd (Makefile.am): Likewise.
37815         * modules/wchar (Makefile.am): Likewise.
37816         * modules/wctype-h (Makefile.am): Likewise.
37817         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
37819 2011-05-29  Bruno Haible  <bruno@clisp.org>
37821         assert-h: Allow multiple gnulib generated replacements to coexist.
37822         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
37824 2011-05-29  Bruno Haible  <bruno@clisp.org>
37826         argp: Allow coexistence with strerror_r-posix module.
37827         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
37828         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
37829         by gnulib's <string.h> replacement), assume it has the POSIX signature,
37830         not the glibc signature.
37832 2011-05-28  Bruno Haible  <bruno@clisp.org>
37834         gnulib-tool: Alternative structure of testdirs, similar to --import.
37835         * gnulib-tool: New option --single-configure.
37836         (func_usage): Document it.
37837         (single_configure): New variable.
37838         (func_modules_transitive_closure_separately,
37839         func_modules_transitive_closure_separately,
37840         func_determine_use_libtests, func_modules_add_dummy_separately,
37841         func_modules_to_filelist_separately): New functions, extracted from
37842         func_import.
37843         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
37844         (func_import): Use the new functions.
37845         (func_create_testdir): Set final_modules. Handle $single_configure =
37846         true case.
37848 2011-05-28  Bruno Haible  <bruno@clisp.org>
37850         getloadavg: Remove an unreliable safety check.
37851         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
37852         getloadavg.c is in place.
37853         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
37854         Reported by Sam Steingold <sds@gnu.org>.
37856 2011-05-28  Bruno Haible  <bruno@clisp.org>
37858         doc: Cleanup yet another file produced by texinfo.tex.
37859         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
37861 2011-05-28  Bruno Haible  <bruno@clisp.org>
37863         Finish the conditional dependencies mechanism.
37864         * gnulib-tool: New option --no-conditional-dependencies.
37865         (func_usage): Document it. Don't mark --conditional-dependencies as
37866         experimental.
37867         (cond_dependencies): The possible values can now be true, false, empty.
37868         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
37869         (func_import): Store setting in gnulib-cache.m4 and read it from there.
37870         * doc/gnulib-tool.texi (Conditional dependencies): New section.
37872 2011-05-28  Bruno Haible  <bruno@clisp.org>
37874         doc: Use a recent texinfo.tex.
37875         * doc/Makefile (tex_opts): New variable.
37876         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
37878 2011-05-28  Jim Meyering  <meyering@redhat.com>
37880         intprops.h: adjust comment to match code change
37881         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
37882         only once, it *may* have side effects.  Also fix an unrelated typo.
37883         (_GL_INT_SIGNED): Likewise.
37885 2011-05-26  Simon Josefsson  <simon@josefsson.org>
37887         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
37889 2011-05-26  Bruno Haible  <bruno@clisp.org>
37891         mbsrchr: Avoid collision with system function on Interix.
37892         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
37893         Reported by Markus Duft <mduft@gentoo.org>.
37895 2011-05-15  James Youngman  <jay@gnu.org>
37897         getopt: for ambiguous options, enumerate the possibilities.
37898         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
37899         the ambiguous options when an ambiguous prefix is given. This was
37900         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
37901         glibc change was
37902         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
37904 2011-05-25  Eric Blake  <eblake@redhat.com>
37906         getcwd: work around mingw bug
37907         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
37908         * doc/posix-functions/getcwd.texi (getcwd): Document it.
37909         Reported by Matthias Bolte.
37911 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
37913         test-intprops: disable -Wtype-limits diagnostics
37914         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
37915         diagnostics.  Otherwise, the integer overflow macros generate many
37916         diagnostics.  Reported by Jim Meyering in
37917         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
37919         intprops: shorten, to pacify gcc -Woverlength-strings
37920         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
37921         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
37922         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
37923         likely to run afoul of C compiler limits for string constant lengths.
37924         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
37926 2011-05-24  Eric Blake  <eblake@redhat.com>
37928         docs: document recently fixed glibc printf bug
37929         * doc/posix-functions/fprintf.texi (fprintf): Document it.
37930         * doc/posix-functions/printf.texi (printf): Likewise.
37931         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
37932         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
37934         closein-tests: convert to init.sh
37935         * modules/closein-tests (Files): Add init.sh
37936         * tests/test-closein.sh Use it.
37938         yesno-tests: convert to init.sh
37939         * modules/yesno-tests (Files): Add init.sh.
37940         * tests/test-yesno.sh: Use it.
37942         atexit-tests: ensure reliable exit status
37943         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
37944         Reported by Bruno Haible.
37946 2011-05-24  Bruno Haible  <bruno@clisp.org>
37948         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
37949         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
37950         gl_PREREQ_STRERROR_R invocations from here...
37951         * modules/strerror_r-posix (configure.ac): ... to here.
37953 2011-05-24  Eric Blake  <eblake@redhat.com>
37955         strerror_r: fix missing header
37956         * lib/strerror_r.c: Avoid compiler warning about snprintf.
37958         strerror_r: fix AIX test failures
37959         * lib/strerror_r.c (strerror_r): Convert silent truncation to
37960         ERANGE failure.
37962         strerror_r: fix Solaris test failures
37963         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
37964         failures.
37965         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
37967         strerror_r: enforce POSIX recommendations
37968         * lib/strerror_r.c (safe_copy): New helper method.
37969         (strerror_r): Guarantee a non-empty string.
37970         * tests/test-strerror_r.c (main): Enhance tests to incorporate
37971         recent POSIX rulings and to match our strerror guarantees.
37972         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
37974 2011-05-24  Jim Meyering  <meyering@redhat.com>
37976         test-perror2.c: avoid warning about unused variable
37977         * tests/test-perror2.c (main): Remove declaration of unused "fp".
37979 2011-05-24  Eric Blake  <eblake@redhat.com>
37981         perror: avoid spurious test failure on HP-UX
37982         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
37984         tests: fix logic bug in init.sh
37985         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
37986         shell.
37988 2011-05-24  Jim Meyering  <meyering@redhat.com>
37990         utimensat: do not reference an out-of-scope buffer
37991         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
37992         declared in an inner scope, yet "times" would be dereferenced outside
37993         the scope in which "ts" was valid.
37994         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
37995         of ts[2] "out/up", so that the use of aliased "times" (via
37996         "times = ts;") does not end up referencing an out-of-scope "ts"
37998         opendir-safer.c: don't clobber errno; don't close negative FD
37999         * lib/opendir-safer.c (opendir_safer):
38000         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
38001         file descriptor, and more importantly, don't clobber the
38002         offending errno value with EINVAL.  Before, upon failure
38003         of dup_safer, we would pass the negative file descriptor to
38004         fdopendir, which would clobber errno.
38006 2011-05-23  Bruno Haible  <bruno@clisp.org>
38008         idcache: Fix module description.
38009         * modules/idcache (Include): Set to "idcache.h".
38011 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
38013         gnulib-tool: fix portability problem with MacOS sed
38014         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
38015         before the "}".  Problem reported by Leo in
38016         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
38017         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
38018         sed_extract_condition1, sed_extract_condition2.
38020 2011-05-23  Bruno Haible  <bruno@clisp.org>
38022         hash: Simplify autoconf macro.
38023         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
38025 2011-05-23  Bruno Haible  <bruno@clisp.org>
38027         getugroups: Fix module description.
38028         * modules/getugroups (Include): Set to "getugroups.h".
38030 2011-05-23  Bruno Haible  <bruno@clisp.org>
38032         linkat: Simplify autoconf macro.
38033         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
38035 2011-05-23  Bruno Haible  <bruno@clisp.org>
38036             Eric Blake  <eblake@redhat.com>
38038         linkat, renameat: Update dependencies.
38039         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
38040         * modules/linkat (Depends-on): Likewise. Remove also readlink,
38041         symlinkat.
38043 2011-05-23  Jim Meyering  <meyering@redhat.com>
38045         maint.mk: more tight_scope improvements
38046         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
38047         (_gl_TS_headers): Define only in if-0'd block.
38048         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
38049         sometimes we must *not* use it.  Adjust uses accordingly.
38050         (sc_tight_scope): Use much simpler grep-based test to determine
38051         whether we skip this rule.
38053         maint.mk: generalize/improve the tight-scope rule
38054         * top/maint.mk: Emit a warning when the test is skipped.
38055         (_gl_TS_dir): Add $(srcdir)/ prefix.
38056         (_gl_TS_function_match): Simplify, rather than trying
38057         to enumerate common types.  Otherwise, it would fail to match an
38058         "extern unsigned char const *" declaration in idutils.
38059         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
38060         a way to support use of that type of macro.
38061         (_gl_TS_var_match): Simplify regexp.
38062         (_gl_TS_obj_files): New configurable variable.
38063         (_gl_TS_headers): Likewise.
38065 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
38067         verify: fix bug when gnulib <assert.h> is also included
38068         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
38069         is defined, not if _GL_STATIC_ASSERT_H is not defined.
38070         Perhaps there's a better way, but this fixes the immediate problem.
38071         Problem reported by Bruno Haible in
38072         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
38074 2011-05-22  Bruno Haible  <bruno@clisp.org>
38076         xgetcwd: Simplify autoconf macro.
38077         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
38079 2011-05-22  Bruno Haible  <bruno@clisp.org>
38081         New module 'mktime-internal'.
38082         * modules/mktime-internal: New file.
38083         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
38084         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
38085         mktime_internal as a C macro if libc has __mktime_internal.
38086         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
38087         conditions.
38088         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
38090 2011-05-22  Bruno Haible  <bruno@clisp.org>
38092         timegm: Correct mktime replacement statements.
38093         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
38094         defining mktime as a C macro. This completes a 2009-07-28 commit.
38096 2011-05-22  Bruno Haible  <bruno@clisp.org>
38098         timegm: Simplify autoconf macro.
38099         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
38101 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
38103         clock-time: change to LGPLv2+.
38104         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
38105         BSD-like but we have no mark for that; this is good enough for now.
38107 2011-05-21  Bruno Haible  <bruno@clisp.org>
38109         strerror_r: Fix comments.
38110         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
38112 2011-05-21  Bruno Haible  <bruno@clisp.org>
38114         relocatable-prog-wrapper: Fix possible link error.
38115         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
38116         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
38117         (gl_FUNC_SETENV): ... to here.
38118         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
38119         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
38121 2011-05-21  Bruno Haible  <bruno@clisp.org>
38123         relocatable-prog-wrapper: Assume strerror() exists.
38124         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
38125         m4/strerror.m4.
38126         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
38127         * lib/relocwrapper.c: Remove mention of strerror module.
38128         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
38129         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
38130         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
38131         C macro.
38133 2011-05-21  Bruno Haible  <bruno@clisp.org>
38135         select: Simplify replacement idiom.
38136         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
38137         Win32 platforms.
38138         * lib/sys_select.in.h (select): Simplify accordingly.
38139         * modules/select (Depends-on): Likewise.
38141 2011-05-21  Bruno Haible  <bruno@clisp.org>
38143         mkdir-p: Simplify autoconf macro.
38144         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
38145         gl_FUNC_LCHOWN.
38147 2011-05-21  Eric Blake  <eblake@redhat.com>
38149         strerror_r: avoid clobbering strerror on cygwin
38150         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
38151         fall back instead to sys_errlist.
38152         * modules/strerror (configure.ac): Add witness.
38153         * tests/test-strerror_r.c (main): Enhance test.
38154         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
38155         * tests/test-perror2.c (main): Free memory before exit.
38157 2011-05-21  Bruno Haible  <bruno@clisp.org>
38159         mkdtemp: Use gnulib naming conventions.
38160         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
38161         * modules/mkdtemp (configure.ac): Update.
38163 2011-05-20  Eric Blake  <eblake@redhat.com>
38165         strerror_r: avoid corrupting errno on Solaris
38166         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
38167         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
38169         strerror_r: avoid compiler warning
38170         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
38172         strerror_r: simplify AIX code
38173         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
38175         test-perror: avoid spurious failure on FreeBSD
38176         * modules/perror-tests (Depends-on): Add strerror, now that
38177         strerror_r no longer pulls it in.
38179 2011-05-20  Bruno Haible  <bruno@clisp.org>
38181         strerror_r-posix: Remove unused dependencies.
38182         * modules/strerror_r-posix (Depends-on): Remove strerror.
38183         Reported by Eric Blake.
38185 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
38187         intprops: remove assumption about A|B representation
38188         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
38189         is a valid integer if both A and B are.  Although this is true for
38190         all known practical hosts, the C standard doesn't guarantee it,
38191         and the code need not assume it.  Also, this change may work around
38192         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
38193         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
38195 2011-05-20  Eric Blake  <eblake@redhat.com>
38197         perror: work around FreeBSD bug
38198         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
38199         is broken.  Move AC_LIBOBJ...
38200         * modules/perror (configure.ac): Here.
38201         * doc/posix-functions/perror.texi (perror): Document this.
38202         * tests/test-perror2.c (main): Enhance test.
38204         test-perror: check for strerror interactions
38205         * tests/macros.h (STREQ): Add macro.
38206         * modules/perror-tests (Files): Add second test.
38207         * tests/test-perror2.c (main): New file.
38208         * doc/posix-functions/perror.texi (perror): Document glibc bug.
38210         test-perror: rewrite to use init script
38211         * modules/perror-tests (Files): Add init.sh.
38212         * tests/test-perror.sh: Use temporary directory.
38214 2011-05-20  Jim Meyering  <meyering@redhat.com>
38216         maint: replace misused "a" with "an"
38217         * doc/intprops.texi: "a integer"
38218         * doc/regex.texi: "a explanation"
38219         * lib/alignof.h: "a object"
38220         * lib/argmatch.h: "a explanation"
38221         * lib/argp-help.c: "a option" and "a OPTION_DOC"
38222         * lib/stdint.in.h: "a integer"
38223         * lib/userspec.c: "a owner"
38224         * doc/gnulib.texi: Fix "a idea", and reword.
38226 2011-05-19  Jim Meyering  <meyering@redhat.com>
38228         maint: correct misuse of "a" and "an"
38229         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
38230         * lib/argp-help.c: "an docum...": s/an/a/
38231         * lib/argp-parse.c: "An vector": s/An/A/
38232         * lib/execute.c: "an native": s/an/a/
38233         * lib/spawn-pipe.c: Likewise.
38234         * lib/gc.h: "an Gc_rc": s/an/a/
38235         * lib/unigbrk.in.h: "an grapheme": s/an/a/
38236         * lib/fts.c: "an stat.st_dev": s/an/a/
38238 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
38240         intprops-tests: work around HP-UX 11.23 cc bug with constants
38241         * tests/test-intprops.c (VERIFY): New macro.
38242         (main): Use it, instead of verify, to work around the compiler bug; see
38243         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
38245         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
38246         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
38247         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
38248         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
38249         (_GL_REMAINDER_OVERFLOW): Use it.
38251         intprops-tests: revert unsigned part of previous change
38252         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
38253         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
38254         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
38255         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
38257 2011-05-19  Bruno Haible  <bruno@clisp.org>
38259         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
38260         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
38261         strerror_r() returned without filling the buffer.
38262         Reported by Eric Blake.
38264 2011-05-19  Eric Blake  <eblake@redhat.com>
38266         strerror_r: guarantee unchanged errno
38267         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
38268         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
38269         failure.
38270         * tests/test-strerror_r.c (main): Enhance test.
38272 2011-05-19  Bruno Haible  <bruno@clisp.org>
38274         strerror_r: Reorder #if blocks.
38275         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
38276         for consistency with the previous commit.
38278 2011-05-19  Bruno Haible  <bruno@clisp.org>
38280         perror: Avoid clobbering the strerror buffer when possible.
38281         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
38282         * lib/strerror.c: Include it.
38283         * modules/strerror (Files): Add lib/strerror-impl.h.
38284         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
38285         (my_strerror): New function, defined through lib/strerror-impl.h.
38286         (perror): Use it instead of strerror.
38287         * modules/perror (Files): Add lib/strerror-impl.h.
38288         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
38290 2011-05-19  Eric Blake  <eblake@redhat.com>
38292         strerror_r: fix on newer cygwin
38293         * lib/strerror_r.c (strerror_r): Cygwin now has
38294         __xpg_strerror_r, use it.
38296 2011-05-19  Bruno Haible  <bruno@clisp.org>
38298         strerror_r: Avoid clobbering the strerror buffer when possible.
38299         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
38300         (sys_nerr, sys_errlist): New declarations.
38301         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
38302         HP-UX, native Win32, IRIX, and 32-bit Solaris.
38303         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
38305 2011-05-19  Bruno Haible  <bruno@clisp.org>
38307         strerror_r: Fix test failure on mingw.
38308         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
38309         EXTEND_STRERROR_R.
38310         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
38311         macros from errno.in.h instead.
38313 2011-05-19  Eric Blake  <eblake@redhat.com>
38315         strerror: relax test for Solaris
38316         * tests/test-strerror.c (main): Permit Solaris behavior.
38317         * tests/test-strerror_r.c (main): Likewise.
38319         strerror: enforce POSIX ruling on strerror(0)
38320         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
38321         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
38322         * lib/strerror_r.c (rpl_strerror_r): Work around it.
38323         * doc/posix-functions/strerror.texi (strerror): Document it.
38324         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
38325         * tests/test-strerror.c (main): Strengthen test.
38326         * tests/test-strerror_r.c (main): Likewise.
38328 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
38330         intprop-tests: port to older and more-pedantic compilers
38331         * modules/intprops-tests (Files): Add tests/macros.h.
38332         * tests/test-intprops.c: Include macros.h.
38333         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
38334         it's no longer documented to expand to an integer constant expression.
38335         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
38336         argument is floating point, as it's no longer documented to expand
38337         to an integer constant expression in that case.
38338         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
38339         compiler bugs reported by Bruno Haible.  See
38340         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
38341         (U0, U1): New constants, to work around the same bugs.  Also,
38342         in tests, use e.g., "(unsigned int) 39" rather than "39u".
38344         intprops: work around C compiler bugs
38345         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
38346         bug in Sun C 5.11 2010/08/13 and other compilers; see
38347         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
38349         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
38350         * doc/intprops.texi (Integer Type Determination): Fix
38351         documentation for TYPE_IS_INTEGER: it returns an constant
38352         expression, not an integer constant expression.  Fix doc for
38353         TYPE_SIGNED: it returns an integer constant expression only if its
38354         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
38355         hardly worth documented that way....)
38357 2011-05-18  Bruno Haible  <bruno@clisp.org>
38359         strerror_r: Avoid clobbering the strerror buffer when possible.
38360         * lib/strerror_r.c (strerror_r): Merge the three implementations.
38361         Handle gnulib defined errno values here. When strerror() returns NULL
38362         or an empty string, return EINVAL.
38363         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
38364         gnulib defined errno values here.
38365         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
38367 2011-05-18  Eric Blake  <eblake@redhat.com>
38369         fnmatch: avoid compiler warning
38370         * lib/fnmatch_loop.c (FCT): Use correct type.
38371         Reported by Matthias Bolte.
38373 2011-05-13  Jim Meyering  <meyering@redhat.com>
38375         maint.mk: three new prohibit_<HDR>_without_use rules
38376         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
38377         (sc_prohibit_stdio-safer_without_use): Likewise.
38378         (sc_prohibit_xfreopen_without_use): Likewise.
38380 2011-05-17  Jim Meyering  <meyering@redhat.com>
38382         announce-gen: fail if the NEWS delta is empty
38383         If there's nothing noteworthy in NEWS, then either you forgot
38384         or you shouldn't be releasing.
38385         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
38387 2011-05-17  Pádraig Brady  <P@draigBrady.com>
38389         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
38390         reserved symbols starting with double underscore from the check.
38392 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
38394         intprops: add doc
38395         * doc/intprops.texi: New file, documenting intprops.
38396         * doc/gnulib.texi (Particular Modules): Include it.
38398         verify: add doc to gnulib manual and fix example
38399         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
38400         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
38401         (Compile-time Assertions): Fix example so it can't overflow.
38403 2011-05-17  Jim Meyering  <meyering@redhat.com>
38405         warnings.m4: don't usurp save_CPPFLAGS variable name
38406         * m4/warnings.m4: Prefix local temporary variable name with gl_.
38408         doc: fix typo
38409         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
38411 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
38412             Bruno Haible  <bruno@clisp.org>
38414         doc: Tweak recent change.
38415         * README (Portability guidelines): Tweak new text.
38416         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
38417         Interix 6.1.
38419 2011-05-16  Eric Blake  <eblake@redhat.com>
38421         inttypes: avoid autoconf warning
38422         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
38423         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38425 2011-05-16  Sam Steingold  <sds@gnu.org>
38426         and Eric Blake  <eblake@redhat.com>
38428         vc-list-files: accept multiple directory operands
38429         * build-aux/vc-list-files: Iterate over all remaining operands.
38431 2011-05-16  Bruno Haible  <bruno@clisp.org>
38433         Fix confusion regarding deprecated modules.
38434         * modules/calloc (Status, Notice): Mark module as deprecated, not
38435         obsolete.
38436         * modules/fnmatch-posix (Status, Notice): Likewise.
38437         * modules/getdate (Status, Notice): Likewise.
38438         * modules/getopt (Status, Notice): Likewise.
38439         * modules/malloc (Status, Notice): Likewise.
38440         * modules/pipe (Status, Notice): Likewise.
38441         * modules/realloc (Status, Notice): Likewise.
38442         * modules/rename-dest-slash (Status, Notice): Likewise.
38443         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
38444         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
38445         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
38446         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
38447         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
38449 2011-05-16  Bruno Haible  <bruno@clisp.org>
38451         doc: List the target platforms.
38452         * doc/gnulib-intro.texi (Target Platforms): New section.
38453         * doc/gnulib.texi (Introduction): Update menu.
38454         * README (Portability guidelines): Refer to the new section. Update
38455         statement about oldest supported environment. Remove rationale why
38456         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
38457         unportable C89 function.
38458         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
38459         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
38461 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
38463         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
38465 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
38467         intprops-tests: new module
38468         * modules/intprops-tests, tests/test-intprops.c: New files.
38470         intprops: add safe, portable integer overflow checking
38471         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
38472         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
38473         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
38474         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
38475         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
38476         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
38477         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
38478         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
38479         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
38480         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
38481         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
38483 2011-05-12  James Youngman  <jay@gnu.org>
38485         Add a test for glibc's Bugzilla bug #12378.
38486         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
38487         doesn't allow the literal matching of a lone "[" (which is
38488         required by POSIX).
38489         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
38491 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
38493         Sync glibc change fixing Bugzilla bug #12378.
38494         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
38495         beginning and fall back to matching as normal character if the
38496         string ends before the matching ']' is found.  This is what POSIX
38497         requires.
38499 2011-05-13  Eric Blake  <eblake@redhat.com>
38501         getcwd-lgpl: relax test for FreeBSD
38502         * doc/posix-functions/getcwd.texi (getcwd): Document portability
38503         issue.
38504         * tests/test-getcwd-lgpl.c (main): Relax test.
38505         Reported by Matthias Bolte.
38507 2011-05-11  Eric Blake  <eblake@redhat.com>
38509         test-fflush: silence compiler warning
38510         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
38512 2011-05-11  Bruno Haible  <bruno@clisp.org>
38514         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
38515         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
38516         * modules/canonicalize (Depends-on): Add 'nocrash'.
38517         * modules/canonicalize-lgpl (Depends-on): Likewise.
38518         * doc/posix-functions/realpath.texi: Update platforms list.
38519         Reported by Ryan Schmidt <ryandesign@macports.org>.
38521 2011-05-11  Bruno Haible  <bruno@clisp.org>
38523         group-member: Declare function in <unistd.h>.
38524         * lib/unistd.in.h (group_member): New declaration.
38525         * lib/group-member.h: Remove file.
38526         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
38527         * tests/test-unistd-c++.cc: Check signature of group_member.
38528         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
38529         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
38530         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
38531         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
38532         HAVE_GROUP_MEMBER.
38533         * modules/group-member (Files): Remove lib/group-member.h.
38534         (Depends-on): Add unistd. Specify conditions.
38535         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38536         (Include): Change to <unistd.h>.
38537         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
38538         HAVE_GROUP_MEMBER.
38539         * NEWS: Mention the change.
38540         * lib/euidaccess.c: Don't include group-member.h.
38542 2011-05-11  Bruno Haible  <bruno@clisp.org>
38544         group-member: Document module.
38545         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
38546         module.
38548 2011-05-11  Bruno Haible  <bruno@clisp.org>
38550         fclose: Fix mistake earlier today.
38551         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
38553 2011-05-11  Eric Blake  <eblake@redhat.com>
38555         fclose: preserve fflush errors
38556         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
38557         Reported by Jim Meyering.
38559         bootstrap: support a prereq of 'rpcgen -' on RHEL5
38560         * build-aux/bootstrap (check_versions): When no specific version
38561         is required, merely check that the app produces an exit status
38562         that indicates its existence.
38564         maint.mk: drop redundant check
38565         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
38566         the same but better.
38568 2011-05-11  Bruno Haible  <bruno@clisp.org>
38570         fclose: Fix possible link error.
38571         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
38572         unregister_shadow_fd. Improve comments.
38573         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
38574         Eric Blake.
38576 2011-05-11  Jim Meyering  <meyering@redhat.com>
38578         maint.mk: improve "can not" detection and generalize rule name
38579         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
38580         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
38581         Use the same technique as in sc_prohibit_doubled_word, so that
38582         we recognize "can not" also when the words are separated by a newline.
38583         Suggested by Eric Blake.
38584         (perl_filename_lineno_text_): Define.  Factored out of...
38585         (prohibit_doubled_word_): ...here.  Use the new definition.
38586         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
38587         (prohibit_undesirable_word_seq_RE_): New overridable variable.
38588         (ignore_undesirable_word_sequence_RE_): New overridable variable.
38590 2011-05-10  Eric Blake  <eblake@redhat.com>
38592         fclose: avoid double close race when possible
38593         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
38594         all but WINDOWS_SOCKETS.
38596 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
38598         openat: correct new comment
38599         * lib/openat-proc.c (openat_proc_name): Correct the comment.
38601 2011-05-10  Jim Meyering  <meyering@redhat.com>
38603         openat: add comments
38604         * lib/openat-proc.c (openat_proc_name): Add comments,
38605         mostly from Eric Blake.
38607 2011-05-09  Eric Blake  <eblake@redhat.com>
38609         openat: reduce syscalls in first probe of /proc
38610         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
38611         be a directory.  Simplify the probe for .. bugs.
38612         * modules/openat (Depends-on): Drop same-inode.
38613         Reported by Bastien ROUCARIES.
38615 2011-05-09  Jim Meyering  <meyering@redhat.com>
38617         maint.mk: change semantics/name of tight_scope variables
38618         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
38619         Rename variables to align with semantics that make them more useful.
38621         maint.mk: tweak new rule's name not to impinge
38622         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
38623         (sc_tight_scope): Use new rule name rather than $@-0.
38625         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
38626         * top/maint.mk (sc_tight_scope): New rule.
38627         (sc_tight_scope-0): New rule, ifdef'd out.
38628         (_gl_TS_dir): Default.
38629         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
38630         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
38632 2011-05-09  Simon Josefsson  <simon@josefsson.org>
38634         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
38635         Haible <bruno@clisp.org>.
38637 2011-05-08  Bruno Haible  <bruno@clisp.org>
38639         Comments.
38640         * m4/isnanf.m4: Add comment.
38641         * m4/isnanl.m4: Likewise.
38643 2011-05-08  Bruno Haible  <bruno@clisp.org>
38645         glob: Remove obsolete macro.
38646         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
38648 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
38650         intprops: Sun C 5.11 supports __typeof__
38651         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
38652         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
38653         which is new.
38654         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
38656         intprops: switch to usual gnulib indenting and naming
38657         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
38658         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
38660         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
38662 2011-05-08  Jim Meyering  <meyering@redhat.com>
38664         maint.mk: suppress "Entering/Leaving directory" diag in announcement
38665         * top/maint.mk (release-prep): Use make's --no-print-directory
38666         option when generating the announcement.  This eliminates the
38667         pesky "make[2]: Entering/Leaving directory" diagnostics in the
38668         generated announcement template.
38670 2011-05-08  Bruno Haible  <bruno@clisp.org>
38672         tzset: Fix gettimeofday wrapper on Solaris 2.6.
38673         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
38674         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
38676 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
38678         ignore-value, verify: Omit include files from lib_SOURCES.
38679         * modules/ignore-value, modules/verify (Makefile.am):
38680         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
38681         that leads Automake to duplicate use of am__objects_... variables
38682         in Makefile.in.  See
38683         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
38685 2011-05-07  Bruno Haible  <bruno@clisp.org>
38687         fclose: Simplify autoconf macro.
38688         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
38689         defined.
38691 2011-05-07  Bruno Haible  <bruno@clisp.org>
38693         canonicalize-lgpl: Fix autoconf macro ordering bug.
38694         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
38695         gl_STDLIB_H_DEFAULTS.
38697 2011-05-06  Eric Blake  <eblake@redhat.com>
38699         maintainer-makefile: make sc_po_check easier to tune
38700         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
38701         to probe for strings, such as an alternate location for gnulib.
38703         fclose: guarantee behavior on seekable stdin
38704         * modules/fclose (Depends-on): Add fflush.
38705         * doc/posix-functions/fclose.texi (fclose): Document this.
38706         * tests/test-fclose.c (main): Make test for this unconditional.
38708 2011-05-06  Bruno Haible  <bruno@clisp.org>
38710         fflush, fpurge: Relicense under LGPLv2+.
38711         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
38712         * modules/fpurge (License): Likewise.
38713         With permission from Eric Blake and Jim Meyering.
38714         Suggested by Eric Blake.
38716 2011-05-06  Karl Berry  <karl@gnu.org>
38718         * MODULES.html.sh (func_all_modules): remove exit.
38720 2011-05-06  Jim Meyering  <meyering@redhat.com>
38722         maint.mk: use info-gnu@ as the default only for a stable release
38723         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
38724         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
38725         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
38726         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
38728 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
38730         assert-h: new module, which supports C1X-style static_assert
38731         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
38732         * lib/verify.h: Revamp so that this can be copied into assert.h,
38733         while retaining the ability to use it standalone as before.
38734         Rename private identifiers so as not to encroach on the
38735         standard C namespace, since this is now used by assert.h.
38736         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
38737         the old verify_true.
38738         (_GL_VERIFY_TRUE): New macro, with much of the contents of
38739         the old verify_true.  Use _GL_VERIFY_TYPE.
38740         (_GL_VERIFY): New macro, with much of the contents of the old verify.
38741         (static_assert): New macro, if _GL_STATIC_ASSERT_H
38742         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
38743         defined when this file is copied into the replacement assert.h.
38744         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
38745         and _Static_assert is not built in.
38746         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
38747         defined, and use the new macros mentioned above.
38748         * doc/posix-headers/assert.texi: Document this.
38750 2011-05-05  Bruno Haible  <bruno@clisp.org>
38752         fclose, fflush: Respect rules for use of AC_LIBOBJ.
38753         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
38754         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
38755         gl_REPLACE_FCLOSE here.
38756         * modules/fflush (Depends-on): Remove fclose.
38757         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
38758         combination with module 'fclose'.
38760 2011-05-05  Bruno Haible  <bruno@clisp.org>
38762         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
38763         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
38764         gl_FUNC_FFLUSH.
38765         (gl_FUNC_FFLUSH): Use it.
38766         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
38767         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
38768         gl_REPLACE_FSEEKO here.
38770 2011-05-05  Bruno Haible  <bruno@clisp.org>
38772         tzset: Relicense under LGPL.
38773         * modules/tzset (License): Change to LGPL.
38774         No agreement needed; it's a no-op.
38776         strtoimax, strtoumax: Relicense under LGPL.
38777         * modules/strtoimax (License): Change to LGPL.
38778         * modules/strtoumax (License): Likewise.
38779         With permission from Jim Meyering, Paul Eggert:
38780         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
38781         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
38783         getgroups: Relicense under LGPL.
38784         * modules/getgroups (License): Change to LGPL.
38785         With permission from Jim Meyering, Paul Eggert, Eric Blake:
38786         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
38787         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
38788         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
38790         nanosleep: Relicense under LGPL.
38791         * modules/nanosleep (License): Change to LGPL.
38792         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
38793         Haible:
38794         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
38795         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
38796         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
38797         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
38799         futimens: Relicense under LGPL.
38800         * modules/futimens (License): Change to LGPL.
38801         With permission from Eric Blake:
38802         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
38804         fflush: Relicense under LGPL.
38805         * modules/fflush (License): Change to LGPL.
38806         With permission from Eric Blake, Bruno Haible, Jim Meyering:
38807         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
38808         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
38809         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
38811         tmpfile: Relicense under LGPL.
38812         * modules/tmpfile (License): Change to LGPL.
38813         With permission from Ben Pfaff:
38814         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
38816         isfinite: Relicense under LGPL.
38817         * modules/isfinite (License): Change to LGPL.
38818         With permission from Ben Pfaff, Bruno Haible:
38819         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
38820         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
38822         acosl..tanl: Relicense under LGPL.
38823         * modules/acosl (License): Change to LGPL.
38824         * modules/asinl (License): Likewise.
38825         * modules/atanl (License): Likewise.
38826         * modules/cosl (License): Likewise.
38827         * modules/expl (License): Likewise.
38828         * modules/logl (License): Likewise.
38829         * modules/sinl (License): Likewise.
38830         * modules/sqrtl (License): Likewise.
38831         * modules/tanl (License): Likewise.
38832         Source code originally from glibc and Paolo Bonzini. Agreements:
38833         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
38834         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
38836 2011-05-05  Bruno Haible  <bruno@clisp.org>
38838         signal: Define sighandler_t.
38839         * lib/signal.in.h (sighandler_t): New type.
38840         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
38841         whether sighandler_t is defined.
38842         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
38843         * modules/signal (Depends-on): Add extensions.
38844         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
38845         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
38846         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
38848 2011-05-05  Eric Blake  <eblake@redhat.com>
38850         maint: remove useless REPLACE_*_H macros
38851         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
38852         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38853         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38854         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
38855         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38856         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38857         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
38858         * m4/btowc.m4: Update callers.
38859         * m4/dirfd.m4: Likewise.
38860         * m4/duplocale.m4: Likewise.
38861         * m4/fchdir.m4: Likewise.
38862         * m4/fdopendir.m4: Likewise.
38863         * m4/inet_ntop.m4: Likewise.
38864         * m4/inet_pton.m4: Likewise.
38865         * m4/ioctl.m4: Likewise.
38866         * m4/mbrlen.m4: Likewise.
38867         * m4/mbrtowc.m4: Likewise.
38868         * m4/mbsinit.m4: Likewise.
38869         * m4/mbsnrtowcs.m4: Likewise.
38870         * m4/mbsrtowcs.m4: Likewise.
38871         * m4/poll.m4: Likewise.
38872         * m4/setlocale.m4: Likewise.
38873         * m4/wcrtomb.m4: Likewise.
38874         * m4/wcsnrtombs.m4: Likewise.
38875         * m4/wcsrtombs.m4: Likewise.
38876         * m4/wctob.m4: Likewise.
38877         * m4/wcwidth.m4: Likewise.
38878         * modules/posix_spawn: Likewise.
38879         * modules/posix_spawn_file_actions_addclose: Likewise.
38880         * modules/posix_spawn_file_actions_adddup2: Likewise.
38881         * modules/posix_spawn_file_actions_addopen: Likewise.
38882         * modules/posix_spawn_file_actions_destroy: Likewise.
38883         * modules/posix_spawn_file_actions_init: Likewise.
38884         * modules/posix_spawnattr_destroy: Likewise.
38885         * modules/posix_spawnattr_getflags: Likewise.
38886         * modules/posix_spawnattr_getpgroup: Likewise.
38887         * modules/posix_spawnattr_getschedparam: Likewise.
38888         * modules/posix_spawnattr_getschedpolicy: Likewise.
38889         * modules/posix_spawnattr_getsigdefault: Likewise.
38890         * modules/posix_spawnattr_getsigmask: Likewise.
38891         * modules/posix_spawnattr_init: Likewise.
38892         * modules/posix_spawnattr_setflags: Likewise.
38893         * modules/posix_spawnattr_setpgroup: Likewise.
38894         * modules/posix_spawnattr_setschedparam: Likewise.
38895         * modules/posix_spawnattr_setschedpolicy: Likewise.
38896         * modules/posix_spawnattr_setsigdefault: Likewise.
38897         * modules/posix_spawnattr_setsigmask: Likewise.
38898         * modules/posix_spawnp: Likewise.
38900 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
38902         Add option to do-release-commit-and-tag to specify branch.
38903         * build-aux/do-release-commit-and-tag: Add --branch.
38905 2011-05-03  Bruno Haible  <bruno@clisp.org>
38907         Avoid unnecessary compilation units, through conditional dependencies.
38908         * modules/accept (Depends-on): Add conditions to the dependencies.
38909         * modules/acosl (Depends-on): Likewise.
38910         * modules/argz (Depends-on): Likewise.
38911         * modules/asinl (Depends-on): Likewise.
38912         * modules/atanl (Depends-on): Likewise.
38913         * modules/atoll (Depends-on): Likewise.
38914         * modules/bind (Depends-on): Likewise.
38915         * modules/btowc (Depends-on): Likewise.
38916         * modules/canonicalize-lgpl (Depends-on): Likewise.
38917         * modules/ceil (Depends-on): Likewise.
38918         * modules/ceilf (Depends-on): Likewise.
38919         * modules/ceill (Depends-on): Likewise.
38920         * modules/chdir-long (Depends-on): Likewise.
38921         * modules/chown (Depends-on): Likewise.
38922         * modules/close (Depends-on): Likewise.
38923         * modules/connect (Depends-on): Likewise.
38924         * modules/cosl (Depends-on): Likewise.
38925         * modules/dirfd (Depends-on): Likewise.
38926         * modules/dprintf (Depends-on): Likewise.
38927         * modules/dprintf-posix (Depends-on): Likewise.
38928         * modules/error (Depends-on): Likewise.
38929         * modules/euidaccess (Depends-on): Likewise.
38930         * modules/expl (Depends-on): Likewise.
38931         * modules/faccessat (Depends-on): Likewise.
38932         * modules/fchdir (Depends-on): Likewise.
38933         * modules/fclose (Depends-on): Likewise.
38934         * modules/fcntl (Depends-on): Likewise.
38935         * modules/fdopendir (Depends-on): Likewise.
38936         * modules/fflush (Depends-on): Likewise.
38937         * modules/floor (Depends-on): Likewise.
38938         * modules/floorf (Depends-on): Likewise.
38939         * modules/floorl (Depends-on): Likewise.
38940         * modules/fnmatch (Depends-on): Likewise.
38941         * modules/fopen (Depends-on): Likewise.
38942         * modules/fprintf-posix (Depends-on): Likewise.
38943         * modules/frexp (Depends-on): Likewise.
38944         * modules/frexp-nolibm (Depends-on): Likewise.
38945         * modules/frexpl (Depends-on): Likewise.
38946         * modules/frexpl-nolibm (Depends-on): Likewise.
38947         * modules/fseek (Depends-on): Likewise.
38948         * modules/fsusage (Depends-on): Likewise.
38949         * modules/ftell (Depends-on): Likewise.
38950         * modules/ftello (Depends-on): Likewise.
38951         * modules/futimens (Depends-on): Likewise.
38952         * modules/getcwd (Depends-on): Likewise.
38953         * modules/getcwd-lgpl (Depends-on): Likewise.
38954         * modules/getdelim (Depends-on): Likewise.
38955         * modules/getdomainname (Depends-on): Likewise.
38956         * modules/getgroups (Depends-on): Likewise.
38957         * modules/gethostname (Depends-on): Likewise.
38958         * modules/getline (Depends-on): Likewise.
38959         * modules/getlogin_r (Depends-on): Likewise.
38960         * modules/getopt-posix (Depends-on): Likewise.
38961         * modules/getpeername (Depends-on): Likewise.
38962         * modules/getsockname (Depends-on): Likewise.
38963         * modules/getsockopt (Depends-on): Likewise.
38964         * modules/getsubopt (Depends-on): Likewise.
38965         * modules/getusershell (Depends-on): Likewise.
38966         * modules/glob (Depends-on): Likewise.
38967         * modules/grantpt (Depends-on): Likewise.
38968         * modules/iconv_open (Depends-on): Likewise.
38969         * modules/iconv_open-utf (Depends-on): Likewise.
38970         * modules/inet_ntop (Depends-on): Likewise.
38971         * modules/inet_pton (Depends-on): Likewise.
38972         * modules/ioctl (Depends-on): Likewise.
38973         * modules/isapipe (Depends-on): Likewise.
38974         * modules/isfinite (Depends-on): Likewise.
38975         * modules/isinf (Depends-on): Likewise.
38976         * modules/lchown (Depends-on): Likewise.
38977         * modules/ldexpl (Depends-on): Likewise.
38978         * modules/link (Depends-on): Likewise.
38979         * modules/linkat (Depends-on): Likewise.
38980         * modules/listen (Depends-on): Likewise.
38981         * modules/logl (Depends-on): Likewise.
38982         * modules/lstat (Depends-on): Likewise.
38983         * modules/mbrlen (Depends-on): Likewise.
38984         * modules/mbrtowc (Depends-on): Likewise.
38985         * modules/mbsinit (Depends-on): Likewise.
38986         * modules/mbsnrtowcs (Depends-on): Likewise.
38987         * modules/mbsrtowcs (Depends-on): Likewise.
38988         * modules/mbtowc (Depends-on): Likewise.
38989         * modules/memcmp (Depends-on): Likewise.
38990         * modules/mkdir (Depends-on): Likewise.
38991         * modules/mkdtemp (Depends-on): Likewise.
38992         * modules/mkfifo (Depends-on): Likewise.
38993         * modules/mkfifoat (Depends-on): Likewise.
38994         * modules/mknod (Depends-on): Likewise.
38995         * modules/mkostemp (Depends-on): Likewise.
38996         * modules/mkostemps (Depends-on): Likewise.
38997         * modules/mkstemp (Depends-on): Likewise.
38998         * modules/mkstemps (Depends-on): Likewise.
38999         * modules/mktime (Depends-on): Likewise.
39000         * modules/nanosleep (Depends-on): Likewise.
39001         * modules/open (Depends-on): Likewise.
39002         * modules/openat (Depends-on): Likewise.
39003         * modules/perror (Depends-on): Likewise.
39004         * modules/poll (Depends-on): Likewise.
39005         * modules/popen (Depends-on): Likewise.
39006         * modules/posix_spawn (Depends-on): Likewise.
39007         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
39008         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
39009         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
39010         * modules/posix_spawnp (Depends-on): Likewise.
39011         * modules/pread (Depends-on): Likewise.
39012         * modules/printf-posix (Depends-on): Likewise.
39013         * modules/ptsname (Depends-on): Likewise.
39014         * modules/putenv (Depends-on): Likewise.
39015         * modules/pwrite (Depends-on): Likewise.
39016         * modules/readline (Depends-on): Likewise.
39017         * modules/readlink (Depends-on): Likewise.
39018         * modules/readlinkat (Depends-on): Likewise.
39019         * modules/recv (Depends-on): Likewise.
39020         * modules/recvfrom (Depends-on): Likewise.
39021         * modules/regex (Depends-on): Likewise.
39022         * modules/remove (Depends-on): Likewise.
39023         * modules/rename (Depends-on): Likewise.
39024         * modules/renameat (Depends-on): Likewise.
39025         * modules/rmdir (Depends-on): Likewise.
39026         * modules/round (Depends-on): Likewise.
39027         * modules/roundf (Depends-on): Likewise.
39028         * modules/roundl (Depends-on): Likewise.
39029         * modules/rpmatch (Depends-on): Likewise.
39030         * modules/select (Depends-on): Likewise.
39031         * modules/send (Depends-on): Likewise.
39032         * modules/sendto (Depends-on): Likewise.
39033         * modules/setenv (Depends-on): Likewise.
39034         * modules/setlocale (Depends-on): Likewise.
39035         * modules/setsockopt (Depends-on): Likewise.
39036         * modules/shutdown (Depends-on): Likewise.
39037         * modules/sigaction (Depends-on): Likewise.
39038         * modules/signbit (Depends-on): Likewise.
39039         * modules/sigprocmask (Depends-on): Likewise.
39040         * modules/sinl (Depends-on): Likewise.
39041         * modules/sleep (Depends-on): Likewise.
39042         * modules/snprintf (Depends-on): Likewise.
39043         * modules/snprintf-posix (Depends-on): Likewise.
39044         * modules/socket (Depends-on): Likewise.
39045         * modules/sprintf-posix (Depends-on): Likewise.
39046         * modules/sqrtl (Depends-on): Likewise.
39047         * modules/stat (Depends-on): Likewise.
39048         * modules/strchrnul (Depends-on): Likewise.
39049         * modules/strdup-posix (Depends-on): Likewise.
39050         * modules/strerror (Depends-on): Likewise.
39051         * modules/strerror_r-posix (Depends-on): Likewise.
39052         * modules/strndup (Depends-on): Likewise.
39053         * modules/strnlen (Depends-on): Likewise.
39054         * modules/strptime (Depends-on): Likewise.
39055         * modules/strsep (Depends-on): Likewise.
39056         * modules/strsignal (Depends-on): Likewise.
39057         * modules/strstr-simple (Depends-on): Likewise.
39058         * modules/strtod (Depends-on): Likewise.
39059         * modules/strtoimax (Depends-on): Likewise.
39060         * modules/strtok_r (Depends-on): Likewise.
39061         * modules/strtoumax (Depends-on): Likewise.
39062         * modules/symlink (Depends-on): Likewise.
39063         * modules/symlinkat (Depends-on): Likewise.
39064         * modules/tanl (Depends-on): Likewise.
39065         * modules/tcgetsid (Depends-on): Likewise.
39066         * modules/tmpfile (Depends-on): Likewise.
39067         * modules/trunc (Depends-on): Likewise.
39068         * modules/truncf (Depends-on): Likewise.
39069         * modules/truncl (Depends-on): Likewise.
39070         * modules/uname (Depends-on): Likewise.
39071         * modules/unlink (Depends-on): Likewise.
39072         * modules/unlockpt (Depends-on): Likewise.
39073         * modules/unsetenv (Depends-on): Likewise.
39074         * modules/usleep (Depends-on): Likewise.
39075         * modules/utimensat (Depends-on): Likewise.
39076         * modules/vasprintf (Depends-on): Likewise.
39077         * modules/vdprintf (Depends-on): Likewise.
39078         * modules/vdprintf-posix (Depends-on): Likewise.
39079         * modules/vfprintf-posix (Depends-on): Likewise.
39080         * modules/vprintf-posix (Depends-on): Likewise.
39081         * modules/vsnprintf (Depends-on): Likewise.
39082         * modules/vsnprintf-posix (Depends-on): Likewise.
39083         * modules/vsprintf-posix (Depends-on): Likewise.
39084         * modules/wcrtomb (Depends-on): Likewise.
39085         * modules/wcscasecmp (Depends-on): Likewise.
39086         * modules/wcscspn (Depends-on): Likewise.
39087         * modules/wcsdup (Depends-on): Likewise.
39088         * modules/wcsncasecmp (Depends-on): Likewise.
39089         * modules/wcsnrtombs (Depends-on): Likewise.
39090         * modules/wcspbrk (Depends-on): Likewise.
39091         * modules/wcsrtombs (Depends-on): Likewise.
39092         * modules/wcsspn (Depends-on): Likewise.
39093         * modules/wcsstr (Depends-on): Likewise.
39094         * modules/wcstok (Depends-on): Likewise.
39095         * modules/wcswidth (Depends-on): Likewise.
39096         * modules/wctob (Depends-on): Likewise.
39097         * modules/wctomb (Depends-on): Likewise.
39098         * modules/wctype (Depends-on): Likewise.
39099         * modules/wcwidth (Depends-on): Likewise.
39100         * modules/write (Depends-on): Likewise.
39102 2011-05-03  Bruno Haible  <bruno@clisp.org>
39104         Support for conditional dependencies.
39105         * doc/gnulib.texi (Module description): Document the syntax of
39106         conditional dependencies.
39107         * gnulib-tool: New option --conditional-dependencies.
39108         (func_usage): Document it.
39109         (cond_dependencies): New variable.
39110         (func_get_automake_snippet_conditional,
39111         func_get_automake_snippet_unconditional): New functions, extracted from
39112         func_get_automake_snippet.
39113         (func_get_automake_snippet): Use them.
39114         (sed_first_32_chars): New variable.
39115         (func_module_shellfunc_name): New function.
39116         (func_module_shellvar_name): New function.
39117         (func_module_conditional_name): New function.
39118         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
39119         func_cond_module_condition): New functions.
39120         (func_modules_transitive_closure): Add support for conditional
39121         dependencies.
39122         (func_emit_lib_Makefile_am): For a conditional module, enclose the
39123         conditional automake snippet in an automake conditional.
39124         (func_emit_autoconf_snippets): Emit shell functions that contain the
39125         code for conditional modules.
39126         (func_import, func_create_testdir): Update specification.
39128 2011-05-03  Eric Blake  <eblake@redhat.com>
39130         test-getaddrinfo: report error information
39131         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
39133 2011-05-03  Jim Meyering  <meyering@redhat.com>
39135         bootstrap: avoid build failure when $GZIP is set
39136         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
39137         program name.  If defined at all, it is supposed to list gzip options.
39138         Reported by Alan Curry in http://debbugs.gnu.org/8609
39140 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
39142         readme-release: new module with release instructions
39143         * modules/readme-release: New module.
39144         * top/README-release: New file, from coreutils, grep, diffutils.
39145         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39147 2011-05-02  Eric Blake  <eblake@redhat.com>
39149         fflush: also replace fclose when fixing fflush
39150         * modules/fflush (Depends-on): Add fclose.
39151         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
39152         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
39153         memstreams with no backing fd.
39154         * doc/posix-functions/fclose.texi (fclose): Document the use of
39155         fflush module to fix the bug.
39156         * tests/test-fclose.c (main): Relax test when fclose is used in
39157         isolation.
39159         fclose: add some tests
39160         * modules/fclose-tests: New test module.
39161         * tests/test-fclose.c: New file.
39162         * doc/posix-functions/fclose.texi (fclose): Document the bug.
39164         fclose: reduced dependencies
39165         * modules/fclose (Depends-on): Switch from fflush/fseeko to
39166         simpler lseek.
39167         * lib/fclose.c (rpl_fclose): Likewise.
39168         Reported by Simon Josefsson.
39170         exit: drop remaining clients
39171         * modules/argmatch (Depends-on): Replace exit with stdlib.
39172         * modules/copy-file (Depends-on): Likewise.
39173         * modules/execute (Depends-on): Likewise.
39174         * modules/exitfail (Depends-on): Likewise.
39175         * modules/obstack (Depends-on): Likewise.
39176         * modules/pagealign_alloc (Depends-on): Likewise.
39177         * modules/pipe-filter-gi (Depends-on): Likewise.
39178         * modules/pipe-filter-ii (Depends-on): Likewise.
39179         * modules/savewd (Depends-on): Likewise.
39180         * modules/spawn-pipe (Depends-on): Likewise.
39181         * modules/wait-process (Depends-on): Likewise.
39182         * modules/xsetenv (Depends-on): Likewise.
39183         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
39184         * modules/git-merge-changelog (Depends-on): Likewise.
39185         * modules/long-options (Depends-on): Likewise.
39186         * modules/pt_chown (Depends-on): Likewise.
39187         * modules/sysexits (Depends-on): Likewise.
39189         freading: relax license from LGPLv3+ to LGPLv2+
39190         * modules/freading (License): Relax LGPL version.
39192 2011-05-02  Bruno Haible  <bruno@clisp.org>
39194         fchdir: Remove unused dependencies.
39195         * modules/fchdir (Depends-on): Remove include_next.
39197 2011-05-02  Bruno Haible  <bruno@clisp.org>
39199         gnulib-tool: Refactor.
39200         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
39201         from func_emit_autoconf_snippets.
39202         (func_emit_autoconf_snippets): Use it.
39204 2011-05-02  Simon Josefsson  <simon@josefsson.org>
39206         * NEWS: Document removal of 'exit'.
39207         * modules/exit: Remove file.
39209 2011-05-01  Bruno Haible  <bruno@clisp.org>
39211         Update DEPENDENCIES.
39212         * DEPENDENCIES (gettext): Recommend the newest release.
39213         Reported by Simon Josefsson.
39215 2011-05-01  Bruno Haible  <bruno@clisp.org>
39217         gnulib-tool: Reduce code duplication.
39218         * gnulib-tool (func_emit_autoconf_snippets): New function.
39219         (func_import, func_create_testdir): Use it.
39221 2011-04-30  Eric Blake  <eblake@redhat.com>
39223         fclose: don't fail on non-seekable input stream
39224         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
39225         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
39226         since fflush is allowed to fail in that case.
39228 2011-04-30  Bruno Haible  <bruno@clisp.org>
39230         dup3: cleanup
39231         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
39233 2011-04-30  Bruno Haible  <bruno@clisp.org>
39235         netdb: Make it work in C++ mode.
39236         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
39237         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
39238         module.
39239         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
39240         gl_MODULE_INDICATOR_FOR_TESTS.
39241         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
39242         * modules/netdb-c++-tests: New file.
39243         * tests/test-netdb-c++.cc: New file.
39245 2011-04-30  Bruno Haible  <bruno@clisp.org>
39247         New modules 'vfscanf', 'vscanf'.
39248         * modules/vfscanf: New file.
39249         * modules/vscanf: New file.
39250         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
39251         here.
39252         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
39253         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
39255 2011-04-30  Bruno Haible  <bruno@clisp.org>
39257         passfd: Add comments.
39258         * lib/passfd.c: Add comments about platforms.
39260 2011-04-30  Bruno Haible  <bruno@clisp.org>
39262         sys_uio: Make <sys/uio.h> self-contained.
39263         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
39264         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
39266 2011-04-30  Bruno Haible  <bruno@clisp.org>
39268         sys_socket: Ensure 'struct iovec' definition.
39269         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
39270         <sys/socket.h>.
39271         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
39273 2011-04-30  Bruno Haible  <bruno@clisp.org>
39275         sys_uio: Protect definition of 'struct iovec'.
39276         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
39277         it as a C struct.
39279 2011-04-30  Bruno Haible  <bruno@clisp.org>
39281         manywarnings: fix indentation
39282         * m4/manywarnings.m4: Indent by 2 spaces consistently.
39284 2011-04-30  Pádraig Brady  <P@draigBrady.com>
39286         manywarnings: add -Wno-missing-field-initializers if needed.
39287         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
39288         option if it's needed to allow initialization with { 0, }
39290 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
39292         announce-gen: cosmetic improvement
39293         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
39295 2011-04-29  Jim Meyering  <meyering@redhat.com>
39297         vc-list-files: indent with spaces, not TABs
39298         * build-aux/vc-list-files: Convert leading TABs to spaces,
39299         to match the style of most other files in gnulib.
39301         announce-gen: indent with spaces, not TABs
39302         * build-aux/announce-gen: Convert all TABs to spaces, to match
39303         the style of most other files in gnulib.
39305 2011-04-29  Eric Blake  <eblake@redhat.com>
39307         quotearg: avoid uninitialized variable use
39308         * lib/quotearg.c (quoting_options_from_style): Initialize
39309         remaining fields, and ensure that custom styles are only used via
39310         quoting_options rather than quoting_style.
39312 2011-04-29  Jim Meyering  <meyering@redhat.com>
39314         maint.mk: remove unused VC-tag variable
39315         * top/maint.mk (VC-tag): Remove unused variable.
39317 2011-04-29  Bruno Haible  <bruno@clisp.org>
39319         netdb: fix gai_strerror replacements
39320         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
39321         * modules/netdb: Substitute it.
39323 2011-04-29  Jim Meyering  <meyering@redhat.com>
39325         test-getcwd.c: avoid new set-but-not-used warning
39326         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
39327         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
39328         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
39329         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
39331         test-hash.c: avoid a new shadowing warning
39332         * tests/test-hash.c (main): Don't shadow "dup".
39334 2011-04-28  Eric Blake  <eblake@redhat.com>
39336         getaddrinfo: fix gai_strerror signature
39337         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
39338         and work around mingw with UNICODE defined.
39339         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
39340         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
39341         * modules/netdb (Makefile.am): Substitute it.
39342         * lib/netdb.in.h (gai_strerror): Declare replacement.
39343         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
39344         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
39345         the fix.
39347         getsockopt: avoid compiler warning
39348         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
39349         Reported by Matthias Bolte.
39351         tests: drop unused link dependency
39352         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
39353         * modules/dirent-safer-tests (Makefile.am): Likewise.
39354         * modules/fdopendir-tests (Makefile.am): Likewise.
39355         * modules/mkfifoat-tests (Makefile.am): Likewise.
39356         * modules/openat-safer-tests (Makefile.am): Likewise.
39357         * modules/openat-tests (Makefile.am): Likewise.
39358         * modules/readlinkat-tests (Makefile.am): Likewise.
39359         * modules/symlinkat-tests (Makefile.am): Likewise.
39360         * modules/linkat-tests (Makefile.am): Likewise.
39361         (Depends-on): Switch to filenamecat-lgpl.
39362         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
39363         LIBINTL.
39364         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
39365         * tests/test-linkat.c (main): Don't require xalloc.
39367         hash, mgetgroups: drop xalloc dependency
39368         * lib/hash.c (includes): Adjust includes.
39369         * lib/mgetgroups.c (includes): Likewise.
39370         (xgetgroups): Move...
39371         * lib/xgetgroups.c: ...to new file.
39372         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
39373         * modules/xgetgroups: New file, split from...
39374         * modules/mgetgroups: ...here.
39375         (Depends-on): Add xalloc-oversized.
39376         * modules/hash (Depends-on): Likewise.
39377         * modules/hash-tests (Depends-on): Drop xalloc.
39378         (test_hash_LDADD): Drop unused library.
39379         * tests/test-hash.c (main): Break xalloc dependency.
39380         (includes): Drop unused include.
39382         xalloc-oversized: new module
39383         * modules/xalloc-oversized: New module.
39384         * modules/xalloc (Depends-on): Add it.
39385         * lib/xalloc.h (xalloc_oversized): Move...
39386         * lib/xalloc-oversized.h: ...into new file.
39388         utimecmp: drop dependency on xmalloc
39389         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
39390         due to memory pressure.
39391         * modules/utimecmp (Depends-on): Drop xalloc.
39393 2011-04-27  Eric Blake  <eblake@redhat.com>
39395         getcwd: fix mingw bugs
39396         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
39397         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
39398         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
39400 2011-04-27  Bruno Haible  <bruno@clisp.org>
39402         mkstemps: Ensure declaration on MacOS X 10.5.
39403         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
39404         * doc/glibc-functions/mkstemps.texi: Document header file problem on
39405         MacOS X.
39407 2011-04-27  Bruno Haible  <bruno@clisp.org>
39409         mkstemp: More documentation.
39410         * doc/posix-functions/mkstemp.texi: Document header file problem on
39411         MacOS X.
39413 2011-04-27  Bruno Haible  <bruno@clisp.org>
39415         mkstemp: Tweak configure message when cross-compiling.
39416         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
39417         result as a guess.
39419 2011-04-27  Bruno Haible  <bruno@clisp.org>
39421         clean-temp: Clarify what it does.
39422         * lib/clean-temp.h: Add more comments.
39423         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
39424         module.
39425         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
39426         * doc/glibc-functions/mkstemps.texi: Likewise.
39427         * doc/glibc-functions/mkostemps.texi: Likewise.
39429 2011-04-27  Eric Blake  <eblake@redhat.com>
39431         fchdir: avoid extra chdir and fix test
39432         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
39433         getcwd-lgpl.
39434         * lib/fchdir.c (get_name): Any absolute name will do; it does not
39435         have to be canonical.
39436         (canonicalize_file_name): Drop unused macro.
39437         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
39439         filenamecat-lgpl: fix licence
39440         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
39441         when it was first created.
39443         linkat, renameat: add missing dependency
39444         * modules/linkat (Depends-on): Require getcwd-lgpl.
39445         * modules/renameat (Depends-on): Likewise.
39447         tests: reduce dependencies
39448         * tests/test-linkat.c (main): Use lighter-weight getcwd.
39449         * tests/test-renameat.c (main): Likewise.
39450         * modules/linkat-tests (Depends-on): Relax dependency.
39451         * modules/renameat-tests (Depends-on): Likewise.
39452         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
39453         dependency explicit.
39455         save-cwd: reduce default dependency
39456         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
39457         * lib/save-cwd.c: Update comments.
39458         * NEWS: Document the semantic change.
39460         getcwd: enhance tests
39461         * tests/test-getcwd-lgpl.c: New file, taken from...
39462         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
39463         repeat long path stress tests from m4 probe.
39464         * modules/getcwd-lgpl-tests: New module.
39465         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
39466         * m4/getcwd-abort-bug.m4: Update comment.
39467         * m4/getcwd-path-max.m4: Likewise.
39469         getcwd-lgpl: new module
39470         * modules/getcwd-lgpl: New module.
39471         * lib/getcwd-lgpl.c: New file.
39472         * doc/posix-functions/getcwd.texi (getcwd): Document it.
39473         * MODULES.html.sh (lacking POSIX:2008): Likewise.
39474         * modules/getcwd (configure.ac): Set C witness.
39475         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
39477         getcwd: tweak comments
39478         * m4/getcwd-abort-bug.m4: Fix comments.
39479         * m4/getcwd-path-max.m4: Likewise.
39480         * m4/getcwd.m4: Likewise.
39482 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
39483         and Eric Blake  <eblake@redhat.com>
39485         mkstemp: replace if system version uses wrong permissions
39486         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
39487         read/write mode bits set in file created by mkstemp.
39488         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
39490 2011-04-27  Eric Blake  <eblake@redhat.com>
39492         passfd: avoid compiler warning
39493         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
39494         Reported by Laine Stump.
39496 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
39498         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
39499         required by the NetBSD (and perhaps other 4.4BSD derived) join.
39501 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
39502         and Eric Blake  <eblake@redhat.com>
39504         mkstemp: mention clean-temp module
39505         * lib/mkstemp.c: Add comment.
39506         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
39508 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
39510         inttypes: also provide default values for 32-bit tests
39511         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
39512         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
39514 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
39516         strtoumax: remove dependency on strtoimax
39517         This is like the strtoull change of yesterday.
39518         * modules/strtoumax (Files): Add lib/strtoimax.c.
39519         (Depends-on): Remove strtoimax and add verify.
39521         inttypes-incomplete: new module
39522         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
39523         all but the PRI* and SCN* parts of gl_INTTYPES_H.
39524         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
39525         of gl_INTTYPES_H.
39526         (gl_INTTYPES_H): Rewrite in terms of these new macros.
39527         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
39528         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
39529         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
39530         * modules/strtoumax, modules/xstrtol (Depends-on):
39531         Depend on inttypes-incomplete, not inttypes.
39532         * modules/inttypes-incomplete: New module, containing the contents
39533         of the old modules/inttypes module, except that the Files: section
39534         omits m4/inttypes-pri.m4, and the configure.ac section invokes
39535         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
39536         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
39537         (Depends-on): Depend only on inttypes-incomplete.
39538         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
39540         inttypes: omit now-redundant strtoimax and strtoumax work
39541         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
39542         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
39544         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
39545         This supports apps that need pointers to strtoimax and strtoumax,
39546         and ports to HP-UX 11.00 64.bit, which has macros that expand to
39547         nonexistent functions.  See
39548         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
39549         et seq.
39550         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
39551         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
39552         a macro.
39553         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
39555 2011-04-25  Simon Josefsson  <simon@josefsson.org>
39557         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
39559 2011-04-25  Bruno Haible  <bruno@clisp.org>
39561         strtol, strtoul: Mark modules as obsolete.
39562         * modules/strtol (Status, Notice): New sections.
39563         * modules/strtoul (Status, Notice): New sections.
39565 2011-04-25  Bruno Haible  <bruno@clisp.org>
39567         strtod: Remove check for strtod, unless supporting old platforms.
39568         * modules/strtod-obsolete: New file.
39569         * m4/strtod-obsolete.m4: New file.
39570         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
39571         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
39572         * modules/strtod (Depends-on): Add strtod-obsolete.
39573         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
39575 2011-04-25  Bruno Haible  <bruno@clisp.org>
39577         strcase: Make module obsolete.
39578         * modules/strcase (Status, Notice): New sections.
39580 2011-04-25  Bruno Haible  <bruno@clisp.org>
39582         dup2: Remove check for dup2, unless supporting old obsolete platforms.
39583         * modules/dup2-obsolete: New file.
39584         * m4/dup2-obsolete.m4: New file.
39585         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
39586         gl_FUNC_DUP2_OBSOLETE is not also defined.
39587         * modules/dup2 (Depends-on): Add dup2-obsolete.
39588         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
39590 2011-04-25  Bruno Haible  <bruno@clisp.org>
39592         strnlen: Avoid memchr related link error on old obsolete platforms.
39593         * modules/memchr-obsolete: New file.
39594         * m4/memchr-obsolete.m4: New file.
39595         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
39596         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
39597         * modules/memchr (Depends-on): Add memchr-obsolete.
39598         * modules/strnlen (Depends-on): Likewise.
39599         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
39601 2011-04-25  Jim Meyering  <meyering@redhat.com>
39603         maint.mk: makefile_at_at_check extend and clean up
39604         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
39605         in addition to */Makefile.am.
39606         Exempt legitimate uses of @VAR@ notation, e.g.,
39607         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
39608         Remove obsolete coreutils-specific comment.
39609         Prompted by discussion here:
39610         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
39612 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
39614         strtoul: remove dependency on strtol
39615         This is so that 'configure' need not check for strtol merely because
39616         the application needs strtoul.
39617         * modules/strtoul (Files): Add lib/strtol.c.
39618         (Depends-on): Remove strtol.
39620         strtoull: remove dependency on strtoul
39621         This is like the strtoll change.
39622         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
39623         (Depends-on): Remove strtoul.
39625         strtoll: remove dependency on strtol
39626         This is so that 'configure' need not check for strtol merely because
39627         the application needs strtoll.
39628         * modules/strtoll (Files): Add lib/strtol.c.
39629         (Depends-on): Remove strtol.
39631 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
39633         inttypes: Move some configure check to module 'imaxdiv'.
39634         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
39635         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
39636         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
39638 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
39640         inttypes: Move some configure check to module 'imaxabs'.
39641         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
39642         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
39643         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
39645 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
39647         inttypes: Remove configure tests that are not needed since 2009-12-31.
39648         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
39649         gl_cv_header_working_inttypes_h.
39651 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
39653         * modules/strnlen (Depends-on): Remove memchr.
39654         The strnlen implementation doesn't need the memchr module's fixes; see
39655         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
39657         strtol: remove dependency on wchar
39658         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
39659         * modules/strtol (Depends-on): Remove wchar.
39661 2011-04-21  Eric Blake  <eblake@redhat.com>
39663         passfd: fix test regression on Linux
39664         * modules/passfd-tests (configure.ac): Correct socketpair check.
39666         passfd: speed up configure and drop unused code
39667         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
39668         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
39669         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
39670         Instead of probing at configure for unix_scm_rights_bsd44_way,
39671         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
39672         check to a struct member probe.
39673         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
39674         (sendfd, recvfd): Update preprocessor checks.
39675         * modules/passfd (Files): Reflect rename, and drop unused file.
39676         (Depends-on): Drop unused dependency.
39678         passfd: allow compilation on mingw
39679         * modules/sys_socket (Depends-on): Add sys_uio.
39680         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
39681         iovec and a minimal struct msghdr.
39682         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
39683         * tests/test-sys_socket.c (main): Enhance test.
39684         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
39685         guaranteed to provide what we need.
39686         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
39687         * modules/passfd-tests (Depends-on): Add sys_wait.
39688         * tests/test-passfd.c (main): Skip test on mingw, for now.
39689         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
39690         partial 'struct msghdr' implementation.
39692         sys_uio: new module
39693         * modules/sys_uio: New module.
39694         * modules/sys_uio-tests: Likewise.
39695         * lib/sys_uio.in.h: New file.
39696         * m4/sys_uio_h.m4: Likewise.
39697         * tests/test-sys_uio.c: Likewise.
39698         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
39699         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
39701 2011-04-20  Jim Meyering  <meyering@redhat.com>
39703         useless-if-before-free: avoid false-positive
39704         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
39705         disjunct so that it too requires a terminating ";".  Without that,
39706         this script would identify as useless one statement from gcc that
39707         was not:
39708           if (aligned_ptr)
39709             free (((void **) aligned_ptr) [-1]);
39711 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
39713         doc: update users.txt.
39714         * users.txt: Add barcode.
39716 2011-04-19  Bruno Haible  <bruno@clisp.org>
39718         ioctl: Remove link dependency on native Windows.
39719         * lib/fd-hook.h: Renamed from lib/close-hook.h.
39720         (gl_close_fn, gl_ioctl_fn): New types.
39721         (struct fd_hook): Renamed from struct close_hook. Change type of
39722         private_close_fn field. Add private_ioctl_fn field.
39723         (close_hook_fn): Add parameter for primary close method.
39724         (execute_close_hooks, execute_all_close_hooks): Likewise.
39725         (ioctl_hook_fn): New type.
39726         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
39727         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
39728         argument.
39729         (unregister_fd_hook): Renamed from unregister_close_hook.
39730         * lib/fd-hook.c: Renamed from lib/close-hook.c.
39731         Don't include <unistd.h>.
39732         (close): Remove undef.
39733         (anchor): Update.
39734         (execute_close_hooks): Add argument for primary close method.
39735         (execute_all_close_hooks): Likewise.
39736         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
39737         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
39738         argument. Allow each argument to be NULL.
39739         (unregister_fd_hook): Renamed from unregister_close_hook.
39740         * lib/close.c (rpl_close): Pass 'close' function pointer to
39741         execute_all_close_hooks.
39742         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
39743         (primary_ioctl): New function.
39744         (ioctl): Don't call ioctlsocket here. Instead, call
39745         execute_all_ioctl_hooks.
39746         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
39747         close method.
39748         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
39749         (fd_sockets_hook): Renamed from close_sockets_hook.
39750         (gl_sockets_startup, gl_sockets_cleanup): Update.
39751         * modules/fd-hook: Renamed from modules/close-hook. Update.
39752         * modules/close (Depends-on): Add fd-hook, remove close-hook.
39753         * modules/sockets (Depends-on): Likewise.
39754         * modules/ioctl (Depends-on): Add fd-hook.
39755         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
39756         GNULIB_SOCKET.
39758 2011-04-19  Bruno Haible  <bruno@clisp.org>
39760         Move the support of O_NONBLOCK in open() to the 'open' module.
39761         * modules/nonblocking (Depends-on): Remove 'open'.
39762         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
39763         gl_cv_have_open_O_NONBLOCK.
39764         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
39765         O_NONBLOCK support.
39766         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
39768 2011-04-17  Bruno Haible  <bruno@clisp.org>
39770         pipe2: Simplify code.
39771         * lib/pipe2.c (pipe2): Reduce code duplication.
39773 2011-04-17  Bruno Haible  <bruno@clisp.org>
39775         nonblocking: Add comment.
39776         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
39778 2011-04-17  Bruno Haible  <bruno@clisp.org>
39780         nonblocking: Add tests for sockets.
39781         * tests/test-nonblocking-socket.sh: New file.
39782         * tests/test-nonblocking-socket-main.c: New file.
39783         * tests/test-nonblocking-socket-child.c: New file.
39784         * tests/test-nonblocking-socket.h: New file.
39785         * tests/socket-server.h: New file.
39786         * tests/socket-client.h: New file.
39787         * modules/nonblocking-socket-tests: New file.
39788         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
39790 2011-04-17  Bruno Haible  <bruno@clisp.org>
39792         nonblocking: Add tests for pipes.
39793         * tests/test-nonblocking-pipe.sh: New file.
39794         * tests/test-nonblocking-pipe-main.c: New file.
39795         * tests/test-nonblocking-pipe-child.c: New file.
39796         * tests/test-nonblocking-pipe.h: New file.
39797         * tests/test-nonblocking-writer.h: New file.
39798         * tests/test-nonblocking-reader.h: New file.
39799         * tests/test-nonblocking-misc.h: New file.
39800         * modules/nonblocking-pipe-tests: New file.
39801         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
39803 2011-04-16  Bruno Haible  <bruno@clisp.org>
39805         gettext: Clarify the needed programmer actions.
39806         * modules/gettext (Notice): New field.
39807         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
39809 2011-04-16  Bruno Haible  <bruno@clisp.org>
39811         strchrnul: Tweak last commit.
39812         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
39813         bug.
39814         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
39815         as in _GL_FUNCDECL_SYS.
39816         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
39817         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
39819 2011-04-15  Eric Blake  <eblake@redhat.com>
39821         strchrnul: work around cygwin bug
39822         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
39823         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
39824         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
39825         * modules/string (Makefile.am): Substitute it.
39826         * lib/string.in.h (strchrnul): Use it.
39828 2011-04-15  Bruno Haible  <bruno@clisp.org>
39830         Don't require lib/stdio-write.c when only module 'stdio' is used.
39831         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
39832         invocation.
39833         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
39835 2011-04-14  Bruno Haible  <bruno@clisp.org>
39837         Support non-blocking pipe I/O in read() on native Windows.
39838         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
39839         (read): New declaration.
39840         * lib/read.c: New file.
39841         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
39842         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
39843         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
39844         vscanf): New declarations.
39845         * lib/stdio-read.c: New file.
39846         * m4/read.m4: New file.
39847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
39848         REPLACE_READ.
39849         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
39850         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
39851         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
39852         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
39853         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
39854         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
39855         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
39856         * modules/read: New file.
39857         * modules/nonblocking (Files): Add lib/stdio-read.c.
39858         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
39859         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
39860         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
39861         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
39862         * modules/pread (Depends-on): Add read.
39863         * modules/safe-read (Depends-on): Likewise.
39864         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
39865         gets, scanf, vfscanf, vscanf): Verify signatures.
39866         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
39867         problem with non-blocking pipes.
39868         * doc/posix-functions/fgetc.texi: Likewise.
39869         * doc/posix-functions/fgets.texi: Likewise.
39870         * doc/posix-functions/fread.texi: Likewise.
39871         * doc/posix-functions/fscanf.texi: Likewise.
39872         * doc/posix-functions/getc.texi: Likewise.
39873         * doc/posix-functions/getchar.texi: Likewise.
39874         * doc/posix-functions/gets.texi: Likewise.
39875         * doc/posix-functions/scanf.texi: Likewise.
39876         * doc/posix-functions/vfscanf.texi: Likewise.
39877         * doc/posix-functions/vscanf.texi: Likewise.
39879 2011-04-14  Bruno Haible  <bruno@clisp.org>
39881         Support non-blocking pipe I/O in write() on native Windows.
39882         * lib/write.c (rpl_write): Split a write request that failed merely
39883         because the byte count was larger than the pipe buffer's size.
39884         * doc/posix-functions/write.texi: Mention the problem with large byte
39885         counts.
39887 2011-04-14  Bruno Haible  <bruno@clisp.org>
39889         wchar: Ensure that wchar_t gets defined on uClibc.
39890         * lib/wchar.in.h: On uClibc, include <stddef.h>.
39891         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
39893 2011-04-13  Bruno Haible  <bruno@clisp.org>
39895         safe-write, full-read: Avoid unnecessary compilation units.
39896         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
39897         (Depends-on): Remove safe-read. Add ssize_t.
39898         * modules/full-read (Files): Add lib/full-write.c.
39899         (Depends-on): Add full-write.
39901 2011-04-13  Bruno Haible  <bruno@clisp.org>
39903         Support non-blocking pipe I/O and SIGPIPE in pwrite().
39904         * modules/pwrite (Depends-on): Add 'write'.
39906 2011-04-13  Bruno Haible  <bruno@clisp.org>
39908         Support non-blocking pipe I/O in write() on native Windows.
39909         * lib/unistd.in.h (write): Enable replacement also if
39910         GNULIB_UNISTD_H_NONBLOCKING is 1.
39911         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
39912         (rpl_write): When failing to write on a non-blocking pipe, change
39913         errno from ENOSPC to EAGAIN.
39914         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
39915         putchar, puts, vfprintf, vprintf): Enable replacement also if
39916         GNULIB_STDIO_H_NONBLOCKING is 1.
39917         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
39918         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
39919         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
39920         CALL_WITH_SIGPIPE_EMULATION.
39921         (CALL_WITH_SIGPIPE_EMULATION): Use them.
39922         * m4/nonblocking.m4: New file.
39923         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
39924         for non-blocking I/O support.
39925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39926         GNULIB_UNISTD_H_NONBLOCKING.
39927         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
39928         required for non-blocking I/O support.
39929         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
39930         * modules/nonblocking (Files): Add m4/nonblocking.m4,
39931         lib/stdio-write.c, m4/asm-underscore.m4.
39932         (Depends-on): Add stdio, unistd.
39933         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
39934         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
39935         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
39936         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
39937         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
39938         problem with non-blocking pipes.
39939         * doc/posix-functions/fputc.texi: Likewise.
39940         * doc/posix-functions/fputs.texi: Likewise.
39941         * doc/posix-functions/fwrite.texi: Likewise.
39942         * doc/posix-functions/printf.texi: Likewise.
39943         * doc/posix-functions/putc.texi: Likewise.
39944         * doc/posix-functions/putchar.texi: Likewise.
39945         * doc/posix-functions/puts.texi: Likewise.
39946         * doc/posix-functions/vfprintf.texi: Likewise.
39947         * doc/posix-functions/vprintf.texi: Likewise.
39948         * doc/posix-functions/write.texi: Likewise.
39950 2011-04-10  Jim Meyering  <meyering@redhat.com>
39952         maint.mk: prohibit doubled words
39953         Detect them also when they're separated by a newline.
39954         There are 3 ways to customize it:
39955           - disable the test on a per file basis, as usual with rules using
39956             $(VC_LIST_EXCEPT)
39957           - replace the default doubled-word-selecting regexp (affects all files)
39958           - ignore a particular file-vs-doubled-word match
39959         I nearly used that last one to ignore the "is is" match in
39960         coreutils' NEWS file, since the text was "ls -is is ..."
39961         To do that, I would have added this line to cfg.mk:
39962           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
39963         but it would have ignored any "is is" match in NEWS.
39964         Low probability, but still...
39965         Instead, I changed the text, slightly:
39966           -  ls -is is now consistent with ls -lis in ignoring values returned
39967           +  "ls -is" is now consistent with ls -lis in ignoring values returned
39968         * top/maint.mk (prohibit_double_word_RE_): Provide default.
39969         (prohibit_doubled_word_): Define.
39970         (sc_prohibit_doubled_word): New rule.
39971         (sc_prohibit_the_the): Remove.  Subsumed by the above.
39973 2011-04-10  Jim Meyering  <meyering@redhat.com>
39975         maint: fix doubled-word typo in comment
39976         * m4/gethostname.m4: s/is is/it is/
39977         * m4/getdomainname.m4: Likewise.
39979 2011-04-10  Jim Meyering  <meyering@redhat.com>
39981         maint: remove doubled word: s/it it/it/
39982         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
39984 2011-04-10  Jim Meyering  <meyering@redhat.com>
39986         maint.mk: remove useless semicolon and backslash
39987         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
39988         semicolon and backslash.
39990 2011-04-10  Bruno Haible  <bruno@clisp.org>
39992         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
39993         * modules/stdint-tests (Depends-on): Add wchar.
39995 2011-04-10  Jim Meyering  <meyering@redhat.com>
39997         maint: remove doubled words in comments, e.g., s/a a/a/
39998         * lib/strptime.c (day_of_the_week): s/the the/the/
39999         * tests/test-chown.h (test_chown): s/a a/a/
40001         test-chown.h: correct a cast
40002         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
40003         when the destination is a stat.st_gid.
40005 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
40007         getaddrinfo: Fix test for sa_len member.
40008         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
40009         include <sys/types.h> before <sys/socket.h>.
40011 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
40013         maint: change "can not" to "cannot"
40014         * doc/posix-functions/iconv.texi (iconv): This one crossed line
40015         boundaries.
40017 2011-04-09  Jim Meyering  <meyering@redhat.com>
40019         maint: change "a a" to "a"
40020         * tests/test-lchown.h (test_lchown): s/a a/a/
40022         maint.mk: prohibit \<the the\>
40023         * top/maint.mk (sc_prohibit_the_the): New rule.
40025         maint: fix "the the" in comment
40026         * lib/count-one-bits.h: s/the the/the/
40028         maint: change "can not" to "cannot"
40029         But do not change the occurrences in maintain.texi or in
40030         build-aux/po/Makefile.in.in, which I presume comes from gettext.
40031         * doc/gnulib-tool.texi: s/can not/cannot/
40032         * doc/posix-functions/accept.texi (accept): Likewise.
40033         * doc/posix-functions/socket.texi (socket): Likewise.
40034         * lib/mbrtowc.c: Likewise.
40036         maint.mk: prohibit use of "can not"
40037         * top/maint.mk (sc_prohibit_can_not): New rule.
40038         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
40040 2011-04-09  Bruno Haible  <bruno@clisp.org>
40042         careadlinkat: Guard against misuse of careadlinkatcwd.
40043         * lib/careadlinkat.c: Include <stdlib.h>.
40044         (careadlinkatcwd): Check that the fd argument is as expected.
40046 2011-04-09  Bruno Haible  <bruno@clisp.org>
40048         careadlinkat: Use common coding style.
40049         * lib/careadlinkat.c: Move gnulib includes after system includes.
40051 2011-04-09  Bruno Haible  <bruno@clisp.org>
40053         careadlinkat: Clarify specification.
40054         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
40055         (careadlinkatcwd): Add comment.
40056         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
40058 2011-04-09  Bruno Haible  <bruno@clisp.org>
40060         areadlinkat: Avoid link error on many platforms.
40061         * modules/areadlinkat (Depends-on): Add areadlink.
40063 2011-04-09  Bruno Haible  <bruno@clisp.org>
40065         allocator, careadlinkat: Fix double-inclusion guard.
40066         * lib/allocator.h: Fix double-inclusion guard.
40067         * lib/careadlinkat.h: Likewise.
40069 2011-04-09  Bruno Haible  <bruno@clisp.org>
40071         relocatable-prog-wrapper: Update after module 'areadlink' changed.
40072         * lib/relocwrapper.c: Update dependencies hierarchy.
40073         * build-aux/install-reloc: Update list of files to be compiled.
40074         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
40075         lib/allocator.[hc].
40077 2011-04-08  Eric Blake  <eblake@redhat.com>
40079         strftime: silence gnulib-tool warning
40080         * modules/strftime-tests (Depends-on): Drop automatic dependency.
40082 2011-04-08  Bruno Haible  <bruno@clisp.org>
40084         verify: Fix syntax error with GCC 4.6 in C++ mode.
40085         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
40086         (HAVE_STATIC_ASSERT): New macro.
40087         (verify_true, verify): Use 'static_assert' if it is supported and
40088         '_Static_assert' is not supported.
40090 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
40092         allocator: New module.
40093         * modules/allocator, lib/allocator.c: New files.
40094         * lib/allocator.h (stdlib_allocator): New decl.
40095         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
40096         Remove.  Do not include <stdlib.h>.
40097         (careadlinkat): Use stdlib_allocator instead of rolling our own.
40098         * modules/careadlinkat (Files): Remove lib/allocator.h.
40099         (Depends-on): Add allocator.
40101         stdlib: let modules use system malloc, realloc
40102         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
40103         if !_GL_USE_STDLIB_ALLOC.
40104         (malloc, realloc): Limit this change to a smaller scope.
40106         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
40107         (malloc, realloc): Don't #undef; no longer needed.
40108         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
40109         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
40110         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
40111         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
40112         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
40113         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
40114         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
40115         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
40117         careadlinkat: rename members to avoid problem
40118         * lib/allocator.h (struct allocator): Rename members from
40119         malloc/realloc to allocate/reallocate, to avoid problems if malloc
40120         and realloc are #define'd.  Reported by Eric Blake in
40121         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
40122         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
40124 2011-04-08  Eric Blake  <eblake@redhat.com>
40126         nonblocking: reduce dependency
40127         * tests/test-nonblocking.c: Only test sockets when in use.
40128         * modules/nonblocking-tests (Depends-on): Drop socket.
40129         (Makefile.am): Link even if sockets are not present.
40130         * modules/pipe2-tests (Makefile.am): Likewise.
40131         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
40133         pipe2: fix O_NONBLOCK support on mingw
40134         * modules/pipe2 (Depends-on): Add nonblocking.
40135         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
40136         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
40137         * tests/test-nonblocking.c (main): Likewise.
40138         * modules/pipe2-tests (Makefile.am): Avoid link failure.
40140         fcntl-h: fix O_ACCMODE on cygwin
40141         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
40142         * lib/fcntl.in.h (O_ACCMODE): Fix it.
40144         pipe-filter: drop O_NONBLOCK workarounds
40145         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
40146         * modules/pipe-filter-ii (Depends-on): Likewise.
40147         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
40149         nonblocking: provide O_NONBLOCK for mingw
40150         * modules/nonblocking (Depends-on): Add open.
40151         (configure.ac): Set new witness macro.
40152         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
40153         * modules/fcntl-h (Makefile.am): Substitute it.
40154         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
40155         nonblocking module is in use.
40156         * lib/nonblocking.c: Adjust portability test.
40157         * lib/open.c (open): Don't let native open see gnulib flag.
40158         * tests/test-fcntl-h.c (main): Enhance test.
40159         * tests/test-open.h (test_open): Likewise.
40160         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
40162         careadlinkat: fix compilation error on mingw
40163         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
40164         within struct allocator.
40166 2011-04-06  Eric Blake  <eblake@redhat.com>
40168         binary-io: relicense under LGPLv2+
40169         * modules/binary-io (License): Relax to LGPLv2+.
40170         Requested for libvirt, and required by pipe2.
40172 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
40174         verify: use _Static_assert if available
40175         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
40176         (verify_true, verify): Use it if available.  This generates better
40177         diagnostics with GCC 4.6.0 and later.
40179 2011-04-05  Bruno Haible  <bruno@clisp.org>
40181         Remove leftover generated .h files after config.status changed.
40183         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
40184         GL_GENERATE_ALLOCA_H.
40185         * modules/alloca-opt (Makefile.am): Remove alloca.h if
40186         GL_GENERATE_ALLOCA_H evaluates to false.
40188         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
40189         GL_GENERATE_ARGZ_H.
40190         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
40191         evaluates to false.
40193         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
40194         GL_GENERATE_BYTESWAP_H.
40195         * modules/byteswap (Makefile.am): Remove byteswap.h if
40196         GL_GENERATE_BYTESWAP_H evaluates to false.
40198         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
40199         GL_GENERATE_ERRNO_H.
40200         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
40201         evaluates to false.
40203         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
40204         GL_GENERATE_FLOAT_H.
40205         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
40206         evaluates to false.
40208         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
40209         GL_GENERATE_FNMATCH_H.
40210         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
40211         GL_GENERATE_FNMATCH_H evaluates to false.
40213         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
40214         GL_GENERATE_GLOB_H.
40215         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
40216         evaluates to false.
40218         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
40219         automake conditional GL_GENERATE_ICONV_H.
40220         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
40221         evaluates to false.
40223         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
40224         GL_GENERATE_NETINET_IN_H.
40225         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
40226         GL_GENERATE_NETINET_IN_H evaluates to false.
40228         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
40229         conditional GL_GENERATE_PTHREAD_H.
40230         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
40231         * modules/pthread (Makefile.am): Remove pthread.h if
40232         GL_GENERATE_PTHREAD_H evaluates to false.
40234         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
40235         GL_GENERATE_SCHED_H.
40236         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
40237         evaluates to false.
40239         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
40240         conditional GL_GENERATE_SELINUX_CONTEXT_H.
40241         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
40242         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
40244         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
40245         GL_GENERATE_STDARG_H.
40246         * modules/stdarg (Makefile.am): Remove stdarg.h if
40247         GL_GENERATE_STDARG_H evaluates to false.
40249         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
40250         GL_GENERATE_STDBOOL_H.
40251         * modules/stdbool (Makefile.am): Remove stdbool.h if
40252         GL_GENERATE_STDBOOL_H evaluates to false.
40254         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
40255         conditional GL_GENERATE_STDDEF_H.
40256         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
40257         * modules/stddef (Makefile.am): Remove stddef.h if
40258         GL_GENERATE_STDDEF_H evaluates to false.
40260         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
40261         GL_GENERATE_STDINT_H.
40262         * modules/stdint (Makefile.am): Remove stdint.h if
40263         GL_GENERATE_STDINT_H evaluates to false.
40265         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
40266         GL_GENERATE_SYSEXITS_H.
40267         * modules/sysexits (Makefile.am): Remove sysexits.h if
40268         GL_GENERATE_SYSEXITS_H evaluates to false.
40270         Reported by Karl Berry and Ralf Wildenhues.
40272 2011-04-05  Bruno Haible  <bruno@clisp.org>
40274         Ensure to rebuild generated .h files when config.status has changed.
40275         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
40276         config.status.
40277         * modules/ctype (Makefile.am): Likewise.
40278         * modules/dirent (Makefile.am): Likewise.
40279         * modules/errno (Makefile.am): Likewise.
40280         * modules/fcntl-h (Makefile.am): Likewise.
40281         * modules/float (Makefile.am): Likewise.
40282         * modules/getopt-posix (Makefile.am): Likewise.
40283         * modules/glob (Makefile.am): Likewise.
40284         * modules/iconv-h (Makefile.am): Likewise.
40285         * modules/inttypes (Makefile.am): Likewise.
40286         * modules/langinfo (Makefile.am): Likewise.
40287         * modules/locale (Makefile.am): Likewise.
40288         * modules/math (Makefile.am): Likewise.
40289         * modules/netdb (Makefile.am): Likewise.
40290         * modules/netinet_in (Makefile.am): Likewise.
40291         * modules/poll-h (Makefile.am): Likewise.
40292         * modules/pthread (Makefile.am): Likewise.
40293         * modules/pty (Makefile.am): Likewise.
40294         * modules/sched (Makefile.am): Likewise.
40295         * modules/search (Makefile.am): Likewise.
40296         * modules/selinux-h (Makefile.am): Likewise.
40297         * modules/signal (Makefile.am): Likewise.
40298         * modules/spawn (Makefile.am): Likewise.
40299         * modules/stdarg (Makefile.am): Likewise.
40300         * modules/stdbool (Makefile.am): Likewise.
40301         * modules/stddef (Makefile.am): Likewise.
40302         * modules/stdint (Makefile.am): Likewise.
40303         * modules/stdio (Makefile.am): Likewise.
40304         * modules/stdlib (Makefile.am): Likewise.
40305         * modules/string (Makefile.am): Likewise.
40306         * modules/strings (Makefile.am): Likewise.
40307         * modules/sys_file (Makefile.am): Likewise.
40308         * modules/sys_ioctl (Makefile.am): Likewise.
40309         * modules/sys_select (Makefile.am): Likewise.
40310         * modules/sys_socket (Makefile.am): Likewise.
40311         * modules/sys_stat (Makefile.am): Likewise.
40312         * modules/sys_time (Makefile.am): Likewise.
40313         * modules/sys_times (Makefile.am): Likewise.
40314         * modules/sys_utsname (Makefile.am): Likewise.
40315         * modules/sys_wait (Makefile.am): Likewise.
40316         * modules/sysexits (Makefile.am): Likewise.
40317         * modules/termios (Makefile.am): Likewise.
40318         * modules/time (Makefile.am): Likewise.
40319         * modules/unistd (Makefile.am): Likewise.
40320         * modules/wchar (Makefile.am): Likewise.
40321         * modules/wctype-h (Makefile.am): Likewise.
40322         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
40324 2011-04-05  Bruno Haible  <bruno@clisp.org>
40326         pipe2: Relicense under LGPLv2+.
40327         * modules/pipe2 (License): Change to LGPLv2+.
40328         Requested by Eric Blake, for libvirt.
40330 2011-04-05  Bruce Korb  <bkorb@gnu.org>
40332         bootstrap: compute gnulib_extra_files after updating build_aux
40333         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
40334         change build_aux or also supply gnulib_extra_files.  Handle correctly.
40336 2011-04-05  Eric Blake  <eblake@redhat.com>
40338         bootstrap: preserve git whitelist item sorting
40339         * build-aux/bootstrap (sort_patterns): New function.
40340         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
40342 2011-04-05  Simon Josefsson  <simon@josefsson.org>
40344         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
40345         sc_space_tab check.
40347 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
40349         areadlink, areadlinkat: rewrite in terms of careadlinkat
40350         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
40351         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
40352         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
40353         (malloc, realloc): Remove #undefs.
40354         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
40355         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
40356         readlink, ssize_t, stdint, unistd.
40357         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
40358         areadlink, stdint.
40360         careadlinkat: new module
40361         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
40362         * modules/careadlinkat: New files, written by me with
40363         a review and feedback from Ben Pfaff in
40364         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
40366 2011-04-01  Bruno Haible  <bruno@clisp.org>
40368         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
40369         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
40370         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
40371         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
40372         Reported by Bruce Korb <bruce.korb@gmail.com>.
40374 2011-04-01  Bruno Haible  <bruno@clisp.org>
40376         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
40377         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
40378         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
40379         * modules/wcpcpy (Depends-on): Add extensions.
40380         * modules/wcpncpy (Depends-on): Likewise.
40381         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
40382         systems.
40383         * doc/posix-functions/wcpncpy.texi: Likewise.
40384         * doc/posix-functions/wcwidth.texi: Likewise.
40386 2011-03-31  Eric Blake  <eblake@redhat.com>
40388         nonblocking: fix mingw test failures
40389         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
40390         non-blocking flag on regular file.
40391         (get_nonblocking_flag): Set errno on invalid fd.
40392         * tests/test-nonblocking.c (main): Avoid test failure on
40393         directories if fchdir is not active.
40394         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
40396 2011-03-31  Bruno Haible  <bruno@clisp.org>
40398         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
40399         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
40400         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
40401         Reported by Simon Josefsson <simon@josefsson.org>.
40403 2011-03-31  Bruno Haible  <bruno@clisp.org>
40404         and Eric Blake  <eblake@redhat.com>
40406         nonblocking: new module
40407         * modules/nonblocking: New module.
40408         * modules/nonblocking-tests: Likewise.
40409         * lib/nonblocking.h: New file.
40410         * lib/nonblocking.c: Likewise.
40411         * tests/test-nonblocking.c: New test.
40412         * lib/ioctl.c (ioctl) [mingw]: Update comment.
40414 2011-03-30  Bruno Haible  <bruno@clisp.org>
40416         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
40417         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
40418         instead of 'printf' format for GCC >= 4.4.
40419         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
40420         (fprintf, printf, vfprintf, vprintf): Declare with
40421         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
40422         the system's vfprintf() function.
40423         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
40425 2011-03-30  Eric Blake  <eblake@redhat.com>
40427         passfd: fix scoping bug
40428         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
40429         before sendmsg/recvmsg.
40431         passfd: standardize coding conventions
40432         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
40433         can be learned at compile time.
40434         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
40435         ifdefs.
40436         (sendfd, recvfd): Follow gnulib code conventions.
40438         passfd: fix incorrect sendmsg arguments
40439         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
40440         incorrect msg_controllen value.
40441         * modules/passfd-tests (Depends-on): Check for alarm.
40442         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
40443         Reported by Bastien ROUCARIES.
40445 2011-03-30  Bruno Haible  <bruno@clisp.org>
40447         c-strcasestr: Relicense under LGPLv2+.
40448         * modules/c-strcasestr (License): Change to LGPLv2+.
40449         Requested by Eric Blake, for libvirt.
40451 2011-03-30  Simon Josefsson  <simon@josefsson.org>
40453         * users.txt: Add libidn2.  Fix libtasn1 link.
40455 2011-03-30  Jim Meyering  <meyering@redhat.com>
40457         tests: readlink* ("",... fails with EINVAL on newer kernels
40458         readlink and readlinkat have typically failed with ENOENT for
40459         the invalid, empty file name,  "".  However, with the advent
40460         of linux-2.6.39, they fail with EINVAL.
40461         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
40462         when operating on the empty file name.
40463         * tests/test-readlink.h (test_readlink): Likewise.
40465 2011-03-29  Bruno Haible  <bruno@clisp.org>
40467         Relicense some modules under LGPLv2+, for libidn2.
40468         * modules/array-mergesort (License): Change to LGPLv2+.
40469         * modules/c-strcaseeq (License): Likewise.
40470         * modules/striconveh (License): Likewise.
40471         * modules/striconveha (License): Likewise.
40472         * modules/uniconv/base (License): Likewise.
40473         * modules/uniconv/u8-conv-from-enc (License): Likewise.
40474         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
40475         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
40476         * modules/unictype/base (License): Likewise.
40477         * modules/unictype/bidiclass-of (License): Likewise.
40478         * modules/unictype/category-M (License): Likewise.
40479         * modules/unictype/category-none (License): Likewise.
40480         * modules/unictype/category-of (License): Likewise.
40481         * modules/unictype/category-test (License): Likewise.
40482         * modules/unictype/category-test-withtable (License): Likewise.
40483         * modules/unictype/combining-class (License): Likewise.
40484         * modules/unictype/joiningtype-of (License): Likewise.
40485         * modules/unictype/scripts (License): Likewise.
40486         * modules/uninorm/base (License): Likewise.
40487         * modules/uninorm/canonical-decomposition (License): Likewise.
40488         * modules/uninorm/composition (License): Likewise.
40489         * modules/uninorm/decompose-internal (License): Likewise.
40490         * modules/uninorm/decomposition-table (License): Likewise.
40491         * modules/uninorm/nfc (License): Likewise.
40492         * modules/uninorm/nfd (License): Likewise.
40493         * modules/uninorm/u32-normalize (License): Likewise.
40494         * modules/unistr/base (License): Likewise.
40495         * modules/unistr/u32-cpy (License): Likewise.
40496         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
40497         * modules/unistr/u32-to-u8 (License): Likewise.
40498         * modules/unistr/u32-uctomb (License): Likewise.
40499         * modules/unistr/u8-check (License): Likewise.
40500         * modules/unistr/u8-mblen (License): Likewise.
40501         * modules/unistr/u8-mbtouc (License): Likewise.
40502         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
40503         * modules/unistr/u8-mbtoucr (License): Likewise.
40504         * modules/unistr/u8-prev (License): Likewise.
40505         * modules/unistr/u8-strlen (License): Likewise.
40506         * modules/unistr/u8-to-u32 (License): Likewise.
40507         * modules/unistr/u8-uctomb (License): Likewise.
40508         * modules/unitypes (License): Likewise.
40509         Requested by Simon Josefsson.
40511 2011-03-29  Simon Josefsson  <simon@josefsson.org>
40513         lib-symbol-visibility: Add a notice.
40514         * modules/lib-symbol-visibility (Notice): New field.
40516 2011-03-29  Bruno Haible  <bruno@clisp.org>
40518         getaddrinfo: Doc fix.
40519         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
40520         section "fixed in Gnulib".
40522 2011-03-28  Simon Josefsson  <simon@josefsson.org>
40524         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
40525         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
40527 2011-03-26  Bruno Haible  <bruno@clisp.org>
40529         unictype/property-byname: Reduce the number of load-time relocations.
40530         * lib/unictype/pr_byname.c: Include <stdlib.h>.
40531         (UC_PROPERTY_INDEX_*): New enumeration values.
40532         (uc_property_byname): Convert an index from the lookup table to an
40533         uc_property_t.
40534         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
40535         values.
40537 2011-03-26  Bruno Haible  <bruno@clisp.org>
40539         unictype/property-byname: Allow omitted word separators and aliases.
40540         * lib/unictype/pr_byname.gperf: Add property names without word
40541         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
40542         for 'space'.
40544 2011-03-26  Bruno Haible  <bruno@clisp.org>
40546         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
40547         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
40548         also hyphens to space.
40549         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
40550         without spaces.
40551         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
40553 2011-03-26  Bruno Haible  <bruno@clisp.org>
40555         unictype/joiningtype-byname: Recognize long names as well.
40556         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
40557         a long name.
40558         * lib/unictype/joiningtype_byname.c: Include <string.h>,
40559         unictype/joiningtype_byname.h.
40560         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
40561         * lib/unictype/joiningtype_byname.gperf: New file.
40562         * modules/unictype/joiningtype-byname (Files): Add
40563         lib/unictype/joiningtype_byname.gperf.
40564         (Depends-on): Add gperf.
40565         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
40566         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
40567         long names.
40569         Tests for module 'unictype/joiningtype-longname'.
40570         * modules/unictype/joiningtype-longname-tests: New file.
40571         * tests/unictype/test-joiningtype_longname.c: New file.
40573         New module 'unictype/joiningtype-longname'.
40574         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
40575         * lib/unictype/joiningtype_longname.c: New file.
40576         * modules/unictype/joiningtype-longname: New file.
40577         * modules/unictype/joiningtype-all (Depends-on): Add
40578         unictype/joiningtype-longname.
40580 2011-03-26  Bruno Haible  <bruno@clisp.org>
40582         unictype/bidiclass-byname: Recognize long names as well.
40583         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
40584         name.
40585         * lib/unictype/bidi_byname.c: Include <string.h>,
40586         unictype/bidi_byname.h.
40587         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
40588         * lib/unictype/bidi_byname.gperf: New file.
40589         * modules/unictype/bidiclass-byname (Files): Add
40590         lib/unictype/bidi_byname.gperf.
40591         (Depends-on): Add gperf.
40592         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
40593         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
40594         long names.
40596         Tests for module 'unictype/bidiclass-longname'.
40597         * modules/unictype/bidiclass-longname-tests: New file.
40598         * tests/unictype/test-bidi_longname.c: New file.
40600         New module 'unictype/bidiclass-longname'.
40601         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
40602         * lib/unictype/bidi_longname.c: New file.
40603         * modules/unictype/bidiclass-longname: New file.
40604         * modules/unictype/bidiclass-all (Depends-on): Add
40605         unictype/bidiclass-longname.
40607 2011-03-26  Bruno Haible  <bruno@clisp.org>
40609         unictype/bidi*: Rename modules.
40610         * modules/unictype/bidiclass-all: Renamed from
40611         modules/unictype/bidicategory-all.
40612         * modules/unictype/bidiclass-name: Renamed from
40613         modules/unictype/bidiclass-name.
40614         (Description): Update.
40615         * modules/unictype/bidiclass-name-tests: Renamed from
40616         modules/unictype/bidicategory-name-tests.
40617         * modules/unictype/bidiclass-byname: Renamed from
40618         modules/unictype/bidicategory-byname.
40619         (Description): Update.
40620         * modules/unictype/bidiclass-byname-tests: Renamed from
40621         modules/unictype/bidicategory-byname-tests.
40622         * modules/unictype/bidiclass-of: Renamed from
40623         modules/unictype/bidicategory-of.
40624         (Description): Update.
40625         * modules/unictype/bidiclass-of-tests: Renamed from
40626         modules/unictype/bidicategory-of-tests.
40627         * modules/unictype/bidiclass-test: Renamed from
40628         modules/unictype/bidicategory-test.
40629         (Description): Update.
40630         * modules/unictype/bidiclass-test-tests: Renamed from
40631         modules/unictype/bidicategory-test-tests.
40632         * modules/unictype/bidicategory-all: New file, a simple redirection.
40633         * modules/unictype/bidicategory-name: Likewise.
40634         * modules/unictype/bidicategory-byname: Likewise.
40635         * modules/unictype/bidicategory-of: Likewise.
40636         * modules/unictype/bidicategory-test: Likewise.
40637         * modules/unictype/property-bidi-* (Dependencies): Update.
40638         * lib/unictype/bidi_*.c: Update comment.
40640 2011-03-26  Bruno Haible  <bruno@clisp.org>
40642         unictype/bidi*: Rename functions, part 2.
40643         * modules/unictype/bidicategory-name (configure.ac): Update required
40644         libunistring version.
40645         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
40647 2011-03-25  Bruno Haible  <bruno@clisp.org>
40649         New module 'unictype/combining-class-all'.
40650         * modules/unictype/combining-class-all: New file.
40652         Tests for module 'unictype/combining-class-byname'.
40653         * modules/unictype/combining-class-byname-tests: New file.
40654         * tests/unictype/test-combiningclass_byname.c: New file.
40656         New module 'unictype/combining-class-byname'.
40657         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
40658         * lib/unictype/combiningclass_byname.c: New file.
40659         * lib/unictype/combiningclass_byname.gperf: New file.
40660         * modules/unictype/combining-class-byname: New file.
40662         Tests for module 'unictype/combining-class-longname'.
40663         * modules/unictype/combining-class-longname-tests: New file.
40664         * tests/unictype/test-combiningclass_longname.c: New file.
40666         New module 'unictype/combining-class-longname'.
40667         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
40668         * lib/unictype/combiningclass_longname.c: New file.
40669         * modules/unictype/combining-class-longname: New file.
40671         Tests for module 'unictype/combining-class-name'.
40672         * modules/unictype/combining-class-name-tests: New file.
40673         * tests/unictype/test-combiningclass_name.c: New file.
40675         New module 'unictype/combining-class-name'.
40676         * lib/unictype.in.h (uc_combining_class_name): New declaration.
40677         * lib/unictype/combiningclass_name.c: New file.
40678         * modules/unictype/combining-class-name: New file.
40680 2011-03-25  Bruno Haible  <bruno@clisp.org>
40682         unictype/combining-class: Rename source files.
40683         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
40684         of unictype/combining.h.
40685         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
40686         Update.
40687         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
40688         * modules/unictype/combining-class (Description): Fix.
40689         (Files, Makefile.am): Update.
40690         * tests/unictype/test-combiningclass.c: Renamed from
40691         tests/unictype/test-combining.c.
40692         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
40694 2011-03-25  Bruno Haible  <bruno@clisp.org>
40696         unictype: Update list of canonical combining classes.
40697         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
40699 2011-03-25  Bruno Haible  <bruno@clisp.org>
40701         unictype/category-byname: Recognize long names as well.
40702         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
40703         a long name.
40704         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
40705         unictype/categ_byname.h.
40706         (UC_CATEGORY_INDEX_*): New enumeration values.
40707         (uc_general_category_byname): Use uc_general_category_lookup and
40708         convert from index to value.
40709         * lib/unictype/categ_byname.gperf: New file.
40710         * modules/unictype/category-byname (Files): Add
40711         lib/unictype/categ_byname.gperf.
40712         (Depends-on): Add gperf.
40713         (Makefile.am): Add rule for generating unictype/categ_byname.h.
40714         * tests/unictype/test-categ_byname.c (main): Test the recognition of
40715         long names.
40717         Tests for module 'unictype/category-longname'.
40718         * modules/unictype/category-longname-tests: New file.
40719         * tests/unictype/test-categ_longname.c: New file.
40721         New module 'unictype/category-longname'.
40722         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
40723         * lib/unictype/categ_longname.c: New file.
40724         * modules/unictype/category-longname: New file.
40725         * modules/unictype/category-all (Depends-on): Add it.
40727 2011-03-25  Bruno Haible  <bruno@clisp.org>
40729         Tests for module 'unictype/category-LC'.
40730         * modules/unictype/category-LC-tests: New file.
40731         * tests/unictype/test-categ_LC.c: New file, automatically generated.
40733         New module 'unictype/category-LC'.
40734         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
40735         (UC_CATEGORY_LC): New declaration.
40736         (UC_CASED_LETTER): New macro.
40737         * lib/gen-uni-tables.c (is_category_LC): New function.
40738         (output_categories): Also handle category LC.
40739         (UC_CATEGORY_MASK_LC): New enumeration value.
40740         (general_category_byname): Also handle category LC.
40741         * lib/unictype/categ_LC.c: New file.
40742         * lib/unictype/categ_LC.h: New file, automatically generated.
40743         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
40744         category LC.
40745         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
40746         * modules/unictype/category-LC: New file.
40747         * modules/unictype/category-byname (Depends-on): Add
40748         unictype/category-LC.
40749         * modules/unictype/category-all (Depends-on): Likewise.
40751 2011-03-25  Eric Blake  <eblake@redhat.com>
40753         xmalloc: revert yesterday's regression
40754         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
40755         realloc's underlying behavior (allowing allocation of zero-size
40756         objects, especially if malloc-gnu is also in use).
40758 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
40760         maint.mk: add missing version to VC-tag
40761         * top/maint.mk: git tag was missing actual tag name; add it.
40763         valgrind: do leak checking, and exit with code 1 on error (not 0)
40764         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
40765         to VALGRIND.
40767 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
40769         posix-modules: say what it does.
40770         * posix-modules: Add a line to the --help output saying what it does.
40772 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
40774         xmalloc: Do not leak if underlying realloc is C99 compatible.
40775         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
40776         This avoids a leak on C99-based systems.  See
40777         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
40779 2011-03-24  Eric Blake  <eblake@redhat.com>
40781         realloc: document portability problem
40782         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
40783         passing 0 size to realloc.
40785 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
40787         doc: update users.txt
40788         * users.txt: Add cvsps, tmpwatch
40790 2011-03-23  Matt Rice  <ratmice@gmail.com>
40792         doc: update users.txt
40793         * users.txt: Add gdb.
40795 2011-03-23  Jim Meyering  <meyering@redhat.com>
40797         doc: update users.txt
40798         Looking through matches up to the following URL (there are still
40799         several more pages), I found several projects that use gnulib:
40800         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
40801         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
40802         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
40804 2011-03-22  Bruno Haible  <bruno@clisp.org>
40806         unictype/bidi*: Rename functions.
40807         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
40808         uc_bidi_class, uc_is_bidi_class): New declarations.
40809         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
40810         uc_bidi_category_byname.
40811         (uc_bidi_category_byname): New function.
40812         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
40813         u_bidi_category_name.
40814         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
40815         (uc_bidi_category_name): New function.
40816         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
40817         uc_bidi_category.
40818         (uc_bidi_category): New function.
40819         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
40820         uc_is_bidi_category. Invoke uc_bidi_class.
40821         (uc_is_bidi_category): New function.
40822         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
40823         instead of uc_bidi_category_byname.
40824         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
40825         instead of uc_bidi_category_name.
40826         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
40827         uc_bidi_category.
40828         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
40829         instead of uc_is_bidi_category.
40831 2011-03-21  Bruno Haible  <bruno@clisp.org>
40833         New module 'unictype/joininggroup-all'.
40834         * modules/unictype/joininggroup-all: New file.
40836         Tests for module 'unictype/joininggroup-of'.
40837         * modules/unictype/joininggroup-of-tests: New file.
40838         * tests/unictype/test-joininggroup_of.c: New file.
40839         * tests/unictype/test-joininggroup_of.h: New file, automatically
40840         generated by gen-uni-tables.
40842         New module 'unictype/joininggroup-of'.
40843         * modules/unictype/joininggroup-of: New file.
40844         * lib/unictype/joininggroup_of.c: New file.
40845         * lib/unictype/joininggroup_of.h: New file, automatically generated by
40846         gen-uni-tables.
40848         Tests for module 'unictype/joininggroup-byname'.
40849         * modules/unictype/joininggroup-byname-tests: New file.
40850         * tests/unictype/test-joininggroup_byname.c: New file.
40852         New module 'unictype/joininggroup-byname'.
40853         * modules/unictype/joininggroup-byname: New file.
40854         * lib/unictype/joininggroup_byname.c: New file.
40855         * lib/unictype/joininggroup_byname.gperf: New file.
40857         Tests for module 'unictype/joininggroup-name'.
40858         * modules/unictype/joininggroup-name-tests: New file.
40859         * tests/unictype/test-joininggroup_name.c: New file.
40861         New module 'unictype/joininggroup-name'.
40862         * modules/unictype/joininggroup-name: New file.
40863         * lib/unictype/joininggroup_name.c: New file.
40864         * lib/unictype/joininggroup_name.h: New file.
40866         New module 'unictype/joiningtype-all'.
40867         * modules/unictype/joiningtype-all: New file.
40869         Tests for module 'unictype/joiningtype-of'.
40870         * modules/unictype/joiningtype-of-tests: New file.
40871         * tests/unictype/test-joiningtype_of.c: New file.
40872         * tests/unictype/test-joiningtype_of.h: New file, automatically
40873         generated by gen-uni-tables.
40875         New module 'unictype/joiningtype-of'.
40876         * modules/unictype/joiningtype-of: New file.
40877         * lib/unictype/joiningtype_of.c: New file.
40878         * lib/unictype/joiningtype_of.h: New file, automatically generated by
40879         gen-uni-tables.
40881         Tests for module 'unictype/joiningtype-byname'.
40882         * modules/unictype/joiningtype-byname-tests: New file.
40883         * tests/unictype/test-joiningtype_byname.c: New file.
40885         New module 'unictype/joiningtype-byname'.
40886         * modules/unictype/joiningtype-byname: New file.
40887         * lib/unictype/joiningtype_byname.c: New file.
40889         Tests for module 'unictype/joiningtype-name'.
40890         * modules/unictype/joiningtype-name-tests: New file.
40891         * tests/unictype/test-joiningtype_name.c: New file.
40893         New module 'unictype/joiningtype-name'.
40894         * modules/unictype/joiningtype-name: New file.
40895         * lib/unictype/joiningtype_name.c: New file.
40897         unictype: Add support for Arabic shaping properties.
40898         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
40899         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
40900         declarations.
40901         (UC_JOINING_GROUP_*): New enumeration values.
40902         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
40903         declarations.
40904         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
40905         (unicode_joining_type): New variable.
40906         (UC_JOINING_GROUP_*): New enumeration values.
40907         (unicode_joining_group): New variable.
40908         (fill_arabicshaping, joining_type_as_c_identifier,
40909         output_joining_type_test, output_joining_type,
40910         joining_group_as_c_identifier, output_joining_group_test,
40911         output_joining_group): New functions.
40912         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
40913         fill_arabicshaping and output_joining_type_test, output_joining_type,
40914         output_joining_group_test, output_joining_group.
40915         Reported by Simon Josefsson.
40917 2011-03-21  Jim Meyering  <meyering@redhat.com>
40919         strftime: fix a bug in yesterday's change
40920         * lib/strftime.c (add): Accommodate width's initial value of -1.
40921         Otherwise, nstrftime would copy uninitialized data into
40922         the result buffer.
40924 2011-03-21  Jim Meyering  <meyering@redhat.com>
40926         tests: add strftime-tests module
40927         * tests/test-strftime.c: New file.
40928         * modules/strftime-tests: New module.
40930 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
40932         strftime: don't assume a byte count fits in 'int'
40933         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
40934         found this problem by static analysis, using gcc -Wstrict-overflow
40935         (GCC 4.5.2, x86-64).  This reported an optimization that depended
40936         on an integer overflow having undefined behavior, but it turns out
40937         that the argument is a size, which might not fit in 'int' anyway,
40939 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
40941         stdio: don't require ignore_value around fwrite
40943         This patch works around libc bug 11959
40944         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
40945         Without this patch, applications must often write
40946         ignore_value (fwrite (...)) even though the ignore_value is
40947         not helpful here.  It's common to write many objects, using
40948         fwrite/printf/etc., and then use ferror to detect output error.
40950         I considered making this patch optional, but decided against it,
40951         because libc is obviously being inconsistent here: there is no
40952         reason libc should insist that user code must inspect fwrite
40953         return's value without also insisting that it inspect printf's,
40954         putchar's, etc.  If user code wants to have a strict style where
40955         all these functions' values are checked (so that ferror need not
40956         be checked), we could add support for that style in a new gnulib
40957         module, but in the meantime it's better to be consistent and to
40958         support common usage.
40960         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
40961         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
40962         that we are compiling in checking mode, and if not C++, and
40963         if not already wrapping fwrite for some other reason.
40964         (fwrite): #define to rpl_fwrite if the latter is defined.
40966 2011-03-20  Bruno Haible  <bruno@clisp.org>
40968         verror: Fix compilation error introduced on 2011-02-13.
40969         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
40970         instead of __attribute__.
40971         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40973 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
40974             Bruno Haible  <bruno@clisp.org>
40976         socklen: do not depend on sys_socket
40977         While trying to modify Emacs to use gnulib's socklen module,
40978         I discovered a circular dependency: socklen depends on sys_socket
40979         and vice versa.  Emacs can use socklen, but it does not need
40980         sys_socket because it has its own substitute for sys/socket.h.
40981         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
40982         gl_TYPE_SOCKLEN_T.
40983         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
40984         gl_PREREQ_SYS_H_SOCKET.
40985         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
40986         gl_PREREQ_SYS_H_SOCKET.
40987         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
40988         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
40989         * modules/socklen (Depends-on): Do not depend on sys_socket.
40990         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
40992 2011-03-20  Jim Meyering  <meyering@redhat.com>
40994         maint.mk: sort file names *after* new transformation
40995         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
40996         prefix would have led to an unwarranted failure in GNU parted.
40997         Sort after that transformation.
40999 2011-03-19  Jim Meyering  <meyering@redhat.com>
41001         maint.mk: fix po-file syntax-check rule
41002         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
41003         Patch by Bruno Haible.
41005 2011-03-19  Bruno Haible  <bruno@clisp.org>
41007         socklen: Update comment.
41008         * m4/socklen.m4: Update comment about platforms.
41010 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41011             Bruno Haible  <bruno@clisp.org>
41013         inet_ntop, inet_pton: Simplify.
41014         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
41015         documented to provide socklen_t and we already depend on sys_socket.
41016         * modules/inet_pton (Depends-on): Likewise.
41017         * lib/arpa_inet.in.h: Adjust comment.
41019 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41020             Bruno Haible  <bruno@clisp.org>
41022         netdb: Simplify.
41023         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
41024         documented to provide socklen_t and we already depend on sys_socket.
41025         * lib/netdb.in.h: Adjust comment.
41027 2011-03-19  Bruno Haible  <bruno@clisp.org>
41029         sys_socket, netdb: Document problem with socklen_t.
41030         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
41031         platforms.
41032         * doc/posix-headers/netdb.texi: Likewise.
41034 2011-03-18  Eric Blake  <eblake@redhat.com>
41036         maint.mk: let po check work in VPATH build
41037         * top/maint.mk (po_file): Allow cfg.mk override.
41038         (sc_po_check): Allow VPATH use.
41039         Reported by Jiri Denemark.
41041 2011-03-16  Jim Meyering  <meyering@redhat.com>
41043         maint.mk: allow fine-grained syntax-check exclusion via Make variables
41044         Before, you would have had to create one .x-sc_ file per rule in order
41045         to exempt offending files.  Now, you may instead use a Make variable --
41046         usually defined in cfg.mk -- whose name identifies the affected rule.
41047         * top/maint.mk (_sc_excl): Define.
41048         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
41049         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
41051 2011-03-13  Bruno Haible  <bruno@clisp.org>
41053         ignore-value tests: Avoid warnings.
41054         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
41055         empty for gcc < 3.4.
41057 2011-03-13  Bruno Haible  <bruno@clisp.org>
41059         passfd: Fix link error on Solaris.
41060         * modules/passfd (Description): Correct.
41061         (Depends-on): Add socketlib.
41062         (Link): New section.
41063         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
41065 2011-03-13  Bruno Haible  <bruno@clisp.org>
41067         passfd: Fix link error on AIX 5.2.
41068         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
41070 2011-03-13  Bruno Haible  <bruno@clisp.org>
41072         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
41073         * lib/sys_socket.in.h: Include <stddef.h>.
41074         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
41075         CMSG_FIRSTHDR. Remove unused variable.
41077 2011-03-13  Bruno Haible  <bruno@clisp.org>
41079         passfd: Fix compilation error on OpenBSD.
41080         * lib/passfd.c: Include <sys/uio.h>.
41082 2011-03-13  Bruno Haible  <bruno@clisp.org>
41084         passfd test: Fix warnings.
41085         * tests/test-passfd.c: Include <sys/wait.h>.
41086         (main): Fix typo.
41088 2011-03-13  Bruno Haible  <bruno@clisp.org>
41090         passfd module, part 4, tweaks.
41091         * tests/test-passfd.c: Reorder includes.
41092         (main): Fix perror and printf calls.
41094 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
41096         passfd module, part 4.
41097         * modules/passfd-tests: New file.
41098         * tests/test-passfd.c: New file.
41100 2011-03-13  Jim Meyering  <meyering@redhat.com>
41102         Makefile: rely on GNU make; derive syntax-check rule names
41103         Rather than requiring that each sc_ rule be listed as a dependent
41104         of "check", use features of GNU make to derive the list.
41105         * Makefile (syntax-check-rules): Define.
41106         (check): Depend on the new variable, not the hard-coded list.
41108 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
41109             Bruno Haible  <bruno@clisp.org>
41111         passfd module, part 3.
41112         * lib/passfd.h (recvfd): Add a flags argument.
41113         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
41114         (recvfd): Add a flags argument.
41115         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
41116         exists.
41117         * modules/passfd (Depends-on): Add cloexec.
41118         Suggested by Eric Blake.
41120 2011-03-13  Bruno Haible  <bruno@clisp.org>
41122         passfd module, part 2, tweaks.
41123         * modules/passfd (Files): Reorder.
41124         (Depends-on): Remove errno.
41125         (Include): Remove <sys/socket.h>, <sys/un.h>.
41126         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
41127         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
41128         specification header. Include <sys/socket.h> always. Don't include
41129         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
41130         (sendfd): Clarify that it sets errno when it fails.
41131         (recvfd): Fix specification.
41133 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
41135         passfd module, part 2.
41136         * modules/passfd: New file.
41137         * lib/passfd.h: New file.
41138         * lib/passfd.c: New file.
41140 2011-03-12  Bruno Haible  <bruno@clisp.org>
41142         wcswidth, mbswidth: Avoid integer overflow.
41143         * lib/wcswidth.c: Include <limits.h>.
41144         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
41145         * lib/mbswidth.c: Include <limits.h>.
41146         (mbsnwidth): Avoid 'int' overflow.
41147         Reported by Jim Meyering.
41149 2011-03-12  Bruno Haible  <bruno@clisp.org>
41151         futimens, utimensat: Avoid endless recursion on Solaris 10.
41152         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
41153         Solaris.
41154         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
41155         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
41157 2011-03-11  Jim Meyering  <meyering@redhat.com>
41159         maint.mk: relax a regexp to accommodate other formatting styles
41160         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
41161         between "ngettext" and the following "(".
41163 2011-03-11  Pádraig Brady  <P@draigBrady.com>
41165         maint.mk: suppress a false positive warning
41166         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
41167         diagnostics are marked with ngettext.
41169 2011-03-10  Eric Blake  <eblake@redhat.com>
41171         wchar: add explicit dependencies, for Tru64
41172         * modules/mbmemcasecoll (Depends-on): Add wchar.
41173         * modules/mbtowc (Depends-on): Likewise.
41174         * modules/vasnprintf (Depends-on): Likewise.
41175         * modules/unistdio/u-printf-args (Depends-on): Likewise.
41176         * modules/wctomb (Depends-on): Likewise.
41177         Reported by Peter O'Gorman.
41179 2011-03-08  Bruno Haible  <bruno@clisp.org>
41181         passfd module, part 1, tweaks.
41182         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
41183         Improve indentation. Improve AC_MSG_CHECKING messages.
41184         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
41185         gl_SOCKET_FAMILIES.
41187 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
41189         passfd module, part 1.
41190         * m4/afunix.m4: New file.
41191         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
41192         sockets.
41194 2011-03-08  Bruno Haible  <bruno@clisp.org>
41196         regex-quote: New API.
41197         * lib/regex-quote.h: Include <stdbool.h>.
41198         (struct regex_quote_spec): New type.
41199         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
41200         New declarations.
41201         (regex_quote_length, regex_quote_copy, regex_quote): Take a
41202         'const struct regex_quote_spec *' argument.
41203         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
41204         (pcre_special): New constant.
41205         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
41206         New functions.
41207         (regex_quote_length, regex_quote_copy, regex_quote): Take a
41208         'const struct regex_quote_spec *' argument.
41209         * modules/regex-quote (Depends-on): Add stdbool.
41210         * tests/test-regex-quote.c (check): Update for new API. Add test for
41211         anchored results.
41212         * NEWS: Mention the API change.
41213         Reported by Reuben Thomas and Eric Blake.
41215 2011-03-06  Bruno Haible  <bruno@clisp.org>
41217         regex-quote: Fix creation of POSIX extended regular expressions.
41218         * lib/regex-quote.c (ere_special): Add grouping and alternation
41219         operators.
41221 2011-03-05  Bruno Haible  <bruno@clisp.org>
41223         doc: Improve doc regarding autopoint vs. gnulib.
41224         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
41225         disable autopoint while running autoreconf.
41226         Suggested by Ralf Wildenhues.
41228 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41230         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
41231         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
41233 2011-03-03  Bruce Korb  <bkorb@gnu.org>
41235         parse-duration: remove xalloc.h dependency
41236         * lib/parse-duration.c (parse_period): handle NULL return from
41237         strdup instead of calling xstrdup().
41238         * modules/parse-duration: remove "xalloc" dependency
41240 2011-03-03  Matthew Booth  <mbooth@redhat.com>
41242         bootstrap: honor m4_base when running aclocal
41243         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
41245 2011-03-02  Jim Meyering  <meyering@redhat.com>
41247         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
41248         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
41249         on request from Matt Booth.
41251 2011-03-01  Eric Blake  <eblake@redhat.com>
41253         test-link: work on Hurd
41254         * tests/test-link.h (test_link): Hurd rejects linking directories
41255         with EISDIR instead of the POSIX-mandated EPERM.
41257 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
41259         stdio: simplify by moving files to printf-posix, sigpipe
41260         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
41261         since this symbol is needed only if printf is replaced.
41262         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
41263         Require gl_ASM_SYMBOL_PREFIX.
41264         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
41265         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
41266         (Depends-on): Add 'raise'.
41267         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
41268         * modules/stdio (Files): Remove lib/stdio-write.c,
41269         m4/asm-underscore.m4.
41270         (Depends-on): Remove 'raise'.
41272         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
41273         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
41274         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
41275         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
41277 2011-02-28  Bruno Haible  <bruno@clisp.org>
41279         localcharset: Assume ANSI C behaviour of free().
41280         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
41281         calling free().
41282         Suggested by Simon Josefsson <simon@josefsson.org>.
41284 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
41285             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
41286             Bruno Haible  <bruno@clisp.org>  (tiny change)
41288         On Cygwin, use /proc file system instead of win32 API.
41289         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
41290         Win32 file names.
41291         (DllMain): Simplify by removing Cygwin specific code.
41292         (find_shared_library_fullname): Use Linux specific implementation also
41293         for Cygwin.
41294         (get_shared_library_fullname): Update accordingly.
41295         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
41296         Win32 file names.
41297         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
41298         Cygwin specific code.
41300 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
41301             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
41303         Fix OpenMP flag detection for various Fortran compilers.
41304         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
41305         OpenMP-conditional compilation construct, to force compile
41306         failure with missing OpenMP flag.
41307         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
41309 2011-02-25  Eric Blake  <eblake@redhat.com>
41311         strstr: expand test coverage
41312         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
41313         compilation.
41314         * tests/test-memmem.c (main): Duplicate tests.
41315         * tests/test-strcasestr.c (main): Likewise.
41316         * tests/test-c-strcasestr.c (main): Likewise.
41318 2011-02-25  Jim Meyering  <meyering@redhat.com>
41320         maint.mk: detect missing-NL-at-EOF, too
41321         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
41322         it also detects when a file lacks a newline at EOF.
41323         (require_exactly_one_NL_at_EOF_): Renamed from
41324         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
41325         since people may well have .x-sc_... file names tied to the
41326         existing name.  Suggested by Eric Blake.
41328 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
41330         dirname: move m4/dos.m4 functionality into lib/dosname.h
41332         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
41333         extracts symbols from it, puts them into config.h; but it's much
41334         easier to use the symbols directly.  filename.h already does this,
41335         but it disagrees with dos.m4 in some respects.  This patch
41336         introduces a different include file dosname.h that packages up
41337         dos.m4, and then later we can work on merging filename.h and
41338         dosname.h.  Applications that need only the easy-to-configure
41339         symbols should consider including dosname.h rather than dirname.h.
41340         * NEWS: Mention incompatible changes.
41341         * m4/dos.m4: Remove.
41342         * lib/dosname.h, modules/dosname: New files.
41343         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
41344         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
41345         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
41346         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
41347         Include dosname.h, not dirname.h.
41348         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
41349         Include dosname.h, for definitions of symbols like ISSLASH
41350         that used to be in config.h.
41351         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
41352         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
41353         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41354         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41355         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
41356         * modules/rmdir (Files): Likewise.
41357         * modules/stat (Files): Likewise.
41358         * modules/unlink (Files): Likewise.
41359         * modules/dirname-lgpl (Depends-on): Add dosname.
41360         * modules/lstat (Depends-on): Likewise.
41361         * modules/openat (Depends-on): Likewise.
41362         * modules/rmdir (Depends-on): Likewise.
41363         * modules/savewd (Depends-on): Likewise.
41364         * modules/stat (Depends-on): Likewise.
41365         * modules/unlink (Depends-on): Likewise.
41366         * modules/openat (Depends-on): Remove dirname-lgpl.
41367         * modules/savewd (Depends-on): Likewise.
41368         * tests/test-dirname.c: Do not use removed symbols like
41369         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
41370         the remaining symbols, e.g., ISSLASH ('\\').
41372 2011-02-25  Eric Blake  <eblake@redhat.com>
41374         strstr: revert patches that introduced bug and pessimization
41375         * lib/str-two-way.h: Add another reference.
41376         (two_way_short_needle, two_way_long_needle): Revert changes from
41377         2011-02-24; they pessimize search speed.
41378         (critical_factorization): Partially revert changes from
41379         2010-06-22; they violate the requirement that the left half of the
41380         needle be smaller than the period of the needle.
41382 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
41384         filenamecat: remove unnecessary dependency on dirname-lgpl
41385         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
41386         is no direct dependency, just an indirect one via filenamecat-lgpl.
41388         remove: remove unnecessary use of m4/dos.m4
41389         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
41390         * modules/remove (FILES): Remove m4/dos.m4.
41392         * lib/openat-proc.c: Don't include dirname.h; not needed.
41394         backupfile: remove unnecessary use of m4/dos.m4
41395         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
41396         of its symbols are used by the backupfile code.  backupfile.c does
41397         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
41398         for the rare case of programs that want all their backup file
41399         names to live within 8+3 limits, and dos.m4 doesn't address that.
41400         * modules/backupfile (Files): Remove m4/dos.m4.
41402 2011-02-24  Jim Meyering  <meyering@redhat.com>
41404         strstr: fix a bug whereby strstr would mistakenly return NULL
41405         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
41406         in period calculation.
41407         (two_way_long_needle): Likewise.
41408         The original problem was reported by Mike Stump in
41409         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
41410         Ralf Wildenhues provided the short needle and haystack.
41411         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
41412         Add a more involved test to trigger the bug in two_way_long_needle.
41414 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41416         gnulib-tool: remove use of bold display in help screen
41417         * gnulib-tool (func_usage): Do not use bold display anymore in the
41418         help screen.  That was just meant to be a temporary emphasis for a
41419         backward-incompatible change.
41421 2011-02-23  Bruno Haible  <bruno@clisp.org>
41423         Fix misindentation of preprocessor directives.
41424         * lib/argp-namefrob.h: Reindent preprocessor directives.
41425         * lib/getopt_int.h (struct _getopt_data): Likewise.
41426         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
41427         * lib/vasnprintf.c (decode_long_double): Likewise.
41428         * tests/test-argmatch.c: Insert blank lines, for clarity.
41429         * tests/test-exclude.c: Likewise.
41431 2011-02-22  Bruno Haible  <bruno@clisp.org>
41433         ioctl: Fix for MacOS X in 64-bit mode.
41434         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
41435         value.
41436         Suggested by Eric Blake.
41437         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
41439 2011-02-22  Jim Meyering  <meyering@redhat.com>
41441         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
41442         * Makefile (sc_cpp_indent_check): Don't limit the check to files
41443         in lib/.
41445 2011-02-22  Eric Blake  <eblake@redhat.com>
41447         maint: avoid any CDPATH issue
41448         * Makefile (sc_cpp_indent_check): Anchor cd argument.
41450         maint: adjust cpp indentation for my modules, as well
41451         * Makefile (sc_cpp_indent_check): Add my name.
41452         * lib/fbufmode.c: Filter through cppi.
41453         * lib/fpurge.c: Likewise.
41454         * lib/freadable.c: Likewise.
41455         * lib/freading.c: Likewise.
41456         * lib/fwritable.c: Likewise.
41457         * lib/fwriting.c: Likewise.
41458         * lib/sigaction.c: Likewise.
41460 2011-02-22  Jim Meyering  <meyering@redhat.com>
41462         maint: adjust cpp indentation to reflect nesting depth
41463         I.e., in a block of code that begins with an unnested "#if",
41464         put one space between the "#" in column 1 and following token.
41465         For example,
41466         -#include <sys/vfs.h>
41467         +# include <sys/vfs.h>
41468         Do this only in .c files that are part of a module I maintain.
41469         * lib/linkat.c: Filter through cppi.
41470         * lib/nanosleep.c: Likewise.
41471         * lib/openat.c: Likewise.
41472         * lib/openat-die.c: Likewise.
41473         * lib/dup3.c: Likewise.
41474         * lib/fchownat.c: Likewise.
41475         * lib/flock.c: Likewise.
41476         * lib/fsync.c: Likewise.
41477         * lib/fts.c: Likewise.
41478         * lib/getpass.c: Likewise.
41479         * lib/gettimeofday.c: Likewise.
41480         * lib/userspec.c: Likewise.
41481         * Makefile (sc_cpp_indent_check): New rule, to check this.
41483 2011-02-22  Bruno Haible  <bruno@clisp.org>
41485         New module 'wctomb'.
41486         * lib/stdlib.in.h (wctomb): New declaration.
41487         * lib/wctomb.c: New file.
41488         * lib/wctomb-impl.h: New file.
41489         * m4/wctomb.m4: New file.
41490         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
41491         REPLACE_WCTOMB.
41492         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
41493         REPLACE_WCTOMB.
41494         * modules/wctomb: New file.
41495         * tests/test-stdlib-c++.cc: Test signature of wctomb.
41496         * doc/posix-functions/wctomb.texi: Mention the new module.
41497         * modules/wctob (Depends-on): Add wctomb.
41499 2011-02-22  Bruno Haible  <bruno@clisp.org>
41501         New module 'mbtowc'.
41502         * lib/stdlib.in.h (mbtowc): New declaration.
41503         * lib/mbtowc.c: New file.
41504         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
41505         * m4/mbtowc.m4: New file.
41506         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
41507         REPLACE_MBTOWC.
41508         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
41509         REPLACE_MBTOWC.
41510         * modules/mbtowc: New file.
41511         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
41512         * doc/posix-functions/mbtowc.texi: Mention the new module.
41513         * modules/btowc (Depends-on): Add mbtowc.
41515 2011-02-22  Bruno Haible  <bruno@clisp.org>
41517         wcrtomb: Add more tests for native Windows platforms.
41518         * tests/test-wcrtomb-w32-1.sh: New file.
41519         * tests/test-wcrtomb-w32-2.sh: New file.
41520         * tests/test-wcrtomb-w32-3.sh: New file.
41521         * tests/test-wcrtomb-w32-4.sh: New file.
41522         * tests/test-wcrtomb-w32-5.sh: New file.
41523         * tests/test-wcrtomb-w32.c: New file.
41524         * modules/wcrtomb-tests (Files): Add them.
41525         (Makefile.am): Arrange to run these tests.
41526         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
41527         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
41529 2011-02-20  Bruno Haible  <bruno@clisp.org>
41531         wcrtomb: Enhance test.
41532         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
41534 2011-02-20  Bruno Haible  <bruno@clisp.org>
41536         mbrtowc: Tiny optimization.
41537         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
41539 2011-02-20  Jim Meyering  <meyering@redhat.com>
41541         test-exclude.c: remove unmatched #endif
41542         * tests/test-exclude.c: Remove stray #endif, left over from
41543         the change of a week ago.
41545 2011-02-19  Jim Meyering  <meyering@redhat.com>
41547         git-version-gen: skip "-dirty" check when appropriate
41548         * build-aux/git-version-gen: Don't run any git commands when the
41549         version string comes from .tarball-version.  Prior to this, we
41550         would run git update-index --refresh even from a just-unpacked
41551         tarball directory, and that could affect a .git/ directory in a
41552         parent of the build directory.  Reported by Mike Frysinger.
41554 2011-02-19  Bruno Haible  <bruno@clisp.org>
41556         unictype/property-byname: Reduce the size of the 'data' segment.
41557         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
41559 2011-02-19  Bruno Haible  <bruno@clisp.org>
41561         unictype/scripts: Reduce the size of the 'data' segment.
41562         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
41563         '%pic'.
41564         * lib/unictype/scripts_byname.gperf: Regenerated.
41566 2011-02-19  Bruno Haible  <bruno@clisp.org>
41568         stdint: Update documentation.
41569         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
41571 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
41573         stdint: omit redundant check for wchar.h
41574         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
41575         always tests whether wchar.h exists, so remove the now-redundant test.
41577 2011-02-18  Bruno Haible  <bruno@clisp.org>
41579         stdint: Cut dependency to module 'wchar'.
41580         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
41581         include the necessary prerequisites.
41582         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
41583         * modules/stdint (Depends-on): Remove wchar.
41584         (Makefile.am): Substitute HAVE_WCHAR_H.
41585         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
41587 2011-02-18  Eric Blake  <eblake@redhat.com>
41589         longlong: skip, rather than fail, on cross-compilation
41590         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
41591         when cross-compiling; regression from 2011-02-16.
41593 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
41595         * NEWS: Mention 2011-02-08 change to stdlib.
41597 2011-02-17  Bruno Haible  <bruno@clisp.org>
41599         getloadavg: Add comments about platforms.
41600         * m4/getloadavg.m4: Add comment.
41601         * lib/getloadavg.c: Likewise.
41603 2011-02-17  Bruno Haible  <bruno@clisp.org>
41605         getloadavg: Fix link error on Solaris 2.6.
41606         * modules/getloadavg (Link): New section.
41607         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
41608         linking test-getloadavg.
41609         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
41610         getloadavg.
41612 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
41614         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
41615         It was 'int', but this doesn't match the IRIX 6.5 manual.
41616         Suggested by Bruno Haible in
41617         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
41619 2011-02-17  Bruno Haible  <bruno@clisp.org>
41621         havelib: Fix comments.
41622         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
41623         change.
41625 2011-02-17  Bruno Haible  <bruno@clisp.org>
41627         havelib: Update config.rpath.
41628         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
41630 2011-02-17  Bruno Haible  <bruno@clisp.org>
41632         getloadavg test: Add some plausibility checks.
41633         * tests/test-getloadavg.c (check_avg): Print a warning when the value
41634         is improbable.
41636 2011-02-16  Eric Blake  <eblake@redhat.com>
41638         maintainer-makefile: make syntax-check a no-op from tarballs
41639         * top/maint.mk (no-vc-detected): New rule.
41640         (local-checks-available): Use it to avoid hanging if someone tries
41641         'make syntax-check' from a tarball.  Also append to any non-syntax
41642         checks already defined in cfg.mk.
41644 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
41646         longlong: tune, particularly for common case of c99
41648         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
41649         or running anything if c99, or if unsigned long long int does not
41650         work.  In either case, we know the answer without further tests.
41651         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
41652         it at most once, and use its results for both long long int and
41653         unsigned long long int.  This is more likely to be efficient in
41654         the common case where the program wants to check for both long
41655         long int and unsigned long long int.
41656         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
41657         since the answer is already known.
41659 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
41661         getloadavg: set errno
41662         * lib/getloadavg.c: Set errno when returning -1.  If no other
41663         error number looks appropriate, set it to ENOSYS if the getloadavg
41664         looks like it can't possibly ever work, ENOTSUP otherwise.
41665         Suggested by Bruno Haible in
41666         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
41668         getloadavg: trim unused parts and speed up 'configure'
41669         * NEWS: Document this.
41670         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
41671         always compiled if getloadavg is absent.
41672         Move test code to ...
41673         * tests/test-getloadavg.c: New file, containing previous
41674         contents of test from lib/getloadavg.c.  It also contains
41675         suggestions by Bruno Haible in
41676         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
41677         * modules/getloadavg-tests: New file.
41678         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
41679         Do tests in the same order as they're needed for getloadavg.c.
41680         Omit setgid-related tests that generate symbols KMEM_GROUP,
41681         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
41682         Do only the tests that are needed to see whether the system has
41683         getloadavg, moving the other tests into ...
41684         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
41685         NLIST_NAME_UNION; nobody should be using it.  Do not define
41686         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
41687         relevant, as the user of this module shouldn't care how getloadavg
41688         is implemented.
41690         getloadavg: omit unused var
41691         * lib/getloadavg.c (getloadavg): Omit unused local variable.
41693 2011-02-15  Jim Meyering  <meyering@redhat.com>
41695         doc: update users.txt
41696         * users.txt: Update iwhd's URL.
41698 2011-02-13  Bruno Haible  <bruno@clisp.org>
41700         Consistent macro naming for macros that use GCC __attribute__.
41701         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
41702         _ATTRIBUTE_NONNULL_.
41703         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
41704         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
41705         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
41706         ATTRIBUTE_DEPRECATED.
41707         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
41708         ATTRIBUTE_NORETURN.
41709         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
41710         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
41711         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
41712         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
41713         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
41714         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
41715         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
41716         ATTRIBUTE_SENTINEL.
41717         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
41718         ATTRIBUTE_RETURN_CHECK.
41719         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
41720         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
41721         ATTRIBUTE_NORETURN.
41722         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
41723         Reported by Paul Eggert.
41725 2011-02-13  Bruno Haible  <bruno@clisp.org>
41727         Don't interfere with a program's definition of __attribute__.
41728         * lib/argp.h (__attribute__): Remove definition.
41729         (_GL_ATTRIBUTE_FORMAT): New macro.
41730         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
41731         * lib/argp-fmtstream.h (__attribute__): Remove definition.
41732         (_GL_ATTRIBUTE_FORMAT): New macro.
41733         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
41734         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
41735         GCC 3 or newer.
41736         * lib/error.h (__attribute__): Remove definition.
41737         (_GL_ATTRIBUTE_FORMAT): New macro.
41738         (error, error_at_line): Use it.
41739         * lib/hash.h (__attribute__): Remove definition.
41740         (ATTRIBUTE_WUR): Update definition. Define always.
41741         * lib/openat.h (__attribute__): Remove definition.
41742         (ATTRIBUTE_NORETURN): Update definition. Define always.
41743         * lib/sigpipe-die.h (__attribute__): Remove definition.
41744         (ATTRIBUTE_NORETURN): Update definition. Define always.
41745         * lib/vasnprintf.h (__attribute__): Remove definition.
41746         (_GL_ATTRIBUTE_FORMAT): New macro.
41747         (asnprintf, vasnprintf): Use it.
41748         * lib/xalloc.h (__attribute__): Remove definition.
41749         (ATTRIBUTE_NORETURN): Update definition. Define always.
41750         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
41751         * lib/xmemdup0.h (__attribute__): Remove definition.
41752         (ATTRIBUTE_NORETURN): Update definition. Define always.
41753         * lib/xprintf.h (__attribute__): Remove definition.
41754         (_GL_ATTRIBUTE_FORMAT): New macro.
41755         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
41756         * lib/xstrtol.h (__attribute__): Remove definition.
41757         (ATTRIBUTE_NORETURN): Update definition. Define always.
41758         * lib/xvasprintf.h (__attribute__): Remove definition.
41759         (_GL_ATTRIBUTE_FORMAT): New macro.
41760         (xasprintf, xvasprintf): Use it.
41761         * tests/test-argmatch.c (__attribute__): Remove definition.
41762         (ATTRIBUTE_NORETURN): Update definition. Define always.
41763         * tests/test-exclude.c (__attribute__): Remove definition.
41764         (ATTRIBUTE_NORETURN): Update definition. Define always.
41765         Reported by Paul Eggert.
41767 2011-02-13  Bruno Haible  <bruno@clisp.org>
41769         mbrtowc: Add more tests for native Windows platforms.
41770         * tests/test-mbrtowc-w32-1.sh: New file.
41771         * tests/test-mbrtowc-w32-2.sh: New file.
41772         * tests/test-mbrtowc-w32-3.sh: New file.
41773         * tests/test-mbrtowc-w32-4.sh: New file.
41774         * tests/test-mbrtowc-w32-5.sh: New file.
41775         * tests/test-mbrtowc-w32.c: New file.
41776         * modules/mbrtowc-tests (Files): Add them.
41777         (Makefile.am): Arrange to run these tests.
41778         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
41779         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
41781 2011-02-13  Bruno Haible  <bruno@clisp.org>
41783         mbrtowc: Work around native Windows bug.
41784         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
41785         guess when no suitable locale for testing was found.
41786         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
41788 2011-02-13  Bruno Haible  <bruno@clisp.org>
41790         mbsinit: Work around mingw bug.
41791         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
41792         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
41793         Windows.
41794         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
41796 2011-02-13  Bruno Haible  <bruno@clisp.org>
41798         mbsinit: Don't crash for a NULL argument.
41799         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
41800         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
41802 2011-02-13  Bruno Haible  <bruno@clisp.org>
41804         Don't interfere with a program's definition of __attribute__.
41805         * lib/stdio.in.h (__attribute__): Remove definition.
41806         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
41807         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
41808         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
41809         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
41810         * lib/string.in.h (__attribute__): Remove definition.
41811         Reported by Paul Eggert.
41813 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41815         stdlib: don't get in the way of non-GCC __attribute__
41816         See thread starting at
41817         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
41818         Revert previous stdlib change, installing the following instead:
41819         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
41820         to get in the way of a non-GCC compiler that supports __attribute__.
41821         (_GL_ATTRIBUTE_RETURN): New macro.
41822         (_Exit): Use it instead of __attribute__.
41824 2011-02-12  Bruno Haible  <bruno@clisp.org>
41826         quotearg test: Avoid test failure on mingw.
41827         * tests/test-quotearg.sh: Convert the locale identifier from native
41828         Windows syntax to Unix syntax.
41830 2011-02-12  Bruno Haible  <bruno@clisp.org>
41832         setlocale: Prefer gnulib's override over libintl's override.
41833         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
41834         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
41835         GNULIB_defined_setlocale is set.
41837 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41839         stdlib: support non-GCC __attribute__
41841         Fix a serious and tricky problem encountered when attempting to
41842         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
41843         5.5, but it crashed due to memory corruption on Solaris 10 with
41844         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
41845         bits that are otherwise zero.  This tagging is optional inside
41846         Emacs but is preferred and is used when __attribute__ ((__aligned
41847         (8))) works, as it does with both recent-enough GCC and with Sun C
41848         5.11.  However, Sun C 5.11 is not GCC and does not #define
41849         __GNUC__ and __GNUC_MINOR__.
41851         When I added the getloadavg module to Emacs, it brought in
41852         stdlib.in.h, which contained this fragment:
41854            #ifndef __attribute__
41855            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
41856            #  define __attribute__(Spec)   /* empty */
41857            # endif
41858            #endif
41860         When files that include <stdlib.h> were compiled with Sun C 5.11,
41861         the above code disabled __attribute__ ((__aligned (8))), which
41862         caused variables to not be properly aligned, which eventually led
41863         to the pointer corruption mentioned above.  (This was a bit hard
41864         to diagnose, unfortunately.)
41866         Several "#define __attribute__(X) /* empty */" code snippets need
41867         to be eradicated from Gnulib to work with non-GCC compilers that
41868         support __attribute__.  The Autoconf way to do this is to test for
41869         each kind of attribute that we want support for, and selectively
41870         enable that in source code.
41872         Fix this problem just for stdlib.h, by adding a test for the
41873         __noreturn__ attribute, and change stdlib.in.h to use that test
41874         when needed.  This technique can be easily generalized to the
41875         other *.in.h files and attributes, and a similar technique can be
41876         used for *.h and *.c files.  This patch is enough to solve the
41877         problem for Emacs + getloadavg, and I thought I'd publish it for
41878         feedback before undertaking further, similar fixes in other
41879         modules.
41881         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
41882         because it's not needed for stdlib.h.  It merely substitutes the
41883         value directly into stdlib.h.  We may well need to #define it, or
41884         similar symbols, for other modules, but it's nice to also have an
41885         option to not #define it for applications like Emacs that do not
41886         need it.
41888         * lib/stdlib.in.h (__attribute__): Do not #define.
41889         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
41890         be defined only if the _Exit module is also used.
41891         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
41892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
41893         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
41894         platforms.
41895         * modules/_Exit (Files): Add m4/attribute.m4.
41896         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
41897         * m4/attribute.m4: New file.
41899 2011-02-12  Bruno Haible  <bruno@clisp.org>
41901         wcsrtombs: Work around bug on native Windows.
41902         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
41903         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
41904         instead of len.
41905         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
41907 2011-02-12  Bruno Haible  <bruno@clisp.org>
41909         mbsrtowcs: Work around bug on native Windows.
41910         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
41911         against mingw bug.
41912         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
41914 2011-02-12  Bruno Haible  <bruno@clisp.org>
41916         Avoid setlocale bugs in tests.
41917         * modules/btowc (Dependencies): Add setlocale.
41918         * modules/c-strcase (Dependencies): Likewise.
41919         * modules/mbmemcasecmp (Dependencies): Likewise.
41920         * modules/mbmemcasecoll (Dependencies): Likewise.
41921         * modules/mbrtowc (Dependencies): Likewise.
41922         * modules/mbscasecmp (Dependencies): Likewise.
41923         * modules/mbscasestr (Dependencies): Likewise.
41924         * modules/mbschr (Dependencies): Likewise.
41925         * modules/mbscspn (Dependencies): Likewise.
41926         * modules/mbsinit (Dependencies): Likewise.
41927         * modules/mbsncasecmp (Dependencies): Likewise.
41928         * modules/mbsnrtowcs (Dependencies): Likewise.
41929         * modules/mbspbrk (Dependencies): Likewise.
41930         * modules/mbspcasecmp (Dependencies): Likewise.
41931         * modules/mbsrchr (Dependencies): Likewise.
41932         * modules/mbsrtowcs (Dependencies): Likewise.
41933         * modules/mbsspn (Dependencies): Likewise.
41934         * modules/mbsstr (Dependencies): Likewise.
41935         * modules/nl_langinfo (Dependencies): Likewise.
41936         * modules/quotearg (Dependencies): Likewise.
41937         * modules/unicase/locale-language (Dependencies): Likewise.
41938         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
41939         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
41940         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
41941         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
41942         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
41943         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
41944         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
41945         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
41946         * modules/vasnprintf-posix (Dependencies): Likewise.
41947         * modules/wcrtomb (Dependencies): Likewise.
41948         * modules/wcsnrtombs (Dependencies): Likewise.
41949         * modules/wcsrtombs (Dependencies): Likewise.
41951 2011-02-12  Bruno Haible  <bruno@clisp.org>
41953         setlocale: Workaround native Windows bug.
41954         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
41955         succeeds but sets LC_CTYPE to "C", report a failure.
41956         * tests/test-setlocale2.sh: New file.
41957         * tests/test-setlocale2.c: New file.
41958         * modules/setlocale-tests (Files): Add the new files.
41959         (Makefile.am): Enable test-setlocale2.sh test.
41960         * doc/posix-functions/setlocale.texi: Mention workaround.
41962 2011-02-11  Bruno Haible  <bruno@clisp.org>
41964         Tests for module 'setlocale'.
41965         * modules/setlocale-tests: New file.
41966         * tests/test-setlocale1.sh: New file.
41967         * tests/test-setlocale1.c: New file.
41969         New module 'setlocale'.
41970         * lib/locale.in.h (setlocale): New declaration.
41971         * lib/setlocale.c: New file, based on
41972         gettext/gettext-runtime/intl/setlocale.c.
41973         * m4/setlocale.m4: New file.
41974         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
41975         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
41976         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
41977         REPLACE_SETLOCALE.
41978         * modules/setlocale: New file.
41979         * tests/test-locale-c++.cc: Test the declaration of setlocale.
41980         * doc/posix-functions/setlocale.texi: Mention the new module.
41982 2011-02-11  Bruno Haible  <bruno@clisp.org>
41984         Prepare for locale dependent tests on mingw.
41985         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
41986         because it has the wrong locale encoding.
41987         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
41988         French_France.1252 instead of "fr".
41989         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
41990         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
41991         because it has the wrong locale encoding.
41992         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
41993         native Windows, try Turkish_Turkey.65001.
41994         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
41995         Chinese_China.54936.
41997         Prepare for locale dependent tests on mingw.
41998         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
41999         differently.
42000         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
42001         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
42002         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42003         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42005 2011-02-11  Eric Blake  <eblake@redhat.com>
42007         strptime: avoid compiler warnings
42008         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
42009         compiler warnings about dead code.
42010         Reported by Daniel P. Berrange.
42012 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
42014         doc: update users.txt
42015         * users.txt: Add rcs.
42017 2011-02-10  John W. Eaton  <jwe@gnu.org>
42019         doc: update users.txt
42020         * users.txt: Add octave.
42022 2011-02-10  Jim Meyering  <meyering@redhat.com>
42024         doc: update users.txt
42025         * users.txt: Add iwhd.
42027 2011-02-09  Bruno Haible  <bruno@clisp.org>
42029         gnulib-tool: Make copyright notice adjustment more robust.
42030         * gnulib-tool (func_import): In sed_transform_main_lib_file,
42031         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
42032         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
42033         License".
42034         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
42036 2011-02-06  Bruno Haible  <bruno@clisp.org>
42038         New module 'towctrans'.
42039         * modules/towctrans: New file.
42040         * lib/wctype.in.h (towctrans): New declaration.
42041         * lib/towctrans.c: New file.
42042         * lib/towctrans-impl.h: New file.
42043         * m4/towctrans.m4: New file.
42044         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
42045         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
42046         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
42047         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
42048         * doc/posix-functions/towctrans.texi: Mention the new module.
42050 2011-02-06  Bruno Haible  <bruno@clisp.org>
42052         New module 'wctrans'.
42053         * modules/wctrans: New file.
42054         * lib/wctype.in.h (wctrans): New declaration.
42055         * lib/wctrans.c: New file.
42056         * lib/wctrans-impl.h: New file.
42057         * m4/wctrans.m4: New file.
42058         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
42059         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
42060         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
42061         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
42062         * doc/posix-functions/wctrans.texi: Mention the new module.
42064 2011-02-06  Bruno Haible  <bruno@clisp.org>
42066         New module 'iswctype'.
42067         * modules/iswctype: New file.
42068         * lib/wctype.in.h (iswctype): New declaration.
42069         * lib/iswctype.c: New file.
42070         * lib/iswctype-impl.h: New file.
42071         * m4/iswctype.m4: New file.
42072         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
42073         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
42074         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
42075         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
42076         * doc/posix-functions/iswctype.texi: Mention the new module and the
42077         HP-UX 11.00 problem.
42079 2011-02-06  Bruno Haible  <bruno@clisp.org>
42081         New module 'wctype'.
42082         * modules/wctype: Change to represent the wctype() substitute.
42083         * lib/wctype.in.h (wctype): New declaration.
42084         * lib/wctype.c: New file.
42085         * lib/wctype-impl.h: New file.
42086         * m4/wctype.m4: New file.
42087         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
42088         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
42089         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
42090         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
42091         * doc/posix-functions/wctype.texi: Mention the new module and the
42092         HP-UX 11.00 problem.
42094 2011-02-06  Bruno Haible  <bruno@clisp.org>
42096         wctype-h: Ensure wctype_t and wctrans_t are defined.
42097         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
42098         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
42099         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
42100         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
42101         HAVE_WCTRANS_T.
42102         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
42104 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
42106         flock: fix license typo
42108         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
42109         omitted.
42111 2011-02-08  Bruno Haible  <bruno@clisp.org>
42113         Split large sed scripts, for HP-UX sed.
42114         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
42115         to avoid HP-UX limit of 99 commands, in the near future.
42116         * modules/stdlib (Makefile.am): Likewise.
42117         * modules/unistd (Makefile.am): Likewise.
42118         * modules/wchar (Makefile.am): Likewise.
42119         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42120         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
42121         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
42123 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
42124             Bruno Haible  <bruno@clisp.org>
42126         stdlib: improve random_r modularization
42127         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
42128         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
42129         you also need the random_r module to get this material right.
42130         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
42131         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
42132         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
42134 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
42136         stdlib: don't depend on stdint
42137         * lib/stdlib.in.h: Don't include <stdint.h> merely because
42138         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
42139         be independent of whether stdint.h is needed.
42140         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
42141         here, instead of ...
42142         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
42143         struct random_data should be using the random_r module, not just
42144         the stdlib module (which wouldn't make sense: what package needs
42145         just struct random_data without also needing random_r?).
42146         * modules/stdlib (Depends-on): Remove stdint.
42148         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
42149         See the thread rooted at
42150         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
42151         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
42152         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
42153         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
42154         __VMS)); previously it was always included (via fcntl--.h).
42155         (getloadavg): Do not use c_strtod.  Instead, approximate it by
42156         hand; this is good enough for load averages.  Also, do not use
42157         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
42158         flags directly if available and don't bother otherwise.  (Packages
42159         that need the extra reliability should use the modules that define
42160         these flags on older platforms that lack them.)
42161         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
42162         fcntl-safer.
42164 2011-02-08  Jim Meyering  <meyering@redhat.com>
42166         di-set.h, ino-map.h: add multiple-inclusion guard
42167         Technically, the guard is required only for ino-map.h, due to its
42168         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
42169         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
42170         * lib/ino-map.h: Likewise.
42172 2011-02-06  Bruno Haible  <bruno@clisp.org>
42174         iswblank: Ensure declaration on glibc systems.
42175         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
42176         * modules/iswblank (Dependencies): Add 'extensions'.
42177         * doc/posix-functions/iswblank.texi: Document the glibc problem.
42179 2011-02-06  Bruno Haible  <bruno@clisp.org>
42181         New module 'iswblank'.
42182         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
42183         * modules/iswblank: New file.
42184         * modules/wctype-h (Files): Remove lib/iswblank.c.
42185         (Makefile.am): Substitute GNULIB_ISWBLANK.
42186         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
42187         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
42188         (gl_WCTYPE_H_DEFAULTS): New macro.
42189         (gl_WCTYPE_H): Require it. Remove iswblank related code.
42190         * modules/iswblank-tests: New file.
42191         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
42192         * tests/test-wctype-h.c (main): Remove iswblank tests.
42193         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
42194         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
42195         of 'wctype-h'.
42196         * NEWS: Mention the change.
42197         * modules/mbchar (Depends-on): Add iswblank.
42199 2011-02-08  Bruno Haible  <bruno@clisp.org>
42201         di-set tests: Refactor.
42202         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
42203         unnecessary includes.
42204         (ASSERT): Remove macro.
42205         (main): Make C90 compliant by avoiding variable declaration after
42206         statement.
42207         * modules/di-set-tests (Files): Add tests/macros.h.
42209 2011-02-08  Bruno Haible  <bruno@clisp.org>
42211         ino-map tests: Refactor.
42212         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
42213         unnecessary includes.
42214         (ASSERT): Remove macro.
42215         (main): Make C90 compliant by avoiding variable declaration after
42216         statement.
42217         * modules/ino-map-tests (Files): Add tests/macros.h.
42219 2011-02-08  Jim Meyering  <meyering@redhat.com>
42221         di-set: add "const" to a cast
42222         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
42223         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
42225 2011-02-06  Bruno Haible  <bruno@clisp.org>
42227         Rename module 'wctype' to 'wctype-h'.
42228         * modules/wctype-h: Renamed from modules/wctype.
42229         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
42230         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
42231         (Files, Depends-on, Makefile.am): Update.
42232         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
42233         (Files, Makefile.am): Update.
42234         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
42235         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
42236         * doc/posix-headers/wctype.texi: Update.
42237         * doc/posix-functions/iswalnum.texi: Update.
42238         * doc/posix-functions/iswalpha.texi: Update.
42239         * doc/posix-functions/iswblank.texi: Update.
42240         * doc/posix-functions/iswcntrl.texi: Update.
42241         * doc/posix-functions/iswdigit.texi: Update.
42242         * doc/posix-functions/iswgraph.texi: Update.
42243         * doc/posix-functions/iswlower.texi: Update.
42244         * doc/posix-functions/iswprint.texi: Update.
42245         * doc/posix-functions/iswpunct.texi: Update.
42246         * doc/posix-functions/iswspace.texi: Update.
42247         * doc/posix-functions/iswupper.texi: Update.
42248         * doc/posix-functions/iswxdigit.texi: Update.
42249         * doc/posix-functions/towlower.texi: Update.
42250         * doc/posix-functions/towupper.texi: Update.
42251         * NEWS: Mention the change.
42252         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
42253         * modules/mbchar (Dependencies): Likewise.
42254         * modules/mbswidth (Dependencies): Likewise.
42255         * modules/quotearg (Dependencies): Likewise.
42256         * modules/regex (Dependencies): Likewise.
42257         * modules/wcscasecmp (Dependencies): Likewise.
42258         * modules/wcsncasecmp (Dependencies): Likewise.
42259         * modules/wcwidth (Dependencies): Likewise.
42261 2011-02-06  Bruno Haible  <bruno@clisp.org>
42263         New module 'wcswidth'.
42264         * modules/wcswidth: New file.
42265         * lib/wchar.in.h (wcswidth): New declaration.
42266         * lib/wcswidth.c: New file.
42267         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
42268         * m4/wcswidth.m4: New file.
42269         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
42270         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
42271         REPLACE_WCSWIDTH.
42272         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
42273         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
42274         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
42275         * doc/posix-functions/wcswidth.texi: Mention the new module.
42277 2011-02-06  Bruno Haible  <bruno@clisp.org>
42279         New module 'wcstok'.
42280         * modules/wcstok: New file.
42281         * lib/wchar.in.h (wcstok): New declaration.
42282         * lib/wcstok.c: New file.
42283         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
42284         * m4/wcstok.m4: New file.
42285         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
42286         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
42287         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
42288         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
42289         * doc/posix-functions/wcstok.texi: Mention the new module.
42291 2011-02-06  Bruno Haible  <bruno@clisp.org>
42293         New module 'wcsstr'.
42294         * modules/wcsstr: New file.
42295         * lib/wchar.in.h (wcsstr): New declaration.
42296         * lib/wcsstr.c: New file.
42297         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
42298         * m4/wcsstr.m4: New file.
42299         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
42300         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
42301         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
42302         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
42303         * doc/posix-functions/wcsstr.texi: Mention the new module.
42305 2011-02-06  Bruno Haible  <bruno@clisp.org>
42307         New module 'wcspbrk'.
42308         * modules/wcspbrk: New file.
42309         * lib/wchar.in.h (wcspbrk): New declaration.
42310         * lib/wcspbrk.c: New file.
42311         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
42312         * m4/wcspbrk.m4: New file.
42313         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
42314         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
42315         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
42316         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
42317         * doc/posix-functions/wcspbrk.texi: Mention the new module.
42319 2011-02-06  Bruno Haible  <bruno@clisp.org>
42321         New module 'wcsspn'.
42322         * modules/wcsspn: New file.
42323         * lib/wchar.in.h (wcsspn): New declaration.
42324         * lib/wcsspn.c: New file.
42325         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
42326         * m4/wcsspn.m4: New file.
42327         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
42328         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
42329         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
42330         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
42331         * doc/posix-functions/wcsspn.texi: Mention the new module.
42333 2011-02-06  Bruno Haible  <bruno@clisp.org>
42335         New module 'wcscspn'.
42336         * modules/wcscspn: New file.
42337         * lib/wchar.in.h (wcscspn): New declaration.
42338         * lib/wcscspn.c: New file.
42339         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
42340         * m4/wcscspn.m4: New file.
42341         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
42342         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
42343         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
42344         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
42345         * doc/posix-functions/wcscspn.texi: Mention the new module.
42347 2011-02-06  Bruno Haible  <bruno@clisp.org>
42349         New module 'wcsrchr'.
42350         * modules/wcsrchr: New file.
42351         * lib/wchar.in.h (wcsrchr): New declaration.
42352         * lib/wcsrchr.c: New file.
42353         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
42354         * m4/wcsrchr.m4: New file.
42355         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
42356         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
42357         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
42358         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
42359         * doc/posix-functions/wcsrchr.texi: Mention the new module.
42361 2011-02-06  Bruno Haible  <bruno@clisp.org>
42363         New module 'wcschr'.
42364         * modules/wcschr: New file.
42365         * lib/wchar.in.h (wcschr): New declaration.
42366         * lib/wcschr.c: New file.
42367         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
42368         * m4/wcschr.m4: New file.
42369         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
42370         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
42371         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
42372         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
42373         * doc/posix-functions/wcschr.texi: Mention the new module.
42375 2011-02-06  Bruno Haible  <bruno@clisp.org>
42377         New module 'wcsdup'.
42378         * modules/wcsdup: New file.
42379         * lib/wchar.in.h (wcsdup): New declaration.
42380         * lib/wcsdup.c: New file.
42381         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
42382         * m4/wcsdup.m4: New file.
42383         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
42384         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
42385         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
42386         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
42387         * doc/posix-functions/wcsdup.texi: Mention the new module.
42389 2011-02-06  Bruno Haible  <bruno@clisp.org>
42391         New module 'wcsxfrm'.
42392         * modules/wcsxfrm: New file.
42393         * lib/wchar.in.h (wcsxfrm): New declaration.
42394         * lib/wcsxfrm.c: New file.
42395         * lib/wcsxfrm-impl.h: New file.
42396         * m4/wcsxfrm.m4: New file.
42397         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
42398         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
42399         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
42400         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
42401         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
42403 2011-02-06  Bruno Haible  <bruno@clisp.org>
42405         New module 'wcscoll'.
42406         * modules/wcscoll: New file.
42407         * lib/wchar.in.h (wcscoll): New declaration.
42408         * lib/wcscoll.c: New file.
42409         * lib/wcscoll-impl.h: New file.
42410         * m4/wcscoll.m4: New file.
42411         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
42412         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
42413         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
42414         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
42415         * doc/posix-functions/wcscoll.texi: Mention the new module.
42417 2011-02-06  Bruno Haible  <bruno@clisp.org>
42419         New module 'wcsncasecmp'.
42420         * modules/wcsncasecmp: New file.
42421         * lib/wchar.in.h (wcsncasecmp): New declaration.
42422         * lib/wcsncasecmp.c: New file.
42423         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
42424         * m4/wcsncasecmp.m4: New file.
42425         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
42426         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
42427         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
42428         HAVE_WCSNCASECMP.
42429         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
42430         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
42432 2011-02-06  Bruno Haible  <bruno@clisp.org>
42434         New module 'wcscasecmp'.
42435         * modules/wcscasecmp: New file.
42436         * lib/wchar.in.h (wcscasecmp): New declaration.
42437         * lib/wcscasecmp.c: New file.
42438         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
42439         * m4/wcscasecmp.m4: New file.
42440         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
42441         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
42442         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
42443         HAVE_WCSCASECMP.
42444         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
42445         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
42447 2011-02-05  Bruno Haible  <bruno@clisp.org>
42449         New module 'wcsncmp'.
42450         * modules/wcsncmp: New file.
42451         * lib/wchar.in.h (wcsncmp): New declaration.
42452         * lib/wcsncmp.c: New file.
42453         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
42454         * m4/wcsncmp.m4: New file.
42455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
42456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
42457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
42458         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
42459         * doc/posix-functions/wcsncmp.texi: Mention the new module.
42461 2011-02-05  Bruno Haible  <bruno@clisp.org>
42463         New module 'wcscmp'.
42464         * modules/wcscmp: New file.
42465         * lib/wchar.in.h (wcscmp): New declaration.
42466         * lib/wcscmp.c: New file.
42467         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
42468         * m4/wcscmp.m4: New file.
42469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
42470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
42471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
42472         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
42473         * doc/posix-functions/wcscmp.texi: Mention the new module.
42475 2011-02-05  Bruno Haible  <bruno@clisp.org>
42477         New module 'wcsncat'.
42478         * modules/wcsncat: New file.
42479         * lib/wchar.in.h (wcsncat): New declaration.
42480         * lib/wcsncat.c: New file.
42481         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
42482         * m4/wcsncat.m4: New file.
42483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
42484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
42485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
42486         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
42487         * doc/posix-functions/wcsncat.texi: Mention the new module.
42489 2011-02-05  Bruno Haible  <bruno@clisp.org>
42491         New module 'wcscat'.
42492         * modules/wcscat: New file.
42493         * lib/wchar.in.h (wcscat): New declaration.
42494         * lib/wcscat.c: New file.
42495         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
42496         * m4/wcscat.m4: New file.
42497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
42498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
42499         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
42500         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
42501         * doc/posix-functions/wcscat.texi: Mention the new module.
42503 2011-02-05  Bruno Haible  <bruno@clisp.org>
42505         New module 'wcpncpy'.
42506         * modules/wcpncpy: New file.
42507         * lib/wchar.in.h (wcpncpy): New declaration.
42508         * lib/wcpncpy.c: New file.
42509         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
42510         * m4/wcpncpy.m4: New file.
42511         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
42512         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
42513         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
42514         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
42515         * doc/posix-functions/wcpncpy.texi: Mention the new module.
42517 2011-02-05  Bruno Haible  <bruno@clisp.org>
42519         New module 'wcsncpy'.
42520         * modules/wcsncpy: New file.
42521         * lib/wchar.in.h (wcsncpy): New declaration.
42522         * lib/wcsncpy.c: New file.
42523         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
42524         * m4/wcsncpy.m4: New file.
42525         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
42526         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
42527         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
42528         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
42529         * doc/posix-functions/wcsncpy.texi: Mention the new module.
42531 2011-02-05  Bruno Haible  <bruno@clisp.org>
42533         New module 'wcpcpy'.
42534         * modules/wcpcpy: New file.
42535         * lib/wchar.in.h (wcpcpy): New declaration.
42536         * lib/wcpcpy.c: New file.
42537         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
42538         * m4/wcpcpy.m4: New file.
42539         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
42540         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
42541         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
42542         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
42543         * doc/posix-functions/wcpcpy.texi: Mention the new module.
42545 2011-02-05  Bruno Haible  <bruno@clisp.org>
42547         New module 'wcscpy'.
42548         * modules/wcscpy: New file.
42549         * lib/wchar.in.h (wcscpy): New declaration.
42550         * lib/wcscpy.c: New file.
42551         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
42552         * m4/wcscpy.m4: New file.
42553         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
42554         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
42555         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
42556         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
42557         * doc/posix-functions/wcscpy.texi: Mention the new module.
42559 2011-02-05  Bruno Haible  <bruno@clisp.org>
42561         New module 'wcsnlen'.
42562         * modules/wcsnlen: New file.
42563         * lib/wchar.in.h (wcsnlen): New declaration.
42564         * lib/wcsnlen.c: New file.
42565         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
42566         * m4/wcsnlen.m4: New file.
42567         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
42568         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
42569         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
42570         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
42571         * doc/posix-functions/wcsnlen.texi: Mention the new module.
42573 2011-02-05  Bruno Haible  <bruno@clisp.org>
42575         New module 'wcslen'.
42576         * modules/wcslen: New file.
42577         * lib/wchar.in.h (wcslen): New declaration.
42578         * lib/wcslen.c: New file.
42579         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
42580         * m4/wcslen.m4: New file.
42581         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
42582         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
42583         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
42584         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
42585         * doc/posix-functions/wcslen.texi: Mention the new module.
42587 2011-02-05  Bruno Haible  <bruno@clisp.org>
42589         New module 'wmemset'.
42590         * modules/wmemset: New file.
42591         * lib/wchar.in.h (wmemset): New declaration.
42592         * lib/wmemset.c: New file.
42593         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
42594         * m4/wmemset.m4: New file.
42595         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
42596         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
42597         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
42598         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
42599         * doc/posix-functions/wmemset.texi: Mention the new module.
42601 2011-02-05  Bruno Haible  <bruno@clisp.org>
42603         New module 'wmemmove'.
42604         * modules/wmemmove: New file.
42605         * lib/wchar.in.h (wmemmove): New declaration.
42606         * lib/wmemmove.c: New file.
42607         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
42608         * m4/wmemmove.m4: New file.
42609         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
42610         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
42611         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
42612         HAVE_WMEMMOVE.
42613         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
42614         * doc/posix-functions/wmemmove.texi: Mention the new module.
42616 2011-02-05  Bruno Haible  <bruno@clisp.org>
42618         New module 'wmemcpy'.
42619         * modules/wmemcpy: New file.
42620         * lib/wchar.in.h (wmemcpy): New declaration.
42621         * lib/wmemcpy.c: New file.
42622         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
42623         * m4/wmemcpy.m4: New file.
42624         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
42625         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
42626         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
42627         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
42628         * doc/posix-functions/wmemcpy.texi: Mention the new module.
42630 2011-02-05  Bruno Haible  <bruno@clisp.org>
42632         New module 'wmemcmp'.
42633         * modules/wmemcmp: New file.
42634         * lib/wchar.in.h (wmemcmp): New declaration.
42635         * lib/wmemcmp.c: New file.
42636         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
42637         * m4/wmemcmp.m4: New file.
42638         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
42639         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
42640         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
42641         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
42642         * doc/posix-functions/wmemcmp.texi: Mention the new module.
42644 2011-02-07  Jim Meyering  <meyering@redhat.com>
42646         di-set, ino-map: new modules, from coreutils
42647         * lib/di-set.c: New file.
42648         * lib/di-set.h: Likewise.
42649         * lib/ino-map.c: Likewise.
42650         * lib/ino-map.h: Likewise.
42651         * modules/di-set: Likewise.
42652         * modules/di-set-tests: Likewise.
42653         * modules/ino-map: Likewise.
42654         * modules/ino-map-tests: Likewise.
42655         * tests/test-di-set.c: Likewise.
42656         * tests/test-ino-map.c: Likewise.
42658 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
42660         getloadavg: merge minor changes from Emacs
42662         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
42663         (getloadavg): Use memset, not bzero.
42665         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
42666         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
42667         clash (bug#86).
42669 2010-11-14  Bruno Haible  <bruno@clisp.org>
42671         Allow multiple gnulib generated replacements to coexist.
42672         * lib/getopt.in.h (struct option): Avoid identical redefinition.
42673         * lib/inttypes.in.h (imaxdiv_t): Likewise.
42674         * lib/langinfo.in.h (nl_item): Likewise.
42675         * lib/math.in.h (_NaN, NAN): Likewise.
42676         * lib/netdb.in.h (struct addrinfo): Likewise.
42677         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
42678         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
42679         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
42680         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
42681         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
42682         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
42683         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
42684         pthread_mutexattr_init, pthread_mutexattr_settype,
42685         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
42686         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
42687         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
42688         pthread_spin_trylock, pthread_spin_unlock): Likewise.
42689         * lib/sched.in.h (struct sched_param): Likewise.
42690         * lib/se-selinux.in.h (security_class_t, security_context_t,
42691         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
42692         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
42693         lsetfilecon, fsetfilecon, security_check_context,
42694         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
42695         Likewise.
42696         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
42697         Likewise.
42698         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
42699         _gl_function_taking_int_returning_void_t, union sigval,
42700         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
42701         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
42702         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
42703         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
42704         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
42705         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
42706         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
42707         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
42708         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
42709         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
42710         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
42711         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
42712         socklen_t, rpl_fd_isset): Likewise.
42713         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
42714         * lib/sys_time.in.h (struct timeval): Likewise.
42715         * lib/sys_times.in.h (struct tms): Likewise.
42716         * lib/sys_utsname.in.h (struct utsname):
42717         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
42718         * lib/unistd.in.h (getpagesize): Likewise.
42719         * lib/wchar.in.h (mbstate_t): Likewise.
42720         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
42721         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
42722         towlower, towupper): Likewise.
42723         Reported by Sam Steingold <sds@gnu.org>.
42725 2011-02-05  Eric Blake  <eblake@redhat.com>
42727         unsetenv: work around Haiku issues
42728         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
42729         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
42731 2010-12-30  Bruce Korb  <bkorb@gnu.org>
42733         libposix: avoid calling error() within libposix
42734         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
42735         is defined.
42737 2011-02-05  Eric Blake  <eblake@redhat.com>
42739         strerror_r-posix: port to cygwin
42740         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
42741         implementation.
42742         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
42743         * tests/test-strerror_r.c (main): Fix test.
42744         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
42745         issue.
42747 2011-02-05  Bruno Haible  <bruno@clisp.org>
42749         New module 'wmemchr'.
42750         * modules/wmemchr: New file.
42751         * lib/wchar.in.h (wmemchr): New declaration.
42752         * lib/wmemchr.c: New file.
42753         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
42754         * m4/wmemchr.m4: New file.
42755         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
42756         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
42757         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
42758         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
42759         * doc/posix-functions/wmemchr.texi: Mention the new module.
42761 2011-02-04  Eric Blake  <eblake@redhat.com>
42763         fdopendir: detect FreeBSD bug
42764         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
42765         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
42767 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
42769         stdbool: do not define HAVE_STDBOOL_H
42770         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
42771         AC_HEADER_STDBOOL.  All uses changed.  Do not define
42772         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
42773         imported from the latest Autoconf git.  It was motivated by Emacs,
42774         which uses gnulib but does not need HAVE_STDBOOL_H.
42776 2011-02-04  Bruno Haible  <bruno@clisp.org>
42778         wcsnrtombs: Prepare for new module wwcsnrtombs.
42779         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
42780         * lib/wcsnrtombs.c: Include it.
42781         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
42783         wcsrtombs: Prepare for new module wwcsrtombs.
42784         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
42785         * lib/wcsrtombs.c: Include it.
42786         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
42788         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
42789         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
42790         * lib/mbsnrtowcs.c: Include it.
42791         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
42793         mbsrtowcs: Prepare for new module mbsrtowwcs.
42794         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
42795         * lib/mbsrtowcs.c: Include it.
42796         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
42798 2011-02-04  Bruno Haible  <bruno@clisp.org>
42800         vasnprintf: Reduce use of malloc for small format strings.
42801         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
42802         (arguments): Add room for the first 7 arguments.
42803         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
42804         (char_directives, u8_directives, u16_directives, u32_directives): Add
42805         room for the first 7 directives.
42806         * lib/printf-parse.c: Include <string.h>.
42807         (PRINTF_PARSE): Change memory handling code so that it uses the first
42808         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
42809         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
42810         Reported by Pádraig Brady <P@draigbrady.com>.
42812 2011-01-31  Eric Blake  <eblake@redhat.com>
42814         dup2: work around Haiku bug
42815         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
42816         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
42817         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42818         * tests/test-dup2.c (main): Enhance test.
42820 2011-01-31  Simon Josefsson  <simon@josefsson.org>
42822         doc: off_t is not available in eglibc 2.11.2 stdio.h.
42823         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
42824         declared by eglibc 2.11.2.
42825         * lib/stdio.in.h: Likewise.
42827 2011-01-31  Eric Blake  <eblake@redhat.com>
42829         ignore-value: add missing test dependency
42830         * tests/test-ignore-value.c: Revert previous change; stdio.h
42831         provides off_t.
42832         * modules/ignore-value-tests (Depends-on): Add missing dependency.
42834 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
42836         mktime: clarify long_int width checking
42837         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
42838         the top level, to make it clearer that the assumption about
42839         long_int width is being checked.  See
42840         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
42842 2011-01-30  Simon Josefsson  <simon@josefsson.org>
42844         ignore-value: Fix self-test.
42845         * tests/test-ignore-value.c: Include sys/types.h for off_t.
42847 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
42849         TYPE_MAXIMUM: avoid theoretically undefined behavior
42850         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
42851         negative number, which the C Standard says has undefined behavior.
42852         In practice this is not a problem, but might as well do it by the book.
42853         Reported by Rich Felker and Eric Blake; see
42854         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
42855         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
42856         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
42857         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42858         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
42859         * m4/stdint.m4 (gl_STDINT_H): Likewise.
42860         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
42862         mktime: #undef mktime before #defining it
42863         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
42865         mktime: systematically normalize tm_isdst comparisons
42866         * lib/mktime.c (isdst_differ): New function.
42867         (__mktime_internal): Use it systematically for all isdst comparisons.
42868         This completes the fix for libc BZ #6723, and removes the need for
42869         normalizing tm_isdst.  See
42870         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
42871         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
42873         mktime: fix some integer overflow issues and sidestep the rest
42875         This was prompted by a bug report by Benjamin Lindner for MinGW
42876         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
42877         His bug is due to signed integer overflow (0 - INT_MIN), and I
42878         I scanned through mktime.c looking for other integer overflow
42879         problems, fixing all the bugs I found.
42881         Although the C Standard says the resulting code is still not safe
42882         in the presence of integer overflow, in practice it should be good
42883         enough for all real-world two's-complement implementations, except
42884         for debugging environments that deliberately trap on integer
42885         overflow (e.g., gcc -ftrapv).
42887         * lib/mktime.c (WRAPV): New macro.
42888         (SHR): Also check that long_int and time_t shift right in the
42889         usual way, before using the fast-but-unportable method.
42890         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
42891         used.  The code already assumed two's complement, so there's
42892         no need to test for alternatives.  All uses removed.
42893         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
42894         the C standard.  Problem reported by Rich Felker in
42895         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
42896         (twos_complement_arithmetic): Also check long_int and time_t.
42897         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
42898         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
42899         (__mktime_internal): Avoid integer overflow with unary subtraction
42900         in two instances where -1 - X is an adequate replacement for -X,
42901         since the calculations are approximate.
42903 2011-01-29  Eric Blake  <eblake@redhat.com>
42905         mktime: avoid infinite loop
42906         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
42907         type; behavior is still undefined but portable to all known targets.
42908         Reported by Rich Felker.
42910 2011-01-29  Simon Josefsson  <simon@josefsson.org>
42912         rename, unlink, same-inode: Relicense.
42913         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
42914         * modules/unlink (License): Likewise.
42915         * modules/same-inode (License): Likewise.
42917 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42919         mktime: avoid problems on NetBSD 5 / i386
42920         * lib/mktime.c (long_int): New type.  This works around a problem
42921         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
42922         but time_t is 64 bits, and where I expect the existing code is
42923         wrong in some cases.
42924         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
42925         (ydhms_diff): Bring back the compile-time check for wide-enough
42926         year and yday.
42928         mktime: fix misspelling in comment
42929         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
42930         This merges all recent glibc changes of importance.
42932 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42934         move-if-change: cope with concurrent mv of identical file.
42935         * build-aux/move-if-change (CMPPROG): Accept environment
42936         variable as an override for `cmp'.
42937         (usage): Document CMPPROG.
42938         Adjust comparison to drop stdout.  Cope with failure of mv if
42939         the target file exists and is identical to the source, for
42940         parallel builds.
42941         Report from H.J. Lu against binutils in PR binutils/12283.
42943 2011-01-28  Bruce Korb  <bkorb@gnu.org>
42945         * users.txt: Mention sharutils.
42947 2011-01-28  Simon Josefsson  <simon@josefsson.org>
42949         * users.txt: Mention OATH Toolkit.
42951 2011-01-27  Bruno Haible  <bruno@clisp.org>
42953         Prepare for supporting FreeBSD 10.
42954         * build-aux/config.libpath: Remove handling of freebsd1*.
42956 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
42958         Prepare for supporting FreeBSD 10.
42959         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
42960         match FreeBSD 10.0.
42962 2011-01-27  Bruno Haible  <bruno@clisp.org>
42964         vma-iter, get-rusage-as: Add OpenBSD support.
42965         * modules/vma-iter (configure.ac): Test for mquery.
42966         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
42967         * lib/vma-iter.c: Include <sys/mman.h>.
42968         (vma_iterate): Add an implementation based on mquery().
42969         * lib/resource-ext.h (get_rusage_as): Update comments.
42970         * lib/get-rusage-as.c: Likewise.
42971         * lib/get-rusage-data.c: Likewise.
42973 2011-01-26  Karl Berry  <karl@gnu.org>
42975         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
42976         variables to make it easier to override the makeinfo program used.
42978 2011-01-26  Eric Blake  <eblake@redhat.com>
42980         fcntl: work around Haiku F_DUPFD bugs
42981         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
42982         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
42983         cloexec bit on duplication.
42984         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
42986 2011-01-26  Bruno Haible  <bruno@clisp.org>
42988         Enable memory leak tests on AIX.
42989         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
42990         * tests/test-fprintf-posix3.c (main): Likewise.
42992 2011-01-26  Bruno Haible  <bruno@clisp.org>
42994         Tests for module 'get-rusage-data'.
42995         * modules/get-rusage-data-tests: New file.
42996         * tests/test-get-rusage-data.c: New file.
42998         New module 'get-rusage-data'.
42999         * lib/resource-ext.h (get_rusage_data): New declaration.
43000         * lib/get-rusage-data.c: New file.
43001         * modules/get-rusage-data: New file.
43003 2011-01-25  Bruno Haible  <bruno@clisp.org>
43005         get-rusage-as: Allow for easier testing.
43006         * lib/resource-ext.h (get_rusage_as): Add comment.
43007         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
43008         (main): New function for interactive testing.
43010 2011-01-25  Bruno Haible  <bruno@clisp.org>
43012         vma-iter: Treat Haiku like BeOS.
43013         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
43014         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
43016 2011-01-25  Eric Blake  <eblake@redhat.com>
43018         c-stack: fix regression on cygwin when libsigsegv is present
43019         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
43021 2011-01-24  Bruno Haible  <bruno@clisp.org>
43023         vma-iter: Avoid empty intervals.
43024         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
43025         on an empty interval.
43027 2011-01-24  Jim Meyering  <meyering@redhat.com>
43029         u64: remove unnecessary #include
43030         * lib/u64.h: Don't include <stddef.h>.  It was not used.
43032 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43034         Allow the user to avoid the HAVE_RAW_DECL_* macros.
43035         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
43037 2011-01-23  Bruno Haible  <bruno@clisp.org>
43039         New module 'vma-iter'.
43040         * lib/vma-iter.h: New file.
43041         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
43042         * modules/vma-iter: New file.
43043         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
43044         for get_rusage_as_via_iterator.
43045         (vma_iterate_callback): New function.
43046         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
43047         * modules/get-rusage-as (Depends-on): Add vma-iter.
43049 2011-01-23  Bruno Haible  <bruno@clisp.org>
43051         uninorm: Tweak includes.
43052         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
43053         Reported by Jim Meyering.
43055 2011-01-23  Bruno Haible  <bruno@clisp.org>
43057         get-rusage-as: Improve on NetBSD.
43058         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
43059         /proc, like on FreeBSD.
43061 2011-01-23  Jim Meyering  <meyering@redhat.com>
43063         xreadlink.h: remove unnecessary #include
43064         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
43066         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
43067         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
43069 2011-01-23  Bruno Haible  <bruno@clisp.org>
43071         get-rusage-as: Fix bug.
43072         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
43073         original limit when aborting the first loop.
43075 2011-01-23  Bruno Haible  <bruno@clisp.org>
43077         wctype: Ensure valid C syntax.
43078         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
43079         unconditionally, instead of gl_NEXT_HEADERS conditionally.
43081 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
43083         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
43084         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
43085         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
43086         as they are needed only for configure's test case.
43087         This removes two unnecessary symbols from config.h.
43089         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
43090         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
43091         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
43092         AC_CHECK_HEADERS_ONCE on a header that we also invoke
43093         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
43094         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
43095         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
43096         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
43097         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
43098         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43099         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
43100         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43101         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
43102         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
43103         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
43104         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43105         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
43106         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
43108 2011-01-21  Eric Blake  <eblake@redhat.com>
43110         maintainer-makefile: work with older git for submodule check
43111         * top/maint.mk (public-submodule-commit): Rewrite to avoid
43112         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
43113         Reported by Matthias Bolte.
43115         bootstrap: minor portability fixes
43116         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
43117         (usage): Omit leading capital and trailing . on help phrases, per
43118         GNU Coding Standards.
43119         (check_versions, top level): Prefix messages with script name.
43121 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
43123         bootstrap: support --no-git option
43124         * build-aux/bootstrap: Add --no-git option, to be used when
43125         --gnulib-srcdir points to the exact desired checkout.
43127 2011-01-21  Eric Blake  <eblake@redhat.com>
43129         strerror_r-posix: work with glibc 2.13
43130         * lib/strerror_r.c (strerror_r): Fix return type.
43132 2011-01-21  Pádraig Brady  <P@draigBrady.com>
43133             Bruno Haible  <bruno@clisp.org>
43135         uN_strstr: New unit tests.
43136         * modules/unistr/u8-strstr-tests: New file.
43137         * modules/unistr/u16-strstr-tests: New file.
43138         * modules/unistr/u32-strstr-tests: New file.
43139         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
43140         * tests/unistr/test-u8-strstr.c: New file.
43141         * tests/unistr/test-u16-strstr.c: New file.
43142         * tests/unistr/test-u32-strstr.c: New file.
43144 2011-01-21  Pádraig Brady  <P@draigBrady.com>
43145             Bruno Haible  <bruno@clisp.org>
43147         Make uN_strstr functions O(n) worst-case.
43148         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
43149         16-bit and 32-bit unit cases, use the unibyte algorithm from
43150         lib/mbsstr.c.
43151         * lib/unistr/u8-strstr.c: Include <string.h>.
43152         (UNIT_IS_UINT8_T): New macro.
43153         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
43154         (U_STRLEN, U_STRNLEN): New macros.
43155         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
43156         (U_STRLEN, U_STRNLEN): New macros.
43157         * modules/unistr/u8-strstr (Depends-on): Add strstr.
43158         (configure.ac): Update required libunistring version.
43159         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
43160         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
43161         malloca.
43162         (configure.ac): Update required libunistring version.
43163         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
43164         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
43165         malloca.
43166         (configure.ac): Update required libunistring version.
43168 2011-01-21  Pádraig Brady  <P@draigBrady.com>
43169             Bruno Haible  <bruno@clisp.org>
43171         Prepare for faster uN_strstr functions.
43172         * lib/str-kmp.h: Support definable UNITs.
43173         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
43174         needle_len argument.
43175         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
43176         * lib/mbscasestr.c (mbscasestr): Likewise.
43178 2011-01-21  Pádraig Brady  <P@draigBrady.com>
43180         malloca-tests: make faster by unsetting MALLOC_PERTURB_
43181         * tests/test-malloca.c (main): Unset the environment variable
43182         to greatly speed up the test.
43183         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
43184         * modules/malloca-tests: Depend on unsetenv.
43186 2011-01-21  Pádraig Brady  <P@draigBrady.com>
43188         ignore-value: remove stdint dependency
43189         * lib/ignore-value.h: Remove <stdint.h>
43190         * modules/ignore-value: Remove stdint dependency.
43192 2011-01-21  Jim Meyering  <meyering@redhat.com>
43194         maint.mk: adjust variable name to be consistent with other gl_ vars
43195         * top/maint.mk (gl_public_submodule_commit): Rename the variable
43196         to be lower case.
43198 2011-01-20  Jim Meyering  <meyering@redhat.com>
43200         maint.mk: make "check" depend on public-submodule-commit by default
43201         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
43203 2011-01-20  Bruno Haible  <bruno@clisp.org>
43205         mbfile, mbiter: Complete change from 2008-12-21.
43206         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
43207         * m4/mbiter.m4 (gl_MBITER): Likewise.
43209 2011-01-20  Jim Meyering  <meyering@redhat.com>
43211         init.sh: insert space between each function name and "()"
43212         * tests/init.sh: Make it a little easier to see that a function's
43213         name is "warn_", and not "warn" when looking at the first part of
43214         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
43216 2011-01-20  Jim Meyering  <meyering@redhat.com>
43218         mountlist: clean up code formatting
43219         * lib/mountlist.c (read_file_system_list): Split a long line,
43220         correct bracing style, use NULL in place of "(struct statfs *)0",
43221         don't parenthesize return value, add spaces around "=" and after
43222         ";-in-for-stmt".
43224 2011-01-14  Markus Duft  <mduft@gentoo.org>
43226         mountlist: add support for Interix
43227         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
43228         Apply statvfs to all entries of /dev/fs.
43229         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
43230         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
43232 2011-01-20  Jim Meyering  <meyering@redhat.com>
43234         maint.mk: improve the public-submodule-commit rule
43235         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
43236         to suppress printing of its commands... unless V=1.
43237         Add git submodule's --quiet option to suppress printing of e.g.,
43238         "Entering gnulib" output.
43239         "cd" into $(srcdir) before running git submodule.
43241 2011-01-20  Bruno Haible  <bruno@clisp.org>
43243         include_next: Fix bug introduced on 2011-01-18.
43244         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
43245         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
43246         ac_cv_header_... variable if the second argument is not 'check'.
43247         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
43248         gl_NEXT_HEADERS_INTERNAL.
43250 2011-01-20  Bruno Haible  <bruno@clisp.org>
43252         Allow the user to avoid the GNULIB_TEST_* macros.
43253         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
43254         Suggested by Paul Eggert.
43256 2011-01-14  Jim Meyering  <meyering@redhat.com>
43258         bootstrap: avoid failure when there is no .gitmodules file
43259         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
43260         has been assigned to, even when its value is the empty string.
43261         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
43262         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
43263         Reported by John W. Eaton <jwe@gnu.org>.
43265 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
43267         assume <ctype.h>, ..., <time.h> exist
43268         For years gnulib has been assuming the existence of the headers
43269         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
43270         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
43271         them, since they don't appear to be needed.
43272         * README (Portability guidelines): Document this.
43273         * lib/flock.c: Assume <fcntl.h> exists.
43274         * lib/regex_internal.h: Assume <locale.h> exists.
43275         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
43276         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
43277         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
43278         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
43279         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
43280         * m4/regex.m4 (gl_REGEX): Likewise.
43281         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
43282         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
43283         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
43284         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
43285         * tests/test-argp.c: Likewise.
43286         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
43288         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
43289         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
43290         AA_APPLE_UNIVERSAL_BUILD.  See
43291         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
43292         * NEWS: Document this.
43294 2011-01-19  Eric Blake  <eblake@redhat.com>
43296         c-stack: assume stack overflow if SA_SIGINFO unsupported
43297         * lib/c-stack.c (SIGACTION_WORKS): Rename...
43298         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
43299         sigaction will work.
43300         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
43301         behavior match Linux.
43302         * tests/test-c-stack.c (main): Prefer NULL for pointers.
43304         stdbool-tests: accommodate Haiku
43305         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
43307         binary-io: fix O_TEXT on Haiku
43308         * modules/binary-io (Depends-on): Add fcntl-h.
43309         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
43310         than blindly undefining O_TEXT.
43311         Reported by Scott McCreary.
43313 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
43315         include_next: do not check for standard headers like stddef.h
43317         I found this problem when modifying Emacs to use gnulib.
43318         I noticed that it added HAVE_STDDEF_H to config.h, even though
43319         gnulib always assumes <stddef.h> exists as per README and this
43320         symbol is unnecessary.
43321         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
43322         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
43323         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
43324         faster for headers like stddef.h that are known to exist.
43325         (gl_CHECK_NEXT_HEADERS): Use it.
43326         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
43327         rather than gl_CHECK_NEXT_HEADERS.
43328         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
43329         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
43331 2011-01-18  Eric Blake  <eblake@redhat.com>
43333         ansi-c++-opt: skip C++ dependency style if C++ is unused
43334         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
43335         tests when we know C++ compilation is not desired.
43336         Reported by Scott McCreary.
43338 2011-01-18  Bruno Haible  <bruno@clisp.org>
43340         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
43341         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
43342         (main): Perform test also when getrlimit and setrlimit don't exist or
43343         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
43344         limiting the address space size using setrlimit, compare the address
43345         space size before and after the test.
43346         * tests/test-dprintf-posix2.c: Likewise.
43347         * tests/test-fprintf-posix3.sh: Update skip messages.
43348         * tests/test-dprintf-posix2.sh: Likewise.
43349         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
43350         * modules/dprintf-posix-tests (Depends-on): Likewise.
43351         Reported by Bruce Korb <bkorb@gnu.org> and
43352         Gary V. Vaughan <gary@gnu.org>.
43354 2011-01-18  Bruno Haible  <bruno@clisp.org>
43356         get-rusage-as: Improvement for Cygwin.
43357         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
43358         areas that are merely reserved.
43360 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
43362         strftime: remove dependencies on multibyte modules
43364         strftime depended on mbrlen, mbsinit, and wchar, but these modules
43365         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
43366         only if __osf__ is defined, and I suspect OSF doesn't need these
43367         other modules.  If my guess is wrong, we'll need to come up with a
43368         variant of strftime that doesn't need the multibyte modules.
43370         I discovered this problem when attempting modify Emacs to use the
43371         strftime module.  With the previous gnulib, this caused Emacs to
43372         need 31 new files, ranging from lib/config.charset to
43373         m4/wint_t.m4.  This was overkill and I expect would be offputting
43374         to the Emacs maintainers.  After this change, only 6 new files are
43375         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
43376         stdbool.m4, and tm_gmtoff.m4.
43378         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
43379         Suggested by Bruno Haible in
43380         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
43381         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
43382         and do not check for wchar.h.
43383         * modules/strftime (Files): Remove m4/mbstate_t.m4.
43384         (Depends-on): Remove mbrlen, mbsinit, wchar.
43386 2011-01-18  Bruno Haible  <bruno@clisp.org>
43388         Tests for module 'get-rusage-as'.
43389         * modules/get-rusage-as-tests: New file.
43390         * tests/test-get-rusage-as.c: New file.
43392         New module 'get-rusage-as'.
43393         * modules/get-rusage-as: New file.
43394         * lib/resource-ext.h: New file.
43395         * lib/get-rusage-as.c: New file.
43397 2011-01-17  Eric Blake  <eblake@redhat.com>
43399         sigaction: relax license from LGPLv3+ to LGPLv2+
43400         * modules/sigaction (License): Relax to LGPLv2+.
43402 2011-01-14  Bruno Haible  <bruno@clisp.org>
43404         filemode: Make function declarations usable in C++ mode.
43405         * lib/filemode.h: Enclose function declarations in extern "C" block.
43406         Reported by John W. Eaton <jwe@gnu.org>.
43408 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
43410         save-cwd: no longer include "xgetcwd.h"
43411         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
43412         This avoids a compilation failure in projects that use save-cwd
43413         without also using the xgetcwd module.
43415 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
43417         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
43418         This is so that a program like Emacs, which needs only dtoastr,
43419         does not have to bother with distributing and compiling ftoastr
43420         and ldtoastr.
43421         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
43422         * modules/dtoastr, modules/ldtoastr: New files.
43423         * modules/ftoastr: Now works just for 'float'.
43424         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
43425         (Makefile.am): Remove ftoastr.h (not needed and no effect),
43426         dtoastr.c, ldtoastr.c.
43428 2011-01-11  Jim Meyering  <meyering@redhat.com>
43430         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
43431         There is no need to work around the lack of the fchdir function,
43432         since gnulib can now provide a replacement when required.
43433         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
43434         * modules/save-cwd (Depends-on): Add fchdir.
43436 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
43438         openat, save-cwd: avoid xmalloc
43440         This removes a direct (but undocumented) dependency of openat on
43441         xalloc, along with an indirect dependency via save-cwd.  It also
43442         removes a dependency of save-cwd on xgetcwd, and thereby
43443         indirectly on xalloc.  This change causes the openat substitute
43444         to fall back on save_cwd when memory is tight, and for save_cwd to
43445         fail instead of dying when memory is tight, but that's good enough.
43446         Problem and initial idea for fix reported by Bastien Roucaries in
43447         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
43449         * lib/openat-proc.c: Include stdlib.h (for malloc), not
43450         xalloc.h (for xmalloc).
43451         (openat_proc_name): Use malloc, not xmalloc.
43452         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
43453         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
43455         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
43456         This avoids heap allocation for file names whose lengths are in
43457         the range 512..1023, with the upper bound increasing to at most
43458         4031 depending on the platform's PATH_MAX.  (We do not want
43459         pathmax.h here as it might supply a non-constant PATH_MAX.)
43460         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
43461         Perhaps they should be moved to malloca.h?
43462         (OPENAT_BUFFER_SIZE): Use them.
43464 2011-01-10  Bruno Haible  <bruno@clisp.org>
43466         doc: Update users.txt.
43467         * users.txt: Add recutils.
43469 2011-01-09  Karl Berry  <karl@gnu.org>
43471         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
43473         * doc/configmake.texi: New file.
43474         * doc/gnulib.texi: Include it.
43475         * modules/configmake: Move documentation from here.
43477 2011-01-09  Bruno Haible  <bruno@clisp.org>
43479         Update to Unicode 6.0.0.
43480         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
43481         (get_lbp): Update for Unicode 6.0.0.
43482         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
43483         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
43484         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
43485         U+11001, U+11038..U+11046. Remove U+06DE.
43486         (uc_width): Fix bounds of planes.
43487         * tests/uniwidth/test-uc_width2.sh: Same updates as in
43488         lib/uniwidth/width.c.
43489         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
43490         trailing whitespace removed.
43491         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
43492         without comments, but with the original copyright notice.
43493         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
43494         * lib/unicase/ignorable.h: Likewise.
43495         * lib/unicase/tocasefold.h: Likewise.
43496         * lib/unicase/tolower.h: Likewise.
43497         * lib/unicase/totitle.h: Likewise.
43498         * lib/unicase/toupper.h: Likewise.
43499         * lib/unictype/bidi_of.h: Likewise.
43500         * lib/unictype/blocks.h: Likewise.
43501         * lib/unictype/categ_C.h: Likewise.
43502         * lib/unictype/categ_Cn.h: Likewise.
43503         * lib/unictype/categ_L.h: Likewise.
43504         * lib/unictype/categ_Ll.h: Likewise.
43505         * lib/unictype/categ_Lm.h: Likewise.
43506         * lib/unictype/categ_Lo.h: Likewise.
43507         * lib/unictype/categ_Lu.h: Likewise.
43508         * lib/unictype/categ_M.h: Likewise.
43509         * lib/unictype/categ_Mc.h: Likewise.
43510         * lib/unictype/categ_Me.h: Likewise.
43511         * lib/unictype/categ_Mn.h: Likewise.
43512         * lib/unictype/categ_N.h: Likewise.
43513         * lib/unictype/categ_Nd.h: Likewise.
43514         * lib/unictype/categ_No.h: Likewise.
43515         * lib/unictype/categ_P.h: Likewise.
43516         * lib/unictype/categ_Po.h: Likewise.
43517         * lib/unictype/categ_S.h: Likewise.
43518         * lib/unictype/categ_Sc.h: Likewise.
43519         * lib/unictype/categ_Sk.h: Likewise.
43520         * lib/unictype/categ_Sm.h: Likewise.
43521         * lib/unictype/categ_So.h: Likewise.
43522         * lib/unictype/categ_of.h: Likewise.
43523         * lib/unictype/combining.h: Likewise.
43524         * lib/unictype/ctype_alnum.h: Likewise.
43525         * lib/unictype/ctype_alpha.h: Likewise.
43526         * lib/unictype/ctype_graph.h: Likewise.
43527         * lib/unictype/ctype_lower.h: Likewise.
43528         * lib/unictype/ctype_print.h: Likewise.
43529         * lib/unictype/ctype_punct.h: Likewise.
43530         * lib/unictype/ctype_upper.h: Likewise.
43531         * lib/unictype/decdigit.h: Likewise.
43532         * lib/unictype/digit.h: Likewise.
43533         * lib/unictype/numeric.h: Likewise.
43534         * lib/unictype/pr_alphabetic.h: Likewise.
43535         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43536         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43537         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43538         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43539         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43540         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43541         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43542         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43543         * lib/unictype/pr_case_ignorable.h: Likewise.
43544         * lib/unictype/pr_cased.h: Likewise.
43545         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
43546         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
43547         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
43548         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
43549         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
43550         * lib/unictype/pr_combining.h: Likewise.
43551         * lib/unictype/pr_composite.h: Likewise.
43552         * lib/unictype/pr_currency_symbol.h: Likewise.
43553         * lib/unictype/pr_decimal_digit.h: Likewise.
43554         * lib/unictype/pr_deprecated.h: Likewise.
43555         * lib/unictype/pr_format_control.h: Likewise.
43556         * lib/unictype/pr_grapheme_base.h: Likewise.
43557         * lib/unictype/pr_grapheme_extend.h: Likewise.
43558         * lib/unictype/pr_grapheme_link.h: Likewise.
43559         * lib/unictype/pr_id_continue.h: Likewise.
43560         * lib/unictype/pr_id_start.h: Likewise.
43561         * lib/unictype/pr_ideographic.h: Likewise.
43562         * lib/unictype/pr_lowercase.h: Likewise.
43563         * lib/unictype/pr_math.h: Likewise.
43564         * lib/unictype/pr_numeric.h: Likewise.
43565         * lib/unictype/pr_other_alphabetic.h: Likewise.
43566         * lib/unictype/pr_other_id_continue.h: Likewise.
43567         * lib/unictype/pr_other_math.h: Likewise.
43568         * lib/unictype/pr_punctuation.h: Likewise.
43569         * lib/unictype/pr_sentence_terminal.h: Likewise.
43570         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43571         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43572         * lib/unictype/pr_unified_ideograph.h: Likewise.
43573         * lib/unictype/pr_uppercase.h: Likewise.
43574         * lib/unictype/pr_xid_continue.h: Likewise.
43575         * lib/unictype/pr_xid_start.h: Likewise.
43576         * lib/unictype/scripts.h: Likewise.
43577         * lib/unictype/scripts_byname.gperf: Likewise.
43578         * lib/unictype/sy_java_ident.h: Likewise.
43579         * lib/unigbrk/gbrkprop.h: Likewise.
43580         * lib/unilbrk/lbrkprop1.h: Likewise.
43581         * lib/unilbrk/lbrkprop2.h: Likewise.
43582         * lib/uninorm/decomposition-table2.h: Likewise.
43583         * lib/uniwbrk/wbrkprop.h: Likewise.
43584         * tests/unicase/test-cased.c: Likewise.
43585         * tests/unicase/test-ignorable.c: Likewise.
43586         * tests/unicase/test-uc_tolower.c: Likewise.
43587         * tests/unicase/test-uc_totitle.c: Likewise.
43588         * tests/unicase/test-uc_toupper.c: Likewise.
43589         * tests/unictype/test-categ_C.c: Likewise.
43590         * tests/unictype/test-categ_Cn.c: Likewise.
43591         * tests/unictype/test-categ_L.c: Likewise.
43592         * tests/unictype/test-categ_Ll.c: Likewise.
43593         * tests/unictype/test-categ_Lm.c: Likewise.
43594         * tests/unictype/test-categ_Lo.c: Likewise.
43595         * tests/unictype/test-categ_Lu.c: Likewise.
43596         * tests/unictype/test-categ_M.c: Likewise.
43597         * tests/unictype/test-categ_Mc.c: Likewise.
43598         * tests/unictype/test-categ_Me.c: Likewise.
43599         * tests/unictype/test-categ_Mn.c: Likewise.
43600         * tests/unictype/test-categ_N.c: Likewise.
43601         * tests/unictype/test-categ_Nd.c: Likewise.
43602         * tests/unictype/test-categ_No.c: Likewise.
43603         * tests/unictype/test-categ_P.c: Likewise.
43604         * tests/unictype/test-categ_Po.c: Likewise.
43605         * tests/unictype/test-categ_S.c: Likewise.
43606         * tests/unictype/test-categ_Sc.c: Likewise.
43607         * tests/unictype/test-categ_Sk.c: Likewise.
43608         * tests/unictype/test-categ_Sm.c: Likewise.
43609         * tests/unictype/test-categ_So.c: Likewise.
43610         * tests/unictype/test-ctype_alnum.c: Likewise.
43611         * tests/unictype/test-ctype_alpha.c: Likewise.
43612         * tests/unictype/test-ctype_graph.c: Likewise.
43613         * tests/unictype/test-ctype_lower.c: Likewise.
43614         * tests/unictype/test-ctype_print.c: Likewise.
43615         * tests/unictype/test-ctype_punct.c: Likewise.
43616         * tests/unictype/test-ctype_upper.c: Likewise.
43617         * tests/unictype/test-decdigit.h: Likewise.
43618         * tests/unictype/test-digit.h: Likewise.
43619         * tests/unictype/test-numeric.h: Likewise.
43620         * tests/unictype/test-pr_alphabetic.c: Likewise.
43621         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
43622         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
43623         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
43624         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
43625         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
43626         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
43627         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
43628         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
43629         * tests/unictype/test-pr_case_ignorable.c: Likewise.
43630         * tests/unictype/test-pr_cased.c: Likewise.
43631         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
43632         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
43633         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
43634         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
43635         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
43636         * tests/unictype/test-pr_combining.c: Likewise.
43637         * tests/unictype/test-pr_composite.c: Likewise.
43638         * tests/unictype/test-pr_currency_symbol.c: Likewise.
43639         * tests/unictype/test-pr_decimal_digit.c: Likewise.
43640         * tests/unictype/test-pr_deprecated.c: Likewise.
43641         * tests/unictype/test-pr_format_control.c: Likewise.
43642         * tests/unictype/test-pr_grapheme_base.c: Likewise.
43643         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
43644         * tests/unictype/test-pr_grapheme_link.c: Likewise.
43645         * tests/unictype/test-pr_id_continue.c: Likewise.
43646         * tests/unictype/test-pr_id_start.c: Likewise.
43647         * tests/unictype/test-pr_ideographic.c: Likewise.
43648         * tests/unictype/test-pr_lowercase.c: Likewise.
43649         * tests/unictype/test-pr_math.c: Likewise.
43650         * tests/unictype/test-pr_numeric.c: Likewise.
43651         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
43652         * tests/unictype/test-pr_other_id_continue.c: Likewise.
43653         * tests/unictype/test-pr_other_math.c: Likewise.
43654         * tests/unictype/test-pr_punctuation.c: Likewise.
43655         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
43656         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
43657         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
43658         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
43659         * tests/unictype/test-pr_uppercase.c: Likewise.
43660         * tests/unictype/test-pr_xid_continue.c: Likewise.
43661         * tests/unictype/test-pr_xid_start.c: Likewise.
43662         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
43663         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
43664         changes.
43665         * lib/unictype/categ_Cc.h: Likewise.
43666         * lib/unictype/categ_Cf.h: Likewise.
43667         * lib/unictype/categ_Co.h: Likewise.
43668         * lib/unictype/categ_Cs.h: Likewise.
43669         * lib/unictype/categ_Lt.h: Likewise.
43670         * lib/unictype/categ_Nl.h: Likewise.
43671         * lib/unictype/categ_Pc.h: Likewise.
43672         * lib/unictype/categ_Pd.h: Likewise.
43673         * lib/unictype/categ_Pe.h: Likewise.
43674         * lib/unictype/categ_Pf.h: Likewise.
43675         * lib/unictype/categ_Pi.h: Likewise.
43676         * lib/unictype/categ_Ps.h: Likewise.
43677         * lib/unictype/categ_Z.h: Likewise.
43678         * lib/unictype/categ_Zl.h: Likewise.
43679         * lib/unictype/categ_Zp.h: Likewise.
43680         * lib/unictype/categ_Zs.h: Likewise.
43681         * lib/unictype/ctype_blank.h: Likewise.
43682         * lib/unictype/ctype_cntrl.h: Likewise.
43683         * lib/unictype/ctype_digit.h: Likewise.
43684         * lib/unictype/ctype_space.h: Likewise.
43685         * lib/unictype/ctype_xdigit.h: Likewise.
43686         * lib/unictype/mirror.h: Likewise.
43687         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43688         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43689         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43690         * lib/unictype/pr_bidi_control.h: Likewise.
43691         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43692         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43693         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43694         * lib/unictype/pr_bidi_pdf.h: Likewise.
43695         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43696         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43697         * lib/unictype/pr_dash.h: Likewise.
43698         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43699         * lib/unictype/pr_diacritic.h: Likewise.
43700         * lib/unictype/pr_extender.h: Likewise.
43701         * lib/unictype/pr_hex_digit.h: Likewise.
43702         * lib/unictype/pr_hyphen.h: Likewise.
43703         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43704         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43705         * lib/unictype/pr_ignorable_control.h: Likewise.
43706         * lib/unictype/pr_iso_control.h: Likewise.
43707         * lib/unictype/pr_join_control.h: Likewise.
43708         * lib/unictype/pr_left_of_pair.h: Likewise.
43709         * lib/unictype/pr_line_separator.h: Likewise.
43710         * lib/unictype/pr_logical_order_exception.h: Likewise.
43711         * lib/unictype/pr_non_break.h: Likewise.
43712         * lib/unictype/pr_not_a_character.h: Likewise.
43713         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43714         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43715         * lib/unictype/pr_other_id_start.h: Likewise.
43716         * lib/unictype/pr_other_lowercase.h: Likewise.
43717         * lib/unictype/pr_other_uppercase.h: Likewise.
43718         * lib/unictype/pr_paired_punctuation.h: Likewise.
43719         * lib/unictype/pr_paragraph_separator.h: Likewise.
43720         * lib/unictype/pr_pattern_syntax.h: Likewise.
43721         * lib/unictype/pr_pattern_white_space.h: Likewise.
43722         * lib/unictype/pr_private_use.h: Likewise.
43723         * lib/unictype/pr_quotation_mark.h: Likewise.
43724         * lib/unictype/pr_radical.h: Likewise.
43725         * lib/unictype/pr_soft_dotted.h: Likewise.
43726         * lib/unictype/pr_space.h: Likewise.
43727         * lib/unictype/pr_titlecase.h: Likewise.
43728         * lib/unictype/pr_variation_selector.h: Likewise.
43729         * lib/unictype/pr_white_space.h: Likewise.
43730         * lib/unictype/pr_zero_width.h: Likewise.
43731         * lib/unictype/sy_c_ident.h: Likewise.
43732         * lib/unictype/sy_c_whitespace.h: Likewise.
43733         * lib/unictype/sy_java_whitespace.h: Likewise.
43734         * lib/uninorm/composition-table.gperf: Likewise.
43735         * lib/uninorm/decomposition-table1.h: Likewise.
43736         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
43737         LB8.
43738         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43739         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43740         * modules/unictype/*: Bump version number of expected libunistring
43741         version.
43743 2011-01-09  Bruno Haible  <bruno@clisp.org>
43745         Update to Unicode 5.2.0.
43746         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
43747         trailing whitespace removed.
43749 2011-01-09  Bruno Haible  <bruno@clisp.org>
43751         New Unicode character properties, from Unicode 5.2.0.
43752         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
43753         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
43754         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
43755         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
43756         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
43757         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
43758         uc_is_property_cased, uc_is_property_case_ignorable,
43759         uc_is_property_changes_when_lowercased,
43760         uc_is_property_changes_when_uppercased,
43761         uc_is_property_changes_when_titlecased,
43762         uc_is_property_changes_when_casefolded,
43763         uc_is_property_changes_when_casemapped): New declarations.
43764         * lib/unictype/pr_byname.gperf: Add the new properties.
43765         * modules/unictype/property-byname (Depends-on): Depend on the new
43766         properties modules.
43767         * modules/unictype/property-all (Depends-on): Likewise.
43768         * MODULES.html.sh (Unicode string functions): Add
43769         unictype/property-case-ignorable, unictype/property-cased,
43770         unictype/property-changes-when-casefolded,
43771         unictype/property-changes-when-casemapped,
43772         unictype/property-changes-when-lowercased,
43773         unictype/property-changes-when-titlecased,
43774         unictype/property-changes-when-uppercased.
43776         New module 'unictype/property-changes-when-casemapped'.
43777         * modules/unictype/property-changes-when-casemapped: New file.
43778         * lib/unictype/pr_changes_when_casemapped.c: New file.
43779         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
43780         generated by gen-uni-tables.
43781         * modules/unictype/property-changes-when-casemapped-tests: New file.
43782         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
43783         automatically generated by gen-uni-tables.
43785         New module 'unictype/property-changes-when-casefolded'.
43786         * modules/unictype/property-changes-when-casefolded: New file.
43787         * lib/unictype/pr_changes_when_casefolded.c: New file.
43788         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
43789         generated by gen-uni-tables.
43790         * modules/unictype/property-changes-when-casefolded-tests: New file.
43791         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
43792         automatically generated by gen-uni-tables.
43794         New module 'unictype/property-changes-when-titlecased'.
43795         * modules/unictype/property-changes-when-titlecased: New file.
43796         * lib/unictype/pr_changes_when_titlecased.c: New file.
43797         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
43798         generated by gen-uni-tables.
43799         * modules/unictype/property-changes-when-titlecased-tests: New file.
43800         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
43801         automatically generated by gen-uni-tables.
43803         New module 'unictype/property-changes-when-uppercased'.
43804         * modules/unictype/property-changes-when-uppercased: New file.
43805         * lib/unictype/pr_changes_when_uppercased.c: New file.
43806         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
43807         generated by gen-uni-tables.
43808         * modules/unictype/property-changes-when-uppercased-tests: New file.
43809         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
43810         automatically generated by gen-uni-tables.
43812         New module 'unictype/property-changes-when-lowercased'.
43813         * modules/unictype/property-changes-when-lowercased: New file.
43814         * lib/unictype/pr_changes_when_lowercased.c: New file.
43815         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
43816         generated by gen-uni-tables.
43817         * modules/unictype/property-changes-when-lowercased-tests: New file.
43818         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
43819         automatically generated by gen-uni-tables.
43821         New module 'unictype/property-case-ignorable'.
43822         * modules/unictype/property-case-ignorable: New file.
43823         * lib/unictype/pr_case_ignorable.c: New file.
43824         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
43825         by gen-uni-tables.
43826         * modules/unictype/property-case-ignorable-tests: New file.
43827         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
43828         generated by gen-uni-tables.
43830         New module 'unictype/property-cased'.
43831         * modules/unictype/property-cased: New file.
43832         * lib/unictype/pr_cased.c: New file.
43833         * lib/unictype/pr_cased.h: New file, automatically generated by
43834         gen-uni-tables.
43835         * modules/unictype/property-cased-tests: New file.
43836         * tests/unictype/test-pr_cased.c: New file, automatically generated by
43837         gen-uni-tables.
43839 2011-01-09  Bruno Haible  <bruno@clisp.org>
43841         Update to Unicode 5.2.0.
43842         * lib/gen-uni-tables.c (output_predicate, output_category,
43843         output_combclass, output_bidi_category, output_decimal_digit_test,
43844         output_decimal_digit, output_digit_test, output_digit,
43845         output_numeric_test, output_numeric, output_mirror, output_scripts,
43846         output_scripts_byname, output_blocks, output_ident_category): Fix
43847         comment header.
43848         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
43849         get_wbp.
43850         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
43851         items.
43852         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
43853         Changes_When_Lowercased, Changes_When_Uppercased,
43854         Changes_When_Titlecased, Changes_When_Casefolded,
43855         Changes_When_Casemapped.
43856         (is_property_alphabetic, is_property_default_ignorable_code_point):
43857         Update for Unicode 5.2.0.
43858         (is_property_cased, is_property_case_ignorable,
43859         is_property_changes_when_lowercased,
43860         is_property_changes_when_uppercased,
43861         is_property_changes_when_titlecased,
43862         is_property_changes_when_casefolded,
43863         is_property_changes_when_casemapped): New functions.
43864         (output_properties): Output also the properties cased, case_ignorable,
43865         changes_when_lowercased, changes_when_uppercased,
43866         changes_when_titlecased, changes_when_casefolded,
43867         changes_when_casemapped.
43868         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
43869         Unicode TR#11 revision 17 -> 19.
43870         (LBP_CP): New enumeration value.
43871         (LBP_*): Adjust values accordingly.
43872         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
43873         TR#14 revision 22 -> 24.
43874         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
43875         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
43876         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
43877         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
43878         is_WBP_MIDLETTER.
43879         (output_composition_tables): Allow for 24 bits instead of 16 bits in
43880         the code1 and code2 of each composition rule.
43881         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
43882         * lib/unicase/ignorable.h: Likewise.
43883         * lib/unicase/tocasefold.h: Likewise.
43884         * lib/unicase/tolower.h: Likewise.
43885         * lib/unicase/totitle.h: Likewise.
43886         * lib/unicase/toupper.h: Likewise.
43887         * lib/unictype/bidi_of.h: Likewise.
43888         * lib/unictype/blocks.h: Likewise.
43889         * lib/unictype/categ_C.h: Likewise.
43890         * lib/unictype/categ_Cf.h: Likewise.
43891         * lib/unictype/categ_Cn.h: Likewise.
43892         * lib/unictype/categ_L.h: Likewise.
43893         * lib/unictype/categ_Ll.h: Likewise.
43894         * lib/unictype/categ_Lm.h: Likewise.
43895         * lib/unictype/categ_Lo.h: Likewise.
43896         * lib/unictype/categ_Lu.h: Likewise.
43897         * lib/unictype/categ_M.h: Likewise.
43898         * lib/unictype/categ_Mc.h: Likewise.
43899         * lib/unictype/categ_Mn.h: Likewise.
43900         * lib/unictype/categ_N.h: Likewise.
43901         * lib/unictype/categ_Nd.h: Likewise.
43902         * lib/unictype/categ_Nl.h: Likewise.
43903         * lib/unictype/categ_No.h: Likewise.
43904         * lib/unictype/categ_P.h: Likewise.
43905         * lib/unictype/categ_Pd.h: Likewise.
43906         * lib/unictype/categ_Po.h: Likewise.
43907         * lib/unictype/categ_S.h: Likewise.
43908         * lib/unictype/categ_Sc.h: Likewise.
43909         * lib/unictype/categ_So.h: Likewise.
43910         * lib/unictype/categ_of.h: Likewise.
43911         * lib/unictype/combining.h: Likewise.
43912         * lib/unictype/ctype_alnum.h: Likewise.
43913         * lib/unictype/ctype_alpha.h: Likewise.
43914         * lib/unictype/ctype_graph.h: Likewise.
43915         * lib/unictype/ctype_lower.h: Likewise.
43916         * lib/unictype/ctype_print.h: Likewise.
43917         * lib/unictype/ctype_punct.h: Likewise.
43918         * lib/unictype/ctype_upper.h: Likewise.
43919         * lib/unictype/decdigit.h: Likewise.
43920         * lib/unictype/digit.h: Likewise.
43921         * lib/unictype/numeric.h: Likewise.
43922         * lib/unictype/pr_alphabetic.h: Likewise.
43923         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43924         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43925         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43926         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43927         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43928         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43929         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43930         * lib/unictype/pr_combining.h: Likewise.
43931         * lib/unictype/pr_composite.h: Likewise.
43932         * lib/unictype/pr_currency_symbol.h: Likewise.
43933         * lib/unictype/pr_dash.h: Likewise.
43934         * lib/unictype/pr_decimal_digit.h: Likewise.
43935         * lib/unictype/pr_deprecated.h: Likewise.
43936         * lib/unictype/pr_diacritic.h: Likewise.
43937         * lib/unictype/pr_extender.h: Likewise.
43938         * lib/unictype/pr_grapheme_base.h: Likewise.
43939         * lib/unictype/pr_grapheme_extend.h: Likewise.
43940         * lib/unictype/pr_grapheme_link.h: Likewise.
43941         * lib/unictype/pr_id_continue.h: Likewise.
43942         * lib/unictype/pr_id_start.h: Likewise.
43943         * lib/unictype/pr_ideographic.h: Likewise.
43944         * lib/unictype/pr_ignorable_control.h: Likewise.
43945         * lib/unictype/pr_logical_order_exception.h: Likewise.
43946         * lib/unictype/pr_lowercase.h: Likewise.
43947         * lib/unictype/pr_numeric.h: Likewise.
43948         * lib/unictype/pr_other_alphabetic.h: Likewise.
43949         * lib/unictype/pr_punctuation.h: Likewise.
43950         * lib/unictype/pr_sentence_terminal.h: Likewise.
43951         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43952         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43953         * lib/unictype/pr_unified_ideograph.h: Likewise.
43954         * lib/unictype/pr_uppercase.h: Likewise.
43955         * lib/unictype/pr_xid_continue.h: Likewise.
43956         * lib/unictype/pr_xid_start.h: Likewise.
43957         * lib/unictype/pr_zero_width.h: Likewise.
43958         * lib/unictype/scripts.h: Likewise.
43959         * lib/unictype/scripts_byname.gperf: Likewise.
43960         * lib/unictype/sy_java_ident.h: Likewise.
43961         * lib/unigbrk/gbrkprop.h: Likewise.
43962         * lib/unilbrk/lbrkprop1.h: Likewise.
43963         * lib/unilbrk/lbrkprop2.h: Likewise.
43964         * lib/unilbrk/lbrktables.h: Likewise.
43965         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
43966         LBP_CP. Implement rule LB30.
43967         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
43968         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
43969         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
43970         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
43971         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
43972         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
43973         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
43974         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
43975         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
43976         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
43977         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
43978         bits instead of 16 bits in the code1 and code2 of each composition
43979         rule.
43980         (uc_composition): Update for Unicode 5.2.0.
43981         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
43982         * lib/uninorm/decomposition-table2.h: Likewise.
43983         * lib/uniwbrk/wbrkprop.h: Likewise.
43984         * tests/unicase/test-cased.c: Likewise.
43985         * tests/unicase/test-ignorable.c: Likewise.
43986         * tests/unicase/test-uc_tolower.c: Likewise.
43987         * tests/unicase/test-uc_totitle.c: Likewise.
43988         * tests/unicase/test-uc_toupper.c: Likewise.
43989         * tests/unictype/test-categ_C.c: Likewise.
43990         * tests/unictype/test-categ_Cf.c: Likewise.
43991         * tests/unictype/test-categ_Cn.c: Likewise.
43992         * tests/unictype/test-categ_L.c: Likewise.
43993         * tests/unictype/test-categ_Ll.c: Likewise.
43994         * tests/unictype/test-categ_Lm.c: Likewise.
43995         * tests/unictype/test-categ_Lo.c: Likewise.
43996         * tests/unictype/test-categ_Lu.c: Likewise.
43997         * tests/unictype/test-categ_M.c: Likewise.
43998         * tests/unictype/test-categ_Mc.c: Likewise.
43999         * tests/unictype/test-categ_Mn.c: Likewise.
44000         * tests/unictype/test-categ_N.c: Likewise.
44001         * tests/unictype/test-categ_Nd.c: Likewise.
44002         * tests/unictype/test-categ_Nl.c: Likewise.
44003         * tests/unictype/test-categ_No.c: Likewise.
44004         * tests/unictype/test-categ_P.c: Likewise.
44005         * tests/unictype/test-categ_Pd.c: Likewise.
44006         * tests/unictype/test-categ_Po.c: Likewise.
44007         * tests/unictype/test-categ_S.c: Likewise.
44008         * tests/unictype/test-categ_Sc.c: Likewise.
44009         * tests/unictype/test-categ_So.c: Likewise.
44010         * tests/unictype/test-ctype_alnum.c: Likewise.
44011         * tests/unictype/test-ctype_alpha.c: Likewise.
44012         * tests/unictype/test-ctype_graph.c: Likewise.
44013         * tests/unictype/test-ctype_lower.c: Likewise.
44014         * tests/unictype/test-ctype_print.c: Likewise.
44015         * tests/unictype/test-ctype_punct.c: Likewise.
44016         * tests/unictype/test-ctype_upper.c: Likewise.
44017         * tests/unictype/test-decdigit.h: Likewise.
44018         * tests/unictype/test-digit.h: Likewise.
44019         * tests/unictype/test-numeric.h: Likewise.
44020         * tests/unictype/test-pr_alphabetic.c: Likewise.
44021         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44022         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44023         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44024         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44025         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44026         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44027         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44028         * tests/unictype/test-pr_combining.c: Likewise.
44029         * tests/unictype/test-pr_composite.c: Likewise.
44030         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44031         * tests/unictype/test-pr_dash.c: Likewise.
44032         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44033         * tests/unictype/test-pr_deprecated.c: Likewise.
44034         * tests/unictype/test-pr_diacritic.c: Likewise.
44035         * tests/unictype/test-pr_extender.c: Likewise.
44036         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44037         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44038         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44039         * tests/unictype/test-pr_id_continue.c: Likewise.
44040         * tests/unictype/test-pr_id_start.c: Likewise.
44041         * tests/unictype/test-pr_ideographic.c: Likewise.
44042         * tests/unictype/test-pr_ignorable_control.c: Likewise.
44043         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
44044         * tests/unictype/test-pr_lowercase.c: Likewise.
44045         * tests/unictype/test-pr_numeric.c: Likewise.
44046         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44047         * tests/unictype/test-pr_punctuation.c: Likewise.
44048         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44049         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44050         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44051         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44052         * tests/unictype/test-pr_uppercase.c: Likewise.
44053         * tests/unictype/test-pr_xid_continue.c: Likewise.
44054         * tests/unictype/test-pr_xid_start.c: Likewise.
44055         * tests/unictype/test-pr_zero_width.c: Likewise.
44056         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
44057         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
44058         changed behaviour: line breaking is now disallowed between a letter
44059         or '=' and '('.
44060         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44061         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44062         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
44063         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
44064         * tests/uniwidth/test-uc_width2.sh: Same updates as in
44065         lib/uniwidth/width.c.
44066         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
44067         without comments, but with the original copyright notice.
44068         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
44069         changes.
44070         * lib/unictype/categ_Cc.h: Likewise.
44071         * lib/unictype/categ_Co.h: Likewise.
44072         * lib/unictype/categ_Cs.h: Likewise.
44073         * lib/unictype/categ_Lt.h: Likewise.
44074         * lib/unictype/categ_Me.h: Likewise.
44075         * lib/unictype/categ_Pc.h: Likewise.
44076         * lib/unictype/categ_Pe.h: Likewise.
44077         * lib/unictype/categ_Pf.h: Likewise.
44078         * lib/unictype/categ_Pi.h: Likewise.
44079         * lib/unictype/categ_Ps.h: Likewise.
44080         * lib/unictype/categ_Sk.h: Likewise.
44081         * lib/unictype/categ_Sm.h: Likewise.
44082         * lib/unictype/categ_Z.h: Likewise.
44083         * lib/unictype/categ_Zl.h: Likewise.
44084         * lib/unictype/categ_Zp.h: Likewise.
44085         * lib/unictype/categ_Zs.h: Likewise.
44086         * lib/unictype/ctype_blank.h: Likewise.
44087         * lib/unictype/ctype_cntrl.h: Likewise.
44088         * lib/unictype/ctype_digit.h: Likewise.
44089         * lib/unictype/ctype_space.h: Likewise.
44090         * lib/unictype/ctype_xdigit.h: Likewise.
44091         * lib/unictype/mirror.h: Likewise.
44092         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44093         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44094         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44095         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44096         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44097         * lib/unictype/pr_bidi_control.h: Likewise.
44098         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44099         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44100         * lib/unictype/pr_bidi_pdf.h: Likewise.
44101         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44102         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44103         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44104         * lib/unictype/pr_format_control.h: Likewise.
44105         * lib/unictype/pr_hex_digit.h: Likewise.
44106         * lib/unictype/pr_hyphen.h: Likewise.
44107         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44108         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44109         * lib/unictype/pr_iso_control.h: Likewise.
44110         * lib/unictype/pr_join_control.h: Likewise.
44111         * lib/unictype/pr_left_of_pair.h: Likewise.
44112         * lib/unictype/pr_line_separator.h: Likewise.
44113         * lib/unictype/pr_math.h: Likewise.
44114         * lib/unictype/pr_non_break.h: Likewise.
44115         * lib/unictype/pr_not_a_character.h: Likewise.
44116         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44117         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44118         * lib/unictype/pr_other_id_continue.h: Likewise.
44119         * lib/unictype/pr_other_id_start.h: Likewise.
44120         * lib/unictype/pr_other_lowercase.h: Likewise.
44121         * lib/unictype/pr_other_math.h: Likewise.
44122         * lib/unictype/pr_other_uppercase.h: Likewise.
44123         * lib/unictype/pr_paired_punctuation.h: Likewise.
44124         * lib/unictype/pr_paragraph_separator.h: Likewise.
44125         * lib/unictype/pr_pattern_syntax.h: Likewise.
44126         * lib/unictype/pr_pattern_white_space.h: Likewise.
44127         * lib/unictype/pr_private_use.h: Likewise.
44128         * lib/unictype/pr_quotation_mark.h: Likewise.
44129         * lib/unictype/pr_radical.h: Likewise.
44130         * lib/unictype/pr_soft_dotted.h: Likewise.
44131         * lib/unictype/pr_space.h: Likewise.
44132         * lib/unictype/pr_titlecase.h: Likewise.
44133         * lib/unictype/pr_variation_selector.h: Likewise.
44134         * lib/unictype/pr_white_space.h: Likewise.
44135         * lib/unictype/sy_c_ident.h: Likewise.
44136         * lib/unictype/sy_c_whitespace.h: Likewise.
44137         * lib/unictype/sy_java_whitespace.h: Likewise.
44138         * modules/uni*/*: Bump version number of expected libunistring version.
44139         Reported by Simon Josefsson.
44141 2011-01-09  Karl Heuer  <kwzh@gnu.org>
44143         useless-if-before-free: fix typo in --help and make the internal,
44144         automatic version date update process work once again.
44145         --help output contained a NUL character instead of the
44146         backslash-zero that was intended.  Also, the "must lie within
44147         the first 8 lines" line is on line 9, and hence not getting
44148         automatically updated.
44149         * build-aux/useless-if-before-free: Fix the former by adding a
44150         backslash, and the latter by condensing the three lines of what-it-does
44151         to a single line, leaving one line of slack for the future.
44153 2011-01-09  Bruno Haible  <bruno@clisp.org>
44155         uniwidth/width: Fix width of U+1D173..U+1D17A.
44156         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
44157         symbolic_width, output_width_property_test): New functions.
44158         (main): Invoke output_nonspacing_property, output_width_property_test.
44159         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
44160         U+1D173..U+1D17A.
44161         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
44162         1.
44163         * modules/uniwidth/*: Bump version number of expected libunistring
44164         version.
44165         * modules/unilbrk/*: Likewise.
44167 2011-01-08  Bruno Haible  <bruno@clisp.org>
44169         uninorm tests: Preserve copyright of Unicode data file.
44170         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
44171         Mention modifications.
44173 2011-01-08  Bruno Haible  <bruno@clisp.org>
44175         gen-uni-tables: Prepare for Unicode 5.2.0.
44176         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
44177         (debug_output_lbp, output_lbp): Update.
44179 2011-01-08  Bruno Haible  <bruno@clisp.org>
44181         unilbrk: Clarify gen-uni-tables.c code.
44182         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
44183         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
44184         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
44186 2011-01-07  Bruno Haible  <bruno@clisp.org>
44188         strtod: Restore errno when successfully parsing Infinity or NaN.
44189         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
44190         restore the original errno.
44192 2011-01-07  Bruno Haible  <bruno@clisp.org>
44194         remove test: Avoid failure on HP-UX 11.
44195         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
44197 2011-01-07  Bruno Haible  <bruno@clisp.org>
44199         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
44200         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
44201         error code.
44203 2011-01-07  Pádraig Brady  <P@draigBrady.com>
44205         ignore-value: fixup comments, and add Eric Blake
44206         as an author since he rewrote the macros.
44207         * lib/ignore-value.h (ignore_value):  State that
44208         we now support aggregates.  Also specify exactly
44209         when the GCC warn_unused_result feature was added.
44211 2011-01-06  Eric Blake  <eblake@redhat.com>
44213         ignore-value: support aggregate types
44214         * lib/ignore-value.h (ignore_value): Provide separate gcc
44215         definition.
44216         * modules/ignore-value-tests: New test module.
44217         * tests/test-ignore-value.c: New test.
44219         maint.mk: improve sc_prohibit_strcmp regex
44220         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
44221         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
44222         definition of STRNEQ.
44224         signal: work around Haiku issue with SIGBUS
44225         * lib/siglist.h: Add comment.
44226         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
44227         strsignal's favoring of SIGSEGV.
44228         * tests/test-signal.c (main): Avoid test failure.
44229         * doc/posix-headers/signal.texi (signal.h): Document the issue.
44230         Reported by Scott McCreary.
44232         maint.mk: add pre-release check to ensure submodule commits are public
44233         * top/maint.mk (public-submodule-commit): New rule.
44234         (submodule-checks): New variable.
44235         (alpha beta stable): Depend on the variable.
44237 2011-01-05  Pádraig Brady  <P@draigBrady.com>
44238         and Jim Meyering  <meyering@redhat.com>
44240         ignore-value: make ignore_value more generic; deprecate ignore_ptr
44241         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
44242         (ATTRIBUTE_DEPRECATED): Define.
44243         (_ignore_case): New function.
44244         (ignore_value): New macro, to replace the old function.
44245         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
44246         * modules/ignore-value (Depends-on): Add stdint.
44248 2011-01-04  Eric Blake  <eblake@redhat.com>
44250         doc: regenerate INSTALL
44251         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
44252         @firstparagraphindent support, now that autoconf dropped it.
44253         (INSTALL_PRELUDE): Reinstate old macro.
44254         * doc/install.texi: Resync from autoconf.
44255         * doc/INSTALL: Reflect recent autoconf update.
44256         * doc/INSTALL.ISO: Likewise.
44257         * doc/INSTALL.UTF-8: Likewise.
44258         Reported by Karl Berry.
44260 2011-01-04  Bruce Korb  <address@hidden>
44262         git-version-gen: avoid a sub-shell
44263         * build-aux/git-version-gen: Redirect stderr in `...` via
44264         "exec 2>...", rather than via an added sub-shell.
44266 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
44268         git-version-gen: use (...) rather than sh -c '...'
44269         * build-aux/git-version-gen: Rather than hard-coding a shell's name
44270         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
44272 2011-01-03  Jim Meyering  <meyering@redhat.com>
44274         git-version-gen: convert leading TABs to spaces
44275         * build-aux/git-version-gen: Expand leading TABs.
44277         git-version-gen: handle failed "git rev-list"
44278         * build-aux/git-version-gen: Rather than leaking a "fatal" error
44279         from git and proceeding as if it had succeeded but printed no SHA1
44280         checksums, suppress the diagnostic and handle the failure.
44281         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
44283         git-version-gen: include command name in one more diagnostic
44284         * build-aux/git-version-gen: When the required .tarball-version file
44285         was missing or unreadable, you might see the diagnostic from "cat",
44286         but no trace of the name of the invoking script.  Now, you still see
44287         the diagnostic from cat, but also get one from "git-version-gen: ".
44288         Inspired by a patch from Bruce Korb.
44290         update-copyright: adjust test to match changed code
44291         * tests/test-update-copyright.sh: Change test's expected output
44292         to match new actual output.
44294 2011-01-02  Bruno Haible  <bruno@clisp.org>
44296         getlogin_r: Avoid test failure on HP-UX 11.
44297         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
44298         ERANGE when the second argument is zero.
44299         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
44300         portability problem.
44302 2011-01-02  Bruce Korb  <bkorb@gnu.org>
44304         * build-aux/update-copyright: doc Simon's changes
44306 2011-01-02  Simon Josefsson  <simon@josefsson.org>
44308         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
44309         environment variable.
44311 2011-01-02  Bruno Haible  <bruno@clisp.org>
44313         unigbrk: Avoid gcc warnings.
44314         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
44315         unused variable.
44316         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
44317         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
44318         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
44319         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
44320         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
44321         Change type of first argument to 'const char *'.
44322         (main): Remove unused variable.
44323         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
44324         type of first argument to 'const char *'.
44325         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
44326         Likewise.
44327         (main): Change type of variable 's'.
44328         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
44329         to 'int'.
44331 2011-01-02  Bruno Haible  <bruno@clisp.org>
44333         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
44334         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
44335         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
44336         bug.
44337         * lib/pwrite.c: Undo 2010-12-31 patch.
44338         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
44340 2011-01-02  Bruno Haible  <bruno@clisp.org>
44342         pread: Fix test whether it works.
44343         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
44345 2011-01-02  Bruno Haible  <bruno@clisp.org>
44347         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
44348         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
44349         ends in "6". Don't require a specific month name. Try also the locale
44350         names found on HP-UX 11 and Solaris 7.
44352 2011-01-02  Bruno Haible  <bruno@clisp.org>
44354         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
44355         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
44356         C linkage.
44357         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
44359 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
44361         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
44362         for consistency, since the "cluster" term is not used elsewhere.
44363         * lib/unigbrk.in.h: Update name.
44364         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
44365         * lib/unigbrk/u16-grapheme-next.c: Update name.
44366         * lib/unigbrk/u16-grapheme-prev.c: Update name.
44367         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
44368         * lib/unigbrk/u32-grapheme-next.c: Update name.
44369         * lib/unigbrk/u32-grapheme-prev.c: Update name.
44370         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
44371         * lib/unigbrk/u8-grapheme-next.c: Update name.
44372         * lib/unigbrk/u8-grapheme-prev.c: Update name.
44373         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
44374         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
44375         Suggested by Bruno Haible.
44377 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
44379         Remove module 'u8-grapheme-len' as too redundant with
44380         'u8-grapheme-next'.
44381         * modules/unigbrk/u8-grapheme-len: Delete file.
44382         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
44383         * lib/unigbrk.in.h: Remove prototype for deleted function.
44384         * lib/unigbrk/u8-grapheme-len.c: Delete file.
44385         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
44387         Remove module 'u16-grapheme-len' as too redundant with
44388         'u16-grapheme-next'.
44389         * modules/unigbrk/u16-grapheme-len: Delete file.
44390         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
44391         * lib/unigbrk.in.h: Remove prototype for deleted function.
44392         * lib/unigbrk/u16-grapheme-len.c: Delete file.
44393         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
44395         Remove module 'u32-grapheme-len' as too redundant with
44396         'u32-grapheme-next'.
44397         * modules/unigbrk/u32-grapheme-len: Delete file.
44398         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
44399         * lib/unigbrk.in.h: Remove prototype for deleted function.
44400         * lib/unigbrk/u32-grapheme-len.c: Delete file.
44401         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
44403         Suggested by Bruno Haible.
44405 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
44407         * unigbrk.in.h: Fix typo: "ben" => "been".
44408         Reported by Bruno Haible.
44410 2011-01-01  Jim Meyering  <meyering@redhat.com>
44412         maint: update almost all copyright ranges to include 2011
44413         Run the new "make update-copyright" rule.
44415 2011-01-01  Jim Meyering  <meyering@redhat.com>
44417         maint: update-copyright: exempt doc/INSTALL*
44418         * Makefile (update-copyright): Also exclude doc/INSTALL*,
44419         since they are generated.  Suggested by Bruno Haible.
44421 2011-01-01  Jim Meyering  <meyering@redhat.com>
44423         maint: refine the update-copyright rule
44424         * Makefile (update-copyright): Also exclude any file that includes
44425         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
44426         code that merely generates the comment.
44428 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
44430         New module 'u8-grapheme-len'.
44431         * modules/unigbrk/u8-grapheme-len: New file.
44432         * modules/unigbrk/u8-grapheme-len-tests: New file.
44433         * lib/unigbrk.in.h: Add prototype for new function.
44434         * lib/unigbrk/u8-grapheme-len.c: New file.
44435         * tests/unigbrk/test-u8-grapheme-len.c: New file.
44437         New module 'u16-grapheme-len'.
44438         * modules/unigbrk/u16-grapheme-len: New file.
44439         * modules/unigbrk/u16-grapheme-len-tests: New file.
44440         * lib/unigbrk.in.h: Add prototype for new function.
44441         * lib/unigbrk/u16-grapheme-len.c: New file.
44442         * tests/unigbrk/test-u16-grapheme-len.c: New file.
44444         New module 'u32-grapheme-len'.
44445         * modules/unigbrk/u32-grapheme-len: New file.
44446         * modules/unigbrk/u32-grapheme-len-tests: New file.
44447         * lib/unigbrk.in.h: Add prototype for new function.
44448         * lib/unigbrk/u32-grapheme-len.c: New file.
44449         * tests/unigbrk/test-u32-grapheme-len.c: New file.
44451         New module 'u8-grapheme-next'.
44452         * modules/unigbrk/u8-grapheme-next: New file.
44453         * modules/unigbrk/u8-grapheme-next-tests: New file.
44454         * lib/unigbrk.in.h: Add prototype for new function.
44455         * lib/unigbrk/u8-grapheme-next.c: New file.
44456         * tests/unigbrk/test-u8-grapheme-next.c: New file.
44458         New module 'u16-grapheme-next'.
44459         * modules/unigbrk/u16-grapheme-next: New file.
44460         * modules/unigbrk/u16-grapheme-next-tests: New file.
44461         * lib/unigbrk.in.h: Add prototype for new function.
44462         * lib/unigbrk/u16-grapheme-next.c: New file.
44463         * tests/unigbrk/test-u16-grapheme-next.c: New file.
44465         New module 'u32-grapheme-next'.
44466         * modules/unigbrk/u32-grapheme-next: New file.
44467         * modules/unigbrk/u32-grapheme-next-tests: New file.
44468         * lib/unigbrk.in.h: Add prototype for new function.
44469         * lib/unigbrk/u32-grapheme-next.c: New file.
44470         * tests/unigbrk/test-u32-grapheme-next.c: New file.
44472         New module 'u8-grapheme-prev'.
44473         * modules/unigbrk/u8-grapheme-prev: New file.
44474         * modules/unigbrk/u8-grapheme-prev-tests: New file.
44475         * lib/unigbrk.in.h: Add prototype for new function.
44476         * lib/unigbrk/u8-grapheme-prev.c: New file.
44477         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
44479         New module 'u16-grapheme-prev'.
44480         * modules/unigbrk/u16-grapheme-prev: New file.
44481         * modules/unigbrk/u16-grapheme-prev-tests: New file.
44482         * lib/unigbrk.in.h: Add prototype for new function.
44483         * lib/unigbrk/u16-grapheme-prev.c: New file.
44484         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
44486         New module 'u32-grapheme-prev'.
44487         * modules/unigbrk/u32-grapheme-prev: New file.
44488         * modules/unigbrk/u32-grapheme-prev-tests: New file.
44489         * lib/unigbrk.in.h: Add prototype for new function.
44490         * lib/unigbrk/u32-grapheme-prev.c: New file.
44491         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
44493         New module 'u8-grapheme-breaks'.
44494         * modules/unigbrk/u8-grapheme-breaks: New file.
44495         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
44496         * lib/unigbrk.in.h: Add prototype for new function.
44497         * lib/unigbrk/u8-grapheme-breaks.c: New file.
44498         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
44500         New module 'u16-grapheme-breaks'.
44501         * modules/unigbrk/u16-grapheme-breaks: New file.
44502         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
44503         * lib/unigbrk.in.h: Add prototype for new function.
44504         * lib/unigbrk/u16-grapheme-breaks.c: New file.
44505         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
44507         New module 'u32-grapheme-breaks'.
44508         * modules/unigbrk/u32-grapheme-breaks: New file.
44509         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
44510         * lib/unigbrk.in.h: Add prototype for new function.
44511         * lib/unigbrk/u32-grapheme-breaks.c: New file.
44512         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
44514         New module 'ulc-grapheme-breaks'.
44515         * modules/unigbrk/ulc-grapheme-breaks: New file.
44516         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
44517         * m4/locale-ar.m4: New file.
44518         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
44519         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
44520         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
44522 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
44524         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
44525         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
44526         modified how this file was generated before I initially submitted
44527         the module, but failed to regenerate it.  This meant that several
44528         of the level2 entries were wrong.
44529         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
44530         Remove the division-by-2 that is folded into the table now that
44531         gbrkprop.h has been regenerated properly.  Now -1 entries are
44532         handled correctly.
44534         New module 'unigbrk/uc-gbrk-prop-tests'.
44535         * modules/unigbrk/uc-gbrk-prop-tests: New file.
44536         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
44537         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
44538         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
44540 2011-01-01  Bruno Haible  <bruno@clisp.org>
44542         Avoid use of hexadecimal escapes.
44543         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
44544         instead of hexadecimal escapes.
44546 2011-01-01  Jim Meyering  <meyering@redhat.com>
44548         maint: new rule to update copyright year ranges
44549         * Makefile (update-copyright): New rule.
44551         maint: indent with TABs in Makefile
44552         * Makefile: Expand leading sequences of spaces to TABs
44554         version-etc: update the copyright year it reports
44555         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
44557 2010-12-31  Bruno Haible  <bruno@clisp.org>
44559         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
44560         * lib/isfinite.c (zerof, zerod, zerol): New variables.
44561         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
44562         zero.
44564 2010-12-31  Bruno Haible  <bruno@clisp.org>
44566         pwrite: Work around HP-UX 11.11 bug.
44567         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
44568         works and set REPLACE_PWRITE if not.
44569         * lib/pwrite.c (pwrite): Add an implementation that uses the system
44570         function.
44571         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
44573 2010-12-31  Bruno Haible  <bruno@clisp.org>
44575         pread: Work around HP-UX 11 bugs.
44576         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
44577         and set REPLACE_PREAD if not.
44578         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
44580 2010-12-31  Eric Blake  <eblake@redhat.com>
44582         nl_langinfo: fix YESEXPR on Irix 6.5
44583         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
44584         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
44585         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
44586         it.
44588 2010-12-31  Bruno Haible  <bruno@clisp.org>
44590         iconv: Document HP-UX 11 bug.
44591         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
44593 2010-12-31  Bruno Haible  <bruno@clisp.org>
44595         ldexpl: Fix link error on HP-UX 11.
44596         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
44597         LDEXPL_LIBM, using $ISNANL_LIBM.
44599 2010-12-31  Eric Blake  <eblake@redhat.com>
44601         ftello: avoid compilation failure with SunStudio c89
44602         * lib/ftello.c (ftello): Use lseek, not llseek.
44604         tests: avoid failing coreutils tests on cygwin
44605         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
44606         (create_exe_shims_): Return 0 when skipping.
44608 2010-12-31  Bruno Haible  <bruno@clisp.org>
44610         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
44611         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
44613 2010-12-31  Bruno Haible  <bruno@clisp.org>
44615         waitpid: Fix link error in C++ mode.
44616         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
44618 2010-12-31  Bruno Haible  <bruno@clisp.org>
44620         isnan: Use GCC built-ins when possible.
44621         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
44622         __builtin_isnan.
44623         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
44624         (isnan): Define using GCC built-ins for GCC >= 4.0.
44626 2010-12-31  Bruno Haible  <bruno@clisp.org>
44628         isnand: Fix mistake.
44629         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
44630         __builtin_isnand.
44632 2010-12-31  Bruno Haible  <bruno@clisp.org>
44634         open: Avoid C++ error on HP-UX 11.
44635         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
44637 2010-12-31  Bruno Haible  <bruno@clisp.org>
44639         time_r: Add missing declarations on HP-UX 11.
44640         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
44641         instead of HAVE_LOCALTIME_R.
44642         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
44643         HAVE_LOCALTIME_R always.
44644         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
44645         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
44646         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
44647         HAVE_LOCALTIME_R.
44648         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
44649         * doc/posix-functions/localtime_r.texi: Likewise.
44651 2010-12-29  Eric Blake  <eblake@redhat.com>
44653         mountlist: tweak previous commit
44654         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
44655         Reported by Paul Eggert.
44657         mountlist: fix local drive detection on cygwin
44658         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
44659         that works for cygwin.
44661 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44663         ftoastr, snprintf: ftoastr + snprintf module
44664         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
44665         since the snprintf module now should be good enough here.
44666         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
44667         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
44668         and gl_MODULE_INDICATOR([snprintf]), but the former enables
44669         GNULIB_SNPRINTF only for the test directory, and the latter
44670         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
44671         seems to suffice by itself.
44673 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
44675         alloca: one step towards thread-safety
44676         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
44677         need for a static variable.  All callers changed.  This does not
44678         make the alloca replacement thread-safe, but it's one step.
44680         tests: minor indenting change
44681         * tests/init.sh: Sync from coreutils housekeeping patch
44682         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
44683         to keep lines within 80 columns.
44685 2010-12-28  Jim Meyering  <meyering@redhat.com>
44687         regex: don't infloop on persistent failing calloc
44688         * lib/regexec.c (build_trtable): Return failure indication upon
44689         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
44690         In glibc, this was fixed for version 2.13:
44691         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
44693 2010-12-28  Bruno Haible  <bruno@clisp.org>
44694             Paul Eggert <eggert@cs.ucla.edu>
44696         linkat: Make implementation robust against system behaviour variations.
44697         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
44698         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
44699         way, and to -2 if it needs a generic runtime test.
44700         * lib/linkat.c (solaris_optimized_link_immediate,
44701         solaris_optimized_link_follow): New functions.
44702         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
44703         (check_same_link): Use it.
44705 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
44707         New module 'unigbrk/base'.
44708         * modules/unigbrk/base: New file.
44709         * lib/unigbrk.in.h: New file.
44711         New module 'unigbrk/uc-gbrk-prop'.
44712         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
44713         * modules/unigbrk/uc-gbrk-prop: New file.
44714         * lib/unigbrk/gbrkprop.h: New file.
44715         * lib/unigbrk/uc-gbrk-prop.c: New file.
44717         New module 'unigbrk/uc-is-grapheme-break'.
44718         * modules/unigbrk/uc-is-grapheme-break: New file.
44719         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
44720         * lib/unigbrk/uc-is-grapheme-break.c: New file.
44721         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
44722         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
44723         * tests/unigbrk/GraphemeBreakTest.txt: New file.
44725         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
44727 2010-12-27  Bruno Haible  <bruno@clisp.org>
44729         linkat test: Avoid failure on Solaris 11 2010-11.
44730         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
44732 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
44734         utimens: work around glibc rounding bug on more platforms
44735         * lib/utimens.c (fdutimens): Work around rounding bug even if
44736         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
44737         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
44739 2010-12-27  Bruno Haible  <bruno@clisp.org>
44741         select tests: Improve comments.
44742         * tests/test-select.c (do_select): Add comments.
44744 2010-12-27  Bruno Haible  <bruno@clisp.org>
44746         select tests: Safer way of handling timeout.
44747         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
44748         at every invocation.
44750 2010-12-27  Bruno Haible  <bruno@clisp.org>
44752         select tests: Use 'bool' where appropriate.
44753         * tests/test-select.c (connect_to_socket): Change argument type to
44754         'bool'.
44756 2010-12-27  Bruno Haible  <bruno@clisp.org>
44758         select tests: Use existing modules.
44759         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
44760         (configure.ac): Don't test for unistd.h.
44761         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
44762         declared in <unistd.h>.
44764 2010-12-27  Bruno Haible  <bruno@clisp.org>
44766         mbrtowc: Work around a Solaris 7 bug.
44767         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
44768         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
44769         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
44770         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
44771         MBRTOWC_NULL_ARG1_BUG.
44772         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
44773         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
44774         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
44775         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
44777 2010-12-27  Jim Meyering  <meyering@redhat.com>
44779         read-file.c: tweak syntax
44780         * lib/read-file.c (fread_file): Remove space after "*" in function
44781         definitions.
44783 2010-12-27  Bruno Haible  <bruno@clisp.org>
44785         times test: Avoid gcc warnings on OSF/1.
44786         * tests/test-times.c (main): Cast printf arguments from clock_t to
44787         'long int'.
44789 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
44791         utimens: work around glibc rounding bug on older Linux kernels
44792         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
44793         on Linux with a glibc whose utimes might not work, then work
44794         around a longstanding glibc bug involving rounding rather than
44795         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
44796         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
44798 2010-12-26  Bruno Haible  <bruno@clisp.org>
44800         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
44801         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
44802         _GL_CXXALIAS_SYS.
44803         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44805 2010-12-26  Bruno Haible  <bruno@clisp.org>
44807         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
44808         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
44809         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
44810         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
44811         looking for the declaration.
44812         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44813         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
44814         problem.
44815         * doc/posix-functions/inet_pton.texi: Likewise.
44817 2010-12-26  Bruno Haible  <bruno@clisp.org>
44819         arpa_inet: Use the common idioms with C++ support.
44820         * lib/arpa_inet.in.h: Include c++defs.h.
44821         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
44822         support.
44823         * modules/arpa_inet (Depends-on): Add c++defs.
44824         (Makefile.am): Substitute the contents of c++defs.h.
44825         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
44826         * modules/arpa_inet-c++-tests: New file.
44827         * tests/test-arpa_inet-c++.cc: New file.
44829 2010-12-25  Bruno Haible  <bruno@clisp.org>
44831         Fix more C++ link errors on Solaris 8.
44832         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
44833         $(LIB_EACCESS).
44834         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
44835         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
44836         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
44837         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
44838         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
44840 2010-12-25  Bruno Haible  <bruno@clisp.org>
44842         printf-posix: Fix link error when a non-GCC compiler is used.
44843         * lib/stdio.in.h (printf): When not using GCC, override printf
44844         correctly.
44845         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44847 2010-12-25  Bruno Haible  <bruno@clisp.org>
44849         strerror_r-posix: Update doc.
44850         * doc/posix-functions/strerror_r.texi: Update doc about the return
44851         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
44853 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44855         utimens: simplify the logic of the previous change
44856         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
44857         This should not affect whether the test succeeds or fails.
44859         utimens: configure better on hosts with NFS clock skew
44860         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
44861         uses the clock of the local host.  It might use the clock of the
44862         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
44863         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
44865 2010-12-25  Bruno Haible  <bruno@clisp.org>
44867         ptsname test: Avoid failure on Solaris.
44868         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
44869         open a pseudo-terminal; don't use BSD-style ptys.
44870         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
44872 2010-12-25  Bruno Haible  <bruno@clisp.org>
44874         ptsname: Avoid ERANGE failure on some systems.
44875         * lib/ptsname.c (buffer): Increase size.
44877 2010-12-25  Bruno Haible  <bruno@clisp.org>
44879         rename, renameat: Avoid test failures at NFS mounted locations.
44880         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
44881         so that subsequent mkdir calls succeed.
44883 2010-12-25  Bruno Haible  <bruno@clisp.org>
44885         iswblank: Fix C++ link error on Solaris 8.
44886         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
44887         _GL_FUNCDECL_SYS.
44889 2010-12-25  Bruno Haible  <bruno@clisp.org>
44891         unistd: Fix C++ link error on Solaris 8.
44892         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
44894 2010-12-25  Bruno Haible  <bruno@clisp.org>
44896         readlink doc: Mention an old glibc bug.
44897         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
44899 2010-12-25  Bruno Haible  <bruno@clisp.org>
44901         fcntl-h: Fix for use of C++ on glibc systems.
44902         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
44903         also on glibc systems in C++ mode.
44904         Reported by Gary V. Vaughan <gary@gnu.org>.
44906 2010-12-25  Bruno Haible  <bruno@clisp.org>
44908         roundl-ieee: Make it work on OSF/1 5.1 with cc.
44909         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
44911 2010-12-25  Bruno Haible  <bruno@clisp.org>
44913         truncl-ieee: Make it work on OSF/1 5.1 with cc.
44914         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
44915         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
44916         test whether truncl works according to ISO C 99 with IEC 60559.
44917         * m4/truncl-ieee.m4: New file.
44918         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
44919         m4/signbit.m4.
44920         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
44922 2010-12-25  Bruno Haible  <bruno@clisp.org>
44924         ceill-ieee: Make it work on OSF/1 5.1 with cc.
44925         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
44926         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
44927         test whether ceill works according to ISO C 99 with IEC 60559.
44928         * m4/ceill-ieee.m4: New file.
44929         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
44930         m4/signbit.m4.
44931         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
44933 2010-12-25  Bruno Haible  <bruno@clisp.org>
44935         Ensure all prerequisites of <wchar.h> are included.
44936         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
44937         before <wchar.h>.
44938         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
44939         gl_MBRLEN_NUL_RETVAL): Likewise.
44940         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44941         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
44942         AC_FUNC_MBRTOWC): Likewise.
44943         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44944         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
44945         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
44946         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44947         Likewise.
44948         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44949         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
44950         (gl_WCHAR_H): Improve comments.
44951         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
44953 2010-12-25  Bruno Haible  <bruno@clisp.org>
44955         strtok_r: Fix C syntax error in autoconf macro.
44956         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
44957         characters in test program.
44959 2010-12-24  Bruno Haible  <bruno@clisp.org>
44961         ceil, trunc, round: Fix gcc warnings.
44962         * lib/ceil.c (MIN): Undefine before redefining.
44963         * lib/trunc.c (MIN): Likewise.
44964         * lib/round.c (MIN): Likewise.
44965         Include <math.h> first.
44967 2010-12-24  Bruno Haible  <bruno@clisp.org>
44969         select tests: Avoid failures on OSF/1 5.1.
44970         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
44971         failure of closing the last socket; it may fail with ECONNRESET.
44973 2010-12-24  Eric Blake  <eblake@redhat.com>
44975         stdint: avoid HP-UX 10.20 preprocessor bug
44976         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
44977         than #if.
44978         * tests/test-floor2.c (main): Likewise.
44979         Reported by Peter O'Gorman.
44981         pipe: make obsoletion transition easier
44982         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
44983         * modules/pipe (Files): Include revived file.
44984         (Include): Drop reference, to mirror getdate's behavior.
44986 2010-12-24  Bruno Haible  <bruno@clisp.org>
44988         sys_socket: Hide mismatch of declarations on NonStop Kernel.
44989         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
44990         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
44991         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44993 2010-12-24  Bruno Haible  <bruno@clisp.org>
44995         gethostname: Ensure declaration on NonStop Kernel.
44996         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
44997         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44999 2010-12-24  Bruno Haible  <bruno@clisp.org>
45001         sys_select: Ensure all necessary types on NonStop Kernel.
45002         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
45003         include <sys/time.h>.
45004         * doc/posix-headers/sys_select.texi: Mention that it's missing on
45005         NonStop Kernel.
45006         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45008 2010-12-24  Bruno Haible  <bruno@clisp.org>
45010         sys_select: Remove unneeded include.
45011         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
45012         have <sys/select.h>.
45014 2010-12-24  Bruno Haible  <bruno@clisp.org>
45016         gethostname: Provide a fallback for HOST_NAME_MAX.
45017         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
45018         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
45019         instead.
45020         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45022 2010-12-24  Bruno Haible  <bruno@clisp.org>
45024         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
45025         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
45026         (SA_RESTART): Likewise.
45027         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45029 2010-12-24  Bruno Haible  <bruno@clisp.org>
45031         signal: Define NSIG.
45032         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
45033         * tests/test-signal.c (nsig): New variable.
45034         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45036 2010-12-24  Bruno Haible  <bruno@clisp.org>
45038         rename, renameat: Avoid test failures on OSF/1 5.1.
45039         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
45040         alternative error codes.
45041         * tests/test-renameat.c (main): Likewise.
45043 2010-12-24  Bruno Haible  <bruno@clisp.org>
45045         *printf: Detect large precisions bug on Solaris 10/SPARC.
45046         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
45047         by Paul Eggert.
45048         * tests/test-snprintf-posix.h (test_function): Add this test code here
45049         too.
45050         * tests/test-sprintf-posix.h (test_function): Likewise.
45051         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45052         * tests/test-vasprintf-posix.c (test_function): Likewise.
45053         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
45054         around by gnulib.
45055         * doc/posix-functions/printf.texi: Likewise.
45056         * doc/posix-functions/snprintf.texi: Likewise.
45057         * doc/posix-functions/sprintf.texi: Likewise.
45058         * doc/posix-functions/vfprintf.texi: Likewise.
45059         * doc/posix-functions/vprintf.texi: Likewise.
45060         * doc/posix-functions/vsnprintf.texi: Likewise.
45061         * doc/posix-functions/vsprintf.texi: Likewise.
45062         * doc/posix-functions/dprintf.texi: Undo last commit.
45063         * doc/posix-functions/vdprintf.texi: Likewise.
45065 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
45067         tests: port test-fdutimensat.c to Solaris 8
45068         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
45069         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
45070         On Solaris 8, it fails with errno == ENOSYS, because there is no
45071         futimens (so it can't use the fd), and there is no lutimens (so it
45072         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
45074         vsnprintf: make more consistent with snprintf; doc fixes
45076         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
45077         the byte count return problem was promoted from the snprintf-posix
45078         to the snprintf module.
45079         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
45080         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
45081         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
45082         * tests/test-snprintf.c (main): Check the byte count returned.
45083         * tests/test-vsnprintf.c (main): Likewise.
45085 2010-12-23  Eric Blake  <eblake@redhat.com>
45087         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
45088         * modules/sigpipe (License): Relax license.
45090 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45092         doc: document Solaris printf bug with large float precisions
45093         * doc/posix-functions/dprintf.texi (dprintf):
45094         * doc/posix-functions/fprintf.texi (fprintf):
45095         * doc/posix-functions/printf.texi (printf):
45096         * doc/posix-functions/snprintf.texi (snprintf):
45097         * doc/posix-functions/sprintf.texi (sprintf):
45098         * doc/posix-functions/vdprintf.texi (vdprintf):
45099         * doc/posix-functions/vfprintf.texi (vfprintf):
45100         * doc/posix-functions/vprintf.texi (vprintf):
45101         * doc/posix-functions/vsnprintf.texi (vsnprintf):
45102         * doc/posix-functions/vsprintf.texi (vsprintf):
45103         Mention that these functions mishandle large floating point
45104         precisions on Solaris 10.  The same bug is also present in Solaris
45105         8, and I assume earlier.  This causes "cd gnulib-tests; make
45106         check" to fail on Solaris 8 (and I assume, later) when building
45107         the latest coreutils, in test-vasprintf-posix's call to
45108         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
45109         the wide flavors (e.g., wprintf) so this patch just updates the
45110         documentation for the narrow ones.
45112         test-posixtm.c: add two tests
45113         * tests/test-posixtm.c: Add two tests, to highlight the
45114         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
45115         around this bug; this is merely to document it.
45117 2010-12-22  Bruno Haible  <bruno@clisp.org>
45119         getlogin_r: Work around portability problem on OSF/1.
45120         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
45121         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
45122         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
45123         test for a truncated result.
45124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
45125         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
45126         * modules/getlogin_r (Depends-on): Add memchr.
45127         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
45129 2010-12-22  Bruno Haible  <bruno@clisp.org>
45131         ptsname: Avoid test failure on OSF/1 5.1.
45132         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
45133         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
45134         (same_slave): New function.
45135         (main): Use it to compare ptsname's result with the expected file name.
45137 2010-12-22  Bruno Haible  <bruno@clisp.org>
45139         Port extended stdio modules to HP NonStop Kernel.
45140         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
45141         macros.
45142         * lib/fbufmode.c: Update comments.
45143         * lib/fflush.c: Likewise.
45144         * lib/fpurge.c: Likewise.
45145         * lib/freadable.c: Likewise.
45146         * lib/freadahead.c: Likewise.
45147         * lib/freading.c: Likewise.
45148         * lib/freadptr.c: Likewise.
45149         * lib/freadseek.c: Likewise.
45150         * lib/fseeko.c: Likewise.
45151         * lib/fseterr.c: Likewise.
45152         * lib/fwritable.c: Likewise.
45153         * lib/fwriting.c: Likewise.
45154         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45156 2010-12-22  Bruno Haible  <bruno@clisp.org>
45158         ttyname_r: Work around bug on OSF/1 5.1.
45159         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
45160         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
45161         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
45162         present.
45163         * lib/ttyname_r.c (ttyname_r): Update comments.
45165 2010-12-22  Bruno Haible  <bruno@clisp.org>
45167         round: Implement result sign according to IEEE 754.
45168         * lib/round.c (MIN, MINUS_ZERO): New macros.
45169         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
45170         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
45171         * tests/test-round-ieee.c (main): Likewise.
45172         * tests/test-roundl-ieee.c (main): Likewise.
45174         trunc: Implement result sign according to IEEE 754.
45175         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
45176         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
45177         * tests/test-trunc2.c: Include minus-zero.h.
45178         (MINUS_ZERO): New macro.
45179         (trunc_reference): Keep in sync with lib/trunc.c.
45180         * tests/test-truncf2.c: Include minus-zero.h.
45181         (MINUS_ZERO): New macro.
45182         (truncf_reference): Keep in sync with lib/trunc.c.
45183         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
45184         * tests/test-trunc-ieee.c (main): Likewise.
45185         * tests/test-truncl-ieee.c (main): Likewise.
45187         ceil: Implement result sign according to IEEE 754.
45188         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
45189         (FUNC): Return -0.0 for -1 < x < 0.
45190         * tests/test-ceil2.c: Include minus-zero.h.
45191         (MINUS_ZERO): New macro.
45192         (ceil_reference): Keep in sync with lib/ceil.c.
45193         * tests/test-ceilf2.c: Include minus-zero.h.
45194         (MINUS_ZERO): New macro.
45195         (ceilf_reference): Keep in sync with lib/ceil.c.
45196         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
45197         * tests/test-ceil-ieee.c (main): Likewise.
45198         * tests/test-ceill-ieee.c (main): Likewise.
45200         floor: Implement result sign according to IEEE 754.
45201         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
45202         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
45203         * tests/test-floorf2.c (floorf_reference): Likewise.
45204         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
45205         * tests/test-floor-ieee.c (main): Likewise.
45206         * tests/test-floorl-ieee.c (main): Likewise.
45208 2010-12-22  Bruno Haible  <bruno@clisp.org>
45210         getaddrinfo: Update doc.
45211         * doc/posix-functions/gai_strerror.texi: Return type is also different
45212         on AIX and HP-UX.
45214 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45216         getaddrinfo, inet_ntop: Update doc for Solaris.
45217         * doc/posix-functions/gai_strerror.texi: Return type is also an
45218         issue on Solaris 9 and earlier.
45219         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
45220         on Solaris 10 and earlier.
45222 2010-12-21  Bruno Haible  <bruno@clisp.org>
45224         New module 'roundl-ieee'.
45225         * modules/roundl-ieee: New file.
45226         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
45227         test whether roundl works according to ISO C 99 with IEC 60559.
45228         * m4/roundl-ieee.m4: New file.
45229         * modules/roundl-ieee-tests: New file.
45230         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
45231         * tests/test-roundl.c (main): Remove signbit tests.
45232         * modules/roundl-tests (Depends-on): Remove signbit.
45233         * doc/posix-functions/roundl.texi: Mention the new module.
45235 2010-12-21  Bruno Haible  <bruno@clisp.org>
45237         New module 'truncl-ieee'.
45238         * modules/truncl-ieee: New file.
45239         * modules/truncl-ieee-tests: New file.
45240         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
45241         * tests/test-truncl.c (main): Remove signbit tests.
45242         * modules/truncl-tests (Depends-on): Remove signbit.
45243         * doc/posix-functions/truncl.texi: Mention the new module.
45245 2010-12-21  Bruno Haible  <bruno@clisp.org>
45247         New module 'ceill-ieee'.
45248         * modules/ceill-ieee: New file.
45249         * modules/ceill-ieee-tests: New file.
45250         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
45251         * tests/test-ceill.c (main): Remove signbit tests.
45252         * modules/ceill-tests (Depends-on): Remove signbit.
45253         * doc/posix-functions/ceill.texi: Mention the new module.
45255 2010-12-21  Bruno Haible  <bruno@clisp.org>
45257         New module 'floorl-ieee'.
45258         * modules/floorl-ieee: New file.
45259         * modules/floorl-ieee-tests: New file.
45260         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
45261         * tests/test-floorl.c (main): Remove signbit tests.
45262         * modules/floorl-tests (Depends-on): Remove signbit.
45263         * doc/posix-functions/floorl.texi: Mention the new module.
45265 2010-12-21  Bruno Haible  <bruno@clisp.org>
45267         New module 'round-ieee'.
45268         * modules/round-ieee: New file.
45269         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
45270         whether round works according to ISO C 99 with IEC 60559.
45271         * m4/round-ieee.m4: New file.
45272         * modules/round-ieee-tests: New file.
45273         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
45274         * tests/test-round1.c (main): Remove signbit tests.
45275         * modules/round-tests (Depends-on): Remove 'signbit'.
45276         * doc/posix-functions/round.texi: Mention the new module.
45278 2010-12-21  Bruno Haible  <bruno@clisp.org>
45280         New module 'trunc-ieee'.
45281         * modules/trunc-ieee: New file.
45282         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
45283         whether trunc works according to ISO C 99 with IEC 60559.
45284         * m4/trunc-ieee.m4: New file.
45285         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
45286         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
45287         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
45288         * modules/trunc-ieee-tests: New file.
45289         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
45290         * tests/test-trunc1.c (main): Remove signbit tests.
45291         * modules/trunc-tests (Depends-on): Remove 'signbit'.
45292         * doc/posix-functions/trunc.texi: Mention the new module.
45294 2010-12-21  Bruno Haible  <bruno@clisp.org>
45296         New module 'ceil-ieee'.
45297         * modules/ceil-ieee: New file.
45298         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
45299         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
45300         ISO C 99 with IEC 60559.
45301         * m4/ceil-ieee.m4: New file.
45302         * modules/ceil (Files): Add lib/ceil.c.
45303         (Depends-on): Add 'float'.
45304         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45305         * lib/math.in.h (ceil): New declaration.
45306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
45307         REPLACE_CEIL.
45308         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
45309         * modules/ceil-ieee-tests: New file.
45310         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
45311         * tests/test-math-c++.cc: Check the signature of 'ceil'.
45312         * doc/posix-functions/ceil.texi: Mention the new module.
45314 2010-12-21  Bruno Haible  <bruno@clisp.org>
45316         New module 'floor-ieee'.
45317         * modules/floor-ieee: New file.
45318         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
45319         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
45320         ISO C 99 with IEC 60559.
45321         * m4/floor-ieee.m4: New file.
45322         * modules/floor (Files): Add lib/floor.c.
45323         (Depends-on): Add 'float'.
45324         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45325         * lib/math.in.h (floor): New declaration.
45326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
45327         REPLACE_FLOOR.
45328         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
45329         * modules/floor-ieee-tests: New file.
45330         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
45331         * tests/test-math-c++.cc: Check the signature of 'floor'.
45332         * doc/posix-functions/floor.texi: Mention the new module.
45334 2010-12-21  Bruno Haible  <bruno@clisp.org>
45336         New module 'roundf-ieee'.
45337         * modules/roundf-ieee: New file.
45338         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
45339         test whether roundf works according to ISO C 99 with IEC 60559.
45340         * m4/roundf-ieee.m4: New file.
45341         * modules/roundf-ieee-tests: New file.
45342         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
45343         * tests/test-roundf1.c (main): Remove signbit tests.
45344         * modules/roundf-tests (Depends-on): Remove 'signbit'.
45345         * doc/posix-functions/roundf.texi: Mention the new module.
45347 2010-12-21  Bruno Haible  <bruno@clisp.org>
45349         New module 'truncf-ieee'.
45350         * modules/truncf-ieee: New file.
45351         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
45352         test whether truncf works according to ISO C 99 with IEC 60559.
45353         * m4/truncf-ieee.m4: New file.
45354         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
45355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
45356         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
45357         * modules/truncf-ieee-tests: New file.
45358         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
45359         * tests/test-truncf1.c (main): Remove signbit tests.
45360         * modules/truncf-tests (Depends-on): Remove 'signbit'.
45361         * doc/posix-functions/truncf.texi: Mention the new module.
45363 2010-12-21  Bruno Haible  <bruno@clisp.org>
45365         New module 'ceilf-ieee'.
45366         * modules/ceilf-ieee: New file.
45367         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
45368         test whether ceilf works according to ISO C 99 with IEC 60559.
45369         * m4/ceilf-ieee.m4: New file.
45370         * modules/ceilf-ieee-tests: New file.
45371         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
45372         * tests/test-ceilf1.c (main): Remove signbit tests.
45373         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
45374         * doc/posix-functions/ceilf.texi: Mention the new module.
45376 2010-12-21  Bruno Haible  <bruno@clisp.org>
45378         New module 'floorf-ieee'.
45379         * modules/floorf-ieee: New file.
45380         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
45381         test whether floorf works according to ISO C 99 with IEC 60559.
45382         * m4/floorf-ieee.m4: New file.
45383         * modules/floorf-ieee-tests: New file.
45384         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
45385         * tests/test-floorf1.c (main): Remove signbit tests.
45386         * modules/floorf-tests (Depends-on): Remove 'signbit'.
45387         * doc/posix-functions/floorf.texi: Mention the new module.
45389 2010-12-21  Bruno Haible  <bruno@clisp.org>
45391         Support for minus zero in autoconf macros.
45392         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
45393         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
45394         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
45395         * tests/minus-zero.h: Update comments.
45397 2010-12-21  Bruno Haible  <bruno@clisp.org>
45399         Tests for module 'ceil'.
45400         * modules/ceil-tests: New file.
45401         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
45402         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
45404 2010-12-21  Bruno Haible  <bruno@clisp.org>
45406         Tests for module 'floor'.
45407         * modules/floor-tests: New file.
45408         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
45409         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
45411 2010-12-21  Bruno Haible  <bruno@clisp.org>
45413         math: Fix indentation.
45414         * lib/math.in.h (floorf): Fix indentation.
45416 2010-12-21  Bruno Haible  <bruno@clisp.org>
45418         Fix cross-compilation guesses on Solaris.
45419         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
45420         not match "solaris2.10".
45421         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
45422         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
45423         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
45425 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
45427         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
45428         This fixes a problem observed with the latest coreutils snapshot
45429         that caused a test to fail on Solaris 8.  src/csplit.c's call
45430         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
45431         earlier, instead of returning the number of bytes that would have
45432         been generated; this causes csplit to incorrectly report memory
45433         exhaustion.
45434         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
45435         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
45436         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
45437         comments to match.
45438         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
45439         Fix typo in matching older versions of Solaris: "solaris2.10"
45440         is matched by the shell pattern "solaris2.[0-9]*".  This matters
45441         only for guessing while cross-compiling.
45442         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
45444 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
45446         ftoastr: fix comment again
45447         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
45448         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
45449         Also, simplify example a bit by using flags = 0.
45451 2010-12-20  Bruno Haible  <bruno@clisp.org>
45453         round*, trunc*: Update documentation regarding glibc.
45454         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
45455         * doc/posix-functions/round.texi: Likewise.
45456         * doc/posix-functions/roundl.texi: Likewise.
45457         * doc/posix-functions/truncf.texi: Likewise.
45458         * doc/posix-functions/trunc.texi: Likewise.
45459         * doc/posix-functions/truncl.texi: Likewise.
45461 2010-12-20  Bruno Haible  <bruno@clisp.org>
45463         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
45464         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
45465         * doc/posix-functions/round.texi: Likewise.
45466         * doc/posix-functions/roundl.texi: Likewise.
45468 2010-12-20  Bruno Haible  <bruno@clisp.org>
45470         ttyname_r: Add missing declaration on HP-UX 11.
45471         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
45472         HAVE_TTYNAME_R.
45473         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
45474         declared. Set HAVE_TTYNAME_R always.
45475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45476         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
45477         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
45478         HAVE_TTYNAME_R.
45479         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
45481 2010-12-20  Bruno Haible  <bruno@clisp.org>
45483         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
45484         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
45485         * doc/posix-functions/getlogin_r.texi: Likewise.
45486         * tests/test-getlogin.c: Include <errno.h>.
45487         (main): Avoid test failure on HP-UX 11.11.
45488         * tests/test-getlogin_r.c (main): Likewise.
45490 2010-12-20  Bruno Haible  <bruno@clisp.org>
45492         getlogin_r: Add missing declaration on HP-UX 11.
45493         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
45494         declared also when it exists as a function.
45495         * doc/posix-functions/getlogin_r.texi: Document this workaround.
45497 2010-12-20  Bruno Haible  <bruno@clisp.org>
45499         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
45500         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
45501         through wcrtomb.
45503 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
45505         ftoastr: fix comment
45506         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
45507         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
45509 2010-12-19  Bruno Haible  <bruno@clisp.org>
45511         isnan: Ensure it is a macro.
45512         * lib/math.in.h (isnan): Define as a macro if not already a macro.
45513         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
45514         Solaris.
45516 2010-12-19  Bruno Haible  <bruno@clisp.org>
45518         ldexpl test: Fix link error on OSF/1 5.1.
45519         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
45521 2010-12-19  Bruno Haible  <bruno@clisp.org>
45523         wctype: Make it work in C++ mode on OSF/1 5.1.
45524         * lib/wctype.in.h (iswblank): Declare but not define here.
45525         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
45526         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
45527         * modules/wctype (Files): Add lib/iswblank.c.
45529 2010-12-19  Bruno Haible  <bruno@clisp.org>
45531         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
45532         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
45533         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
45535 2010-12-19  Bruno Haible  <bruno@clisp.org>
45537         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
45538         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
45539         _POSIX_PII_SOCKET.
45540         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
45541         * doc/posix-functions/recvfrom.texi: Likewise.
45542         * doc/posix-functions/send.texi: Likewise.
45543         * doc/posix-functions/sendto.texi: Likewise.
45545 2010-12-19  Bruno Haible  <bruno@clisp.org>
45547         tcgetsid: Add missing declaration on OSF/1 5.1.
45548         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
45549         HAVE_TCGETSID.
45550         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
45551         Don't set HAVE_TCGETSID.
45552         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
45553         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
45554         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
45555         HAVE_TCGETSID.
45556         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
45558 2010-12-19  Bruno Haible  <bruno@clisp.org>
45560         stdio: Fix problem with popen() declaration on OSF/1 5.1.
45561         * lib/stdio.in.h: During the include_next statement, let recursive
45562         includes of this file include only the system header file.
45564 2010-12-19  Bruno Haible  <bruno@clisp.org>
45566         iconv_open: Fix regression from 2010-12-04.
45567         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
45568         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
45570 2010-12-19  Bruno Haible  <bruno@clisp.org>
45572         stdbool test: Avoid a gcc warning.
45573         * tests/test-stdbool.c (main): Fail if e1 is false.
45574         Reported by Jim Meyering.
45576 2010-12-19  Jim Meyering  <meyering@redhat.com>
45578         setenv: restore to working order
45579         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
45580         mistakenly removed.
45581         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
45582         HAVE_SETENV.
45583         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
45584         HAVE_SETENV.
45586 2010-12-19  Bruno Haible  <bruno@clisp.org>
45588         Document some different function declarations on OSF/1 5.1.
45589         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
45590         * doc/posix-functions/inet_ntop.texi: Likewise.
45591         * doc/posix-functions/gethostname.texi: Likewise.
45592         * lib/unistd.in.h (gethostname): Update comment.
45594 2010-12-19  Bruno Haible  <bruno@clisp.org>
45596         doc: Mention vasprintf-posix module.
45597         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
45598         the 'vasprintf-posix' module.
45599         * doc/glibc-functions/vasprintf.texi: Likewise.
45601 2010-12-19  Bruno Haible  <bruno@clisp.org>
45603         unsetenv: Add missing declaration on OSF/1 5.1.
45604         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
45605         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
45606         Don't set HAVE_UNSETENV. In the test program, set _BSD.
45607         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
45608         not HAVE_UNSETENV.
45609         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
45610         HAVE_UNSETENV.
45611         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
45613 2010-12-19  Bruno Haible  <bruno@clisp.org>
45615         setenv: Add missing declaration on OSF/1 5.1.
45616         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
45617         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
45618         declared. Don't set HAVE_SETENV.
45619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
45620         not HAVE_SETENV.
45621         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
45622         HAVE_SETENV.
45623         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
45625 2010-12-19  Bruno Haible  <bruno@clisp.org>
45627         nl_langinfo tests: Avoid gcc warning.
45628         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
45630 2010-12-19  Bruno Haible  <bruno@clisp.org>
45632         mknod: Avoid error in C++ mode on OSF/1 with GCC.
45633         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
45634         _GL_CXXALIAS_SYS.
45636 2010-12-19  Bruno Haible  <bruno@clisp.org>
45638         stdbool: Relax test.
45639         * tests/test-stdbool.c (e): Don't require that casts from a variable's
45640         address to 'bool' work in static initializer, for compilers other than
45641         GCC.
45643 2010-12-19  Bruno Haible  <bruno@clisp.org>
45645         ftello: Add missing declaration on OSF/1 5.1.
45646         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
45647         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
45648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
45649         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
45650         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
45652 2010-12-19  Bruno Haible  <bruno@clisp.org>
45654         fseeko: Add missing declaration on OSF/1 5.1.
45655         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
45656         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
45657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
45658         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
45659         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
45661 2010-12-19  Bruno Haible  <bruno@clisp.org>
45663         fchdir: Add missing declaration on OSF/1 5.1.
45664         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
45665         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
45666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
45667         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
45668         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
45670 2010-12-19  Bruno Haible  <bruno@clisp.org>
45672         relocatable-prog-wrapper: Separate from relocatable-prog.
45673         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
45674         uninstall-relocwrapper rule here.
45675         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
45676         Reported by Ian Beckwith <ianb@erislabs.net>.
45678 2010-12-19  Bruno Haible  <bruno@clisp.org>
45680         unistr/u8-mbsnlen: Add missing dependency.
45681         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
45682         Reported by Ian Beckwith <ianb@erislabs.net>.
45684 2010-12-19  Bruno Haible  <bruno@clisp.org>
45686         iconv: Make it possible again to use this module without 'iconv-h'.
45687         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
45688         if it is not defined.
45689         Reported by Ian Beckwith <ianb@erislabs.net>.
45691 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45693         acl: port to Solaris 8 when copying from tmpfs to ufs
45694         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
45695         error number.  Problem observed on Solaris 8 with latest
45696         coreutils, with "mv A B", where A is on a tmpfs file system and B
45697         is on a ufs file system.  This caused coreutils' mv/part-symlink
45698         test to fail.
45700         tests: set fail=0 at start
45701         * tests/init.sh (setup_): Move fail=0 initialization here ...
45702         (mktempd_): ... from here, so that tests can rely on fail being
45703         set to 0 initially.  This fixes a problem in coreutils; see:
45704         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
45706 2010-12-18  Bruno Haible  <bruno@clisp.org>
45708         memmem-simple: Stylistic changes.
45709         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
45710         Fix preprocessor directive indentation.
45712 2010-12-15  Pádraig Brady  <P@draigBrady.com>
45714         memmem, memmem-simple: reorganize and expand empty needle check
45715         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
45716         functional checks to memmem-simple so that one has a fully functional
45717         memmem by using just this module.
45718         Restrict the performance only check to the memmem module.
45719         Also expand the empty needle check to ensure the correct
45720         pointer is returned, not just a non NULL pointer.
45721         * doc/glibc-functions/memmem.texi: Rearrange the portability
45722         documentation to correlate with the rearranged checks.
45723         Clarify exactly how the memmem and memmem-simple modules
45724         relate to each other.
45726 2010-12-15  Pádraig Brady  <P@draigBrady.com>
45727             Bruno Haible  <bruno@clisp.org>
45729         Improve cross-compilation guesses for uClibc.
45730         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
45731         that uClibc does not have the glibc bug.
45732         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
45733         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
45735 2010-12-14  Eric Blake  <eblake@redhat.com>
45737         configmake: provide fallbacks for oldest supported autotools
45738         * m4/configmake.m4: New file.
45739         * modules/configmake (Files): Ship it.
45740         (configure.ac): Use it to guarantee fallbacks.
45742 2010-12-13  Pádraig Brady  <P@draigBrady.com>
45744         read-file: Improve handling of large files
45745         * lib/read-file.c (fread_file): Minimize realloc()s
45746         for regular files, and better manage sizes around SIZE_MAX.
45748 2010-12-13  Eric Blake  <eblake@redhat.com>
45750         cloexec, fcntl: relax license
45751         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
45752         consent from all contributors.
45753         * modules/fcntl (License): Likewise.
45755 2010-12-10  Bruno Haible  <bruno@clisp.org>
45757         Tests for module 'pipe-posix'.
45758         * modules/pipe-posix-tests: New file.
45759         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
45761 2010-12-10  Bruno Haible  <bruno@clisp.org>
45763         pipe-posix: Make it work in C++ mode.
45764         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
45765         (pipe): Use common idiom, not a macro definition.
45766         * lib/pipe.c: New file.
45767         * m4/pipe.m4: New file.
45768         * modules/pipe-posix (Description): Enhance.
45769         (Files): Add lib/pipe.c, m4/pipe.m4.
45770         (configure.ac): Invoke gl_FUNC_PIPE.
45771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
45772         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
45773         * tests/test-unistd-c++.cc: Check the signature of pipe.
45775 2010-12-10  Bruno Haible  <bruno@clisp.org>
45777         Rename module 'pipe' to 'spawn-pipe'.
45778         * modules/spawn-pipe: New file, renamed from modules/pipe.
45779         (Files, configure.ac, Makefile.am): Update.
45780         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
45781         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
45782         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
45783         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
45784         "spawn-pipe.h" instead of "pipe.h".
45785         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
45786         to gl_SPAWN_PIPE.
45787         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
45788         (Files, Makefile.am): Update.
45789         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
45790         Update.
45791         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
45792         Include "spawn-pipe.h" instead of "pipe.h".
45793         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
45794         * lib/javacomp.c: Likewise.
45795         * lib/javaversion.c: Likewise.
45796         * lib/pipe-filter-gi.c: Likewise.
45797         * lib/pipe-filter-ii.c: Likewise.
45798         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
45799         * modules/javacomp (Depends-on): Likewise.
45800         * modules/javaversion (Depends-on): Likewise.
45801         * modules/pipe-filter-gi (Depends-on): Likewise.
45802         * modules/pipe-filter-ii (Depends-on): Likewise.
45803         * MODULES.html.sh (Executing programs): Update.
45804         * NEWS: Mention the change.
45806 2010-12-10  Eric Blake  <eblake@redhat.com>
45808         pipe-posix: new module
45809         * modules/pipe-posix: New file.
45810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
45811         (gl_UNISTD_H): Check for declaration.
45812         * modules/unistd (Makefile.am): Substitute it.
45813         * lib/unistd.in.h (pipe): Provide it for mingw.
45814         * doc/posix-functions/pipe.texi (pipe): Update documentation.
45815         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
45817 2010-12-07  Bruno Haible  <bruno@clisp.org>
45819         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
45820         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
45821         u8_strcmp_gnu.
45822         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
45824 2010-12-06  Bruno Haible  <bruno@clisp.org>
45826         Update internal documentation.
45827         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
45829 2010-12-04  Bruno Haible  <bruno@clisp.org>
45831         Put more information about failed tests into the test return codes.
45832         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
45833         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
45834         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45835         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45836         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
45837         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45838         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45839         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
45840         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
45841         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45842         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
45843         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45844         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
45845         * m4/stdint.m4 (gl_STDINT_H): Likewise.
45846         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
45847         returns a bit mask.
45848         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
45849         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
45850         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
45851         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
45852         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
45853         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
45854         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
45855         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45856         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
45857         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
45858         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45859         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
45860         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
45861         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
45862         * m4/link.m4 (gl_FUNC_LINK): Likewise.
45863         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45864         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
45865         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
45866         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45867         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
45868         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45869         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
45870         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
45871         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
45872         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
45873         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
45874         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
45875         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
45876         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
45877         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
45878         gl_PRINTF_PRECISION): Likewise.
45879         * m4/regex.m4 (gl_REGEX): Likewise.
45880         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45881         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
45882         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
45883         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
45884         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45885         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45886         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
45887         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
45888         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45889         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45890         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
45891         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
45892         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
45893         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
45894         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
45895         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
45896         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
45897         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
45898         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45899         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
45900         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
45901         enumerated value.
45902         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
45904 2010-12-04  Bruno Haible  <bruno@clisp.org>
45906         Update for Solaris 11 2010-11.
45907         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
45908         Express, released in November 2010.
45910 2010-12-04  Bruno Haible  <bruno@clisp.org>
45912         nproc: Relax license.
45913         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
45914         and Paul Eggert.
45915         Requested by Ludovic Courtès <ludo@gnu.org>.
45917 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
45919         utimecmp: fine-grained src to nearby coarse-grained dest
45921         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
45922         and the source is on a file system with higher-resolution time
45923         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
45924         not work, and the time stamps are close together, the algorithm to
45925         determine the exact resolution from the read-back mtime was buggy:
45926         it had a "!=" where it should have had an "==".  This bug has been
45927         in the code ever since it was introduced to gnulib.
45928         Problem reported by Dan Jacobson in
45929         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
45931 2010-11-30  Bruno Haible  <bruno@clisp.org>
45933         strerror_r-posix: Fix autoconf test.
45934         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
45936 2010-11-28  Bruno Haible  <bruno@clisp.org>
45937             Paul Eggert  <eggert@cs.ucla.edu>
45939         Tests for module 'getdomainname'.
45940         * modules/getdomainname-tests: New file.
45941         * tests/test-getdomainname.c: New file, based on
45942         tests/test-gethostname.c.
45944 2010-11-28  Bruno Haible  <bruno@clisp.org>
45945             Paul Eggert  <eggert@cs.ucla.edu>
45947         getdomainname: Use the system function when possible.
45948         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
45949         (getdomainname): Replace if needed. Provide the declaration if it is
45950         missing. Don't use _GL_CXXALIAS_SYS_CAST.
45951         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
45952         (getdomainname): When the system has getdomainname, call the system
45953         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
45954         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45955         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
45956         found in libnsl. Look for the declaration also in <netdb.h>. Replace
45957         the function if its second argument is of type 'int' or if it is found
45958         in libnsl.
45959         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
45960         <sys/systeminfo.h> and sysinfo().
45961         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
45962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45963         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
45964         HAVE_GETDOMAINNAME.
45965         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
45966         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
45967         * doc/glibc-functions/getdomainname.texi: Document the problems with
45968         the getdomainname declaration.
45970 2010-11-28  Bruno Haible  <bruno@clisp.org>
45972         sys_socket: Ensure ss_family field on AIX.
45973         * lib/sys_socket.in.h (ss_family): New macro definition.
45974         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
45975         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
45976         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45977         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
45978         * modules/sys_socket (Makefile.am): Substitute
45979         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
45980         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
45982 2010-11-27  Bruno Haible  <bruno@clisp.org>
45984         readline: Improve configure output.
45985         * m4/readline.m4 (gl_FUNC_READLINE): Make the
45986         "checking for readline..." result understandable.
45988 2010-11-27  Bruno Haible  <bruno@clisp.org>
45990         *printf-posix: Detect a bug on Solaris 10/x86.
45991         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
45992         for floating-point output.
45993         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
45994         directive.
45995         * tests/test-snprintf-posix.h (test_function): Likewise.
45996         * tests/test-sprintf-posix.h (test_function): Likewise.
45997         * tests/test-vasprintf-posix.c (test_function): Likewise.
45998         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
45999         * doc/posix-functions/printf.texi: Likewise.
46000         * doc/posix-functions/snprintf.texi: Likewise.
46001         * doc/posix-functions/sprintf.texi: Likewise.
46002         * doc/posix-functions/vfprintf.texi: Likewise.
46003         * doc/posix-functions/vprintf.texi: Likewise.
46004         * doc/posix-functions/vsnprintf.texi: Likewise.
46005         * doc/posix-functions/vsprintf.texi: Likewise.
46006         * doc/glibc-functions/obstack_printf.texi: Likewise.
46007         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46009 2010-11-27  Bruno Haible  <bruno@clisp.org>
46011         Fix link error when module libunistring-optional is in use.
46012         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
46013         * modules/striconveha-tests (Makefile.am): Likewise.
46015 2010-11-27  Bruno Haible  <bruno@clisp.org>
46017         regex: Mention link dependencies.
46018         * modules/regex (Link): New section.
46019         * modules/rpmatch (Link): Likewise.
46020         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
46022 2010-11-27  Bruno Haible  <bruno@clisp.org>
46024         ftoastr: Fix compilation error on Solaris.
46025         * lib/ftoastr.c: Include <config.h>.
46027 2010-11-27  Bruno Haible  <bruno@clisp.org>
46029         getloadavg: Update documentation.
46030         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
46032 2010-11-27  Bruno Haible  <bruno@clisp.org>
46034         sys_socket: Fix test whether the functions are declared.
46035         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
46036         not <sys/select.h>.
46038 2010-11-27  Bruno Haible  <bruno@clisp.org>
46040         getpass: Make sure to get system declaration on some platforms.
46041         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
46042         gl_USE_SYSTEM_EXTENSIONS.
46043         * modules/getpass (Depends-on): Add extensions.
46045 2010-11-26  Bruno Haible  <bruno@clisp.org>
46047         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
46048         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
46049         'iconv' module is present.
46050         (ICONV_CONST): New macro.
46051         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
46052         ICONV_CONST.
46053         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
46054         set ICONV_CONST.
46055         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
46056         here.
46057         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
46058         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
46059         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
46060         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
46061         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
46062         present.
46064 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
46066         ftoastr: comment fix
46067         * lib/ftoastr.c: "little" -> "little or no" in comment
46069 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
46071         stdint: port to GCC 4.3 + OSX + Octave
46072         On this platform, stdint.h is buggy and defines int64_t to long
46073         long int.  The replacement defined it to long int, causing
46074         problems with C++ style name mangling.  Instead, trust the system
46075         definition if INT64_MAX is defined, and likewise for the unsigned
46076         variant.   Problem reported by Jarno Rajahalme in
46077         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
46078         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
46079         and don't mess with int64_t and INT64_MAX in this case.
46080         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
46082 2010-11-24  Bruno Haible  <bruno@clisp.org>
46084         doc: Corrections regarding MacOS X 10.4 and 10.5.
46085         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
46086         MacOS X.
46087         Reported by Simon Josefsson.
46089 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
46091         Uninstall ".bin" files installed by relocwrapper.
46092         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
46093         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
46094         unless it is already there.
46096 2010-11-21  Bruno Haible  <bruno@clisp.org>
46098         Update for NetBSD 5.0.
46099         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
46100         NetBSD; the test fails on NetBSD 5.0.
46101         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
46102         about NetBSD.
46104 2010-11-21  Bruno Haible  <bruno@clisp.org>
46106         Update for HP-UX 11.23 and HP-UX 11.31.
46107         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
46108         HP-UX.
46110 2010-11-21  Bruno Haible  <bruno@clisp.org>
46112         Update for MacOS X 10.5.
46113         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
46114         MacOS X; the test fails on MacOS X 10.5.8.
46115         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
46116         about MacOS X.
46118 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
46120         bootstrap: add bootstrap_sync option.
46121         See discussion at
46122         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
46123         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
46124         * build-aux/bootstrap: Accept --bootstrap-sync to update
46125         bootstrap if it is not identical to the local gnulib's
46126         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
46127         enable this by default.  Accept --no-bootstrap-sync to disable
46128         it.
46130 2010-11-20  Bruno Haible  <bruno@clisp.org>
46132         Ensure that <features.h> is included before __GLIBC__ is tested.
46133         * lib/printf-parse.h: Include <features.h>.
46134         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
46135         Reported by Mike Frysinger <vapier@gentoo.org>.
46137         Ensure that <features.h> is included before __GLIBC__ is tested.
46138         * lib/wchar.in.h: Include <features.h>.
46139         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
46140         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
46141         Reported by Mike Frysinger <vapier@gentoo.org>.
46143         Ensure that <features.h> is included before __GLIBC__ is tested.
46144         * lib/arpa_inet.in.h: Include <features.h>.
46145         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
46146         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
46147         Reported by Mike Frysinger <vapier@gentoo.org>.
46149         Ensure that <features.h> is included before __GLIBC__ is tested.
46150         * build-aux/link-warning.h: Include <features.h>.
46151         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
46152         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
46153         Reported by Mike Frysinger <vapier@gentoo.org>.
46155         Ensure that <features.h> is included before __GLIBC__ is tested.
46156         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
46157         Reported by Mike Frysinger <vapier@gentoo.org>.
46159 2010-11-20  Bruno Haible  <bruno@clisp.org>
46161         memmem: Fix autoconf test.
46162         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
46164 2010-11-20  Bruno Haible  <bruno@clisp.org>
46166         Port to uClibc.
46167         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
46168         * lib/fcntl.in.h: Likewise.
46169         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
46170         * lib/mbrtowc.c (mbrtowc): Likewise.
46171         * lib/relocatable.c (find_shared_library_fullname): Likewise.
46172         * lib/strerror_r.c: Likewise.
46173         * lib/unistr/u8-strnlen.c: Likewise.
46174         * lib/vasnprintf.c (decimal_point_char): Likewise.
46175         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
46176         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
46177         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
46178         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
46179         * tests/test-sigaction.c (handler, main): Likewise.
46180         * lib/freading.h: Treat uClibc like a non-glibc platform.
46181         * lib/freading.c: Likewise.
46182         * lib/gettext.h: Likewise.
46183         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
46184         Likewise.
46185         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
46186         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
46187         * lib/propername.c (proper_name_utf8): Likewise.
46188         * lib/spawn.in.h: Likewise.
46189         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
46190         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
46191         mem_cd_iconveh_internal): Likewise.
46192         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
46193         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
46194         strstr, strcasestr): Likewise.
46195         * lib/unicodeio.c (unicode_to_mb): Likewise.
46196         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
46197         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
46198         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
46199         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
46200         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
46201         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
46202         * lib/unistr/u8-stpncpy.c: Likewise.
46203         * lib/vasnprintf.c (VASNPRINTF): Likewise.
46204         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
46205         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46206         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46207         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
46208         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
46209         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
46210         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
46211         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
46212         Likewise.
46213         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
46214         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46215         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
46216         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46217         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46218         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
46219         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
46220         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
46221         * tests/test-getopt.h (OPTIND_MIN): Likewise.
46222         * tests/test-striconveha.c (main): Likewise.
46223         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46224         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
46225         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
46226         * doc/posix-functions/getline.texi: Likewise.
46227         Reported by Mike Frysinger <vapier@gentoo.org>.
46229 2010-11-20  Bruno Haible  <bruno@clisp.org>
46231         nproc: Fix condition.
46232         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
46233         HAVE_PTHREAD_AFFINITY_NP.
46235 2010-11-20  Bruno Haible  <bruno@clisp.org>
46237         Fix a comment.
46238         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
46240 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
46242         ftoastr: don't assume snprintf
46243         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
46244         Implement a subset of snprintf here, by using sprintf safely.
46245         * modules/ftoastr (Depends-on): Remove snprintf.
46247 2010-11-19  Jim Meyering  <meyering@redhat.com>
46249         test-rename.h: fix compilation failure
46250         * tests/test-rename.h (test_rename): Add omitted "}".
46252 2010-11-17  Jim Meyering  <meyering@redhat.com>
46254         maint.mk: add a URL discussing the no-@acronym policy
46255         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
46257 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
46259         ftoastr: depend on snprintf, improve comments
46260         * lib/ftoastr.c: Also mention Loitsch's draft.
46261         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
46262         needed in the current implementation, but it might simplify
46263         speeding up the code later.
46264         * modules/ftoastr: Depend on snprintf; this improves portability.
46265         Suggested by Bruno Haible in the same email.
46267         ftoastr: port to hosts lacking strtof and strtold
46268         Problem reported by Bruno Haible in
46269         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
46270         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
46271         environment and strtold (and presumably strtof) are not available.
46272         * modules/ftoastr (Files): Add m4/c-strtod.m4.
46273         (configure.ac): Require gl_C99_STRTOLD.
46275 2010-11-18  Bruno Haible  <bruno@clisp.org>
46277         c-strtold: Avoid link error on AIX 7.
46278         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
46279         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
46280         (gl_C_STRTOLD): Test whether strtold_l exists.
46281         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46283 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
46285         intprops: new macro INT_BITS_STRLEN_BOUND
46286         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
46287         ftoastr.h.  This exposes an internal of intprops.h that was formerly
46288         not exposed.  Also, it uses a slightly tighter bound than before;
46289         though this makes no practical difference, we might as well be as
46290         tight as we easily can.
46292         ftoastr: new module, for lossless conversion of floats to short strings
46293         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
46294         * modules/ftoastr: New files.
46296 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
46298         bootstrap: port to Solaris sed
46299         * build-aux/bootstrap (get_version): Port to Solaris sed.
46300         See Ralf Wildenhues's note in
46301         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
46303 2010-11-14  Jim Meyering  <meyering@redhat.com>
46305         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
46306         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
46307         and move definition closer to sole use.
46309 2010-11-13  Jim Meyering  <meyering@redhat.com>
46311         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
46312         Now we require at least autoconf-2.59, which means the work-around
46313         is no longer needed.
46314         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
46315         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46316         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
46317         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
46318         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
46320 2010-11-13  Bruno Haible  <bruno@clisp.org>
46322         rename, renameat: Avoid test failures at NFS mounted locations.
46323         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
46324         functions.
46325         (test_rename): Use assert_nonexistent.
46326         * tests/test-rename.c: Include <dirent.h>.
46327         * tests/test-renameat.c: Likewise.
46328         Reported by Gary V. Vaughan <gary@gnu.org>.
46330         rename, renameat: Document Linux bug with NFS
46331         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
46332         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
46333         * doc/posix-functions/renameat.texi: Likewise.
46334         Suggested by Eric Blake.
46336 2010-11-13  Bruno Haible  <bruno@clisp.org>
46338         rename test: Add comments.
46339         * tests/test-rename.h (test_rename): Add structure and comments.
46341 2010-11-13  Eric Blake  <eblake@redhat.com>
46343         maintainer-makefile: cover a few more files
46344         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
46345         scripts generated within C files, for libvirt.
46347 2010-11-13  Bruno Haible  <bruno@clisp.org>
46349         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
46350         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
46351         character, return the number of bytes that belong together, not always
46352         1.
46353         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
46354         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
46355         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
46356         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
46357         number of bytes of an invalid character.
46358         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
46359         (main): Invoke it.
46360         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
46361         results.
46362         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
46363         malformed byte sequences.
46364         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
46365         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
46366         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
46367         Reported by Ben Pfaff and Paolo Bonzini.
46369 2010-11-13  Bruno Haible  <bruno@clisp.org>
46371         openat: Work around glibc bug with fchownat() and empty file names.
46372         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
46373         (gl_FUNC_FCHOWNAT): Invoke it.
46374         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
46375         * doc/posix-functions/fchownat.texi: Document the glibc bug.
46376         Reported by Gary V. Vaughan <gary@gnu.org>.
46378 2010-11-13  Bruno Haible  <bruno@clisp.org>
46380         openat: Ensure autoconf macro ordering.
46381         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
46382         gl_USE_SYSTEM_EXTENSIONS.
46383         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
46385 2010-11-13  Bruno Haible  <bruno@clisp.org>
46387         Update comments.
46388         * lib/unistr/u8-check.c: Update file name in comments.
46389         * lib/unistr/u8-mblen.c: Likewise.
46390         * lib/unistr/u8-prev.c: Likewise.
46391         * lib/unistr/u8-strmblen.c: Likewise.
46392         * lib/unistr/u8-strmbtouc.c: Likewise.
46394 2010-11-13  Jim Meyering  <meyering@redhat.com>
46396         tests: avoid test failure on Solaris 10 due to lack of PATH export
46397         * tests/test-update-copyright.sh: Don't forget to export PATH.
46399         init.sh: ensure that IFS is defined, just in case...
46400         * tests/init.sh (setup_): Ensure that IFS is defined,
46401         so that saving and restoring it works as expected.  This
46402         appears to be useful at least for an old version of dash
46403         from a long time ago (RH 6).  See here for details:
46404         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
46406         maint.mk: tighten "test a == b" check
46407         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
46408         test to files that contain something like #!/bin/sh.
46409         Without this, coreutils would get two false positives in
46410         the comments of C source files.
46412 2010-11-12  Eric Blake  <eblake@redhat.com>
46414         bootstrap: fix typo in previous attempt
46415         * build-aux/bootstrap (buildreq): Correct the grouping.
46416         Reported by Paul Eggert.
46418         maintainer-makefile: prohibit test x == x
46419         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
46420         Based on a report by Matthias Bolte.
46422         bootstrap: allow FreeBSD gzip
46423         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
46424         which has no '.' and goes to stderr.
46425         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
46426         Reported by Matthias Bolte.
46428         maintainer-makefile: check for i18n setup
46429         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
46430         will likely work.
46432 2010-11-12  Bruno Haible  <bruno@clisp.org>
46434         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
46435         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
46436         * lib/nanosleep.c (nanosleep): Likewise.
46438 2010-11-11  Bruno Haible  <bruno@clisp.org>
46440         fcntl-h: Fix for use of C++ on glibc systems.
46441         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
46442         also on glibc systems in C++ mode.
46443         Reported by Gary V. Vaughan <gary@gnu.org>.
46445 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
46447         mknod: avoid false failure with dash
46448         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
46450 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
46452         unlink: Fix "is it should" typo in diagnostic.
46453         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
46454         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
46456 2010-11-11  Bruno Haible  <bruno@clisp.org>
46458         Tests for module 'strerror_r-posix'.
46459         * modules/strerror_r-posix-tests: New file.
46460         * tests/test-strerror_r.c: New file.
46461         * tests/test-string-c++.cc: Check the signature of strerror_r.
46463         New module 'strerror_r-posix'.
46464         * lib/string.in.h (strerror_r): New declaration.
46465         * lib/strerror_r.c: New file.
46466         * m4/strerror_r.m4: New file.
46467         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
46468         of strerror_r.
46469         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
46470         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
46471         * modules/strerror_r-posix: New file.
46472         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
46473         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
46474         * doc/posix-functions/strerror_r.texi: Mention the new module and the
46475         portability problems.
46477 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
46479         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
46480         line is also considered for output. Quoted function name in shell
46481         command, so temporary files for functions like MyClass::operator()
46482         are removed correctly without errors.
46484 2010-11-09  Bruno Haible  <bruno@clisp.org>
46486         * doc/posix-functions/strerror.texi: List more failing platforms.
46488         * doc/posix-functions/strerror.texi: Add a comment.
46490 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46492         fdopendir: fix bug on MacOS X when low on file descriptors
46494         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
46495         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
46496         All callers changed.
46497         (fdopendir): Invoke save_cwd at the top level, not after using
46498         multiple dup() calls to use up file descriptors.  Then retry
46499         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
46500         less than the maximum number of open file descriptors, because
46501         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
46502         on Mac OS X 10.6.4 for tar 1.24
46503         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
46504         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
46505         and for tar 1.25
46506         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
46508 2010-11-07  Bruno Haible  <bruno@clisp.org>
46510         vasnprintf: Support I flag on glibc systems.
46511         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
46512         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
46513         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
46514         snprintf function.
46515         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
46516         glibc systems.
46517         * tests/test-vasnprintf-posix3.c: New file.
46518         * modules/vasnprintf-posix-tests (Files): Add it.
46519         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
46521 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46523         [html] Fix copy/paste bug: Use unique name for compiler warnings.
46524         * MODULES.html.sh: For compiler warnings, use name
46525         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
46527 2010-11-05  Eric Blake  <eblake@redhat.com>
46529         ceil, floor: avoid spurious failure with icc
46530         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
46531         [denormals-as-zero] when optimizing without -mieee-fp option.
46532         * tests/test-floorf2.c (floorf_reference): Likewise.
46533         * tests/test-ceilf1.c (dummy): New function.
46534         (main): Use it to outsmart icc's optimization.
46535         * tests/test-floorf1.c (dummy, main): Likewise.
46537         tests: require working signbit
46538         * modules/ceilf-tests (Depends-on): Add signbit.
46539         * modules/ceill-tests (Depends-on): Likewise.
46540         * modules/floorf-tests (Depends-on): Likewise.
46541         * modules/floorl-tests (Depends-on): Likewise.
46542         * modules/round-tests (Depends-on): Likewise.
46543         * modules/roundf-tests (Depends-on): Likewise.
46544         * modules/roundl-tests (Depends-on): Likewise.
46545         * modules/trunc-tests (Depends-on): Likewise.
46546         * modules/truncf-tests (Depends-on): Likewise.
46547         * modules/truncl-tests (Depends-on): Likewise.
46549         strtod: work around icc bug
46550         * lib/strtod.c (minus_zero): Define to working value.
46551         (strtod): Use it to avoid icc bug.
46553         copysign: enhance tests
46554         * modules/copysign-tests (Files): Add minus-zero.h.
46555         * tests/test-copysign.c (main): Also test zeros.
46557 2010-11-04  Eric Blake  <eblake@redhat.com>
46559         ceil, floor, round, trunc: enhance tests of -0
46560         * tests/test-ceilf1.c (main): Ensure correct sign of result.
46561         * tests/test-ceill.c (main): Likewise.
46562         * tests/test-floorf1.c (main): Likewise.
46563         * tests/test-floorl.c (main): Likewise.
46564         * tests/test-round1.c (main): Likewise.
46565         * tests/test-roundf1.c (main): Likewise.
46566         * tests/test-roundl.c (main): Likewise.
46567         * tests/test-trunc1.c (main): Likewise.
46568         * tests/test-truncf1.c (main): Likewise.
46569         * tests/test-truncl.c (main): Likewise.
46571 2010-11-04  Eric Blake  <eblake@redhat.com>
46573         frexp, tests: work around ICC bug with -zero
46574         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
46575         works with more compilers.
46576         * tests/minus-zero.h: New file.
46577         * modules/ceilf-tests (Files): Include it.
46578         * modules/ceill-tests (Files): Likewise.
46579         * modules/floorf-tests (Files): Likewise.
46580         * modules/floorl-tests (Files): Likewise.
46581         * modules/frexp-nolibm-tests (Files): Likewise.
46582         * modules/frexp-tests (Files): Likewise.
46583         * modules/frexpl-nolibm-tests (Files): Likewise.
46584         * modules/frexpl-tests (Files): Likewise.
46585         * modules/isnan-tests (Files): Likewise.
46586         * modules/isnand-nolibm-tests (Files): Likewise.
46587         * modules/isnand-tests (Files): Likewise.
46588         * modules/isnanf-nolibm-tests (Files): Likewise.
46589         * modules/isnanf-tests (Files): Likewise.
46590         * modules/isnanl-nolibm-tests (Files): Likewise.
46591         * modules/isnanl-tests (Files): Likewise.
46592         * modules/round-tests (Files): Likewise.
46593         * modules/roundf-tests (Files): Likewise.
46594         * modules/roundl-tests (Files): Likewise.
46595         * modules/ldexpl-tests (Files): Likewise.
46596         * modules/signbit-tests (Files): Likewise.
46597         * modules/snprintf-posix-tests (Files): Likewise.
46598         * modules/sprintf-posix-tests (Files): Likewise.
46599         * modules/strtod-tests (Files): Likewise.
46600         * modules/trunc-tests (Files): Likewise.
46601         * modules/truncf-tests (Files): Likewise.
46602         * modules/truncl-tests (Files): Likewise.
46603         * modules/vsnprintf-posix-tests (Files): Likewise.
46604         * modules/vsprintf-posix-tests (Files): Likewise.
46605         * modules/vasnprintf-posix-tests (Files): Likewise.
46606         * modules/vasprintf-posix-tests (Files): Likewise.
46607         * tests/test-ceilf1.c (main): Use it.
46608         * tests/test-ceill.c (main): Likewise.
46609         * tests/test-floorf1.c (main): Likewise.
46610         * tests/test-floorl.c (main): Likewise.
46611         * tests/test-frexp.c (main): Likewise.
46612         * tests/test-frexpl.c (main): Likewise.
46613         * tests/test-isnan.c (main): Likewise.
46614         * tests/test-isnand.h (main): Likewise.
46615         * tests/test-isnanf.h (main): Likewise.
46616         * tests/test-isnanl.h (main): Likewise.
46617         * tests/test-ldexpl.c (main): Likewise.
46618         * tests/test-round.c (main): Likewise.
46619         * tests/test-roundf.c (main): Likewise.
46620         * tests/test-roundl.c (main): Likewise.
46621         * tests/test-signbit.c (test_signbitf, test_signbitd)
46622         (test_signbitl): Likewise.
46623         * tests/test-snprintf-posix.h (test_function): Likewise.
46624         * tests/test-sprintf-posix.h (test_function): Likewise.
46625         * tests/test-strtod.c (main): Likewise.
46626         * tests/test-trunc1.c (main): Likewise.
46627         * tests/test-truncf1.c (main): Likewise.
46628         * tests/test-truncl.c (main): Likewise.
46630         isnanl: work around icc bug
46631         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
46633 2010-11-03  Eric Blake  <eblake@redhat.com>
46635         tests: fix compiler warnings
46636         * tests/test-getopt.h (test_getopt): Fix condition.
46637         * tests/test-getopt_long.h (test_getopt_long): Likewise.
46638         * tests/test-pipe2.c (main): Likewise.
46639         * tests/test-quotearg-simple.c (main): Avoid icc warning.
46641         utimens: fix broken m4 test
46642         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
46644 2010-10-28  Bruno Haible  <bruno@clisp.org>
46646         posix_spawn*, getdtablesize: Relax license.
46647         * modules/posix_spawn (License): Change to LGPLv2+.
46648         * modules/posix_spawnp (License): Likewise.
46649         * modules/posix_spawn-internal (License): Likewise.
46650         * modules/posix_spawnattr_init (License): Likewise.
46651         * modules/posix_spawnattr_getflags (License): Likewise.
46652         * modules/posix_spawnattr_setflags (License): Likewise.
46653         * modules/posix_spawnattr_getpgroup (License): Likewise.
46654         * modules/posix_spawnattr_setpgroup (License): Likewise.
46655         * modules/posix_spawnattr_getschedparam (License): Likewise.
46656         * modules/posix_spawnattr_setschedparam (License): Likewise.
46657         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
46658         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
46659         * modules/posix_spawnattr_getsigdefault (License): Likewise.
46660         * modules/posix_spawnattr_setsigdefault (License): Likewise.
46661         * modules/posix_spawnattr_getsigmask (License): Likewise.
46662         * modules/posix_spawnattr_setsigmask (License): Likewise.
46663         * modules/posix_spawnattr_destroy (License): Likewise.
46664         * modules/posix_spawn_file_actions_init (License): Likewise.
46665         * modules/posix_spawn_file_actions_addclose (License): Likewise.
46666         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
46667         * modules/posix_spawn_file_actions_addopen (License): Likewise.
46668         * modules/posix_spawn_file_actions_destroy (License): Likewise.
46669         * modules/getdtablesize (License): Likewise.
46670         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
46672 2010-10-26  Bruno Haible  <bruno@clisp.org>
46674         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
46675         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
46676         Cygwin and mingw.
46677         Suggested by Eric Blake.
46679 2010-10-26  Bruno Haible  <bruno@clisp.org>
46681         stdio: Work around compilation error due to renameat() on Solaris 10.
46682         * lib/stdio.in.h: Include <unistd.h> on Solaris.
46683         * lib/renameat.c: Don't include <unistd.h> here.
46684         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
46685         Reported by Paul Eggert and Eric Blake.
46687 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
46689         renameat: port to Solaris 10, which declares renameat in unistd.h
46691         * lib/renameat.c: Include unistd.h before stdio.h, because
46692         Solaris 10 declares renameat in unistd.h.  Problem encountered
46693         when building GNU tar 1.24 on Solaris 10.
46695 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
46697         fdopendir: fix C89 compilation
46698         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
46699         compilers.
46701 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
46703         inttostr: simplify by removing unnecessary redundancy
46704         * lib/anytostr.c: Don't include verify.h.
46705         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
46706         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
46707         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
46708         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
46709         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
46710         Likewise.
46711         * modules/inttostr (Depends-on): Remove 'verify'.
46713 2010-10-23  Bruno Haible  <bruno@clisp.org>
46715         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
46716         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
46717         Reported by Eric Blake.
46719 2010-10-23  Bruno Haible  <bruno@clisp.org>
46721         Tests: Fix LOCALE_JA on MirBSD 10.
46722         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
46723         to an UTF-8 locale.
46724         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
46725         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46726         Reported by Eric Blake.
46728 2010-10-21  Bruno Haible  <bruno@clisp.org>
46730         nl_langinfo test: Avoid test failure on NetBSD 5.
46731         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
46732         Reported by Eric Blake.
46734 2010-10-21  Eric Blake  <eblake@redhat.com>
46736         c-stack: work around libsigsegv 2.8 bug
46737         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
46738         overflow on at least PowerPC64.
46740 2010-10-17  Bruno Haible  <bruno@clisp.org>
46742         userspec: Drop redundant file.
46743         * modules/userspec (Files): Remove lib/inttostr.h.
46745 2010-10-17  Bruno Haible  <bruno@clisp.org>
46747         nl_langinfo tests: Silence some warnings.
46748         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
46749         Reported by Jim Meyering.
46751 2010-10-17  Bruno Haible  <bruno@clisp.org>
46753         Make use of GCC's attribute __alloc_size__.
46754         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
46755         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
46756         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
46757         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
46758         __alloc_size__.
46759         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
46760         Suggested by Jim Meyering.
46762 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
46764         bootstrap: anchor .gitignore entries.
46765         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
46766         with...
46767         (insert_vc_ignore): ... this new function, which prepends `/' to
46768         all .gitignore entries before passing them to
46769         insert_sorted_if_absent.
46771 2010-10-16  Bruno Haible  <bruno@clisp.org>
46773         nextafter: Fix configure check.
46774         * modules/nextafter (configure.ac): Correct expected prototype.
46776 2010-10-16  Bruno Haible  <bruno@clisp.org>
46778         termios: Update documentation.
46779         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
46781 2010-10-16  Bruno Haible  <bruno@clisp.org>
46783         tests: Make them compile with TinyCC.
46784         * tests/test-strstr.c (main): Remove parentheses around array
46785         initializer.
46787 2010-10-15  Eric Blake  <eblake@redhat.com>
46789         ignore-value: make header idempotent
46790         * lib/ignore-value.h: Add double-inclusion guards.
46791         Reported by Stefan Berger.
46793 2010-10-15  Jim Meyering  <meyering@redhat.com>
46795         GNUmakefile: handle "stable" target, not "major"
46796         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
46797         lists in maint.mk and announce-gen.  Without this, "make stable"
46798         would fail to ensure that $(VERSION) is up to date.
46800 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
46802         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
46803         & co.
46805 2010-10-14  Bruno Haible  <bruno@clisp.org>
46807         vasnprintf: Don't set errno to 0.
46808         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
46809         block that sets it to 0.
46810         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
46812 2010-10-14  Bruno Haible  <bruno@clisp.org>
46814         socketlib: Fix.
46815         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
46816         gl_PREREQ_SYS_H_WINSOCK2.
46817         Reported by Ian Beckwith <ianb@erislabs.net>.
46819 2010-10-13  Jim Meyering  <meyering@redhat.com>
46821         test-select-stdin.c: avoid warn_unused_result warnings
46822         * tests/test-select-stdin.c: Include "macros.h".
46823         ASSERT that read and fflush succeed.
46825 2010-10-13  Jim Meyering  <meyering@redhat.com>
46827         git-version-gen: do require git-VC'd files in cwd
46828         * build-aux/git-version-gen: Reject a git version string
46829         if there are no commits associated with the current directory.
46830         This avoids an unlikely false-positive (unrelated dir whose parent
46831         repository also contains a tag matching v*), as pointed out
46832         by Giuseppe Scrivano in
46833         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
46835 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
46837         argv-iter: omit nonconforming declaration
46838         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
46839         enum arg_iter_err declaration, which doesn't conform to C99.
46840         Solaris 10 cc warns about this.
46842 2010-10-13  Eric Blake  <eblake@redhat.com>
46844         termios: fix compilation on mingw
46845         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
46846         (gl_TERMIOS_H): Adjust it on mingw.
46847         * modules/termios (Makefile.am): Substitute new key.
46848         * lib/termios.in.h (includes): Make include_next conditional.
46849         * doc/posix-headers/termios.texi (termios.h): Update
46850         documentation.
46851         Reported by Daniel P. Berrange.
46853 2010-10-13  Jim Meyering  <meyering@redhat.com>
46855         git-version-gen: don't require that .git/ be in the current dir
46856         * build-aux/git-version-gen: Adjust this script so that it works
46857         when run from any working directory beneath the top-level .git/-
46858         containing directory.  Inspired by a patch from Giuseppe Scrivano,
46859         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
46861         test-select: avoid warn_unused_result warnings
46862         * tests/test-select.c: Include "macros.h".
46863         ASSERT that each call to read, write, and pipe succeeds.
46864         While not technically required, also check each "close".
46865         * modules/select-tests (Files): Add tests/macros.h.
46867         test-symlinkat: remove declaration of unused local
46868         * tests/test-symlinkat.c (main): Remove unused local, "buf".
46870         test-inttostr: avoid shadowing warnings
46871         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
46872         and use malloc rather than the stack for the same reason as
46873         mentioned in the comment justifying the other allocation.
46875 2010-10-11  Bruno Haible  <bruno@clisp.org>
46877         stdlib: Allow multiple gnulib generated replacements to coexist.
46878         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
46879         Reported by Sam Steingold <sds@gnu.org>.
46881 2010-10-11  Jim Meyering  <meyering@redhat.com>
46883         fix a documentation typo
46884         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
46886 2010-10-11  Eric Blake  <eblake@redhat.com>
46888         futimens: work around Solaris 11 bug
46889         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
46890         * tests/test-futimens.h (test_futimens): Enhance, rather than
46891         weaken test.
46892         * doc/posix-functions/futimens.texi (futimens): Document the bug.
46894 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46896         Indentation.
46897         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
46898         higher-level operators more to the left.
46900 2010-10-11  Jim Meyering  <meyering@redhat.com>
46902         test-futimens: avoid unwarranted test failure on Solaris 5.11
46903         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
46904         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
46905         because it tries to dereference the NULL name argument.
46907 2010-10-11  Bruno Haible  <bruno@clisp.org>
46909         Indentation.
46910         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
46911         indentation.
46913 2010-10-11  Jim Meyering  <meyering@redhat.com>
46915         spawn.in.h: make indentation consistent with parentheses
46916         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
46917         Make indentation consistent with parentheses.
46919 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
46921         Fix mismatched parens in previous commit
46922         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
46923         parens.
46925 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
46927         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
46929         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
46930         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
46931         * lib/malloca.c: Include "verify.h".
46932         (verify1): Remove, replacing with a verify call.
46933         * lib/relocwrapper.c (verify1): Likewise.
46934         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
46935         Likewise.
46936         * modules/malloca (Depends-on): Add 'verify'.
46937         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
46938         * modules/vasnprintf (Depends-on): Add 'verify'.
46939         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46940         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46941         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46942         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46943         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46944         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46945         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46947         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
46949         Formerly the style was sometimes 2*X - 1, because the C standard
46950         was wrongly thought to disallow ?: in integral constant expressions.
46951         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
46952         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
46953         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
46954         * lib/stdint.in.h (_verify_intmax_size): Likewise.
46955         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
46956         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
46957         verify that time_t cannot be floating.
46959 2010-10-08  Eric Blake  <eblake@redhat.com>
46961         time: enforce recent POSIX ruling that time_t is integral
46962         * lib/time.in.h (__time_t_must_be_integral): Detect any
46963         problematic systems, allowing the rest of gnulib to assume POSIX.
46965 2010-10-08  Jim Meyering  <meyering@redhat.com>
46967         fdopendir: fix a bug on systems lacking openat and /proc support
46968         OpenBSD 4.7 is one such system.  The most noticeable effect was
46969         failure of any application making nontrivial use of fts: rm, du,
46970         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
46971           ./rm: traversal failed: `a': Bad file descriptor
46972         Debugging that, you see that even though FD 6 was closed just
46973         prior to the opendir call in fd_clone_opendir, its resulting
46974         dir->dd_fd was 8, rather than the expected value of 6:
46976         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
46977         93                close (fd);
46978         (gdb) n
46979         94                dir = fd_clone_opendir (dupfd);
46980         (gdb) n
46981         95                saved_errno = errno;
46982         (gdb) p dir->dd_fd
46983         $11 = 8
46985         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
46986         The problem is that on OpenBSD, fd_clone_opendir has to resort
46987         to using the old-style save/restore CWD mechanism, due to its
46988         lack of openat/proc support, and *that* would steal the FD (6)
46989         that opendir was supposed to use.
46991         The fix is to squirrel away the desired FD so that save_cwd uses a
46992         different one, and then free the dest FD right before calling opendir.
46993         That guarantees opendir will use the required file descriptor.
46995         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
46997 2010-10-08  Bruno Haible  <bruno@clisp.org>
46999         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
47000         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
47002 2010-10-08  Bruno Haible  <bruno@clisp.org>
47004         nanosleep: Make replacement POSIX compliant.
47005         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
47006         is out of range.
47007         Reported by Jim Meyering.
47009 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47011         bootstrap: add hook for altering gnulib.mk, for Bison
47012         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
47013         the Bison bootstrapping process can rewrite file names and variables
47014         in this file before later parts of 'bootstrap' use the file.
47015         Bison wants to include lib/gnulib.mk from the top-level makefile,
47016         so it needs the file names in this file to be relative to the top
47017         level, not relative to lib; plus it needs variable names to be
47018         rewritten.
47019         (slurp): Use the new function.
47021         bootstrap: reformat for readability
47022         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
47024 2010-10-08  Eric Blake  <eblake@redhat.com>
47026         docs: update cygwin progress
47027         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
47028         1.7.7.
47029         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
47030         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
47031         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
47032         * doc/posix-functions/carg.texi (carg): Likewise.
47033         * doc/posix-functions/cargf.texi (cargf): Likewise.
47034         * doc/posix-functions/casin.texi (casin): Likewise.
47035         * doc/posix-functions/casinf.texi (casinf): Likewise.
47036         * doc/posix-functions/casinh.texi (casinh): Likewise.
47037         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
47038         * doc/posix-functions/catan.texi (catan): Likewise.
47039         * doc/posix-functions/catanf.texi (catanf): Likewise.
47040         * doc/posix-functions/catanh.texi (catanh): Likewise.
47041         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
47042         * doc/posix-functions/ccos.texi (ccos): Likewise.
47043         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
47044         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
47045         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
47046         * doc/posix-functions/cexp.texi (cexp): Likewise.
47047         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
47048         * doc/posix-functions/cimag.texi (cimag): Likewise.
47049         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
47050         * doc/posix-functions/clog.texi (clog): Likewise.
47051         * doc/posix-functions/clogf.texi (clogf): Likewise.
47052         * doc/posix-functions/conj.texi (conj): Likewise.
47053         * doc/posix-functions/conjf.texi (conjf): Likewise.
47054         * doc/posix-functions/cpow.texi (cpow): Likewise.
47055         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
47056         * doc/posix-functions/cproj.texi (cproj): Likewise.
47057         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
47058         * doc/posix-functions/creal.texi (creal): Likewise.
47059         * doc/posix-functions/crealf.texi (crealf): Likewise.
47060         * doc/posix-functions/csin.texi (csin): Likewise.
47061         * doc/posix-functions/csinf.texi (csinf): Likewise.
47062         * doc/posix-functions/csinh.texi (csinh): Likewise.
47063         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
47064         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
47065         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
47066         * doc/posix-functions/ctan.texi (ctan): Likewise.
47067         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
47068         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
47069         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
47070         * doc/posix-headers/complex.texi (complex.h): Likewise.
47072 2010-10-07  Jim Meyering  <meyering@redhat.com>
47074         parse-datetime: avoid compilation failure on OpenBSD 4.7
47075         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
47076         This works around a compilation failure on OpenBSD 4.7:
47077         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
47079 2010-10-07  Eric Blake  <eblake@redhat.com>
47081         docs: update cygwin progress
47082         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
47083         1.7.6.
47084         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
47085         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
47086         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
47087         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
47088         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
47089         Likewise.
47090         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
47091         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
47092         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
47093         Likewise.
47094         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
47095         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
47096         Likewise.
47097         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
47098         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
47099         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
47100         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
47101         Likewise.
47102         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
47103         Likewise.
47104         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
47106         docs: update parse-datetime history
47107         * doc/parse-datetime.texi (Authors of parse_datetime): Better
47108         documentation of this function's history and alternatives.
47110         cygwin: use more robust version check
47111         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
47112         exclude an eventual cygwin 1.9.1.
47113         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
47114         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
47115         (gl_FUNC_STRCASESTR): Likewise.
47116         Reported by Bruno Haible.
47118 2010-10-06  Bruno Haible  <bruno@clisp.org>
47120         string, sys_select: Avoid #including large headers unless necessary.
47121         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
47122         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
47123         OSF/1, BeOS, Haiku.
47124         Reported by Jim Meyering.
47126 2010-10-05  Eric Blake  <eblake@redhat.com>
47128         memmem, strstr, strcasestr: fix bug with long periodic needle
47129         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
47130         periodic needle having false positive.
47131         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
47132         and cygwin 1.7.7.
47133         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
47134         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
47135         (gl_FUNC_STRCASESTR): Likewise.
47136         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
47137         * tests/test-memmem.c (main): Expose the bug.
47138         * tests/test-strcasestr.c (main): Likewise.
47139         * tests/test-strstr.c (main): Likewise.
47140         * tests/test-c-strcasestr.c (main): Likewise.
47141         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
47142         * doc/posix-functions/strstr.texi (strstr): Likewise.
47143         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47144         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
47146 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47148         parse-datetime: do some more renaming
47149         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
47150         parse_datetime, not get_date.  Mention the renaming.
47151         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
47152         in comments.
47153         * m4/bison.m4: Likewise.
47155 2010-10-05  Eric Blake  <eblake@redhat.com>
47157         parse-datetime: better name than get_date
47158         * NEWS: Reword the deprecation notice.
47159         * modules/get_date: Rename to modules/parse-datetime.
47160         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
47161         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
47162         * lib/get_date.y: Rename to lib/parse-datetime.y.
47163         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
47164         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
47165         * doc/getdate.texi: Provide fallback wrapper.
47166         * lib/getdate.h: Move guts, and wrap...
47167         * lib/parse-datetime.h: ...new file.
47168         * lib/parse-datetime.y (get_date): Rename...
47169         (parse_datetime): ...to this.
47170         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
47171         (gl_PARSE_DATETIME): ...to this.
47172         * doc/posix-functions/getdate.texi (get_date): Provide fallback
47173         documentation.
47174         * modules/getdate (Files): Provide fallback docs and header.
47175         (Notice, Depends-on): Update references.
47176         * tests/test-parse-datetime.c: Likewise.
47177         * DEPENDENCIES: Likewise.
47178         * MODULES.html.sh (Date and time <time.h>): Likewise.
47179         * doc/parse-datetime.texi (Date input formats)
47180         (Authors of parse_datetime): Likewise.
47181         * modules/parse-datetime (Files, configure.ac, Makefile.am)
47182         (Include): Likewise.
47183         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
47184         * gnulib-tool: Likewise.
47185         * m4/bison.m4 (gl_BISON): Likewise.
47186         Suggested by Bruno Haible.
47188 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47190         more ports to Solaris tr, which needs [] around ranges
47191         * gnulib-tool: Solaris tr needs [] around ranges.
47192         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
47193         * tests/test-pipe-filter-gi1.c (main): Likewise.
47194         * tests/test-pipe-filter-ii1.c (main): Likewise.
47196 2010-10-05  Eric Blake  <eblake@redhat.com>
47198         bootstrap: fix Solaris regression
47199         * build-aux/bootstrap (check_versions): Solaris tr still needs []
47200         around ranges.
47201         Reported by Pádraig Brady.
47203         bootstrap: work with pkg-config
47204         * build-aux/bootstrap (check_versions): Also transliterate - in
47205         prerequisite name.
47206         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
47207         prerequisites that were already found, to avoid confusion.
47208         Reported by Justin Clift.
47210         faccessat: remove unused wrappers
47211         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
47212         presence of these wrappers dragged in -lgen on Solaris.
47213         Reported by Clemens Brogi; fix suggested by Paul Eggert.
47215 2010-10-05  Jim Meyering  <meyering@redhat.com>
47217         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
47218         * Makefile (sc_pragma_columns): New syntax-check rule.
47220 2010-10-04  Bruno Haible  <bruno@clisp.org>
47222         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
47223         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
47224         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
47225         Reported by Bruce Korb and Eric Blake.
47227 2010-10-04  Bruno Haible  <bruno@clisp.org>
47229         threadlib: Make option --with-libpth-prefix work.
47230         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
47231         use $LIBPTH, not just -lpth.
47233 2010-10-04  Bruno Haible  <bruno@clisp.org>
47235         Avoid line length limitation from HP NonStop system header files.
47236         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
47237         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
47238         * lib/ctype.in.h: Likewise.
47239         * lib/dirent.in.h: Likewise.
47240         * lib/errno.in.h: Likewise.
47241         * lib/fcntl.in.h: Likewise.
47242         * lib/float.in.h: Likewise.
47243         * lib/getopt.in.h: Likewise.
47244         * lib/iconv.in.h: Likewise.
47245         * lib/inttypes.in.h: Likewise.
47246         * lib/langinfo.in.h: Likewise.
47247         * lib/locale.in.h: Likewise.
47248         * lib/math.in.h: Likewise.
47249         * lib/netdb.in.h: Likewise.
47250         * lib/netinet_in.in.h: Likewise.
47251         * lib/poll.in.h: Likewise.
47252         * lib/pthread.in.h: Likewise.
47253         * lib/pty.in.h: Likewise.
47254         * lib/sched.in.h: Likewise.
47255         * lib/se-selinux.in.h: Likewise.
47256         * lib/search.in.h: Likewise.
47257         * lib/signal.in.h: Likewise.
47258         * lib/spawn.in.h: Likewise.
47259         * lib/stdarg.in.h: Likewise.
47260         * lib/stddef.in.h: Likewise.
47261         * lib/stdint.in.h: Likewise.
47262         * lib/stdio.in.h: Likewise.
47263         * lib/stdlib.in.h: Likewise.
47264         * lib/string.in.h: Likewise.
47265         * lib/strings.in.h: Likewise.
47266         * lib/sys_file.in.h: Likewise.
47267         * lib/sys_ioctl.in.h: Likewise.
47268         * lib/sys_select.in.h: Likewise.
47269         * lib/sys_socket.in.h: Likewise.
47270         * lib/sys_stat.in.h: Likewise.
47271         * lib/sys_time.in.h: Likewise.
47272         * lib/sys_times.in.h: Likewise.
47273         * lib/sys_utsname.in.h: Likewise.
47274         * lib/sys_wait.in.h: Likewise.
47275         * lib/sysexits.in.h: Likewise.
47276         * lib/termios.in.h: Likewise.
47277         * lib/time.in.h: Likewise.
47278         * lib/unistd.in.h: Likewise.
47279         * lib/wchar.in.h: Likewise.
47280         * lib/wctype.in.h: Likewise.
47281         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
47282         * modules/ctype (Makefile.am): Likewise.
47283         * modules/dirent (Makefile.am): Likewise.
47284         * modules/errno (Makefile.am): Likewise.
47285         * modules/fcntl-h (Makefile.am): Likewise.
47286         * modules/float (Makefile.am): Likewise.
47287         * modules/getopt-posix (Makefile.am): Likewise.
47288         * modules/iconv-h (Makefile.am): Likewise.
47289         * modules/inttypes (Makefile.am): Likewise.
47290         * modules/langinfo (Makefile.am): Likewise.
47291         * modules/locale (Makefile.am): Likewise.
47292         * modules/math (Makefile.am): Likewise.
47293         * modules/netdb (Makefile.am): Likewise.
47294         * modules/netinet_in (Makefile.am): Likewise.
47295         * modules/poll-h (Makefile.am): Likewise.
47296         * modules/pthread (Makefile.am): Likewise.
47297         * modules/pty (Makefile.am): Likewise.
47298         * modules/sched (Makefile.am): Likewise.
47299         * modules/search (Makefile.am): Likewise.
47300         * modules/selinux-h (Makefile.am): Likewise.
47301         * modules/signal (Makefile.am): Likewise.
47302         * modules/spawn (Makefile.am): Likewise.
47303         * modules/stdarg (Makefile.am): Likewise.
47304         * modules/stddef (Makefile.am): Likewise.
47305         * modules/stdint (Makefile.am): Likewise.
47306         * modules/stdio (Makefile.am): Likewise.
47307         * modules/stdlib (Makefile.am): Likewise.
47308         * modules/string (Makefile.am): Likewise.
47309         * modules/strings (Makefile.am): Likewise.
47310         * modules/sys_file (Makefile.am): Likewise.
47311         * modules/sys_ioctl (Makefile.am): Likewise.
47312         * modules/sys_select (Makefile.am): Likewise.
47313         * modules/sys_socket (Makefile.am): Likewise.
47314         * modules/sys_stat (Makefile.am): Likewise.
47315         * modules/sys_time (Makefile.am): Likewise.
47316         * modules/sys_times (Makefile.am): Likewise.
47317         * modules/sys_utsname (Makefile.am): Likewise.
47318         * modules/sys_wait (Makefile.am): Likewise.
47319         * modules/sysexits (Makefile.am): Likewise.
47320         * modules/termios (Makefile.am): Likewise.
47321         * modules/time (Makefile.am): Likewise.
47322         * modules/unistd (Makefile.am): Likewise.
47323         * modules/wchar (Makefile.am): Likewise.
47324         * modules/wctype (Makefile.am): Likewise.
47326 2010-10-04  Bruno Haible  <bruno@clisp.org>
47328         read-file tests: Avoid a test failure on NonStop Kernel.
47329         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
47330         a regular file.
47331         Reported by Joachim Schmitz <schmitz@hp.com>.
47333 2010-10-03  Bruno Haible  <bruno@clisp.org>
47335         gnulib-tool: Fixes for --create-testdir with --libtool.
47336         * gnulib-tool (func_get_automake_snippet): Don't augment
47337         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
47338         an executable.
47339         (func_create_testdir): Handle module 'alloca' like func_import.
47340         Reported by Bruce Korb <bruce.korb@gmail.com>.
47342 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
47344         Avoid some lines longer than 80 characters.
47345         * lib/stdint.in.h: Break long comment lines.
47346         * lib/math.in.h: Likewise.
47347         (_GL_NUM_UINT_WORDS): New macro, for readability.
47348         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
47349         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
47350         * lib/stdlib.in.h: Likewise.
47351         * lib/spawn.in.h: Likewise.
47352         * lib/sys_socket.in.h: Update an URL.
47353         * lib/sys_stat.in.h: Break long line.
47355 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
47357         Improve pmccabe2html.
47358         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
47359         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
47360         when the sources change. Remove the line in the HTML about "Used
47361         ranges" (which implied that there might be other unused ranges),
47362         rename "Resume" to "Summary" (easier to understand for more users).
47363         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
47364         styles, and some unnecessary blank lines.
47366 2010-10-03  Bruno Haible  <bruno@clisp.org>
47367             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
47369         acl: Add support for ACLs on NonStop Kernel.
47370         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
47371         Check whether the function aclsort() exists.
47372         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
47373         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
47374         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
47375         (acl_nontrivial [HAVE_ACLSORT]: New function.
47376         (file_has_acl): Implement for NonStop Kernel.
47377         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
47378         (qset_acl): Implement for NonStop Kernel.
47379         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
47380         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
47381         (main): Implement for NonStop Kernel.
47382         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
47383         Kernel. Handle this flavor.
47384         * tests/test-set-mode-acl.sh: Likewise.
47385         * tests/test-copy-acl.sh: Likewise.
47386         * tests/test-copy-file.sh: Likewise.
47388 2010-10-03  Bruno Haible  <bruno@clisp.org>
47390         Info about ACLs on NonStop Kernel.
47391         * doc/acl-resources.txt: Add info about NonStop Kernel.
47392         References by Joachim Schmitz <schmitz@hp.com>.
47394 2010-10-02  Bruno Haible  <bruno@clisp.org>
47396         Define missing EDQUOT on NonStop Kernel.
47397         * lib/errno.in.h (EDQUOT): Assign a value if missing.
47398         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
47399         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
47400         missing.
47401         * doc/posix-headers/errno.texi: Mention the NSK bug.
47402         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
47403         Reported by Joachim Schmitz <schmitz@hp.com>.
47405 2010-10-02  Bruno Haible  <bruno@clisp.org>
47407         Update doc for POSIX:2008.
47408         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
47409         Update URL of POSIX specification.
47411 2010-10-02  Bruno Haible  <bruno@clisp.org>
47413         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
47414         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
47415         from gnulib, not from Automake.
47417 2010-10-02  Bruno Haible  <bruno@clisp.org>
47419         New module 'system-posix'.
47420         * modules/system-posix: New file.
47421         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
47422         module is present.
47423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47424         GNULIB_SYSTEM_POSIX.
47425         * modules/stdlib (Depends-on): Remove sys_wait.
47426         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
47427         * doc/posix-functions/system.texi: Mention the new module.
47428         * doc/posix-headers/stdlib.texi: Likewise.
47429         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
47430         define test_sys_wait_macros to a no-op.
47431         Reported by Sam Steingold <sds@gnu.org>.
47433 2010-09-30  Bruno Haible  <bruno@clisp.org>
47435         More renaming from 'getdate' to 'get_date'.
47436         * doc/get_date.texi: Renamed from doc/getdate.texi.
47437         * modules/get_date (Files): Update.
47438         * MODULES.html.sh (Date and time <time.h>): Update.
47439         * DEPENDENCIES: Update.
47440         * gnulib-tool: Update comment.
47441         * m4/bison.m4 (gl_BISON): Likewise.
47442         * m4/get_date.m4 (gl_GET_DATE): Likewise.
47444 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
47446         bootstrap: support ACLOCAL_FLAGS during aclocal
47447         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
47448         can add additional -I dir for third-party .m4 files.
47450 2010-09-30  Eric Blake  <eblake@redhat.com>
47452         bootstrap: use glibtoolize on MacOS
47453         * build-aux/bootstrap (check_versions): Convert libtool into
47454         libtoolize.
47455         (tool search): Move libtool check earlier, and look for
47456         glibtoolize for MacOS.
47457         (gnulib_tool_options): Auto-add --libtool when appropriate.
47458         Reported by Justin Clift.
47460         poll: fix typo that broke test on MacOS
47461         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
47462         Reported by Justin Clift.
47464         getdate: rename to get_date
47465         Note: getdate.h is not renamed, to minimize client impact.
47466         * modules/getdate: Mark obsolete.  Move old contents...
47467         * modules/get_date: ...to new module name.
47468         * modules/getdate-tests: Move...
47469         * modules/get_date-tests: ...here.
47470         * m4/getdate.m4: Move...
47471         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
47472         * lib/getdate.y: Move...
47473         * lib/get_date.y: ...here.
47474         * tests/test-getdate.c: Move...
47475         * tests/test-get_date.c: ...here.
47476         * doc/posix-functions/getdate.texi (getdate): Update name.
47477         * NEWS: Mention the change.
47479 2010-09-29  Bruno Haible  <bruno@clisp.org>
47481         Separate the module 'waitpid' from the module 'sys_wait'.
47482         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
47483         present.
47484         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
47485         gl_MODULE_INDICATOR_FOR_TESTS.
47486         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
47487         * modules/sys_wait (Depends-on): Remove waitpid.
47488         (Makefile.am): Substitute GNULIB_WAITPID.
47489         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
47490         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
47491         signature only if the 'waitpid' module is present.
47492         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
47493         * NEWS: Mention the change.
47494         * modules/grantpt (Depends-on): Add waitpid.
47495         * modules/wait-process (Depends-on): Likewise.
47497 2010-09-29  Bruno Haible  <bruno@clisp.org>
47499         More tests for module 'sys_wait'.
47500         * modules/sys_wait-c++-tests: New file.
47501         * tests/test-sys_wait-c++.cc: New file.
47502         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
47503         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
47505 2010-09-29  Bruno Haible  <bruno@clisp.org>
47507         New module 'waitpid'.
47508         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
47509         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
47510         Don't include <process.h>.
47511         (waitpid): Declare only, using modern idiom.
47512         * m4/waitpid.m4: New file.
47513         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
47514         * modules/waitpid: New file.
47515         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
47516         (Makefile.am): Update.
47517         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
47519 2010-09-28  Bruno Haible  <bruno@clisp.org>
47521         poll: Assume ANSI C.
47522         * lib/poll.c (poll): Use an ANSI C declaration.
47524 2010-09-28  Bruno Haible  <bruno@clisp.org>
47526         poll-h: Create poll.h on all platforms.
47527         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
47528         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
47529         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
47530         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
47531         (gl_REPLACE_POLL_H): Don't set POLL_H.
47532         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
47533         * modules/poll-h (Depends-on): Add include_next.
47534         (Makefile.am): Create poll.h unconditionally. Substitute also
47535         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
47537 2010-09-28  Bruno Haible  <bruno@clisp.org>
47539         Tests for module 'poll-h'.
47540         * modules/poll-h-c++-tests: New file.
47541         * tests/test-poll-h-c++.cc: New file.
47543         Tests for module 'poll-h'.
47544         * modules/poll-h-tests: New file.
47545         * tests/test-poll-h.c: New file.
47547 2010-09-28  Bruno Haible  <bruno@clisp.org>
47549         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
47550         * modules/poll-h (Depends-on): Add 'extensions'.
47552 2010-09-28  Bruno Haible  <bruno@clisp.org>
47554         New module 'poll-h'.
47555         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
47556         (poll): Use modern idiom.
47557         * modules/poll-h: New file.
47558         * modules/poll (Files): Remove lib/poll.in.h.
47559         (Depends-on): Add poll-h.
47560         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
47561         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
47562         * m4/poll_h.m4: New file.
47563         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
47564         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
47565         and invoke gl_REPLACE_POLL_H.
47566         * lib/poll.c: Use common idiom.
47567         * tests/test-poll.c: Likewise.
47568         * doc/posix-headers/poll.texi: Mention the poll-h module.
47569         Suggested by Eric Blake.
47571 2010-09-26  Bruno Haible  <bruno@clisp.org>
47573         sys_wait: Implement WSTOPSIG.
47574         * lib/sys_wait.in.h (WSTOPSIG): New macro.
47575         Reported by Simon Josefsson.
47577 2010-09-26  Simon Josefsson  <simon@josefsson.org>
47579         stdlib, sys_wait: Avoid compilation error on mingw.
47580         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
47582 2010-09-26  Bruno Haible  <bruno@clisp.org>
47584         stdlib tests: Avoid code duplication.
47585         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
47586         * modules/sys_wait-tests (Files): Likewise.
47587         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
47588         * tests/test-stdlib.c: Include test-sys_wait.h.
47589         (main): Invoke test_sys_wait_macros.
47590         * tests/test-sys_wait.c: Include test-sys_wait.h.
47591         (main): Invoke test_sys_wait_macros.
47593 2010-09-25  Simon Josefsson  <simon@josefsson.org>
47595         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
47596         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
47597         sure Windows sockets are working before calling getaddrinfo.
47598         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
47599         * doc/gnulib.texi (Windows sockets): Fix typo.
47601 2010-09-25  Bruno Haible  <bruno@clisp.org>
47603         Tests for module 'regex-quote'.
47604         * modules/regex-quote-tests: New file.
47605         * tests/test-regex-quote.c: New file.
47607         New module 'regex-quote'.
47608         * lib/regex-quote.h: New file.
47609         * lib/regex-quote.c: New file.
47610         * modules/regex-quote: New file.
47611         Suggested by Reuben Thomas <rrt@sc3d.org>.
47613 2010-09-24  Bruno Haible  <bruno@clisp.org>
47615         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
47616         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
47618 2010-09-23  Bruno Haible  <bruno@clisp.org>
47620         setenv: Relax license.
47621         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
47622         Blake.
47623         Requested by Eric Blake.
47625 2010-09-22  Bruno Haible  <bruno@clisp.org>
47627         termios: Relax license.
47628         * modules/termios (License): Change to LGPLv2+.
47629         Requested by Eric Blake.
47631 2010-09-22  Bruno Haible  <bruno@clisp.org>
47633         threadlib: Allow the package to change the default to 'no'.
47634         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
47635         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
47636         Reported by Paul Eggert.
47638 2010-09-22  Pádraig Brady  <P@draigbrady.com>
47639             Bruno Haible  <bruno@clisp.org>
47641         Fix endless loop in mbmemcasecoll.
47642         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
47643         byte.
47644         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
47646 2010-09-22  Bruno Haible  <bruno@clisp.org>
47648         Tests for module 'memcoll'.
47649         * modules/memcoll-tests: New file.
47650         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
47652         memcoll, xmemcoll: Clarify size vs. length.
47653         * modules/memcoll.c (memcoll0): Clarify specification.
47654         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
47655         passed to collate_error.
47657 2010-09-22  Bruno Haible  <bruno@clisp.org>
47659         Tests for module 'memcasecmp'.
47660         * modules/memcasecmp-tests: New file.
47661         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
47663 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47665         * lib/pthread.in.h: Add split double-inclusion guard, and include
47666         system <pthread.h> if there is one.  Use @@-style as in other
47667         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
47668         pthread.h doesn't.
47669         (pthread_mutexattr_destroy, pthread_mutexattr_init):
47670         (pthread_mutexattr_settype, pthread_mutex_trylock):
47671         New static inline functions, if there's no system <pthread.h>.
47672         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
47673         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
47674         Approximate with mutexes if the system lacks spinlocks, as in
47675         MacOS.
47676         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
47677         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
47678         @@-style.  Check for spinlocks separately.
47679         (gl_PTHREAD_DEFAULTS): New macro.
47680         * modules/pthread: Redo to use a more typical style for in.h files.
47682 2010-09-21  Eric Blake  <eblake@redhat.com>
47684         net_if: enhance tests
47685         * tests/test-net_if.c (main): Move signature checks earlier.
47686         Print failures to stderr.
47687         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
47688         Document the bug that we do not yet fix.
47690 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
47692         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
47693         about gnulib, not GSS.
47695 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
47697         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
47698         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
47699         for Emacs.
47700         * build-aux/pmccabe2html: Make Makefile.am example code more
47701         cut-and-paste friendly.
47703 2010-09-21  Simon Josefsson  <simon@josefsson.org>
47705         * tests/test-net_if.c: New file.
47706         * modules/net_if-tests: New file.
47708 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
47710         pthread: add pthread_spin_destroy
47711         * lib/pthread.in.h (pthread_spin_destroy): New function.
47713 2010-09-19  Bruno Haible  <bruno@clisp.org>
47715         gnulib-tool: Fix --help output.
47716         * gnulib-tool (func_usage): Fix help message.
47717         Reported by Reuben Thomas <rrt@sc3d.org>.
47719 2010-09-18  Jim Meyering  <meyering@redhat.com>
47721         maint.mk: avoid unexpanded \n in two diagnostics
47722         * top/maint.mk (sc_prohibit_always_true_header_tests):
47723         Don't use a literal \n in a halt=... assignment.  It would not be
47724         expanded, and the two \n bytes would appear in the diagnostic output
47725         rather than the desired newline.  Use halt=$$(printf ... instead.
47726         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
47728 2010-09-18  Bruno Haible  <bruno@clisp.org>
47730         netinet_in: Doc tweak.
47731         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
47732         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
47734 2010-09-18  Jim Meyering  <meyering@redhat.com>
47736         init.sh: correct an outdated comment
47737         * tests/init.sh (create_exe_shims_):  s/function/alias/
47739         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
47740         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
47741         a file named "*.exe" is removed between the glob expansion and the
47742         processing of that oddly named file.
47744 2010-09-17  Eric Blake  <eblake@redhat.com>
47746         mirbsd: add some more support
47747         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
47748         in BSD family.
47749         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
47750         devices as OpenBSD.
47751         * m4/host-os.m4 (mirbsd): Add MirBSD.
47753         tests: fix unportable assumption on sys/wait.h
47754         * tests/test-sys_wait.c (main): Relax test.
47755         * tests/test-stdlib.c (main): Likewise.
47757         init.sh: accommodate directory with no .exes
47758         * tests/init.sh: Accomodate directory containing only scripts.
47760         tests: avoid compiler warning
47761         * tests/test-stdlib.c (main): Use the variable.
47763         fdutimens, fdutimensat: update signature, again
47764         * lib/utimens.h (gl_futimens): Delete, and move signature...
47765         (fdutimens): ...here.
47766         (fdutimensat): Rearrange signature.
47767         (lutimensat): Rename variable for clarity.
47768         * lib/fdutimensat.c (fdutimensat): Update signature.
47769         * lib/utimens.c (fdutimens): Likewise.
47770         (gl_futimens): Delete.
47771         (utimens, lutimens): Update callers.
47772         * lib/futimens.c (futimens): Likewise.
47773         * tests/test-fdutimensat.c: Likewise.
47774         * tests/test-utimens.c: Likewise.
47775         * tests/test-futimens.h: Update comment.
47776         * NEWS: Mention this.
47777         Suggested by Paul Eggert.
47779 2010-09-17  Bruno Haible  <bruno@clisp.org>
47781         Take over the maintenance of some older macros from Autoconf.
47782         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
47783         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
47784         GNU Autoconf.
47785         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
47786         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
47788 2010-09-17  Eric Blake  <eblake@redhat.com>
47790         fdutimensat: drop atflag validation
47791         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
47792         with valid fd, to close a race scenario where futimens is
47793         unsupported and FILE was replaced by a symlink.
47794         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
47795         accordingly.
47796         Suggested by Paul Eggert.
47798 2010-09-16  Bruno Haible  <bruno@clisp.org>
47800         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
47801         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
47803 2010-09-16  Bruno Haible  <bruno@clisp.org>
47805         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
47806         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
47807         login_tty exists.
47808         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
47810 2010-09-16  Bruno Haible  <bruno@clisp.org>
47812         login_tty: Make the replacement code work on BSD systems.
47813         * lib/login_tty.c: Include <sys/ioctl.h>.
47814         (login_tty): Use ioctl TIOCSCTTY when available.
47815         * modules/login_tty (Depends-on): Add sys_ioctl.
47816         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
47818 2010-09-16  Bruno Haible  <bruno@clisp.org>
47820         login_tty: Stricter unit test.
47821         * modules/login_tty-tests (Depends-on): Add tcgetsid.
47822         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
47823         and tcgetsid() after login_tty.
47824         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
47826 2010-09-16  Bruno Haible  <bruno@clisp.org>
47828         New module 'tcgetsid'.
47829         * lib/tcgetsid.c: New file.
47830         * m4/tcgetsid.m4: New file.
47831         * modules/tcgetsid: New file.
47832         * modules/termios (Depends-on): Add c++defs, warn-on-use.
47833         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
47834         GNULIB_TCGETSID, HAVE_TCGETSID.
47835         * lib/termios.in.h: Include <sys/types.h>.
47836         (tcgetsid): New declaration.
47837         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
47838         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
47839         * doc/posix-functions/tcgetsid.texi: Mention the new module.
47840         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
47842 2010-09-16  Bruno Haible  <bruno@clisp.org>
47844         Tests for module 'termios'.
47845         * modules/termios-c++-tests: New file.
47846         * modules/termios-tests: New file.
47847         * tests/test-termios-c++.cc: New file.
47848         * tests/test-termios.c: New file.
47850         New module 'termios'.
47851         * modules/termios: New file.
47852         * lib/termios.in.h: New file.
47853         * m4/termios_h.m4: New file.
47854         * doc/posix-headers/termios.texi: Mention the new module.
47856 2010-09-16  Eric Blake  <eblake@redhat.com>
47858         fdutimensat: add an atflag parameter
47859         * lib/fdutimensat.c (fdutimensat): Add new parameter.
47860         * lib/utimens.h (fdutimensat): Update prototype.
47861         * tests/test-fdutimensat.c: Adjust test to match.
47862         * NEWS: Document the change.
47863         Suggested by Paul Eggert.
47865 2010-09-16  Bruno Haible  <bruno@clisp.org>
47867         Fix typos in comments.
47868         * lib/striconveh.h: Fix typo in comment.
47869         * lib/login_tty.c (login_tty): Likewise.
47871 2010-09-15  Bruno Haible  <bruno@clisp.org>
47873         stdlib: clarify MirBSD WEXITSTATUS bug
47874         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
47875         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47877 2010-09-15  Eric Blake  <eblake@redhat.com>
47879         stdlib: work around MirBSD WEXITSTATUS bug
47880         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
47881         * modules/stdlib (Depends-on): Add sys_wait.
47882         * tests/test-sys_wait.c (main): Enhance test.
47883         * tests/test-stdlib.c (main): Likewise.
47884         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
47886         docs: mention MacOS issue with WEXITSTATUS(constant)
47887         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
47888         issue.
47889         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47891         strnlen: add tests
47892         * modules/strnlen-tests: New file.
47893         * tests/test-strnlen.c: Likewise.
47895 2010-09-14  Bruno Haible  <bruno@clisp.org>
47897         unistr/base: Avoid link errors when module 'libunistring' is also used.
47898         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
47899         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
47900         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
47901         Declare also when HAVE_LIBUNISTRING is set.
47902         Reported by Pádraig Brady <P@draigbrady.com>.
47904 2010-09-14  Eric Blake  <eblake@redhat.com>
47906         test-rawmemchr: make more robust
47907         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
47908         (Depends-on, configure.ac): Add needed prerequisites to use it.
47909         * modules/memchr-tests (Files, Depends-on, configure.ac):
47910         Likewise, to avoid implicit reliance on memchr module prereqs.
47911         * tests/test-memchr.c (main): Ensure proper masking.
47912         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
47913         reads.
47915         memchr: detect glibc Alpha bug
47916         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
47917         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
47918         Alpha.
47919         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
47920         * tests/test-memchr.c (main): Enhance test.
47921         Reported by Nelson H. F. Beebe.
47923 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
47925         fts, getcwd, glob: audit for dirfd returning -1
47926         * lib/fts.c (opendir): Remove #define; no longer used.
47927         (opendirat): New arg PDIR_FD.  All callers changed.
47928         (fts_build, _opendir2): Use new opendirat to avoid the need for
47929         dirfd, or for checking whether dirfd returns a negative value.
47930         Don't use opendir; always use openat followed by fdopendir.
47931         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
47932         it.
47933         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
47934         returns -1 here.
47935         * modules/fts (Depends-on): Remove dirfd.
47936         * modules/getcwd (Depends-on): Likewise.
47938 2010-09-13  Eric Blake  <eblake@redhat.com>
47940         float: fix broken MirBSD header
47941         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
47942         * doc/posix-headers/float.texi (float.h): Document it.
47944 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
47946         fts: use O_NOFOLLOW to avoid race condition when opening a directory
47947         * lib/fts.c (opendirat): New arg extra_flags.
47948         (__opendir2): Use it to avoid following symlinks when opening
47949         a directory, if symlinks are not supposed to be followed.  See
47950         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
47952         fdopendir: preserve argument fd before returning
47953         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
47954         (fdopendir_with_dup, fd_clone_opendir): New static functions.
47955         (fdopendir): Use them, arranging for FD to be open to the same
47956         directory that it was when it started.  (It might be temporarily
47957         closed while fdopendir is running, so this not thread- or
47958         signal-safe.)  Be careful to do the right thing even when file
47959         descriptors are scarce and dup fails with errno == EMFILE.  See
47960         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
47962 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
47964         regex: Pass the system regex if its only problem is 32-bit regoff_t.
47965         * NEWS: Document change.
47966         * m4/regex.m4: Disable test for regoff_t size.
47968 2010-09-13  Jim Meyering  <meyering@redhat.com>
47970         fts: don't operate on an invalid file descriptor after failed dup
47971         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
47972         negative file descriptor.
47974 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
47976         savedir: add streamsavedir, deprecate fdsavedir
47977         * NEWS: Mention deprecation of fdsavedir.
47978         * lib/savedir.c (streamsavedir): New extern function, whose name
47979         ends in "savedir" to be consistent with the others.  This differs
47980         from savedirstream in that it doesn't close its argument.  The
47981         next version of GNU tar will use this instead of fdsavedir, to
47982         avoid some race conditions and conserve file descriptors.
47983         (savedirstream): Reimplement as a wrapper around streamsavedir.
47984         (fdsavedir): Add a comment deprecating this function.  As far as
47985         I know, only GNU tar used it, and GNU tar doesn't need it any more.
47986         * lib/savedir.h (streamsavedir): New decl.
47987         (fdsavedir): Add a comment deprecating this.
47989 2010-09-10  Bruno Haible  <bruno@clisp.org>
47991         langinfo: Fix last commit.
47992         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
47993         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
47994         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47996 2010-09-10  Bruno Haible  <bruno@clisp.org>
47998         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
47999         * lib/progreloc.c (O_EXEC): Define fallback.
48001 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
48003         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
48004         * NEWS: Document recent changes to fcntl-h.
48005         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
48006         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
48007         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
48008         Similarly for O_SEARCH; this last was already true, but not documented.
48009         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
48010         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
48011         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
48012         Likewise.
48013         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
48014         is zero, not whether it is defined.
48015         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
48016         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
48017         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
48019 2010-09-10  Bruno Haible  <bruno@clisp.org>
48021         langinfo, nl_langinfo: Fix for IRIX 5.3.
48022         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
48023         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
48024         HAVE_LANGINFO_YESEXPR.
48025         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
48026         HAVE_LANGINFO_YESEXPR.
48027         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
48028         HAVE_LANGINFO_T_FMT_AMPM is 0.
48029         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
48030         HAVE_LANGINFO_YESEXPR is 0.
48031         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
48032         NOEXPR.
48033         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
48034         * doc/posix-functions/nl_langinfo.texi: Likewise.
48035         Reported by Eric Blake.
48037 2010-09-10  Bruno Haible  <bruno@clisp.org>
48039         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
48040         * doc/glibc-functions/login_tty.texi: Mention the include file problem
48041         on FreeBSD 8.0 and OpenBSD 4.6.
48042         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
48043         * m4/pty_h.m4 (gl_PTY_H): Likewise.
48044         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
48045         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
48046         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
48047         ac_includes_default.
48048         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48050 2010-09-09  Eric Blake  <eblake@redhat.com>
48052         strsignal: work around NetBSD bug
48053         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
48054         * lib/string.in.h (includes): Likewise.
48055         * doc/posix-functions/strsignal.texi (strsignal): Document the
48056         bug.
48057         Reported by Nelson H. F. Beebe.
48059         gnulib-tool: work with NetBSD /bin/sh
48060         * gnulib-tool (func_cache_var, func_cache_lookup_module)
48061         (func_get_description, func_get_comment, func_get_status)
48062         (func_get_notice, func_get_applicability, func_get_filelist)
48063         (func_get_dependencies, func_get_autoconf_early_snippet)
48064         (func_get_autoconf_snippet, func_get_automake_snippet)
48065         (func_get_include_directive, func_get_link_directive)
48066         (func_get_license, func_get_maintainer, func_import): Avoid
48067         shell syntax errors from parsing syntax extensions.
48069 2010-09-09  Bruno Haible  <bruno@clisp.org>
48071         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
48072         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
48073         a reliable way to determine whether the 'alias' command works.
48075 2010-09-08  Jim Meyering  <meyering@redhat.com>
48077         init.sh: penalize a set-x-impaired shell; don't disqualify it
48078         * tests/init.sh: Too many shells corrupt application stderr when
48079         you set -x, so we can't afford to disqualify them, since at least
48080         on Irix-6.5, that would disqualify all bourne shells.
48081         Instead, use a two-pass approach.
48082         On the first pass, try to find a shell that meets the stricter
48083         condition that set -x does not corrupt stderr.
48084         If no shell meets the stricter condition, retest each candidate
48085         shell, but without that extra condition.  Finally, when
48086         VERBOSE=yes is requested and set -x might cause trouble, simply
48087         issue a warning and refrain from enabling debug output.
48089 2010-09-08  Eric Blake  <eblake@redhat.com>
48091         unsetenv: fix OpenBSD bug
48092         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
48093         * doc/posix-functions/unsetenv.texi (unsetenv): Update
48094         documentation.
48095         Reported by Jim Meyering.
48097         strtod: work around IRIX 6.5 bug
48098         * lib/strtod.c (strtod): Reparse number on shorter string if
48099         exponent parse was invalid.
48100         * tests/test-strtod.c (main): Add check for "0x1p 2".
48101         Reported by Tom G. Christensen.
48103         getopt: optimize previous patch
48104         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
48105         empty variable.  Speed up awk script.
48106         Reported by Paolo Bonzini.
48108 2010-09-08  Jim Meyering  <meyering@redhat.com>
48110         test.sh: disqualify shells for which set -x corrupts stderr
48111         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
48112         and OpenBSD 4.7.  They make it so with "set -x", environment settings
48113         appear in stderr output.  For example, this command:
48114             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
48115         prints "P=1" on those two systems:
48117 2010-09-08  Bruno Haible  <bruno@clisp.org>
48119         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
48120         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
48121         commands, because some shells ignore redirections when there is an
48122         error in the command lookup.
48123         Reported by Eric Blake.
48125 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
48127         * lib/regex.h: Fix a mention of `regex_compile' (should be
48128         `re_compile_pattern').
48129         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
48130         (re_set_registers): Correct name of parameter in comment.
48132         * doc/regex.texi: Add documentation for missing syntax flags.
48133         Remove commented-out documentation of defunct syntax option
48134         RE_NO_EMPTY_ALTS.
48135         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
48136         Add documentation of re_set_registers.
48137         Document trick to re-use a pattern buffer by setting fastmap manually.
48138         Update documentation of struct re_pattern_buffer per public members.
48139         Uncomment documentation of equivalence class operators and
48140         collating symbol operators, since they are now implemented,
48141         Explain leftmost-longest matching in relation to alternatives.
48142         Tidy documentation of substring matching.
48143         Remove POSIX documentation, which is done better in
48144         glibc, and refer the reader there. Keep BSD API documentation, as
48145         that is not readily available elsewhere.
48147 2010-09-07  Eric Blake  <eblake@redhat.com>
48149         getopt: handle POSIXLY_CORRECT set but not exported
48150         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
48151         export state of POSIXLY_CORRECT, due to bash set -o posix.
48152         Reported by Dustin J. Mitchell.
48154 2010-09-05  Bruno Haible  <bruno@clisp.org>
48156         gnulib-tool: Highlight the changed options.
48157         * gnulib-tool (func_usage): Display the --import, --add-import,
48158         --remove-import explanations in bold font.
48160 2010-09-06  Karl Berry  <karl@gnu.org>
48162         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
48164 2010-09-05  Bruno Haible  <bruno@clisp.org>
48166         uniwidth/width: Update comment.
48167         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
48168         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
48170 2010-09-05  Bruno Haible  <bruno@clisp.org>
48172         isinf, isnan: Relax license.
48173         * modules/isinf (License): Change from GPL to LGPL, with consent from
48174         Ben Pfaff.
48175         * modules/isnan (License): Likewise.
48176         Requested by Ludovic Courtès.
48178 2010-09-04  Bruno Haible  <bruno@clisp.org>
48180         gnulib-tool: Help migration from --import to --add-import or --update.
48181         * gnulib-tool: Emit a verbose error message when --import is used
48182         without any module name.
48184 2010-09-04  Bruno Haible  <bruno@clisp.org>
48186         Update doc about gnulib-tool.
48187         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
48188         'gnulib-tool --update' in more detail.
48189         Reported by Eric Blake.
48191 2010-09-04  Bruno Haible  <bruno@clisp.org>
48193         gnulib-tool: Change --import. New options --add/remove-import.
48194         * gnulib-tool: New options --add-import, --remove-import.
48195         (func_usage): Document them.
48196         (have_associative): Define always.
48197         (func_import): In import mode, don't merge the specified settings with
48198         the cached settings. Implement remove-import mode.
48199         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
48200         Explain when to use them versus --import.
48201         (Simple update): Use --add-import instead of --import.
48202         * NEWS: Mention the change.
48204 2010-09-04  Bruno Haible  <bruno@clisp.org>
48206         * doc/gnulib-tool.texi (Initial import): Update paragraph about
48207         separate gnulib.mk.
48209 2010-09-04  Bruno Haible  <bruno@clisp.org>
48211         gnulib-tool: Don't talk about CVS any more.
48212         * gnulib-tool (func_usage, func_import): Write "version control"
48213         instead of CVS.
48215 2010-09-04  Jim Meyering  <meyering@redhat.com>
48217         maint.mk: avoid obscure sc_copyright_check failure in coreutils
48218         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
48219         false positives (whose names may be ill-chosen) when searching
48220         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
48221         would cause a false-positive.
48223         avoid coreutils "make distcheck" failure
48224         Coreutils tests with an absolute build directory name that contains
48225         a space.  Not quoting this directory name caused a failure.
48226         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
48227         * tests/test-vc-list-files-cvs.sh: Likewise.
48229 2010-09-04  Bruno Haible  <bruno@clisp.org>
48231         gnulib-tool: Avoid error when run in a package without Makefile.am.
48232         * gnulib-tool: When collecting the m4dirs in a package that does not
48233         have a Makefile.am, eliminate those directories that contain no
48234         gnulib-cache.m4. Fix expression that counts these directories.
48236 2010-09-04  Bruno Haible  <bruno@clisp.org>
48238         update-copyright test: Improve output when perl is missing or too old.
48239         * tests/test-update-copyright.sh: Move test of Perl version down after
48240         the test whether Perl exists. Provide an explanation relating Perl's
48241         error message to Automake's SKIP: message.
48243 2010-09-04  Bruno Haible  <bruno@clisp.org>
48245         Don't augment PATH in TESTS_ENVIRONMENT.
48246         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
48247         set abs_aux_dir instead of augmenting PATH.
48248         * modules/vc-list-files-tests (Makefile.am): Likewise.
48249         * tests/test-update-copyright.sh: Augment PATH here.
48250         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
48251         path_prepend_.
48252         * tests/test-vc-list-files-git.sh: Likewise.
48254 2010-09-04  Jim Meyering  <meyering@redhat.com>
48256         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
48257         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
48259 2010-09-04  Bruno Haible  <bruno@clisp.org>
48261         strdup: Fix compilation error in C++ mode.
48262         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
48263         the macro.
48265 2010-09-04  Bruno Haible  <bruno@clisp.org>
48267         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
48268         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
48269         macro into a function.
48270         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
48272 2010-09-04  Bruno Haible  <bruno@clisp.org>
48274         Set PATH_SEPARATOR the same way autoconf does.
48275         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
48276         the value of PATH_SEPARATOR the same way autoconf-generated configure
48277         scripts do.
48278         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
48279         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48281 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
48283         Set PATH_SEPARATOR the same way autoconf does.
48284         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
48285         the same way autoconf-generated configure scripts do.
48286         * posix-modules: Likewise.
48288 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48290         hash: fix safe_hasher const typo
48291         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
48292         const; otherwise, there is a type error later.
48294 2010-09-02  Jim Meyering  <meyering@redhat.com>
48296         test-update-copyright.sh: require perl 5.8.0
48297         * tests/test-update-copyright.sh: Require 5.8.0,
48298         which Tom G. Christensen has confirmed is adequate,
48299         while 5.6.1 is not.
48301 2010-09-02  Eric Blake  <eblake@redhat.com>
48303         tests: init.sh improvements for re-exec'ing with zsh
48304         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
48305         -vx through shell re-exec.
48306         Reported by Tom G. Christensen.
48308         wctype: fix typo in previous commit
48309         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
48310         Reported by Ludovic Courtès.
48312 2010-09-02  Jim Meyering  <meyering@redhat.com>
48314         test-update-copyright.sh: skip test if Perl is too old
48315         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
48316         Reported by Tom G. Christensen.
48318 2010-09-02  Bruno Haible  <bruno@clisp.org>
48320         wctype: Avoid compilation error on IRIX 6.5.30.
48321         * lib/wctype.in.h (iswblank): Declare with a replacement if
48322         REPLACE_ISWBLANK is set.
48323         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
48324         declared. Set REPLACE_ISWBLANK.
48325         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
48326         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
48327         * doc/posix-headers/wctype.texi: Likewise.
48328         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48330 2010-09-01  Bruno Haible  <bruno@clisp.org>
48332         New module 'socketlib'.
48333         * modules/socketlib: New file.
48334         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
48335         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
48336         * modules/sockets (Depends-on): Add socketlib.
48337         Suggested by Sam Steingold <sds@gnu.org>.
48339 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48341         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
48343         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
48344         when one needs search access to a directory but not read access.
48345         On systems where it is available, it works in some cases where
48346         O_RDONLY does not, namely on directories that are searchable but
48347         not readable, and which need only to be searchable.  If O_SEARCH
48348         is not available, fall back to the traditional method of using
48349         O_RDONLY.
48351         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
48352         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
48353         when opening a directory that needs only to be searchable.
48354         * lib/chdir-safer.c (chdir_no_follow): Likewise.
48355         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
48356         * lib/openat-proc.c (openat_proc_name): Likewise.
48357         * lib/openat.c (openat_needs_fchdir): Likewise.
48358         * lib/save-cwd.c (save_cwd): Likewise.
48359         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
48361 2010-08-28  Bruno Haible  <bruno@clisp.org>
48363         New module 'host-cpu-c-abi'.
48364         * modules/host-cpu-c-abi: New file.
48365         * m4/host-cpu-c-abi.m4: New file, based on part of
48366         clisp/src/m4/general.m4.
48367         Requested by Sam Steingold <sds@gnu.org>.
48369 2010-08-31  Eric Blake  <eblake@redhat.com>
48370         and Jim Meyering  <meyering@redhat.com>
48372         hash: factor, and guard against misbehaving hasher function
48373         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
48374         of table->hasher's return value.  Also protect against a hash value
48375         so large that adding it to table->bucket results in a NULL pointer.
48376         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
48377         Use it in place of open-coded check-and-abort.
48379 2010-08-30  Bruno Haible  <bruno@clisp.org>
48381         hash: silence spurious clang warning
48382         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
48383         Reported by Eric Blake.
48385 2010-08-30  Eric Blake  <eblake@redhat.com>
48387         strstr, memmem, strcasestr: avoid leaked shell message
48388         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
48389         FreeBSD.
48390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48391         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48393         tests: silence clang warning
48394         * tests/test-malloca.c (do_allocation): Avoid dead store.
48396 2010-08-29  Bruno Haible  <bruno@clisp.org>
48398         gettext: Fix recent mistake.
48399         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
48401 2010-08-29  Bruno Haible  <bruno@clisp.org>
48403         selinux-h: Offer a --without-selinux option.
48404         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
48405         --without-selinux was specified, skip all tests and define
48406         HAVE_SELINUX_SELINUX_H to 0.
48407         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
48408         set LIB_SELINUX to empty.
48409         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
48410         gl_LIBSELINUX. If --without-selinux was specified, replace
48411         selinux/context.h.
48412         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
48414 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48415             Bruno Haible  <bruno@clisp.org>
48417         Make the module 'realloc-gnu' work again on AIX and OSF/1.
48418         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
48419         of HAVE_REALLOC.
48420         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
48421         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
48422         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
48423         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
48425 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48426             Bruno Haible  <bruno@clisp.org>
48428         Make the module 'calloc-gnu' work again on AIX and OSF/1.
48429         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
48430         HAVE_CALLOC.
48431         * lib/xmalloc.c: Update accordingly.
48432         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
48433         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
48434         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
48436 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48437             Bruno Haible  <bruno@clisp.org>
48439         Make the module 'malloc-gnu' work again on AIX and OSF/1.
48440         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
48441         HAVE_MALLOC.
48442         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
48443         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
48444         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
48446 2010-08-29  Bruno Haible  <bruno@clisp.org>
48448         Update modules list.
48449         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
48450         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
48451         (String handling <string.h>): Add astrxfrm.
48452         (File system functions): Add readlinkat.
48454 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48456         Tests for module 'realloc-gnu'.
48457         * modules/realloc-gnu-tests: New file.
48458         * tests/test-realloc-gnu.c: New file.
48460         Tests for module 'calloc-gnu'.
48461         * modules/calloc-gnu-tests: New file.
48462         * tests/test-calloc-gnu.c: New file.
48464         Tests for module 'malloc-gnu'.
48465         * modules/malloc-gnu-tests: New file.
48466         * tests/test-malloc-gnu.c: New file.
48468 2010-08-28  Bruno Haible  <bruno@clisp.org>
48470         Rename module 'realloc' -> 'realloc-gnu'.
48471         * modules/realloc-gnu: New file, copied from modules/realloc.
48472         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
48473         obsolete.
48474         * modules/mgetgroups (Depends-on): Update.
48475         * doc/posix-functions/realloc.texi: Update.
48476         * NEWS: Mention the change.
48478         Rename module 'calloc' -> 'calloc-gnu'.
48479         * modules/calloc-gnu: New file, copied from modules/calloc.
48480         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
48481         obsolete.
48482         * doc/posix-functions/calloc.texi: Update.
48483         * NEWS: Mention the change.
48485         Rename module 'malloc' -> 'malloc-gnu'.
48486         * modules/malloc-gnu: New file, copied from modules/malloc.
48487         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
48488         obsolete.
48489         * modules/argp (Depends-on): Update.
48490         * modules/regex (Depends-on): Update.
48491         * doc/posix-functions/malloc.texi: Update.
48492         * NEWS: Mention the change.
48494 2010-08-28  Eric Blake  <eblake@redhat.com>
48496         pread, pwrite: add missing dependency
48497         * modules/pread (Depends-on): Add extensions.
48498         * modules/pwrite (Depends-on): Likewise.
48500 2010-08-28  Bruno Haible  <bruno@clisp.org>
48502         unistr/u*-strchr: Fix tests dependencies.
48503         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
48504         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
48505         Reported by Ian Beckwith <ianb@erislabs.net>.
48507 2010-08-28  Bruno Haible  <bruno@clisp.org>
48509         read-file: Don't occupy too much unused memory.
48510         * lib/read-file.c (fread_file): Shrink the buffer at the end.
48512 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
48513             Eric Blake  <eblake@redhat.com>
48514             Bruno Haible  <bruno@clisp.org>
48516         read-file: Avoid memory reallocations with regular files.
48517         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
48518         (fread_file): With regular files, use the remaining length as the
48519         initial buffer size.  Check against overflow.
48520         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
48521         sys_stat.
48523 2010-08-28  Bruno Haible  <bruno@clisp.org>
48525         ftello: Relax license.
48526         * modules/ftello (License): Relax to LGPLv2+.
48527         Reported by Eric Blake.
48529 2010-08-28  Bruno Haible  <bruno@clisp.org>
48531         Avoid relocwrapper link errors due to gnulib replacement functions.
48532         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
48533         function.
48534         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48536 2010-08-28  Bruno Haible  <bruno@clisp.org>
48538         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
48539         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
48540         defined.
48541         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
48542         Suggested by Eric Blake.
48544 2010-08-28  Bruno Haible  <bruno@clisp.org>
48546         sys_socket, netdb: Ensure socklen_t gets defined.
48547         * modules/sys_socket (Depends-on): Add socklen.
48548         * modules/netdb (Depends-on): Likewise.
48549         * modules/getaddrinfo (Depends-on): Remove socklen.
48550         * modules/getsockopt (Depends-on): Likewise.
48551         * modules/setsockopt (Depends-on): Likewise.
48552         * tests/test-sys_socket.c: Check that socklen_t is defined.
48553         * tests/test-netdb.c: Likewise.
48554         * m4/socklen.m4: Update comments.
48555         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48557 2010-08-27  Eric Blake  <eblake@redhat.com>
48559         login_tty: add missing dependency
48560         * modules/login_tty (Depends-on): Add pty.
48562 2010-08-26  Eric Blake  <eblake@redhat.com>
48564         lib-symbol-versions: fix m4 quoting
48565         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
48566         format for AC_LINK_IFELSE.
48568         glob: fix compile test
48569         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
48571         btowc: fix missing file
48572         * modules/btowc (Files): Also ship locale-fr.m4.
48574         lseek: fix link test
48575         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
48576         AC_LINK_IFELSE.
48578         include_next: silence autoconf 2.68 warning
48579         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
48580         AC_COMPILE_IFELSE as special.
48581         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
48582         autoconf < 2.68.
48584         acl: fix compilation test
48585         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
48586         AC_COMPILE_IFELSE.
48588 2010-08-26  Bruno Haible  <bruno@clisp.org>
48590         Modernize AC_TRY_RUN invocations.
48591         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
48592         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
48593         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
48594         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
48595         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
48596         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
48597         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
48598         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
48599         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
48600         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
48601         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
48602         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48603         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
48604         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48605         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
48606         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
48607         gl_MBRLEN_NUL_RETVAL): Likewise.
48608         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
48609         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
48610         Likewise.
48611         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
48612         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
48613         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
48614         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
48615         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
48616         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
48617         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
48618         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
48619         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
48620         Likewise.
48621         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48622         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
48623         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48624         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48625         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
48626         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
48627         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
48628         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
48629         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48630         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48632 2010-08-26  Bruno Haible  <bruno@clisp.org>
48634         Modernize AC_TRY_LINK invocations.
48635         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
48636         AC_TRY_LINK.
48637         * m4/argp.m4 (gl_ARGP): Likewise.
48638         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
48639         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
48640         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
48641         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48642         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48643         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
48644         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
48645         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
48646         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48647         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
48648         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48649         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
48650         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
48651         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
48652         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48653         * m4/hostent.m4 (gl_HOSTENT): Likewise.
48654         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
48655         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
48656         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48657         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
48658         Likewise.
48659         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
48660         Likewise.
48661         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
48662         Likewise.
48663         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48664         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
48665         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
48666         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
48667         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
48668         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
48669         * m4/servent.m4 (gl_SERVENT): Likewise.
48670         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
48671         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
48672         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
48673         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
48674         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48675         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
48676         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
48677         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
48678         * modules/tsearch-tests (configure.ac): Likewise.
48680 2010-08-26  Bruno Haible  <bruno@clisp.org>
48682         Modernize AC_TRY_COMPILE invocations.
48683         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
48684         AC_TRY_COMPILE.
48685         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
48686         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
48687         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48688         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
48689         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48690         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48691         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
48692         * m4/lock.m4 (gl_LOCK): Likewise.
48693         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
48694         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48695         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
48696         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
48697         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48698         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
48699         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
48700         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
48701         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48702         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48703         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48704         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48705         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
48706         extraneous semicolon.
48708 2010-08-26  Jim Meyering  <meyering@redhat.com>
48710         stat-time: relax license LGPL
48711         * modules/stat-time (License): Change from GPL to LGPL,
48712         with consent from all contributors, for use in libguile.
48713         Requested by Ludovic Courtès.
48715 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
48717         poll: return immediately on POLLHUP.
48718         * lib/poll.c (poll): Always set timeout before wait_timeout is
48719         computed.
48721 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48723         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
48724         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
48725         rmdir ("dir/.//"), unlinkat.
48727 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48729         stdbool: avoid spurious failure with modern xlc
48730         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
48732 2010-08-24  Bruno Haible  <bruno@clisp.org>
48734         getloadavg: simplify code
48735         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
48736         gl_have_func. Update comments.
48738 2010-08-24  Eric Blake  <eblake@redhat.com>
48740         getloadavg: don't define SVR4 on cygwin
48741         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
48742         only define SVR4 when -lkvm is required.
48743         Reported by Yaakov Selkowitz.
48745 2010-08-24  Bruno Haible  <bruno@clisp.org>
48747         priv-set: fix comment
48748         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
48750 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48752         priv-set: fix comments
48753         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
48754         to match code, as suggested by David Bartley in:
48755         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
48757 2010-08-23  Eric Blake  <eblake@redhat.com>
48759         stdbool: avoid rejecting clang
48760         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
48761         * tests/test-stdbool.c: Enable more tests if using the system
48762         <stdbool.h> instead of the gnulib replacement.
48763         (main): Move xlc bug test to a runtime test for all compilers.
48764         Reported by Anders Kaseorg.
48766         argz: fix shell quoting issue
48767         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
48768         Reported by Charles Wilson.
48770 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
48771             Erik Faye-Lund <kusmabite@gmail.com>
48773         poll, select: handle ERROR_BROKEN_PIPE.
48774         * lib/poll.c (win32_compute_revents): Return POLLHUP when
48775         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
48776         * lib/select.c (win32_compute_revents): Do not mark a pipe
48777         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
48779 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
48781         fts: allow compilation with C++
48782         * lib/fts_.h: Specify extern "C" linkage with C++.
48784 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48786         Fix gnulib-tool sed script de-commentation for AIX sed.
48787         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
48788         sed.
48790 2010-08-17  Eric Blake  <eblake@redhat.com>
48792         test-stddef: test for (some) offsetof bugs
48793         * tests/test-stddef.c: Enhance test to ensure correct type of
48794         offsetof.
48795         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
48796         that we are not fixing at this time.
48798 2010-08-15  Bruno Haible  <bruno@clisp.org>
48800         stpncpy: Allow stpncpy to be defined as a macro.
48801         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
48802         if it's already correctly declared.
48803         * lib/string.in.h (stpncpy): Undefine before redefining.
48804         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
48806 2010-08-14  Bruno Haible  <bruno@clisp.org>
48808         Rename module 'memxfrm' to 'amemxfrm'.
48809         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
48810         (amemxfrm): Renamed from memxfrm.
48811         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
48812         (amemxfrm): Renamed from memxfrm.
48813         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
48814         * NEWS: Mention the change.
48815         * MODULES.html.sh (String handling <string.h>): Update.
48816         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
48817         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
48818         * lib/unicase/u16-casexfrm.c: Likewise.
48819         * lib/unicase/u32-casexfrm.c: Likewise.
48820         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
48821         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
48822         * lib/uninorm/u16-normxfrm.c: Likewise.
48823         * lib/uninorm/u32-normxfrm.c: Likewise.
48824         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
48825         memxfrm.
48826         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
48827         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
48828         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
48829         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
48830         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
48831         Suggested by Paul Eggert.
48833 2010-08-14  Bruno Haible  <bruno@clisp.org>
48835         Tests for module 'astrxfrm'.
48836         * modules/astrxfrm-tests: New file.
48837         * tests/test-astrxfrm.c: New file.
48839         New module 'astrxfrm'.
48840         * lib/astrxfrm.h: New file.
48841         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
48842         * modules/astrxfrm: New file.
48844 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
48846         regex: Tweak doc.
48847         * doc/regex.texi (Overview): Don't mention regex.c.
48848         (GNU Regular Expression Compiling): Likewise.
48849         (Match-end-of-line Operator): Mention 'not_eol'.
48851 2010-08-14  Brian Gough  <bjg@gnu.org>
48852             Bruno Haible  <bruno@clisp.org>
48854         git-merge-changelog: add doc relating to use with bzr and hg.
48855         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
48857 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
48859         pthread: fix pthread.h creation for srcdir != builddir
48860         * modules/pthread (Makefile.am): Fix the rule to work also in a
48861         non-srcdir build.
48863 2010-08-13  Karl Berry  <karl@gnu.org>
48865         * doc/regex.texi (Predefined Syntaxes): @smallexample.
48866         * doc/posix-*/*: force line break before @url of POSIX
48867         specifications.
48868         Suggested by Werner Lemberg.
48870 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48872         strtod: fix const diagnostic
48873         * lib/strtod.c (strtod): Don't assign const char * to char *,
48874         as this elicits a warning from GCC when warnings are enabled.
48876 2010-08-10  Pádraig Brady  <P@draigbrady.com>
48877         and Eric Blake  <eblake@redhat.com>
48879         copy-acl: ignore ENOTSUP on HP-UX
48880         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
48881         so that it is available for HP-UX.
48882         * lib/copy-acl.c (qcopy_acl): Use it.
48883         Reported by Patrick M. Callahan.
48885 2010-08-10  Eric Blake  <eblake@redhat.com>
48887         open, chown: relax license
48888         * modules/open (License): Change to LGPLv2+, with consent by all
48889         authors, for use in augeas.
48890         * modules/chown (License): Likewise.
48891         * modules/lchown (Likewise): Likewise.
48892         Requested by Adam Stokes.
48894 2010-08-09  Karl Berry  <karl@gnu.org>
48896         * build-aux/ar-lib: new file, import from Automake.
48897         * config/srclist.txt: autocheck for updates.
48899 2010-08-09  Eric Blake  <eblake@redhat.com>
48901         readlinkat: adjust client modules
48902         * modules/areadlinkat (Depends-on): Use readlinkat, not
48903         symlinkat.
48904         * modules/areadlinkat-with-size (Depends-on): Likewise.
48906         mknod: be more vocal about danger of running tests as root
48907         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
48908         root, since that is just asking for problems.
48909         Suggested by Bruno Haible, based on a report by Rainer Tammer.
48911         readlinkat: split into its own module
48912         * modules/symlinkat: Split readlinkat...
48913         * modules/readlinkat: ...into separate module.
48914         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
48915         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
48916         * lib/symlinkat.c (readlinkat): Move...
48917         * lib/readlinkat.c: ...into new file.
48918         * modules/symlinkat-tests: Split readlinkat test...
48919         * modules/readlinkat-tests: ...into separate module.
48920         * tests/test-symlinkat.c: Split...
48921         * tests/test-readlinkat.c: ...into new file.
48922         * NEWS: Document the split.
48923         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
48924         * lib/unistd.in.h (readlinkat): Likewise.
48925         Suggested by Bruno Haible.
48927 2010-08-08  Bruno Haible  <bruno@clisp.org>
48929         memxfrm: Speed up.
48930         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
48931         that usually only one call to strxfrm is necessary for each string
48932         part.
48933         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48935 2010-08-07  Karl Berry  <karl@gnu.org>
48937         * doc/posix-headers/limits.texi,
48938         * doc/posix-functions/malloc.texi,
48939         * doc/posix-functions/strsignal.texi: missing @item.
48940         * doc/ld-version-script.texi: spurious leading i.
48941         * doc/regex.texi (Interval Operators): no commas inside @var.
48943 2010-08-01  Bruno Haible  <bruno@clisp.org>
48945         Integrate the regex documentation.
48946         * doc/gnulib.texi: Define 'cn' index.
48947         (Regular expressions): New a chapter that includes regex.texi and
48948         regexprops-generic.texi.
48949         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
48950         syntax.
48952         Whitespace cleanup.
48953         * doc/regex.texi: Remove trailing spaces.
48955         Add regex documentation.
48956         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
48957         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
48958         Written by Kathy A. Hargreaves and Karl Berry.
48960 2010-08-01  Bruno Haible  <bruno@clisp.org>
48962         link: Update documentation.
48963         * doc/posix-functions/link.texi: Update regarding Solaris.
48965 2010-07-31  Bruno Haible  <bruno@clisp.org>
48967         Update modules list.
48968         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
48969         (String handling <string.h>): Add memcmp2, memxfrm.
48970         (Container data structures): Add xlist, xsublist, xoset.
48971         (Core language properties): Add alignof, unused-parameter.
48972         (Process control, Numeric conversion functions <stdlib.h>): Renamed
48973         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
48974         (Unibyte characters <ctype.h>): New section.
48975         (String handling <string.h>): New section.
48976         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
48977         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
48978         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
48979         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
48980         tan, tanh, tanl, y0, y1, yn.
48981         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
48982         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
48983         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
48984         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
48985         unlockpt, vdprintf, vdprintf-posix.
48986         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
48987         (File system functions): Add concat-filename, sys_file, sys_ioctl,
48988         xconcat-filename.
48989         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
48990         getdtablesize, pipe2, pipe2-safer.
48991         (Security): New section.
48992         (Networking functions): Add accept4.
48993         (Signal handling): Add sigpipe.
48994         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
48995         mbmemcasecoll.
48996         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
48997         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
48998         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
48999         pipe-filter-ii.
49000         (Misc): Add argp-version-etc, login_tty, parse-duration.
49002 2010-07-31  Bruno Haible  <bruno@clisp.org>
49004         Improve doc in MODULES.html.
49005         * modules/linkat (Description): Add the word "function".
49006         * modules/mkfifo (Description): Likewise.
49007         * modules/mknod (Description): Likewise.
49008         * modules/remove (Description): Likewise.
49009         * modules/renameat (Description): Likewise.
49010         * modules/stat (Description): Likewise.
49011         * modules/symlink (Description): Likewise.
49012         * modules/unlink (Description): Likewise.
49014 2010-07-31  Bruno Haible  <bruno@clisp.org>
49016         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
49017         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
49018         option --enable/disable-c++ instead of --enable/disable-cxx.
49019         * NEWS: Mention the change.
49021 2010-07-31  Bruno Haible  <bruno@clisp.org>
49023         readlink, areadlink: Relax test a bit.
49024         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
49025         alternative to ENOTDIR.
49026         * tests/test-areadlink.h (test_areadlink): Likewise.
49027         Reported by Rainer Tammer.
49029 2010-07-31  Bruno Haible  <bruno@clisp.org>
49031         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
49032         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
49033         character, perform the search using U_STRCHR.
49034         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
49035         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
49036         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
49037         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
49038         Suggested by Paolo Bonzini.
49040 2010-07-31  Bruno Haible  <bruno@clisp.org>
49042         unistr/u*-strstr: Fix dependencies.
49043         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
49044         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
49045         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
49047 2010-07-31  Bruno Haible  <bruno@clisp.org>
49049         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
49050         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
49051         the beginning of the loop.
49052         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
49053         cases in 'switch' statement.
49055         unistr/u8-strchr: Fix several bugs.
49056         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
49057         the string. When not found, return NULL, not a pointer near the end.
49059         More tests for unistr/u8-strchr.
49060         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
49061         that the function does not read past the first occurrence of the byte
49062         being searched.
49063         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
49064         * tests/unistr/test-u16-strchr.c (main): New function.
49065         * tests/unistr/test-u32-strchr.c (main): New function.
49067 2010-07-31  Bruno Haible  <bruno@clisp.org>
49069         posix-modules: Ignore backup files of documentation files.
49070         * posix-modules: grep only through files named *.texi.
49072 2010-07-31  Bruno Haible  <bruno@clisp.org>
49074         symlinkat: Fix documentation.
49075         * doc/posix-functions/readlinkat.texi: Fix module name.
49077 2010-07-31  Bruno Haible  <bruno@clisp.org>
49079         fchownat: Replace also when chown has the trailing slash bug.
49080         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
49081         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
49082         introduced on 2010-04-10.
49083         Reported by Rainer Tammer.
49085 2010-07-31  Bruno Haible  <bruno@clisp.org>
49087         linkat: Work around AIX 7.1 bug.
49088         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
49089         whether linkat handles trailing slash correctly. If not, replace linkat
49090         and define LINKAT_TRAILING_SLASH_BUG.
49091         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
49092         check whether (fd1,file1) points to a directory if file1 or file2 ends
49093         in a slash. Code taken from lib/link.c.
49094         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
49095         Reported by Rainer Tammer.
49097 2010-07-31  Bruno Haible  <bruno@clisp.org>
49099         Correctly determine whether pow is available in libc on AIX 7 with xlc.
49100         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
49101         This disables an xlc optimization that was causing wrong test results.
49102         Reported by Rainer Tammer.
49104 2010-07-31  Bruno Haible  <bruno@clisp.org>
49106         iconv: Work around AIX 6.1..7.1 bug.
49107         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
49108         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
49109         cross-compiling, guess no on all versions of AIX.
49110         Reported by Rainer Tammer.
49112 2010-07-31  Bruno Haible  <bruno@clisp.org>
49114         readlink: Relax test a bit.
49115         * tests/test-readlink.h (test_readlink): Allow different errno value
49116         when readlink is called with a file name that ends in / and refers to
49117         a file.
49118         Suggested by Eric Blake.
49119         Reported by Rainer Tammer.
49121 2010-07-31  Bruno Haible  <bruno@clisp.org>
49123         copysign: Does not require -lm on glibc systems.
49124         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
49125         gl_COMMON_DOUBLE_MATHFUNC.
49126         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
49128 2010-07-31  Bruno Haible  <bruno@clisp.org>
49130         duplocale: Work around AIX 7.1 bug.
49131         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
49132         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
49133         * lib/duplocale.c (rpl_duplocale): Update comment.
49134         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
49135         Reported by Rainer Tammer.
49137 2010-07-30  Bruno Haible  <bruno@clisp.org>
49139         dirfd: Avoid link error on AIX 7.1.
49140         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
49141         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
49142         exist, set REPLACE_DIRFD.
49143         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
49144         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
49145         * doc/posix-functions/dirfd.texi: Update.
49146         Reported by Rainer Tammer.
49148 2010-07-30  Eric Blake  <eblake@redhat.com>
49150         strtod: next round of AIX fixes
49151         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
49152         exponent.
49153         * tests/test-strtod.c (main): Enhance tests.
49154         * doc/posix-functions/strtod.texi (strtod): Document next bug.
49155         Reported by Rainer Tammer.
49157         futimens: fix configure check
49158         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
49159         Reported by Bruno Haible.
49161 2010-07-30  Bruno Haible  <bruno@clisp.org>
49163         getline: Update regarding AIX.
49164         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
49165         Reported by Rainer Tammer.
49167 2010-07-30  Bruno Haible  <bruno@clisp.org>
49169         wcwidth: Drop replacement on AIX 7.
49170         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
49171         AIX 7.
49172         Reported by Rainer Tammer.
49174 2010-07-30  Bruno Haible  <bruno@clisp.org>
49176         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
49177         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
49178         a 'char *'.
49179         Reported by Rainer Tammer.
49181 2010-07-30  Bruno Haible  <bruno@clisp.org>
49183         unlink: Update regarding AIX.
49184         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
49185         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
49186         Reported by Rainer Tammer.
49188 2010-07-30  Bruno Haible  <bruno@clisp.org>
49190         symlink: Update regarding AIX.
49191         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
49192         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
49193         Reported by Rainer Tammer.
49195 2010-07-30  Bruno Haible  <bruno@clisp.org>
49197         strndup: Update regarding AIX.
49198         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
49199         AIX 7.
49200         Reported by Rainer Tammer.
49202 2010-07-30  Bruno Haible  <bruno@clisp.org>
49204         stat: Update regarding AIX.
49205         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
49206         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
49207         Reported by Rainer Tammer.
49209 2010-07-30  Bruno Haible  <bruno@clisp.org>
49211         truncl: Fix autoconf test.
49212         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
49213         whether truncl works.
49214         Reported by Rainer Tammer.
49216 2010-07-30  Bruno Haible  <bruno@clisp.org>
49218         round: Update regarding AIX.
49219         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
49220         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
49221         Reported by Rainer Tammer.
49223 2010-07-30  Bruno Haible  <bruno@clisp.org>
49225         rename: Update regarding AIX.
49226         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
49227         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
49228         Reported by Rainer Tammer.
49230 2010-07-30  Bruno Haible  <bruno@clisp.org>
49232         printf.m4: Update regarding AIX.
49233         * m4/printf.m4: Update comments regarding AIX.
49234         Reported by Rainer Tammer.
49236 2010-07-30  Bruno Haible  <bruno@clisp.org>
49238         iconv: Update regarding AIX.
49239         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
49240         AIX 7.
49241         Reported by Rainer Tammer.
49243 2010-07-30  Bruno Haible  <bruno@clisp.org>
49245         getopt: Update regarding AIX.
49246         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
49247         no on AIX.
49248         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
49249         Reported by Rainer Tammer.
49251 2010-07-30  Bruno Haible  <bruno@clisp.org>
49253         ldexpl; Update regarding AIX.
49254         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
49255         on AIX 7.
49256         Reported by Rainer Tammer.
49258 2010-07-30  Bruno Haible  <bruno@clisp.org>
49260         frexpl: Update regarding AIX.
49261         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
49262         on AIX 7.
49263         Reported by Rainer Tammer.
49265 2010-07-30  Bruno Haible  <bruno@clisp.org>
49267         open, fopen: Update regarding AIX.
49268         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
49269         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
49270         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
49271         * doc/posix-functions/fopen.texi: Likewise.
49272         Reported by Rainer Tammer.
49274 2010-07-30  Bruno Haible  <bruno@clisp.org>
49276         chown: Update doc regarding AIX.
49277         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
49278         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
49279         Reported by Rainer Tammer.
49281 2010-07-30  Eric Blake  <eblake@redhat.com>
49283         strtod: fix bug in replacement function on AIX
49284         * lib/strtod.c (strtod): Special case broken "0x" parse in
49285         underlying strtod.
49286         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
49287         * doc/posix-functions/strtod.texi (strtod): Likewise.
49288         Reported by Rainer Tammer.
49290 2010-07-30  Bruno Haible  <bruno@clisp.org>
49292         mbrlen: Fix cross-compilation guess for AIX.
49293         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
49294         guess. Leftover from 2008-12-22.
49296 2010-07-30  Bruno Haible  <bruno@clisp.org>
49298         mbrtowc: Fix cross-compilation guess for AIX.
49299         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
49300         guess. Leftover from 2008-12-21.
49302 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
49304         init.sh: work around trap limitation of some shells
49305         * tests/init.sh (setup_): Move exit trap outside of shell function.
49307 2010-07-29  Eric Blake  <eblake@redhat.com>
49309         strtod: aid debugging
49310         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
49311         understanding why strtod is rejected.
49313 2010-07-28  Bruno Haible  <bruno@clisp.org>
49315         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
49316         * lib/unistr/u8-chr.c: Include <string.h>.
49317         * tests/unistr/test-u8-chr.c: Likewise.
49318         * tests/unistr/test-u16-chr.c: Likewise.
49319         * tests/unistr/test-u32-chr.c: Likewise.
49320         * tests/unistr/test-u8-strchr.c: Likewise.
49321         * tests/unistr/test-u16-strchr.c: Likewise.
49322         * tests/unistr/test-u32-strchr.c: Likewise.
49323         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
49324         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
49325         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
49326         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
49328 2010-07-28  Bruno Haible  <bruno@clisp.org>
49330         Use spaces for indentation, not tabs.
49331         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
49333 2010-07-27  Bruno Haible  <bruno@clisp.org>
49335         mbspcasecmp: Fix function specification.
49336         * lib/string.in.h (mbspcasecmp): Fix specification comment.
49337         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
49338         Reported by Eric Blake <eblake@redhat.com>.
49340 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
49342         timespec: use cast and not conditional, as truncation isn't possible
49343         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
49344         instead of a conditional.  Comment about the situation in more detail.
49345         This undoes most of the 2009-10-29 patch.
49347 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
49349         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
49350         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
49351         * lib/unistr/u8-strchr.c: Likewise.
49352         * modules/unistr/u8-chr: Depend on memchr.
49354         unistr/u*-strchr: add tests
49355         * modules/unistr/u8-strchr-tests: New file.
49356         * modules/unistr/u16-strchr-tests: New file.
49357         * modules/unistr/u32-strchr-tests: New file.
49358         * tests/unistr/test-strchr.h: New file.
49359         * tests/unistr/test-u8-strchr.c: New file.
49360         * tests/unistr/test-u16-strchr.c: New file.
49361         * tests/unistr/test-u32-strchr.c: New file.
49363         unistr/u*-chr: test multibyte sequences more
49364         * tests/unistr/test-chr.h: Do complete testing of the characters in the
49365         test vector.
49366         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
49367         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
49368         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
49370         unistr/u*-chr: test multibyte sequences
49371         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
49373         unistr/u*-chr: prepare for multibyte tests
49374         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
49375         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
49376         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
49377         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
49378         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
49379         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
49381 2010-07-18  Bruno Haible  <bruno@clisp.org>
49383         unistr/u8-strchr: Optimize non-ASCII argument case.
49384         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
49385         because the first byte often matches anyway.
49386         Reported by Pádraig Brady <P@draigbrady.com>.
49388 2010-07-15  Karl Berry  <karl@gnu.org>
49390         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
49392 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
49394         getcwd: on Solaris, work better if ancestors are inaccessible
49395         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
49396         buffer and size, try again with a large buffer.  This works better
49397         on Solaris, since its getcwd succeeds even if the path to the root
49398         is inaccessible, and this is helpful in common cases such as .zfs
49399         hidden directories.  Problem reported by J Chapman Flack in
49400         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
49401         Use system getcwd if it's declared, not merely if it's partly
49402         working; use the partly-working test only to avoid needless effort
49403         if the system getcwd fails.
49404         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
49405         comment that was already obsolete and is now even more obsolete.
49406         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
49407         now might call strdup.
49409 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
49411         pthread: Add enough so that coreutils/src/sort.c compiles.
49412         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
49413         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
49414         gnulib. Include <sched.h> and <time.h>, as per POSIX.
49415         Include <sys/types.h>, in case it defines pthread_t.
49416         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
49417         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
49418         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
49419         (pthread_rwlockattr_t, pthread_spinlock_t):
49420         New typedefs, if HAVE_PTHREAD_T is not defined.
49421         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
49422         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
49423         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
49424         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
49425         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
49426         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
49427         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
49428         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
49429         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
49430         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
49431         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
49432         New macros.
49433         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
49434         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
49435         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
49436         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
49437         (pthread_spin_unlock): New dummy functions.
49438         (pthread_create): Return EAGAIN; don't set errno.
49439         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
49440         require AC_C_INLINE.
49441         * modules/pthread (Depends-on): Add sched, time.
49442         (pthread.h): Use AM_V_GEN.
49444 2010-07-13  Bruno Haible  <bruno@clisp.org>
49446         striconveh: Don't malloc memory if the result buffer is sufficient.
49447         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
49448         buffer if its size is sufficient.
49449         Reported by Ludovic Courtès <ludo@gnu.org>.
49451 2010-07-13  Bruno Haible  <bruno@clisp.org>
49453         strtod: Add safety check.
49454         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
49456 2010-07-12  Bruno Haible  <bruno@clisp.org>
49458         Unify tests that set gl_cv_func_ldexpl_no_libm.
49459         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
49460         gl_FUNC_LDEXPL.
49461         (gl_FUNC_LDEXPL): Invoke it.
49462         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49464 2010-07-12  Bruno Haible  <bruno@clisp.org>
49466         Unify tests that set gl_cv_func_ldexp_no_libm.
49467         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
49468         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
49469         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
49470         (configure.ac): Simply invoke gl_FUNC_LDEXP.
49471         * modules/strtod (Files): Add m4/ldexp.m4.
49473 2010-07-12  Bruno Haible  <bruno@clisp.org>
49475         Unify tests that set gl_cv_func_frexpl_no_libm.
49476         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
49477         gl_FUNC_FREXPL_NO_LIBM.
49478         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
49479         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49481 2010-07-12  Bruno Haible  <bruno@clisp.org>
49483         Unify tests that set gl_cv_func_frexp_no_libm.
49484         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
49485         gl_FUNC_FREXP_NO_LIBM.
49486         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
49487         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
49489 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
49491         memcoll: clarify sizes versus lengths, document better, and tweak perf
49492         * lib/memcoll.c (strcoll_loop, memcoll0):
49493         Improve quality of descriptive comments.  Name variables
49494         consistently as to whether they are lengths (which do not include
49495         terminating null) versus sizes (which do).
49496         * lib/xmemcoll.c (xmemcoll0): Likewise.
49497         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
49498         returned when s1size == 0; this is easier to compile and saves
49499         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
49501 2010-07-12  Bruno Haible  <bruno@clisp.org>
49503         Tests for module '_Exit'.
49504         * modules/_Exit-tests: New file.
49505         * tests/test-_Exit.sh: New file.
49506         * tests/test-_Exit.c: New file.
49508         New module '_Exit'.
49509         * lib/stdlib.in.h (__attribute__): New macro.
49510         (_Exit): New declaration.
49511         * lib/_Exit.c: New file.
49512         * m4/_Exit.m4: New file.
49513         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
49514         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
49515         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
49516         * modules/_Exit: New file.
49517         * tests/test-stdlib-c++.cc (_Exit): Check signature.
49518         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
49520 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
49522         strtod: make it more-accurate typically, and don't require libm
49523         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
49524         Include limits.h.  Don't include string.h.
49525         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
49526         (locale_isspace): New function, so that no casts are needed to
49527         check whether *s is a space.
49528         (ldexp): Provide an unused dummy if not available.
49529         (scale_radix_exp, parse_number, underlying_strtod): New functions.
49530         (strtod): Use them.  This implementation prefers to use the
49531         underlying strtod if available, falling back on our own code
49532         only to fix known bugs.  This is more likely to produce an
49533         accurate result.  Also, it avoids the use of libm functions.
49534         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
49535         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
49536         was absent, but it caused a test failure with coreutils.
49537         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
49538         with libm.
49539         * modules/strtod (Makefile.am, Link): libm is no longer needed.
49540         * modules/strtod-tests (Makefile.am): Likewise.
49542 2010-07-11  Pádraig Brady  <P@draigBrady.com>
49543             Bruno Haible  <bruno@clisp.org>
49545         unistr/u8-strchr: Optimize ASCII argument case.
49546         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
49548 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49550         (x)memcoll: minor tweaks
49551         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
49552         is after the type that it qualifies.
49553         (memcoll0): Likewise.
49554         * lib/memcoll.h (memcoll0): Likewise.
49555         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
49556         * lib/xmemcoll.h (xmemcoll0): Likewise.
49557         * lib/memcoll.c (memcoll0): Correct the comment.  This function
49558         differs from memcoll in that the NUL byte is part of the argument.
49559         Omit the abort-checks, as performance is a real issue here.  Plus,
49560         the checks were wrong anyway (an off-by-one error).  Omit local
49561         variable 'diff', as it's a bit clearer that way.
49562         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
49563         no longer needed.
49565 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
49567         (x)memcoll: speedup when input is known to be NUL delimited
49568         * lib/memcoll.c: Include stdlib.
49569         (memcoll0): New function.
49570         (strcoll_loop): New function, refactored for use in both memcoll
49571         and memcoll0.
49572         * lib/memcoll.h (memcoll0): Add prototype.
49573         * lib/xmemcoll.c (xmemcoll0): New function.
49574         (collate_error): New function, refactored for use in both xmemcoll
49575         and xmemcoll0.
49576         * lib/xmemcoll.h (xmemcoll0): Add prototype.
49577         * m4/memcoll.m4: add inline invocation.
49579 2010-07-06  Pádraig Brady  <P@draigBrady.com>
49581         * build-aux/bootstrap: Remove any local translations
49582         from the translation project synchronization directory,
49583         so that local only translations are not distributed.
49585 2010-07-04  Bruno Haible  <bruno@clisp.org>
49587         fsusage: Clarify which code applies to which platforms.
49588         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
49589         platform.
49590         * lib/fsusage.c (get_fs_usage): Likewise.
49592 2010-07-04  Bruno Haible  <bruno@clisp.org>
49594         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
49595         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
49596         Reported by Martin Lambers <marlam@marlam.de>.
49598 2010-07-04  Jim Meyering  <meyering@redhat.com>
49600         hash: once again explicitly disallow insertion of NULL
49601         * lib/hash.c (hash_insert0): Reinstate just-removed test:
49602         inserting a NULL pointer cannot work with these functions.
49603         Add a comment with details.
49604         This reverts part of the 2010-07-01 commit, 5bef1a35
49605         "hash: extend module to deal with non-pointer keys".
49607 2010-07-01  Bruno Haible  <bruno@clisp.org>
49609         stdbool: Update doc.
49610         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
49611         Info from Christian Weisgerber <naddy@mips.inka.de>.
49613 2010-07-01  Jim Meyering  <meyering@redhat.com>
49615         hash: extend module to deal with non-pointer keys
49616         * lib/hash.c (hash_insert0): New interface, much like hash_insert
49617         but that allows insertion of non-pointer entries.
49618         Do not disallow an ENTRY value of NULL.
49619         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
49620         * lib/hash.h (hash_insert0): Declare.
49622 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
49624         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
49625         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
49626         not present (i.e. with autoconf 2.59 and when using gettextize, not
49627         gnulib), require AC_GNU_SOURCE instead.
49629 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
49631         idpriv-drop: Fix tests.
49632         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
49633         not to the test-idpriv-droptemp program.
49635 2010-06-29  Bruno Haible  <bruno@clisp.org>
49637         string: Fix syntax error with g++ 2.96.
49638         * lib/string.in.h (__pure__): Remove definition.
49639         (_GL_ATTRIBUTE_PURE): New macro.
49640         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
49641         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
49642         Reported by Christian Weisgerber <naddy@mips.inka.de>.
49644 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
49646         unitypes: Fix bug introduced on 2010-05-18.
49647         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
49649 2010-06-22  Eric Blake  <eblake@redhat.com>
49651         memmem: slight optimization
49652         * lib/str-two-way.h (critical_factorization): Update comments.
49653         Reduce work during factorization phase.
49654         Reported by Carlos Bueno <carlos@bueno.org>.
49656 2010-06-21  Bruno Haible  <bruno@clisp.org>
49658         Fix HAVE_CALLOC_POSIX misnomer.
49659         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
49660         !HAVE_CALLOC_POSIX.
49661         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
49662         HAVE_CALLOC_POSIX.
49663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
49664         instead of HAVE_CALLOC_POSIX.
49665         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
49666         HAVE_CALLOC_POSIX.
49668         Use modern idiom for calloc() replacement.
49669         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
49670         AC_FUNC_CALLOC.
49671         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
49672         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
49673         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
49674         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
49675         (gl_REPLACE_CALLOC): New macro.
49677 2010-06-21  Bruno Haible  <bruno@clisp.org>
49679         Fix HAVE_REALLOC_POSIX misnomer.
49680         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
49681         !HAVE_REALLOC_POSIX.
49682         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
49683         HAVE_REALLOC_POSIX.
49684         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
49685         instead of HAVE_REALLOC_POSIX.
49686         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
49687         HAVE_REALLOC_POSIX.
49689         Use modern idiom for realloc() replacement.
49690         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
49691         AC_FUNC_REALLOC.
49692         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
49693         Autoconf's AC_FUNC_REALLOC.
49694         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
49695         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
49696         (gl_REPLACE_REALLOC): New macro.
49697         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
49699 2010-06-21  Bruno Haible  <bruno@clisp.org>
49701         Fix HAVE_MALLOC_POSIX misnomer.
49702         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
49703         !HAVE_MALLOC_POSIX.
49704         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
49705         HAVE_MALLOC_POSIX.
49706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
49707         instead of HAVE_MALLOC_POSIX.
49708         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
49709         HAVE_MALLOC_POSIX.
49711         Use modern idiom for malloc() replacement.
49712         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
49713         AC_FUNC_MALLOC.
49714         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
49715         Autoconf's AC_FUNC_MALLOC.
49716         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
49717         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
49718         (gl_REPLACE_MALLOC): New macro.
49719         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
49721 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
49723         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
49724         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
49725         This macro takes 3 arguments, not 4.
49727 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
49729         ipv6: fix detection under mingw
49730         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
49731         in6_addr.
49733 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
49735         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
49736         that strtod() works when cross-compiling to a glibc version known
49737         to work.
49739 2010-06-15  Bruno Haible  <bruno@clisp.org>
49741         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
49743 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
49745         select: Correct timeout.
49746         * lib/select.c (rpl_select): Compute wait_timeout correctly.
49748 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49750         git-version-gen: init shell var to avoid env var influence
49751         * build-aux/git-version-gen (v): Init shell var to empty.
49753 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
49755         priv-set: Don't assume that priv.h exists merely because getppriv does.
49756         See Jan Andersen's bug report about AIX 5L in
49757         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
49758         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
49759         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
49760         * lib/priv-set.h: Likewise.
49761         * tests/test-priv-set.c: Likewise.
49763 2010-06-13  Bruno Haible  <bruno@clisp.org>
49765         relocatable: Make it easier to test whether to install wrappers.
49766         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
49767         RELOCATABLE_VIA_WRAPPER.
49769 2010-06-13  Bruno Haible  <bruno@clisp.org>
49771         gnulib-tool: Display specified modules and dependencies differently.
49772         * gnulib-tool (func_show_module_list): New function.
49773         (func_import, func_create_testdir): Invoke it.
49774         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49776 2010-06-13  Bruno Haible  <bruno@clisp.org>
49778         gnulib-tool: Align code of func_import and func_create_testdir.
49779         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
49780         specified_modules.
49782 2010-06-12  Jim Meyering  <meyering@redhat.com>
49784         test-inttostr: avoid spurious failure on Solaris 9
49785         * tests/test-inttostr.c (main): Skip the test when snprintf fails
49786         to accept "%ju".  Reported by Bruno Haible.
49788 2010-06-11  Jim Meyering  <meyering@redhat.com>
49790         test-sys_socket: mark variables as used more readably
49791         * tests/test-sys_socket.c (main): Mark otherwise unused variables
49792         as "used" explicitly via (void) statement casts.  This is more
49793         readable than using them in an artificial return expression.
49794         Suggestion from Bruno Haible.
49796 2010-06-11  Bruno Haible  <bruno@clisp.org>
49798         Avoid some more warnings from "gcc -Wwrite-strings".
49799         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
49800         to 'const char *'.
49801         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
49802         * tests/test-c-strcasestr.c (main): Likewise.
49803         * tests/test-mbscasestr1.c (main): Likewise.
49804         * tests/test-mbscasestr2.c (main): Likewise.
49805         * tests/test-memmem.c (main): Likewise.
49806         * tests/test-strstr.c (main): Likewise.
49807         * tests/test-strcasestr.c (main): Likewise.
49809 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49811         init.sh: change framework_failure_ to fail with status 99, not 1
49812         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
49813         automake's parallel-tests rule that this is an unexpected failure,
49814         even if the test is listed in XFAIL_TESTS.
49816 2010-06-11  Jim Meyering  <meyering@redhat.com>
49818         test-inttostr: avoid warnings about 4-6KB literal strings
49819         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
49820         Include "macros.h", for its definition of ASSERT.
49821         (CK): s/assert/ASSERT/
49822         * modules/inttostr-tests (Files): Add macros.h.
49824         init.sh: don't use $ME_ or skip_ before they are defined
49825         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
49826         their first uses.  Also hoist their companions: warn_, fail_,
49827         framework_failure_, $stderr_fileno.  Prompted by a patch from
49828         Stefano Lattarini.
49830         test-sys_socket: avoid set-but-not-used warnings from gcc
49831         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
49832         avoid warning about set-but-not-used variables.
49834         test-xvasprintf: avoid 'const' discard warnings
49835         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
49836         "const" when assigning from literal strings.
49837         (test_xasprintf): Add "void" in function argument list to placate
49838         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
49840         tests: avoid compilation warnings in argmatch and exclude tests...
49841         in packages that define ARGMATCH_DIE_DECL, like coreutils.
49842         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
49843         Since it always exits, declare with the "noreturn" attribute.
49844         * tests/test-argmatch.c: Likewise.
49846         tests: avoid 'const' discard warnings in mbsstr tests
49847         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
49848         * tests/test-mbsstr2.c (main): Likewise.
49850         test-verify: avoid warning from gcc's -Wmissing-declarations
49851         * tests/test-verify.c (function): Declare to be static.
49853         test-inttostr.c: include <string.h> for use of strcmp
49854         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
49856         test-linkat: avoid failed assertion on "other" architectures
49857         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
49858         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
49859         sparc: https://bugs.launchpad.net/bugs/591968
49861 2010-06-11  Jim Meyering  <meyering@redhat.com>
49863         printf.m4: avoid autoconf's "Expanded Before Required" warning
49864         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
49865         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
49866         autoconf warning.
49868 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
49870         Replacement header templates are now named with ".in", not "_".
49871         * doc/gnulib-intro.texi: Correct.
49873 2010-06-10  Jim Meyering  <meyering@redhat.com>
49875         inttostr-tests: depend on snprintf, not snprintf-posix
49876         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
49877         snprintf-posix, to avoid this aclocal failure:
49878           missing file gnulib-tests/vasnprintf.c
49879           configure.ac:45: error: expected source file, required through \
49880           AC_LIBSOURCES, not found
49882 2010-06-10  Jim Meyering  <meyering@redhat.com>
49884         inttostr: add a new function, inttostr, and tests
49885         The namesake function was not available.  The existence of the
49886         template file, inttostr.c makes its addition nontrivial.
49887         * lib/anytostr.c: Rename from inttostr.c.
49888         (anytostr): Rename from inttostr.
49889         * lib/inttostr.c: New file.
49890         * modules/inttostr (Files): Add anytostr.c.
49891         (Makefile.am): Set lib_SOURCES instead of ...
49892         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
49893         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
49894         * lib/offtostr.c: Likewise.
49895         * lib/uinttostr.c: Likewise.
49896         * lib/umaxtostr.c: Likewise.
49897         * modules/inttostr-tests: New file.
49898         * tests/test-inttostr.c: New file.  Test these functions.
49900 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
49901             Bruno Haible  <bruno@clisp.org>
49903         Add "Extending Gnulib" chapter to manual.
49904         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
49905         chapter.
49906         (Extending Gnulib): New chapter.
49907         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
49908         chapter.
49910 2010-06-09  Bruno Haible  <bruno@clisp.org>
49912         Avoid relocwrapper link errors due to gnulib replacement functions.
49913         * lib/areadlink.c: Use the system's malloc, realloc functions.
49914         (areadlink): Set errno to ENOMEM explicitly.
49915         * modules/areadlink (Depends-on): Remove malloc-posix.
49916         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49918 2010-06-09  Bruno Haible  <bruno@clisp.org>
49920         Avoid relocwrapper link errors due to gnulib replacement functions.
49921         * lib/canonicalize-lgpl.c: Use the system's malloc function.
49922         * lib/malloca.c: Likewise.
49923         * lib/relocatable.c: Likewise.
49924         * lib/progreloc.c: Use the system's malloc, sprintf functions.
49925         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
49926         * lib/setenv.c: Use the system's malloc, realloc functions.
49927         * lib/strerror.c: Use the system's sprintf function.
49928         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49930 2010-06-04  Bruno Haible  <bruno@clisp.org>
49932         Prefer documented low-level autoconf macro names.
49933         * m4/lib-link.m4: Use m4_translit instead of translit.
49934         * m4/environ.m4: Likewise.
49935         * m4/mathfunc.m4: Likewise.
49936         * m4/onceonly.m4: Likewise.
49937         * m4/stdint.m4: Likewise.
49938         Suggested by Eric Blake.
49940 2010-06-04  Martin Lambers  <marlam@marlam.de>
49941             Bruno Haible  <bruno@clisp.org>
49943         havelib: Allow library names with '+' characters.
49944         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
49945         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
49947 2010-06-09  Bruno Haible  <bruno@clisp.org>
49949         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
49950         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
49951         realloc failed.
49953 2010-06-08  Peter Simons  <simons@cryp.to>
49955         maint.mk: make the news-check rule more configurable
49956         * top/maint.mk (news-check-lines-spec): New variable.
49957         (news-check): Use "sed -n 1,10p" in place of "head".
49959 2010-06-07  Jim Meyering  <meyering@redhat.com>
49961         do-release-commit-and-tag: fix typo in --help
49962         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
49964         regex: avoid new dead-code warning with gcc-4.6.0
49965         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
49966         if-block containing a while-loop.  It's been unused for at least
49967         5 years.
49969 2010-06-05  Bruno Haible  <bruno@clisp.org>
49971         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
49972         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
49974 2010-06-04  Bruno Haible  <bruno@clisp.org>
49976         Update to GNU gettext 0.18.1.
49977         * modules/gettext (configure.ac): Require gettext infrastructure from
49978         version 0.18.1.
49980 2010-06-03  Bruno Haible  <bruno@clisp.org>
49982         Don't use AC_LIBOBJ with file names in subdirectories.
49983         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
49984         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
49985         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
49986         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
49987         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
49988         gl_LIBUNISTRING_LIBSOURCE.
49989         (Makefile.am): Augment lib_SOURCES here, conditionally.
49990         * NEWS: Drop requirement for Automake option 'subdir-objects'.
49992 2010-06-03  Bruno Haible  <bruno@clisp.org>
49994         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
49995         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
49996         expansion does not end with a newline.
49997         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
49998         unnecessary newline.
50000 2010-06-03  Bruno Haible  <bruno@clisp.org>
50002         Reduce dependencies.
50003         * tests/test-quotearg.h: New file, extracted from
50004         tests/test-quotearg.c.
50005         * tests/test-quotearg-simple.c: New file, extracted from
50006         tests/test-quotearg.c.
50007         * tests/test-quotearg.c: Don't include <ctype.h>.
50008         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
50009         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
50010         use_quote_double_quotes, use_quotearg_colon): Moved to
50011         tests/test-quotearg.h.
50012         (results_g, flag_results, custom_quotes, custom_results): Moved
50013         to tests/test-quotearg-simple.c.
50014         (main): Moved the part that does not depend on gettext to
50015         tests/test-quotearg-simple.c. Return 77 if the test cannot be
50016         performed.
50017         * modules/quotearg-simple: New file.
50018         * modules/quotearg-simple-tests: New file.
50019         * modules/quotearg (Depends-on): Add quotearg-simple.
50020         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
50021         (Files): Add tests/test-quotearg.h.
50022         Reported by Paolo Bonzini.
50024 2010-06-03  Bruno Haible  <bruno@clisp.org>
50026         Reduce dependencies.
50027         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
50029 2010-06-03  Bruno Haible  <bruno@clisp.org>
50031         time: Undefine more broken macros.
50032         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
50033         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
50034         Reported by Eric Blake.
50036 2010-06-03  Bruno Haible  <bruno@clisp.org>
50038         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
50039         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
50040         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
50041         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
50042         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
50043         Reported by Ludovic Courtès <ludo@gnu.org>.
50045 2010-06-02  Eric Blake  <eblake@redhat.com>
50047         time: work with mingw + pthreads-win32 library
50048         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
50049         if timespec is defined only in pthread.h.
50050         * modules/time (Makefile.am): Substitute it.
50051         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
50052         <pthread.h>, when needed.
50053         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
50054         from the library.
50056 2010-05-31  Bruno Haible  <bruno@clisp.org>
50058         Avoid expanding two macros in the wrong order.
50059         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
50060         gl_LIBUNISTRING if it is defined.
50061         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
50062         autoconf >= 2.64.
50063         Reported by Ludovic Courtès <ludo@gnu.org>.
50065 2010-05-27  Jim Meyering  <meyering@redhat.com>
50067         maint.mk: also prohibit "#undef" of always-defined symbols
50068         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
50069         Allow more than one space before the symbol name.
50070         (sc_prohibit_always-defined_macros): Use grep's -E, now that
50071         the regexp uses alternation.
50073 2010-05-26  Eric Blake  <eblake@redhat.com>
50075         maint.mk: avoid echo -e
50076         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
50077         Convert all uses of echo -* to printf.
50078         Reported by Matthias Bolte.
50080 2010-05-25  Bruno Haible  <bruno@clisp.org>
50082         Update to GNU gettext 0.18, part 2.
50083         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
50084         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
50086 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50088         Add missing include in test-pwrite.c.
50089         * tests/test-pwrite.c: Include string.h, for strcmp.
50091 2010-05-24  Bruno Haible  <bruno@clisp.org>
50093         * NEWS: Mention requirement for Automake option 'subdir-objects'.
50095 2010-05-24  Bruno Haible  <bruno@clisp.org>
50097         Don't use conversion with transliteration in u{8,16,32}_strcoll.
50098         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
50099         iconveh_error argument.
50100         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
50101         U_STRCONV_TO_LOCALE.
50102         * lib/unistr/u16-strcoll.c: Likewise.
50103         * lib/unistr/u32-strcoll.c: Likewise.
50104         * modules/unistr/u8-strcoll (Depends-on): Add
50105         uniconv/u8-strconv-to-enc, localcharset. Remove
50106         uniconv/u8-strconv-to-locale.
50107         (configure.ac): Bump version number.
50108         * modules/unistr/u16-strcoll (Depends-on): Add
50109         uniconv/u16-strconv-to-enc, localcharset. Remove
50110         uniconv/u16-strconv-to-locale.
50111         (configure.ac): Bump version number.
50112         * modules/unistr/u32-strcoll (Depends-on): Add
50113         uniconv/u32-strconv-to-enc, localcharset. Remove
50114         uniconv/u32-strconv-to-locale.
50115         (configure.ac): Bump version number.
50117 2010-05-24  Bruno Haible  <bruno@clisp.org>
50119         Avoid a test failure on NetBSD 5.0.
50120         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
50121         an iconv() bug.
50123 2010-05-24  Bruno Haible  <bruno@clisp.org>
50125         Adjust #include directive style.
50126         * modules/regex (Includes): Recommend to write <regex.h>.
50128 2010-05-24  Bruno Haible  <bruno@clisp.org>
50130         regex: Don't require alloca.
50131         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
50132         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
50133         only inside if (0).
50135 2010-05-23  Jim Meyering  <meyering@redhat.com>
50137         test-renameat.c: include <sys/stat.h>
50138         * tests/test-renameat.c: Include <sys/stat.h>; required for
50139         definition of S_IS* macros.
50141 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
50143         Update maintainer documentation for 'relocatable-prog' module.
50144         * doc/relocatable-maint.texi: Update.
50145         Comments by Bruno Haible.
50147 2010-05-23  Bruno Haible  <bruno@clisp.org>
50149         git-merge-changelog: Enable --split-merged-entry by default.
50150         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
50151         (usage): Don't mention this option any more.
50152         Reported by Ralf Wildenhues.
50154 2010-05-23  Jim Meyering  <meyering@redhat.com>
50156         test-pwrite: do not leave behind a test file named "out"
50157         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
50158         The trivial-looking use of init.sh is really necessary.
50159         It ensures that the temporary file, "out", is created in
50160         a temporary directory, and removed upon termination.
50161         * tests/test-pwrite.sh: Re-add file.
50162         * modules/pwrite-tests: Reference it.
50164 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50166         Fix output redirection buglet in init.sh.
50167         * tests/init.sh: Fix redirection of stderr.
50169 2010-05-20  Simon Josefsson  <simon@josefsson.org>
50171         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
50173 2010-05-17  Simon Josefsson  <simon@josefsson.org>
50175         * modules/valgrind-tests: New file.
50176         * m4/valgrind-tests.m4: New file.
50177         * doc/valgrind-tests.texi: New file.
50178         * doc/gnulib.texi (Running self-tests under valgrind): New
50179         section.
50181 2010-05-19  Bruno Haible  <bruno@clisp.org>
50183         Clean up dead code in recent commit.
50184         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
50185         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
50186         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
50187         Suggested by Paolo Bonzini.
50189 2010-05-19  Bruno Haible  <bruno@clisp.org>
50191         Avoid valgrind error reports from libunistring.
50192         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
50193         * modules/libunistring (Files): Add it.
50194         * modules/libunistring-optional (Files): Likewise.
50196 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
50197             Bruno Haible  <bruno@clisp.org>
50199         New module 'libunistring-optional'.
50200         * modules/libunistring-optional: New file.
50201         * m4/libunistring-base.m4: New file.
50202         * m4/libunistring-optional.m4: New file.
50203         * lib/unicase.in.h: Renamed from lib/unicase.h.
50204         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
50205         * lib/unictype.in.h: Renamed from lib/unictype.h.
50206         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
50207         * lib/uniname.in.h: Renamed from lib/uniname.h.
50208         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
50209         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
50210         * lib/unistr.in.h: Renamed from lib/unistr.h.
50211         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
50212         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
50213         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
50214         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
50215         gl_LIBUNISTRING. If the library was found, determine the installed
50216         version and set LIBUNISTRING_VERSION.
50217         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
50218         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
50219         handle a configuration option --with-included-libunistring.
50220         * modules/libunistring (Files): Add m4/absolute-header.m4.
50221         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
50222         Add m4/libunistring-base.m4.
50223         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
50224         (Makefile.am): Build unicase.h from unicase.in.h.
50225         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
50226         Add m4/libunistring-base.m4.
50227         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
50228         (Makefile.am): Build uniconv.h from uniconv.in.h.
50229         * modules/unictype/base (Files): Use unictype.in.h instead of
50230         unictype.h. Add m4/libunistring-base.m4.
50231         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
50232         (Makefile.am): Build unictype.h from unictype.in.h.
50233         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
50234         Add m4/libunistring-base.m4.
50235         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
50236         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
50237         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
50238         Add m4/libunistring-base.m4.
50239         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
50240         (Makefile.am): Build uniname.h from uniname.in.h.
50241         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
50242         Add m4/libunistring-base.m4.
50243         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
50244         (Makefile.am): Build uninorm.h from uninorm.in.h.
50245         * modules/unistdio/base (Files): Use unistdio.in.h instead of
50246         unistdio.h. Add m4/libunistring-base.m4.
50247         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
50248         (Makefile.am): Build unistdio.h from unistdio.in.h.
50249         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
50250         Add m4/libunistring-base.m4.
50251         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
50252         (Makefile.am): Build unistr.h from unistr.in.h.
50253         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
50254         Add m4/libunistring-base.m4.
50255         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
50256         (Makefile.am): Build unitypes.h from unitypes.in.h.
50257         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
50258         Add m4/libunistring-base.m4.
50259         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
50260         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
50261         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
50262         uniwidth.h. Add m4/libunistring-base.m4.
50263         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
50264         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
50265         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
50266         instead of augmenting lib_SOURCES.
50267         * modules/unicase/empty-suffix-context: Likewise.
50268         * modules/unicase/locale-language: Likewise.
50269         * modules/unicase/tolower: Likewise.
50270         * modules/unicase/totitle: Likewise.
50271         * modules/unicase/toupper: Likewise.
50272         * modules/unicase/u8-casecmp: Likewise.
50273         * modules/unicase/u8-casecoll: Likewise.
50274         * modules/unicase/u8-casefold: Likewise.
50275         * modules/unicase/u8-casexfrm: Likewise.
50276         * modules/unicase/u8-ct-casefold: Likewise.
50277         * modules/unicase/u8-ct-tolower: Likewise.
50278         * modules/unicase/u8-ct-totitle: Likewise.
50279         * modules/unicase/u8-ct-toupper: Likewise.
50280         * modules/unicase/u8-is-cased: Likewise.
50281         * modules/unicase/u8-is-casefolded: Likewise.
50282         * modules/unicase/u8-is-lowercase: Likewise.
50283         * modules/unicase/u8-is-titlecase: Likewise.
50284         * modules/unicase/u8-is-uppercase: Likewise.
50285         * modules/unicase/u8-prefix-context: Likewise.
50286         * modules/unicase/u8-suffix-context: Likewise.
50287         * modules/unicase/u8-tolower: Likewise.
50288         * modules/unicase/u8-totitle: Likewise.
50289         * modules/unicase/u8-toupper: Likewise.
50290         * modules/unicase/u16-casecmp: Likewise.
50291         * modules/unicase/u16-casecoll: Likewise.
50292         * modules/unicase/u16-casefold: Likewise.
50293         * modules/unicase/u16-casexfrm: Likewise.
50294         * modules/unicase/u16-ct-casefold: Likewise.
50295         * modules/unicase/u16-ct-tolower: Likewise.
50296         * modules/unicase/u16-ct-totitle: Likewise.
50297         * modules/unicase/u16-ct-toupper: Likewise.
50298         * modules/unicase/u16-is-cased: Likewise.
50299         * modules/unicase/u16-is-casefolded: Likewise.
50300         * modules/unicase/u16-is-lowercase: Likewise.
50301         * modules/unicase/u16-is-titlecase: Likewise.
50302         * modules/unicase/u16-is-uppercase: Likewise.
50303         * modules/unicase/u16-prefix-context: Likewise.
50304         * modules/unicase/u16-suffix-context: Likewise.
50305         * modules/unicase/u16-tolower: Likewise.
50306         * modules/unicase/u16-totitle: Likewise.
50307         * modules/unicase/u16-toupper: Likewise.
50308         * modules/unicase/u32-casecmp: Likewise.
50309         * modules/unicase/u32-casecoll: Likewise.
50310         * modules/unicase/u32-casefold: Likewise.
50311         * modules/unicase/u32-casexfrm: Likewise.
50312         * modules/unicase/u32-ct-casefold: Likewise.
50313         * modules/unicase/u32-ct-tolower: Likewise.
50314         * modules/unicase/u32-ct-totitle: Likewise.
50315         * modules/unicase/u32-ct-toupper: Likewise.
50316         * modules/unicase/u32-is-cased: Likewise.
50317         * modules/unicase/u32-is-casefolded: Likewise.
50318         * modules/unicase/u32-is-lowercase: Likewise.
50319         * modules/unicase/u32-is-titlecase: Likewise.
50320         * modules/unicase/u32-is-uppercase: Likewise.
50321         * modules/unicase/u32-prefix-context: Likewise.
50322         * modules/unicase/u32-suffix-context: Likewise.
50323         * modules/unicase/u32-tolower: Likewise.
50324         * modules/unicase/u32-totitle: Likewise.
50325         * modules/unicase/u32-toupper: Likewise.
50326         * modules/unicase/ulc-casecmp: Likewise.
50327         * modules/unicase/ulc-casecoll: Likewise.
50328         * modules/unicase/ulc-casexfrm: Likewise.
50329         * modules/uniconv/u8-conv-from-enc: Likewise.
50330         * modules/uniconv/u8-conv-to-enc: Likewise.
50331         * modules/uniconv/u8-strconv-from-enc: Likewise.
50332         * modules/uniconv/u8-strconv-from-locale: Likewise.
50333         * modules/uniconv/u8-strconv-to-enc: Likewise.
50334         * modules/uniconv/u8-strconv-to-locale: Likewise.
50335         * modules/uniconv/u16-conv-from-enc: Likewise.
50336         * modules/uniconv/u16-conv-to-enc: Likewise.
50337         * modules/uniconv/u16-strconv-from-enc: Likewise.
50338         * modules/uniconv/u16-strconv-from-locale: Likewise.
50339         * modules/uniconv/u16-strconv-to-enc: Likewise.
50340         * modules/uniconv/u16-strconv-to-locale: Likewise.
50341         * modules/uniconv/u32-conv-from-enc: Likewise.
50342         * modules/uniconv/u32-conv-to-enc: Likewise.
50343         * modules/uniconv/u32-strconv-from-enc: Likewise.
50344         * modules/uniconv/u32-strconv-from-locale: Likewise.
50345         * modules/uniconv/u32-strconv-to-enc: Likewise.
50346         * modules/uniconv/u32-strconv-to-locale: Likewise.
50347         * modules/unictype/bidicategory-byname: Likewise.
50348         * modules/unictype/bidicategory-name: Likewise.
50349         * modules/unictype/bidicategory-of: Likewise.
50350         * modules/unictype/bidicategory-test: Likewise.
50351         * modules/unictype/block-list: Likewise.
50352         * modules/unictype/block-test: Likewise.
50353         * modules/unictype/category-C: Likewise.
50354         * modules/unictype/category-Cc: Likewise.
50355         * modules/unictype/category-Cf: Likewise.
50356         * modules/unictype/category-Cn: Likewise.
50357         * modules/unictype/category-Co: Likewise.
50358         * modules/unictype/category-Cs: Likewise.
50359         * modules/unictype/category-L: Likewise.
50360         * modules/unictype/category-Ll: Likewise.
50361         * modules/unictype/category-Lm: Likewise.
50362         * modules/unictype/category-Lo: Likewise.
50363         * modules/unictype/category-Lt: Likewise.
50364         * modules/unictype/category-Lu: Likewise.
50365         * modules/unictype/category-M: Likewise.
50366         * modules/unictype/category-Mc: Likewise.
50367         * modules/unictype/category-Me: Likewise.
50368         * modules/unictype/category-Mn: Likewise.
50369         * modules/unictype/category-N: Likewise.
50370         * modules/unictype/category-Nd: Likewise.
50371         * modules/unictype/category-Nl: Likewise.
50372         * modules/unictype/category-No: Likewise.
50373         * modules/unictype/category-P: Likewise.
50374         * modules/unictype/category-Pc: Likewise.
50375         * modules/unictype/category-Pd: Likewise.
50376         * modules/unictype/category-Pe: Likewise.
50377         * modules/unictype/category-Pf: Likewise.
50378         * modules/unictype/category-Pi: Likewise.
50379         * modules/unictype/category-Po: Likewise.
50380         * modules/unictype/category-Ps: Likewise.
50381         * modules/unictype/category-S: Likewise.
50382         * modules/unictype/category-Sc: Likewise.
50383         * modules/unictype/category-Sk: Likewise.
50384         * modules/unictype/category-Sm: Likewise.
50385         * modules/unictype/category-So: Likewise.
50386         * modules/unictype/category-Z: Likewise.
50387         * modules/unictype/category-Zl: Likewise.
50388         * modules/unictype/category-Zp: Likewise.
50389         * modules/unictype/category-Zs: Likewise.
50390         * modules/unictype/category-and: Likewise.
50391         * modules/unictype/category-and-not: Likewise.
50392         * modules/unictype/category-byname: Likewise.
50393         * modules/unictype/category-name: Likewise.
50394         * modules/unictype/category-none: Likewise.
50395         * modules/unictype/category-of: Likewise.
50396         * modules/unictype/category-or: Likewise.
50397         * modules/unictype/category-test: Likewise.
50398         * modules/unictype/combining-class: Likewise.
50399         * modules/unictype/ctype-alnum: Likewise.
50400         * modules/unictype/ctype-alpha: Likewise.
50401         * modules/unictype/ctype-blank: Likewise.
50402         * modules/unictype/ctype-cntrl: Likewise.
50403         * modules/unictype/ctype-digit: Likewise.
50404         * modules/unictype/ctype-graph: Likewise.
50405         * modules/unictype/ctype-lower: Likewise.
50406         * modules/unictype/ctype-print: Likewise.
50407         * modules/unictype/ctype-punct: Likewise.
50408         * modules/unictype/ctype-space: Likewise.
50409         * modules/unictype/ctype-upper: Likewise.
50410         * modules/unictype/ctype-xdigit: Likewise.
50411         * modules/unictype/decimal-digit: Likewise.
50412         * modules/unictype/digit: Likewise.
50413         * modules/unictype/mirror: Likewise.
50414         * modules/unictype/numeric: Likewise.
50415         * modules/unictype/property-alphabetic: Likewise.
50416         * modules/unictype/property-ascii-hex-digit: Likewise.
50417         * modules/unictype/property-bidi-arabic-digit: Likewise.
50418         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
50419         * modules/unictype/property-bidi-block-separator: Likewise.
50420         * modules/unictype/property-bidi-boundary-neutral: Likewise.
50421         * modules/unictype/property-bidi-common-separator: Likewise.
50422         * modules/unictype/property-bidi-control: Likewise.
50423         * modules/unictype/property-bidi-embedding-or-override: Likewise.
50424         * modules/unictype/property-bidi-eur-num-separator: Likewise.
50425         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
50426         * modules/unictype/property-bidi-european-digit: Likewise.
50427         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
50428         * modules/unictype/property-bidi-left-to-right: Likewise.
50429         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
50430         * modules/unictype/property-bidi-other-neutral: Likewise.
50431         * modules/unictype/property-bidi-pdf: Likewise.
50432         * modules/unictype/property-bidi-segment-separator: Likewise.
50433         * modules/unictype/property-bidi-whitespace: Likewise.
50434         * modules/unictype/property-byname: Likewise.
50435         * modules/unictype/property-combining: Likewise.
50436         * modules/unictype/property-composite: Likewise.
50437         * modules/unictype/property-currency-symbol: Likewise.
50438         * modules/unictype/property-dash: Likewise.
50439         * modules/unictype/property-decimal-digit: Likewise.
50440         * modules/unictype/property-default-ignorable-code-point: Likewise.
50441         * modules/unictype/property-deprecated: Likewise.
50442         * modules/unictype/property-diacritic: Likewise.
50443         * modules/unictype/property-extender: Likewise.
50444         * modules/unictype/property-format-control: Likewise.
50445         * modules/unictype/property-grapheme-base: Likewise.
50446         * modules/unictype/property-grapheme-extend: Likewise.
50447         * modules/unictype/property-grapheme-link: Likewise.
50448         * modules/unictype/property-hex-digit: Likewise.
50449         * modules/unictype/property-hyphen: Likewise.
50450         * modules/unictype/property-id-continue: Likewise.
50451         * modules/unictype/property-id-start: Likewise.
50452         * modules/unictype/property-ideographic: Likewise.
50453         * modules/unictype/property-ids-binary-operator: Likewise.
50454         * modules/unictype/property-ids-trinary-operator: Likewise.
50455         * modules/unictype/property-ignorable-control: Likewise.
50456         * modules/unictype/property-iso-control: Likewise.
50457         * modules/unictype/property-join-control: Likewise.
50458         * modules/unictype/property-left-of-pair: Likewise.
50459         * modules/unictype/property-line-separator: Likewise.
50460         * modules/unictype/property-logical-order-exception: Likewise.
50461         * modules/unictype/property-lowercase: Likewise.
50462         * modules/unictype/property-math: Likewise.
50463         * modules/unictype/property-non-break: Likewise.
50464         * modules/unictype/property-not-a-character: Likewise.
50465         * modules/unictype/property-numeric: Likewise.
50466         * modules/unictype/property-other-alphabetic: Likewise.
50467         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
50468         * modules/unictype/property-other-grapheme-extend: Likewise.
50469         * modules/unictype/property-other-id-continue: Likewise.
50470         * modules/unictype/property-other-id-start: Likewise.
50471         * modules/unictype/property-other-lowercase: Likewise.
50472         * modules/unictype/property-other-math: Likewise.
50473         * modules/unictype/property-other-uppercase: Likewise.
50474         * modules/unictype/property-paired-punctuation: Likewise.
50475         * modules/unictype/property-paragraph-separator: Likewise.
50476         * modules/unictype/property-pattern-syntax: Likewise.
50477         * modules/unictype/property-pattern-white-space: Likewise.
50478         * modules/unictype/property-private-use: Likewise.
50479         * modules/unictype/property-punctuation: Likewise.
50480         * modules/unictype/property-quotation-mark: Likewise.
50481         * modules/unictype/property-radical: Likewise.
50482         * modules/unictype/property-sentence-terminal: Likewise.
50483         * modules/unictype/property-soft-dotted: Likewise.
50484         * modules/unictype/property-space: Likewise.
50485         * modules/unictype/property-terminal-punctuation: Likewise.
50486         * modules/unictype/property-test: Likewise.
50487         * modules/unictype/property-titlecase: Likewise.
50488         * modules/unictype/property-unassigned-code-value: Likewise.
50489         * modules/unictype/property-unified-ideograph: Likewise.
50490         * modules/unictype/property-uppercase: Likewise.
50491         * modules/unictype/property-variation-selector: Likewise.
50492         * modules/unictype/property-white-space: Likewise.
50493         * modules/unictype/property-xid-continue: Likewise.
50494         * modules/unictype/property-xid-start: Likewise.
50495         * modules/unictype/property-zero-width: Likewise.
50496         * modules/unictype/scripts: Likewise.
50497         * modules/unictype/syntax-c-ident: Likewise.
50498         * modules/unictype/syntax-c-whitespace: Likewise.
50499         * modules/unictype/syntax-java-ident: Likewise.
50500         * modules/unictype/syntax-java-whitespace: Likewise.
50501         * modules/unilbrk/u8-possible-linebreaks: Likewise.
50502         * modules/unilbrk/u8-width-linebreaks: Likewise.
50503         * modules/unilbrk/u16-possible-linebreaks: Likewise.
50504         * modules/unilbrk/u16-width-linebreaks: Likewise.
50505         * modules/unilbrk/u32-possible-linebreaks: Likewise.
50506         * modules/unilbrk/u32-width-linebreaks: Likewise.
50507         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
50508         * modules/unilbrk/ulc-width-linebreaks: Likewise.
50509         * modules/uniname/uniname: Likewise.
50510         * modules/uninorm/canonical-decomposition: Likewise.
50511         * modules/uninorm/composition: Likewise.
50512         * modules/uninorm/decomposing-form: Likewise.
50513         * modules/uninorm/decomposition: Likewise.
50514         * modules/uninorm/filter: Likewise.
50515         * modules/uninorm/nfc: Likewise.
50516         * modules/uninorm/nfd: Likewise.
50517         * modules/uninorm/nfkc: Likewise.
50518         * modules/uninorm/nfkd: Likewise.
50519         * modules/uninorm/u8-normalize: Likewise.
50520         * modules/uninorm/u8-normcmp: Likewise.
50521         * modules/uninorm/u8-normcoll: Likewise.
50522         * modules/uninorm/u8-normxfrm: Likewise.
50523         * modules/uninorm/u16-normalize: Likewise.
50524         * modules/uninorm/u16-normcmp: Likewise.
50525         * modules/uninorm/u16-normcoll: Likewise.
50526         * modules/uninorm/u16-normxfrm: Likewise.
50527         * modules/uninorm/u32-normalize: Likewise.
50528         * modules/uninorm/u32-normcmp: Likewise.
50529         * modules/uninorm/u32-normcoll: Likewise.
50530         * modules/uninorm/u32-normxfrm: Likewise.
50531         * modules/unistdio/u8-asnprintf: Likewise.
50532         * modules/unistdio/u8-asprintf: Likewise.
50533         * modules/unistdio/u8-snprintf: Likewise.
50534         * modules/unistdio/u8-sprintf: Likewise.
50535         * modules/unistdio/u8-u8-asnprintf: Likewise.
50536         * modules/unistdio/u8-u8-asprintf: Likewise.
50537         * modules/unistdio/u8-u8-snprintf: Likewise.
50538         * modules/unistdio/u8-u8-sprintf: Likewise.
50539         * modules/unistdio/u8-u8-vasnprintf: Likewise.
50540         * modules/unistdio/u8-u8-vasprintf: Likewise.
50541         * modules/unistdio/u8-u8-vsnprintf: Likewise.
50542         * modules/unistdio/u8-u8-vsprintf: Likewise.
50543         * modules/unistdio/u8-vasnprintf: Likewise.
50544         * modules/unistdio/u8-vasprintf: Likewise.
50545         * modules/unistdio/u8-vsnprintf: Likewise.
50546         * modules/unistdio/u8-vsprintf: Likewise.
50547         * modules/unistdio/u16-asnprintf: Likewise.
50548         * modules/unistdio/u16-asprintf: Likewise.
50549         * modules/unistdio/u16-snprintf: Likewise.
50550         * modules/unistdio/u16-sprintf: Likewise.
50551         * modules/unistdio/u16-u16-asnprintf: Likewise.
50552         * modules/unistdio/u16-u16-asprintf: Likewise.
50553         * modules/unistdio/u16-u16-snprintf: Likewise.
50554         * modules/unistdio/u16-u16-sprintf: Likewise.
50555         * modules/unistdio/u16-u16-vasnprintf: Likewise.
50556         * modules/unistdio/u16-u16-vasprintf: Likewise.
50557         * modules/unistdio/u16-u16-vsnprintf: Likewise.
50558         * modules/unistdio/u16-u16-vsprintf: Likewise.
50559         * modules/unistdio/u16-vasnprintf: Likewise.
50560         * modules/unistdio/u16-vasprintf: Likewise.
50561         * modules/unistdio/u16-vsnprintf: Likewise.
50562         * modules/unistdio/u16-vsprintf: Likewise.
50563         * modules/unistdio/u32-asnprintf: Likewise.
50564         * modules/unistdio/u32-asprintf: Likewise.
50565         * modules/unistdio/u32-snprintf: Likewise.
50566         * modules/unistdio/u32-sprintf: Likewise.
50567         * modules/unistdio/u32-u32-asnprintf: Likewise.
50568         * modules/unistdio/u32-u32-asprintf: Likewise.
50569         * modules/unistdio/u32-u32-snprintf: Likewise.
50570         * modules/unistdio/u32-u32-sprintf: Likewise.
50571         * modules/unistdio/u32-u32-vasnprintf: Likewise.
50572         * modules/unistdio/u32-u32-vasprintf: Likewise.
50573         * modules/unistdio/u32-u32-vsnprintf: Likewise.
50574         * modules/unistdio/u32-u32-vsprintf: Likewise.
50575         * modules/unistdio/u32-vasnprintf: Likewise.
50576         * modules/unistdio/u32-vasprintf: Likewise.
50577         * modules/unistdio/u32-vsnprintf: Likewise.
50578         * modules/unistdio/u32-vsprintf: Likewise.
50579         * modules/unistdio/ulc-asnprintf: Likewise.
50580         * modules/unistdio/ulc-asprintf: Likewise.
50581         * modules/unistdio/ulc-fprintf: Likewise.
50582         * modules/unistdio/ulc-snprintf: Likewise.
50583         * modules/unistdio/ulc-sprintf: Likewise.
50584         * modules/unistdio/ulc-vasnprintf: Likewise.
50585         * modules/unistdio/ulc-vasprintf: Likewise.
50586         * modules/unistdio/ulc-vfprintf: Likewise.
50587         * modules/unistdio/ulc-vsnprintf: Likewise.
50588         * modules/unistdio/ulc-vsprintf: Likewise.
50589         * modules/unistr/u8-check: Likewise.
50590         * modules/unistr/u8-chr: Likewise.
50591         * modules/unistr/u8-cmp: Likewise.
50592         * modules/unistr/u8-cmp2: Likewise.
50593         * modules/unistr/u8-cpy: Likewise.
50594         * modules/unistr/u8-cpy-alloc: Likewise.
50595         * modules/unistr/u8-endswith: Likewise.
50596         * modules/unistr/u8-mblen: Likewise.
50597         * modules/unistr/u8-mbsnlen: Likewise.
50598         * modules/unistr/u8-mbtouc: Likewise.
50599         * modules/unistr/u8-mbtouc-unsafe: Likewise.
50600         * modules/unistr/u8-mbtoucr: Likewise.
50601         * modules/unistr/u8-move: Likewise.
50602         * modules/unistr/u8-next: Likewise.
50603         * modules/unistr/u8-prev: Likewise.
50604         * modules/unistr/u8-set: Likewise.
50605         * modules/unistr/u8-startswith: Likewise.
50606         * modules/unistr/u8-stpcpy: Likewise.
50607         * modules/unistr/u8-stpncpy: Likewise.
50608         * modules/unistr/u8-strcat: Likewise.
50609         * modules/unistr/u8-strchr: Likewise.
50610         * modules/unistr/u8-strcmp: Likewise.
50611         * modules/unistr/u8-strcoll: Likewise.
50612         * modules/unistr/u8-strcpy: Likewise.
50613         * modules/unistr/u8-strcspn: Likewise.
50614         * modules/unistr/u8-strdup: Likewise.
50615         * modules/unistr/u8-strlen: Likewise.
50616         * modules/unistr/u8-strmblen: Likewise.
50617         * modules/unistr/u8-strmbtouc: Likewise.
50618         * modules/unistr/u8-strncat: Likewise.
50619         * modules/unistr/u8-strncmp: Likewise.
50620         * modules/unistr/u8-strncpy: Likewise.
50621         * modules/unistr/u8-strnlen: Likewise.
50622         * modules/unistr/u8-strpbrk: Likewise.
50623         * modules/unistr/u8-strrchr: Likewise.
50624         * modules/unistr/u8-strspn: Likewise.
50625         * modules/unistr/u8-strstr: Likewise.
50626         * modules/unistr/u8-strtok: Likewise.
50627         * modules/unistr/u8-to-u16: Likewise.
50628         * modules/unistr/u8-to-u32: Likewise.
50629         * modules/unistr/u8-uctomb: Likewise.
50630         * modules/unistr/u16-check: Likewise.
50631         * modules/unistr/u16-chr: Likewise.
50632         * modules/unistr/u16-cmp: Likewise.
50633         * modules/unistr/u16-cmp2: Likewise.
50634         * modules/unistr/u16-cpy: Likewise.
50635         * modules/unistr/u16-cpy-alloc: Likewise.
50636         * modules/unistr/u16-endswith: Likewise.
50637         * modules/unistr/u16-mblen: Likewise.
50638         * modules/unistr/u16-mbsnlen: Likewise.
50639         * modules/unistr/u16-mbtouc: Likewise.
50640         * modules/unistr/u16-mbtouc-unsafe: Likewise.
50641         * modules/unistr/u16-mbtoucr: Likewise.
50642         * modules/unistr/u16-move: Likewise.
50643         * modules/unistr/u16-next: Likewise.
50644         * modules/unistr/u16-prev: Likewise.
50645         * modules/unistr/u16-set: Likewise.
50646         * modules/unistr/u16-startswith: Likewise.
50647         * modules/unistr/u16-stpcpy: Likewise.
50648         * modules/unistr/u16-stpncpy: Likewise.
50649         * modules/unistr/u16-strcat: Likewise.
50650         * modules/unistr/u16-strchr: Likewise.
50651         * modules/unistr/u16-strcmp: Likewise.
50652         * modules/unistr/u16-strcoll: Likewise.
50653         * modules/unistr/u16-strcpy: Likewise.
50654         * modules/unistr/u16-strcspn: Likewise.
50655         * modules/unistr/u16-strdup: Likewise.
50656         * modules/unistr/u16-strlen: Likewise.
50657         * modules/unistr/u16-strmblen: Likewise.
50658         * modules/unistr/u16-strmbtouc: Likewise.
50659         * modules/unistr/u16-strncat: Likewise.
50660         * modules/unistr/u16-strncmp: Likewise.
50661         * modules/unistr/u16-strncpy: Likewise.
50662         * modules/unistr/u16-strnlen: Likewise.
50663         * modules/unistr/u16-strpbrk: Likewise.
50664         * modules/unistr/u16-strrchr: Likewise.
50665         * modules/unistr/u16-strspn: Likewise.
50666         * modules/unistr/u16-strstr: Likewise.
50667         * modules/unistr/u16-strtok: Likewise.
50668         * modules/unistr/u16-to-u32: Likewise.
50669         * modules/unistr/u16-to-u8: Likewise.
50670         * modules/unistr/u16-uctomb: Likewise.
50671         * modules/unistr/u32-check: Likewise.
50672         * modules/unistr/u32-chr: Likewise.
50673         * modules/unistr/u32-cmp: Likewise.
50674         * modules/unistr/u32-cmp2: Likewise.
50675         * modules/unistr/u32-cpy: Likewise.
50676         * modules/unistr/u32-cpy-alloc: Likewise.
50677         * modules/unistr/u32-endswith: Likewise.
50678         * modules/unistr/u32-mblen: Likewise.
50679         * modules/unistr/u32-mbsnlen: Likewise.
50680         * modules/unistr/u32-mbtouc: Likewise.
50681         * modules/unistr/u32-mbtouc-unsafe: Likewise.
50682         * modules/unistr/u32-mbtoucr: Likewise.
50683         * modules/unistr/u32-move: Likewise.
50684         * modules/unistr/u32-next: Likewise.
50685         * modules/unistr/u32-prev: Likewise.
50686         * modules/unistr/u32-set: Likewise.
50687         * modules/unistr/u32-startswith: Likewise.
50688         * modules/unistr/u32-stpcpy: Likewise.
50689         * modules/unistr/u32-stpncpy: Likewise.
50690         * modules/unistr/u32-strcat: Likewise.
50691         * modules/unistr/u32-strchr: Likewise.
50692         * modules/unistr/u32-strcmp: Likewise.
50693         * modules/unistr/u32-strcoll: Likewise.
50694         * modules/unistr/u32-strcpy: Likewise.
50695         * modules/unistr/u32-strcspn: Likewise.
50696         * modules/unistr/u32-strdup: Likewise.
50697         * modules/unistr/u32-strlen: Likewise.
50698         * modules/unistr/u32-strmblen: Likewise.
50699         * modules/unistr/u32-strmbtouc: Likewise.
50700         * modules/unistr/u32-strncat: Likewise.
50701         * modules/unistr/u32-strncmp: Likewise.
50702         * modules/unistr/u32-strncpy: Likewise.
50703         * modules/unistr/u32-strnlen: Likewise.
50704         * modules/unistr/u32-strpbrk: Likewise.
50705         * modules/unistr/u32-strrchr: Likewise.
50706         * modules/unistr/u32-strspn: Likewise.
50707         * modules/unistr/u32-strstr: Likewise.
50708         * modules/unistr/u32-strtok: Likewise.
50709         * modules/unistr/u32-to-u16: Likewise.
50710         * modules/unistr/u32-to-u8: Likewise.
50711         * modules/unistr/u32-uctomb: Likewise.
50712         * modules/uniwbrk/u8-wordbreaks: Likewise.
50713         * modules/uniwbrk/u16-wordbreaks: Likewise.
50714         * modules/uniwbrk/u32-wordbreaks: Likewise.
50715         * modules/uniwbrk/ulc-wordbreaks: Likewise.
50716         * modules/uniwbrk/wordbreak-property: Likewise.
50717         * modules/uniwidth/u8-strwidth: Likewise.
50718         * modules/uniwidth/u8-width: Likewise.
50719         * modules/uniwidth/u16-strwidth: Likewise.
50720         * modules/uniwidth/u16-width: Likewise.
50721         * modules/uniwidth/u32-strwidth: Likewise.
50722         * modules/uniwidth/u32-width: Likewise.
50723         * modules/uniwidth/width: Likewise.
50724         * modules/unicase/cased-tests (Makefile.am): Link all test programs
50725         with $(LIBUNISTRING).
50726         * modules/unicase/ignorable-tests: Likewise.
50727         * modules/unicase/locale-language-tests: Likewise.
50728         * modules/unicase/tolower-tests: Likewise.
50729         * modules/unicase/totitle-tests: Likewise.
50730         * modules/unicase/toupper-tests: Likewise.
50731         * modules/unicase/u8-casecmp-tests: Likewise.
50732         * modules/unicase/u8-casecoll-tests: Likewise.
50733         * modules/unicase/u8-casefold-tests: Likewise.
50734         * modules/unicase/u8-is-cased-tests: Likewise.
50735         * modules/unicase/u8-is-casefolded-tests: Likewise.
50736         * modules/unicase/u8-is-lowercase-tests: Likewise.
50737         * modules/unicase/u8-is-titlecase-tests: Likewise.
50738         * modules/unicase/u8-is-uppercase-tests: Likewise.
50739         * modules/unicase/u8-tolower-tests: Likewise.
50740         * modules/unicase/u8-totitle-tests: Likewise.
50741         * modules/unicase/u8-toupper-tests: Likewise.
50742         * modules/unicase/u16-casecmp-tests: Likewise.
50743         * modules/unicase/u16-casecoll-tests: Likewise.
50744         * modules/unicase/u16-casefold-tests: Likewise.
50745         * modules/unicase/u16-is-cased-tests: Likewise.
50746         * modules/unicase/u16-is-casefolded-tests: Likewise.
50747         * modules/unicase/u16-is-lowercase-tests: Likewise.
50748         * modules/unicase/u16-is-titlecase-tests: Likewise.
50749         * modules/unicase/u16-is-uppercase-tests: Likewise.
50750         * modules/unicase/u16-tolower-tests: Likewise.
50751         * modules/unicase/u16-totitle-tests: Likewise.
50752         * modules/unicase/u16-toupper-tests: Likewise.
50753         * modules/unicase/u32-casecmp-tests: Likewise.
50754         * modules/unicase/u32-casecoll-tests: Likewise.
50755         * modules/unicase/u32-casefold-tests: Likewise.
50756         * modules/unicase/u32-is-cased-tests: Likewise.
50757         * modules/unicase/u32-is-casefolded-tests: Likewise.
50758         * modules/unicase/u32-is-lowercase-tests: Likewise.
50759         * modules/unicase/u32-is-titlecase-tests: Likewise.
50760         * modules/unicase/u32-is-uppercase-tests: Likewise.
50761         * modules/unicase/u32-tolower-tests: Likewise.
50762         * modules/unicase/u32-totitle-tests: Likewise.
50763         * modules/unicase/u32-toupper-tests: Likewise.
50764         * modules/unicase/ulc-casecmp-tests: Likewise.
50765         * modules/unicase/ulc-casecoll-tests: Likewise.
50766         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
50767         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
50768         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
50769         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
50770         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
50771         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
50772         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
50773         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
50774         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
50775         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
50776         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
50777         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
50778         * modules/unictype/bidicategory-byname-tests: Likewise.
50779         * modules/unictype/bidicategory-name-tests: Likewise.
50780         * modules/unictype/bidicategory-of-tests: Likewise.
50781         * modules/unictype/bidicategory-test-tests: Likewise.
50782         * modules/unictype/block-list-tests: Likewise.
50783         * modules/unictype/block-of-tests: Likewise.
50784         * modules/unictype/block-test-tests: Likewise.
50785         * modules/unictype/category-C-tests: Likewise.
50786         * modules/unictype/category-Cc-tests: Likewise.
50787         * modules/unictype/category-Cf-tests: Likewise.
50788         * modules/unictype/category-Cn-tests: Likewise.
50789         * modules/unictype/category-Co-tests: Likewise.
50790         * modules/unictype/category-Cs-tests: Likewise.
50791         * modules/unictype/category-L-tests: Likewise.
50792         * modules/unictype/category-Ll-tests: Likewise.
50793         * modules/unictype/category-Lm-tests: Likewise.
50794         * modules/unictype/category-Lo-tests: Likewise.
50795         * modules/unictype/category-Lt-tests: Likewise.
50796         * modules/unictype/category-Lu-tests: Likewise.
50797         * modules/unictype/category-M-tests: Likewise.
50798         * modules/unictype/category-Mc-tests: Likewise.
50799         * modules/unictype/category-Me-tests: Likewise.
50800         * modules/unictype/category-Mn-tests: Likewise.
50801         * modules/unictype/category-N-tests: Likewise.
50802         * modules/unictype/category-Nd-tests: Likewise.
50803         * modules/unictype/category-Nl-tests: Likewise.
50804         * modules/unictype/category-No-tests: Likewise.
50805         * modules/unictype/category-P-tests: Likewise.
50806         * modules/unictype/category-Pc-tests: Likewise.
50807         * modules/unictype/category-Pd-tests: Likewise.
50808         * modules/unictype/category-Pe-tests: Likewise.
50809         * modules/unictype/category-Pf-tests: Likewise.
50810         * modules/unictype/category-Pi-tests: Likewise.
50811         * modules/unictype/category-Po-tests: Likewise.
50812         * modules/unictype/category-Ps-tests: Likewise.
50813         * modules/unictype/category-S-tests: Likewise.
50814         * modules/unictype/category-Sc-tests: Likewise.
50815         * modules/unictype/category-Sk-tests: Likewise.
50816         * modules/unictype/category-Sm-tests: Likewise.
50817         * modules/unictype/category-So-tests: Likewise.
50818         * modules/unictype/category-Z-tests: Likewise.
50819         * modules/unictype/category-Zl-tests: Likewise.
50820         * modules/unictype/category-Zp-tests: Likewise.
50821         * modules/unictype/category-Zs-tests: Likewise.
50822         * modules/unictype/category-and-not-tests: Likewise.
50823         * modules/unictype/category-and-tests: Likewise.
50824         * modules/unictype/category-byname-tests: Likewise.
50825         * modules/unictype/category-name-tests: Likewise.
50826         * modules/unictype/category-none-tests: Likewise.
50827         * modules/unictype/category-of-tests: Likewise.
50828         * modules/unictype/category-or-tests: Likewise.
50829         * modules/unictype/category-test-withtable-tests: Likewise.
50830         * modules/unictype/combining-class-tests: Likewise.
50831         * modules/unictype/ctype-alnum-tests: Likewise.
50832         * modules/unictype/ctype-alpha-tests: Likewise.
50833         * modules/unictype/ctype-blank-tests: Likewise.
50834         * modules/unictype/ctype-cntrl-tests: Likewise.
50835         * modules/unictype/ctype-digit-tests: Likewise.
50836         * modules/unictype/ctype-graph-tests: Likewise.
50837         * modules/unictype/ctype-lower-tests: Likewise.
50838         * modules/unictype/ctype-print-tests: Likewise.
50839         * modules/unictype/ctype-punct-tests: Likewise.
50840         * modules/unictype/ctype-space-tests: Likewise.
50841         * modules/unictype/ctype-upper-tests: Likewise.
50842         * modules/unictype/ctype-xdigit-tests: Likewise.
50843         * modules/unictype/decimal-digit-tests: Likewise.
50844         * modules/unictype/digit-tests: Likewise.
50845         * modules/unictype/mirror-tests: Likewise.
50846         * modules/unictype/numeric-tests: Likewise.
50847         * modules/unictype/property-alphabetic-tests: Likewise.
50848         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
50849         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
50850         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
50851         * modules/unictype/property-bidi-block-separator-tests: Likewise.
50852         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
50853         * modules/unictype/property-bidi-common-separator-tests: Likewise.
50854         * modules/unictype/property-bidi-control-tests: Likewise.
50855         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
50856         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
50857         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
50858         * modules/unictype/property-bidi-european-digit-tests: Likewise.
50859         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
50860         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
50861         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
50862         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
50863         * modules/unictype/property-bidi-pdf-tests: Likewise.
50864         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
50865         * modules/unictype/property-bidi-whitespace-tests: Likewise.
50866         * modules/unictype/property-byname-tests: Likewise.
50867         * modules/unictype/property-combining-tests: Likewise.
50868         * modules/unictype/property-composite-tests: Likewise.
50869         * modules/unictype/property-currency-symbol-tests: Likewise.
50870         * modules/unictype/property-dash-tests: Likewise.
50871         * modules/unictype/property-decimal-digit-tests: Likewise.
50872         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
50873         * modules/unictype/property-deprecated-tests: Likewise.
50874         * modules/unictype/property-diacritic-tests: Likewise.
50875         * modules/unictype/property-extender-tests: Likewise.
50876         * modules/unictype/property-format-control-tests: Likewise.
50877         * modules/unictype/property-grapheme-base-tests: Likewise.
50878         * modules/unictype/property-grapheme-extend-tests: Likewise.
50879         * modules/unictype/property-grapheme-link-tests: Likewise.
50880         * modules/unictype/property-hex-digit-tests: Likewise.
50881         * modules/unictype/property-hyphen-tests: Likewise.
50882         * modules/unictype/property-id-continue-tests: Likewise.
50883         * modules/unictype/property-id-start-tests: Likewise.
50884         * modules/unictype/property-ideographic-tests: Likewise.
50885         * modules/unictype/property-ids-binary-operator-tests: Likewise.
50886         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
50887         * modules/unictype/property-ignorable-control-tests: Likewise.
50888         * modules/unictype/property-iso-control-tests: Likewise.
50889         * modules/unictype/property-join-control-tests: Likewise.
50890         * modules/unictype/property-left-of-pair-tests: Likewise.
50891         * modules/unictype/property-line-separator-tests: Likewise.
50892         * modules/unictype/property-logical-order-exception-tests: Likewise.
50893         * modules/unictype/property-lowercase-tests: Likewise.
50894         * modules/unictype/property-math-tests: Likewise.
50895         * modules/unictype/property-non-break-tests: Likewise.
50896         * modules/unictype/property-not-a-character-tests: Likewise.
50897         * modules/unictype/property-numeric-tests: Likewise.
50898         * modules/unictype/property-other-alphabetic-tests: Likewise.
50899         * modules/unictype/property-other-default-ignorable-code-point-tests:
50900         Likewise.
50901         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
50902         * modules/unictype/property-other-id-continue-tests: Likewise.
50903         * modules/unictype/property-other-id-start-tests: Likewise.
50904         * modules/unictype/property-other-lowercase-tests: Likewise.
50905         * modules/unictype/property-other-math-tests: Likewise.
50906         * modules/unictype/property-other-uppercase-tests: Likewise.
50907         * modules/unictype/property-paired-punctuation-tests: Likewise.
50908         * modules/unictype/property-paragraph-separator-tests: Likewise.
50909         * modules/unictype/property-pattern-syntax-tests: Likewise.
50910         * modules/unictype/property-pattern-white-space-tests: Likewise.
50911         * modules/unictype/property-private-use-tests: Likewise.
50912         * modules/unictype/property-punctuation-tests: Likewise.
50913         * modules/unictype/property-quotation-mark-tests: Likewise.
50914         * modules/unictype/property-radical-tests: Likewise.
50915         * modules/unictype/property-sentence-terminal-tests: Likewise.
50916         * modules/unictype/property-soft-dotted-tests: Likewise.
50917         * modules/unictype/property-space-tests: Likewise.
50918         * modules/unictype/property-terminal-punctuation-tests: Likewise.
50919         * modules/unictype/property-test-tests: Likewise.
50920         * modules/unictype/property-titlecase-tests: Likewise.
50921         * modules/unictype/property-unassigned-code-value-tests: Likewise.
50922         * modules/unictype/property-unified-ideograph-tests: Likewise.
50923         * modules/unictype/property-uppercase-tests: Likewise.
50924         * modules/unictype/property-variation-selector-tests: Likewise.
50925         * modules/unictype/property-white-space-tests: Likewise.
50926         * modules/unictype/property-xid-continue-tests: Likewise.
50927         * modules/unictype/property-xid-start-tests: Likewise.
50928         * modules/unictype/property-zero-width-tests: Likewise.
50929         * modules/unictype/scripts-tests: Likewise.
50930         * modules/unictype/syntax-c-ident-tests: Likewise.
50931         * modules/unictype/syntax-c-whitespace-tests: Likewise.
50932         * modules/unictype/syntax-java-ident-tests: Likewise.
50933         * modules/unictype/syntax-java-whitespace-tests: Likewise.
50934         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
50935         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
50936         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
50937         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
50938         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
50939         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
50940         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
50941         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
50942         * modules/uniname/uniname-tests: Likewise.
50943         * modules/uninorm/canonical-decomposition-tests: Likewise.
50944         * modules/uninorm/compat-decomposition-tests: Likewise.
50945         * modules/uninorm/composition-tests: Likewise.
50946         * modules/uninorm/decomposing-form-tests: Likewise.
50947         * modules/uninorm/decomposition-tests: Likewise.
50948         * modules/uninorm/filter-tests: Likewise.
50949         * modules/uninorm/nfc-tests: Likewise.
50950         * modules/uninorm/nfd-tests: Likewise.
50951         * modules/uninorm/nfkc-tests: Likewise.
50952         * modules/uninorm/nfkd-tests: Likewise.
50953         * modules/uninorm/u8-normcmp-tests: Likewise.
50954         * modules/uninorm/u8-normcoll-tests: Likewise.
50955         * modules/uninorm/u16-normcmp-tests: Likewise.
50956         * modules/uninorm/u16-normcoll-tests: Likewise.
50957         * modules/uninorm/u32-normcmp-tests: Likewise.
50958         * modules/uninorm/u32-normcoll-tests: Likewise.
50959         * modules/unistdio/u8-asnprintf-tests: Likewise.
50960         * modules/unistdio/u8-vasnprintf-tests: Likewise.
50961         * modules/unistdio/u8-vasprintf-tests: Likewise.
50962         * modules/unistdio/u8-vsnprintf-tests: Likewise.
50963         * modules/unistdio/u8-vsprintf-tests: Likewise.
50964         * modules/unistdio/u16-asnprintf-tests: Likewise.
50965         * modules/unistdio/u16-vasnprintf-tests: Likewise.
50966         * modules/unistdio/u16-vasprintf-tests: Likewise.
50967         * modules/unistdio/u16-vsnprintf-tests: Likewise.
50968         * modules/unistdio/u16-vsprintf-tests: Likewise.
50969         * modules/unistdio/u32-asnprintf-tests: Likewise.
50970         * modules/unistdio/u32-vasnprintf-tests: Likewise.
50971         * modules/unistdio/u32-vasprintf-tests: Likewise.
50972         * modules/unistdio/u32-vsnprintf-tests: Likewise.
50973         * modules/unistdio/u32-vsprintf-tests: Likewise.
50974         * modules/unistdio/ulc-asnprintf-tests: Likewise.
50975         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
50976         * modules/unistdio/ulc-vasprintf-tests: Likewise.
50977         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
50978         * modules/unistdio/ulc-vsprintf-tests: Likewise.
50979         * modules/unistr/u8-check-tests: Likewise.
50980         * modules/unistr/u8-chr-tests: Likewise.
50981         * modules/unistr/u8-cmp-tests: Likewise.
50982         * modules/unistr/u8-cmp2-tests: Likewise.
50983         * modules/unistr/u8-cpy-alloc-tests: Likewise.
50984         * modules/unistr/u8-cpy-tests: Likewise.
50985         * modules/unistr/u8-mblen-tests: Likewise.
50986         * modules/unistr/u8-mbsnlen-tests: Likewise.
50987         * modules/unistr/u8-mbtouc-tests: Likewise.
50988         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
50989         * modules/unistr/u8-mbtoucr-tests: Likewise.
50990         * modules/unistr/u8-move-tests: Likewise.
50991         * modules/unistr/u8-next-tests: Likewise.
50992         * modules/unistr/u8-prev-tests: Likewise.
50993         * modules/unistr/u8-set-tests: Likewise.
50994         * modules/unistr/u8-stpcpy-tests: Likewise.
50995         * modules/unistr/u8-stpncpy-tests: Likewise.
50996         * modules/unistr/u8-strcat-tests: Likewise.
50997         * modules/unistr/u8-strcmp-tests: Likewise.
50998         * modules/unistr/u8-strcoll-tests: Likewise.
50999         * modules/unistr/u8-strcpy-tests: Likewise.
51000         * modules/unistr/u8-strdup-tests: Likewise.
51001         * modules/unistr/u8-strlen-tests: Likewise.
51002         * modules/unistr/u8-strmblen-tests: Likewise.
51003         * modules/unistr/u8-strmbtouc-tests: Likewise.
51004         * modules/unistr/u8-strncat-tests: Likewise.
51005         * modules/unistr/u8-strncmp-tests: Likewise.
51006         * modules/unistr/u8-strncpy-tests: Likewise.
51007         * modules/unistr/u8-strnlen-tests: Likewise.
51008         * modules/unistr/u8-to-u16-tests: Likewise.
51009         * modules/unistr/u8-to-u32-tests: Likewise.
51010         * modules/unistr/u8-uctomb-tests: Likewise.
51011         * modules/unistr/u16-check-tests: Likewise.
51012         * modules/unistr/u16-chr-tests: Likewise.
51013         * modules/unistr/u16-cmp-tests: Likewise.
51014         * modules/unistr/u16-cmp2-tests: Likewise.
51015         * modules/unistr/u16-cpy-alloc-tests: Likewise.
51016         * modules/unistr/u16-cpy-tests: Likewise.
51017         * modules/unistr/u16-mblen-tests: Likewise.
51018         * modules/unistr/u16-mbsnlen-tests: Likewise.
51019         * modules/unistr/u16-mbtouc-tests: Likewise.
51020         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
51021         * modules/unistr/u16-mbtoucr-tests: Likewise.
51022         * modules/unistr/u16-move-tests: Likewise.
51023         * modules/unistr/u16-next-tests: Likewise.
51024         * modules/unistr/u16-prev-tests: Likewise.
51025         * modules/unistr/u16-set-tests: Likewise.
51026         * modules/unistr/u16-stpcpy-tests: Likewise.
51027         * modules/unistr/u16-stpncpy-tests: Likewise.
51028         * modules/unistr/u16-strcat-tests: Likewise.
51029         * modules/unistr/u16-strcmp-tests: Likewise.
51030         * modules/unistr/u16-strcoll-tests: Likewise.
51031         * modules/unistr/u16-strcpy-tests: Likewise.
51032         * modules/unistr/u16-strdup-tests: Likewise.
51033         * modules/unistr/u16-strlen-tests: Likewise.
51034         * modules/unistr/u16-strmblen-tests: Likewise.
51035         * modules/unistr/u16-strmbtouc-tests: Likewise.
51036         * modules/unistr/u16-strncat-tests: Likewise.
51037         * modules/unistr/u16-strncmp-tests: Likewise.
51038         * modules/unistr/u16-strncpy-tests: Likewise.
51039         * modules/unistr/u16-strnlen-tests: Likewise.
51040         * modules/unistr/u16-to-u32-tests: Likewise.
51041         * modules/unistr/u16-to-u8-tests: Likewise.
51042         * modules/unistr/u16-uctomb-tests: Likewise.
51043         * modules/unistr/u32-check-tests: Likewise.
51044         * modules/unistr/u32-chr-tests: Likewise.
51045         * modules/unistr/u32-cmp-tests: Likewise.
51046         * modules/unistr/u32-cmp2-tests: Likewise.
51047         * modules/unistr/u32-cpy-alloc-tests: Likewise.
51048         * modules/unistr/u32-cpy-tests: Likewise.
51049         * modules/unistr/u32-mblen-tests: Likewise.
51050         * modules/unistr/u32-mbsnlen-tests: Likewise.
51051         * modules/unistr/u32-mbtouc-tests: Likewise.
51052         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
51053         * modules/unistr/u32-mbtoucr-tests: Likewise.
51054         * modules/unistr/u32-move-tests: Likewise.
51055         * modules/unistr/u32-next-tests: Likewise.
51056         * modules/unistr/u32-prev-tests: Likewise.
51057         * modules/unistr/u32-set-tests: Likewise.
51058         * modules/unistr/u32-stpcpy-tests: Likewise.
51059         * modules/unistr/u32-stpncpy-tests: Likewise.
51060         * modules/unistr/u32-strcat-tests: Likewise.
51061         * modules/unistr/u32-strcmp-tests: Likewise.
51062         * modules/unistr/u32-strcoll-tests: Likewise.
51063         * modules/unistr/u32-strcpy-tests: Likewise.
51064         * modules/unistr/u32-strdup-tests: Likewise.
51065         * modules/unistr/u32-strlen-tests: Likewise.
51066         * modules/unistr/u32-strmblen-tests: Likewise.
51067         * modules/unistr/u32-strmbtouc-tests: Likewise.
51068         * modules/unistr/u32-strncat-tests: Likewise.
51069         * modules/unistr/u32-strncmp-tests: Likewise.
51070         * modules/unistr/u32-strncpy-tests: Likewise.
51071         * modules/unistr/u32-strnlen-tests: Likewise.
51072         * modules/unistr/u32-to-u16-tests: Likewise.
51073         * modules/unistr/u32-to-u8-tests: Likewise.
51074         * modules/unistr/u32-uctomb-tests: Likewise.
51075         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
51076         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
51077         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
51078         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
51079         * modules/uniwidth/u8-strwidth-tests: Likewise.
51080         * modules/uniwidth/u8-width-tests: Likewise.
51081         * modules/uniwidth/u16-strwidth-tests: Likewise.
51082         * modules/uniwidth/u16-width-tests: Likewise.
51083         * modules/uniwidth/u32-strwidth-tests: Likewise.
51084         * modules/uniwidth/u32-width-tests: Likewise.
51085         * modules/uniwidth/width-tests: Likewise.
51087 2010-05-18  Richard Jones  <rjones@redhat.com>
51089         doc: users.txt: list hivex
51090         * users.txt: Add hivex.
51092 2010-05-18  Richard Jones  <rjones@redhat.com>
51094         doc: users.txt: list febootstrap
51095         * users.txt: Add febootstrap.
51097 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
51099         bootstrap: fix an error when gnulib is not used as a git submodule
51100         * build-aux/bootstrap (gnulib_path): If its length is zero then
51101         assign "gnulib" to it.
51102         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
51104 2010-05-16  Bruno Haible  <bruno@clisp.org>
51106         Avoid autoconf warnings about AM_ICONV.
51107         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
51108         2.64.
51110 2010-05-16  Bruno Haible  <bruno@clisp.org>
51112         absolute-header: Make the macro usable in more situations.
51113         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
51114         from gl_ABSOLUTE_HEADER.
51115         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
51117 2010-05-16  James Youngman  <jay@gnu.org>
51119         doc: update users.txt
51120         * users.txt: Add CSSC.
51122 2010-05-16  Jim Meyering  <meyering@redhat.com>
51124         init.sh: fix an error in the previous change; add more comments
51125         * tests/init.sh: Compare exit code in loop against 9, not 2.
51126         Patch by Bruno Haible.
51127         Make the two tests more similar by adding an empty "then" clause.
51128         Add comments.
51130         init.sh: avoid unnecessary shell re-exec
51131         * tests/init.sh: Improve the re-exec-required check to first test the
51132         current shell.  If it passes the test, do not search for a shell that
51133         does pass, and do not re-exec.  This test is particularly contorted to
51134         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
51135         of $(...) evokes a syntax error and causes immediate shell exit with
51136         status 2.  Bruno Haible reported that the re-exec made it impossible
51137         to single-step through any init.sh-using script.
51139 2010-05-16  Bruno Haible  <bruno@clisp.org>
51141         Fix collision between gnulib's and libintl's printf replacements.
51142         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
51143         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
51144         (printf): When using GNU C, map the __printf__ function to rpl_printf
51145         via __asm__. When not using GNU C, define rpl_printf instead of
51146         __printf__.
51147         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
51148         commit.
51149         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
51150         commit.
51151         * m4/asm-underscore.m4: New file.
51152         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
51153         * modules/stdio (Files): Add m4/asm-underscore.m4.
51154         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
51155         Reported by Ben Pfaff.
51157 2010-05-16  Bruno Haible  <bruno@clisp.org>
51159         verify: Avoid skipping the test on openSUSE 11.0.
51160         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
51162 2010-05-13  Bruno Haible  <bruno@clisp.org>
51164         Avoid useless warnings from G++.
51165         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
51166         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
51167         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
51169 2010-05-11  Jim Meyering  <meyering@redhat.com>
51171         maint.mk: tweak preceding change
51172         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
51173         regexps tighter by anchoring at EOL, and make the new group "shy"
51174         for slightly decreased overhead.
51176 2010-05-11  Eric Blake  <eblake@redhat.com>
51178         maint.mk: gnulib doesn't guarantee NSIG
51179         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
51181 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
51183         test-pwrite.c: Remove unused variable declaration.
51184         * tests/test-pwrite.c (main): Remove read_buf declaration.
51186         Remove useless test-pwrite.sh file.
51187         * tests/test-pwrite.sh: Delete file.
51188         * modules/pwrite-tests: Remove references.
51189         Reported by Bruno Haible.
51191 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
51193         init.sh: fix a typo
51194         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
51196 2010-05-10  Jim Meyering  <meyering@redhat.com>
51198         maint.mk: avoid using a temporary file in the always-defined-macros check
51199         * top/maint.mk (.re-defmac): Remove rule.
51200         (gl_trap_): Remove definition.
51201         (sc_prohibit_always-defined_macros): Rewrite not to create and
51202         depend on a temporary file.  Instead, depend on GNU grep's ability
51203         to read a list of regular expressions from stdin when given "-f -".
51205 2010-05-09  Bruno Haible  <bruno@clisp.org>
51207         Update to GNU gettext 0.18, part 1.
51208         * m4/gettext.m4: Update to GNU gettext 0.18.
51209         * m4/intl.m4: Likewise.
51210         * m4/po.m4: Likewise.
51211         * modules/gettext (Files): Add m4/fcntl-o.m4.
51212         (configure.ac): Require gettext infrastructure from version 0.18.
51214 2010-05-09  Jim Meyering  <meyering@redhat.com>
51216         init.sh: enable MALLOC_PERTURB_
51217         * tests/init.sh: Enable glibc's malloc-perturbing option.
51219         maint.mk: improve sc_cross_check_PATH_usage_in_tests
51220         With my recent change in init.sh from the two-line form:
51221             -#   : ${srcdir=.}
51222             -#   . "$srcdir/init.sh"; path_prepend_ .
51223             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
51224         I noticed that using the one-line form would cause this test
51225         to fail with a false-positive, or to stop working altogether,
51226         depending on whether help-version changed or all the tests did.
51227         * top/maint.mk (_hv_regex): Remove this definition.
51228         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
51229         (_hv_regex_strong): Use a stronger regex to check for conformance.
51230         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
51231         Give a separate diagnostic for lack of conforming use.
51233         maint.mk: prohibit definition of symbols defined by gnulib
51234         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
51235         definition of symbols defined by gnulib.
51237 2010-05-09  Bruno Haible  <bruno@clisp.org>
51239         acl: Avoid test failure on Cygwin-hosted mingw.
51240         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
51242 2010-05-09  Bruno Haible  <bruno@clisp.org>
51244         error: Use system's fcntl function.
51245         * lib/error.c (fcntl): Undefine.
51247 2010-05-09  Jim Meyering  <meyering@redhat.com>
51249         verify: adjust formatting to be more consistent
51250         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
51251         argument-list '('s, and after one comma.
51253 2010-05-09  Bruno Haible  <bruno@clisp.org>
51255         error: More reliable output on mingw.
51256         * lib/error.c: Include <windows.h>.
51257         (is_open): New function.
51258         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
51259         defined.
51261 2010-05-09  Bruno Haible  <bruno@clisp.org>
51263         vasnprintf: Fix syntax errors in libintl build on mingw.
51264         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
51265         pad_ourselves and prec_ourselves after use.
51267 2010-05-08  Bruno Haible  <bruno@clisp.org>
51269         * lib/config.charset: Update comments for Cygwin 1.7.
51270         * lib/localcharset.c: Likewise.
51272 2010-05-07  Jim Meyering  <meyering@redhat.com>
51274         init.sh: improve comments
51275         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
51276         . "${srcdir=.}/init.sh"; path_prepend_ .
51277         Add a note about path_prepend_ and the alternative of using
51278         TESTS_ENVIRONMENT.
51280 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
51282         exclude: Unescape hashed patterns in wildcard mode.
51283         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
51284         to the hash list.
51285         * tests/test-exclude8.sh: New test case.
51286         * modules/exclude-tests: Add new test.
51288 2010-05-05  Eric Blake  <eblake@redhat.com>
51290         verify: automate tests
51291         * modules/verify-tests: New module.
51292         * tests/test-verify.sh: New file.
51293         * tests/test-verify.c: Guard each negative test with a unique id.
51294         Also avoid warning about unused left hand of comma expressions.
51296 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
51298         Further improvements to verify.h, suggested by Eric Blake.
51299         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
51300         the GL_* versions, to avoid collision with OpenGL.
51301         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
51302         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
51303         than testing merely whether it's defined.
51305         Modify verify.h to pacify gcc -Wredundant_decls.
51306         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
51307         These use the prefix "GL_" since they're likely to be useful elsewhere.
51308         We may need to break them out into a different .h file.
51309         (__COUNTER__): Define to 0 if the compiler doesn't support it.
51310         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
51311         of verify_function__.
51313 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
51315         Tests for module pwrite.
51316         * modules/pwrite-tests: New file.
51317         * tests/test-pwrite.sh: New file.
51318         * tests/test-pwrite.c: New file.
51320         New module pwrite.
51321         * lib/unistd.in.h (pwrite): New declaration.
51322         * lib/pwrite.c: New file, from glibc with modifications.
51323         * m4/pwrite.m4: New file.
51324         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
51325         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
51326         REPLACE_PWRITE.
51327         * modules/pwrite: New file.
51328         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
51329         REPLACE_PWRITE.
51330         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
51331         * doc/posix-functions/pwrite.texi: Mention the new module.
51333 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
51335         pread: Update documentation.
51336         * doc/posix-functions/pread.texi: Mention the 'pread' module.
51338 2010-05-04  Eric Blake  <eblake@redhat.com>
51340         docs: update cygwin progress
51341         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
51342         this bug.
51343         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
51344         Added in cygwin 1.7.2.
51345         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
51346         Likewise.
51347         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
51348         Likewise.
51349         * doc/glibc-functions/dup3.texi (dup3): Likewise.
51350         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
51351         * doc/glibc-functions/accept4.texi (accept4): Likewise.
51352         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
51353         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
51354         Mention nproc module.
51355         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
51356         bug in cygwin 1.7.5 addition.
51357         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
51358         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
51359         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
51360         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
51361         1.7.5.
51362         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
51363         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
51364         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
51365         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
51366         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
51367         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
51368         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
51369         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
51370         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
51371         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
51372         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
51373         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
51374         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
51375         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
51376         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
51377         Likewise.
51378         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
51379         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
51380         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
51381         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
51382         Likewise.
51383         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
51384         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
51385         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
51386         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
51387         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
51388         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
51389         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
51390         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
51391         Likewise.
51392         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
51393         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
51394         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
51395         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
51396         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
51397         Likewise.
51398         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
51399         Likewise.
51400         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
51401         Likewise.
51402         * doc/glibc-functions/xdrrec_endofrecord.texi
51403         (xdrrec_endofrecord): Likewise.
51404         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
51405         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
51406         Likewise.
51407         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
51408         Likewise.
51410 2010-05-04  Jim Meyering  <meyering@redhat.com>
51412         gendocs.sh: make its "-s FILE" option more useful
51413         * build-aux/gendocs.sh: When honoring the -s FILE option, update
51414         $PACKAGE to reflect the probably-different basename of "FILE".
51416 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
51418         bootstrap: don't ignore download_po_files failure
51419         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
51420         failure.
51422 2010-05-03  Jim Meyering  <meyering@redhat.com>
51424         maint.mk: allow to pass options to gendocs.sh
51425         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
51426         (gendocs_options_): New overridable variable.
51428         gnu-web-doc-update: don't ignore configure or build failure
51429         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
51431         announce-gen: backslash-escape '@'s in --help output
51432         * build-aux/announce-gen: Fix syntax errors.
51434         maint.mk, announce-gen: allow project-specific announcement mail headers
51435         * top/maint.mk (translation_project_): Define default.
51436         (announcement_Cc_, announcement_mail_headers_): Likewise.
51437         (announcement): Invoke announce-gen with new --mail-headers option.
51438         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
51440         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
51441         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
51442         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
51443         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
51444         line in the "err2" output file when running "make check" in verbose
51445         mode (i.e., with set -x enabled).
51447 2010-05-03  Bruno Haible  <bruno@clisp.org>
51449         wctob: Fix for weird platforms.
51450         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
51451         argument value.
51453 2010-05-03  Jim Meyering  <meyering@redhat.com>
51455         maint.mk: prohibit unwarranted use of <strings.h>
51456         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
51457         strings.h in a file that does not also use strcasecmp, strncasecmp,
51458         ffs or ffsll.
51460         maint.mk: remove obsolete comments
51461         * top/maint.mk: Remove stale, commented-out rules.
51463 2010-05-02  Bruno Haible  <bruno@clisp.org>
51465         wcwidth: Declare also when it's aliased.
51466         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
51467         macro.
51469 2010-05-02  Bruno Haible  <bruno@clisp.org>
51471         Fix regression from 2010-04-25.
51472         * gnulib-tool (func_modules_transitive_closure): Check the status of
51473         all modules, not only of the tests that are of the form foo-tests where
51474         foo is a module.
51476 2010-05-02  Bruno Haible  <bruno@clisp.org>
51478         wctob: Work around nasty Cygwin 1.7.2 bug.
51479         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
51480         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
51482 2010-05-01  Bruno Haible  <bruno@clisp.org>
51484         fpurge: Sharper test.
51485         * tests/test-fpurge.c (main): Add one more ftell check.
51486         * modules/fpurge-tests (Depends-on): Add ftell.
51487         Suggested by Eric Blake.
51489 2010-05-01  Bruno Haible  <bruno@clisp.org>
51491         ftello: Another test.
51492         * tests/test-ftello3.c: New file.
51493         * modules/ftello-tests (Files): Add it.
51494         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
51495         MOSTLYCLEANFILES.
51497         ftell: Another test.
51498         * tests/test-ftell3.c: New file.
51499         * modules/ftell-tests (Files): Add it.
51500         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
51501         MOSTLYCLEANFILES.
51503 2010-05-01  Bruno Haible  <bruno@clisp.org>
51505         ftell, ftello: Work around Solaris bug.
51506         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
51507         * lib/ftello.c: Include stdio-impl.h.
51508         (ftello): On Solaris, when _IOWRT is set, compute the result without
51509         looking at _IOREAD.
51510         * modules/ftello (Files): Add lib/stdio-impl.h.
51511         * doc/posix-functions/ftell.texi: Mention Solaris bug.
51512         * doc/posix-functions/ftello.texi: Likewise.
51513         Reported by Eric Blake.
51515 2010-05-01  Bruno Haible  <bruno@clisp.org>
51517         freading: Adapt to special meaning of _IOREAD flag on Solaris.
51518         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
51519         the _IOWRT flag is also set.
51521 2010-05-01  Bruno Haible  <bruno@clisp.org>
51523         Fix doc about a HP-UX stdio bug.
51524         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
51525         * doc/posix-functions/ftello.texi: Likewise.
51527 2010-05-01  Bruno Haible  <bruno@clisp.org>
51529         lseek test: Fix failure on Solaris.
51530         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
51531         output.
51533 2010-04-30  Jim Meyering  <meyering@redhat.com>
51535         bootstrap: don't ignore failure to generate po*/Makevars
51536         * build-aux/bootstrap (with_gettext): Don't ignore failure
51537         to create po/Makevars or runtime-po/Makevars.
51539 2010-04-29  Eric Blake  <eblake@redhat.com>
51541         headers: relax license to LGPLv2+
51542         * modules/fcntl-h (License): Relax license.
51543         * modules/getopt-posix (License): Likewise.
51544         * modules/locale (License): Likewise.
51545         * modules/math (License): Likewise.
51546         * modules/pty (License): Likewise.
51547         * modules/sched (License): Likewise.
51548         * modules/search (License): Likewise.
51549         * modules/spawn (License): Likewise.
51550         * modules/stdarg (License): Likewise.
51551         * modules/sysexits (License): Likewise.
51553 2010-04-29  Jim Meyering  <meyering@redhat.com>
51555         inttypes: relax license to LGPLv2+
51556         * modules/inttypes (License): Relax license.
51558 2010-04-29  Simon Josefsson  <simon@josefsson.org>
51560         * top/maint.mk (indent): Run twice to produce idempotent results.
51562 2010-04-28  Bruno Haible  <bruno@clisp.org>
51564         getdate: Generate getdate.c in the source directory.
51565         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
51566         MOSTLYCLEANFILES.
51567         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
51569 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
51571         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
51572         is not declared as a const *; avoid warnings in that case.
51574 2010-04-28  Eric Blake  <eblake@redhat.com>
51576         canonicalize-lgpl: avoid compiler warning
51577         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
51578         declaration' / 'extraneous semicolon' warning with some compilers.
51579         Reported by Andreas Gruenbacher.
51581 2010-04-28  Jim Meyering  <meyering@redhat.com>
51583         init.sh: ensure a more reliable exit status when exiting via trap
51584         * tests/init.sh (setup_): Don't rely on $? in signal handler.
51585         Inspired by patches from Dmitry V. Levin.
51586         Also trap on signal 3 (SIGQUIT).
51588 2010-04-27  Bruno Haible  <bruno@clisp.org>
51590         Update doc about utimes().
51591         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
51592         'utimens' module.
51593         Reported by Andreas Gruenbacher <agruen@suse.de>.
51595 2010-04-27  Eric Blake  <eblake@redhat.com>
51597         full-read, full-write: relax license
51598         * modules/full-read (License): Drop to LGPLv2+.
51599         * modules/full-write (License): Likewise.
51600         * modules/safe-read (License): Likewise.
51601         * modules/safe-write (License): Likewise.
51603         pthread: mention library for linking
51604         * modules/pthread (Link): Mention $(LIB_PTHREAD).
51606 2010-04-27  Jim Meyering  <meyering@redhat.com>
51608         maint.mk: fix a bug introduced in last change
51609         * top/maint.mk (gl_assured_headers_): Now that all names are on
51610         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
51611         is not anchored to end of word, it should be adequate.
51613         maint.mk: avoid side-effect in latest syntax-check
51614         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
51615         to run commands via $(shell...), and hence to incur cost only when
51616         the new rule is actually run.
51618         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
51619         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
51620         and use that to create a regexp used to detect all #if HAVE_..._H uses.
51621         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
51622         (gl_assured_headers_, az_, AZ_): Define.
51623         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
51625 2010-04-26  Jim Meyering  <jim@meyering.net>
51626             Bruno Haible  <bruno@clisp.org>
51628         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
51629         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
51630         Prompted by an exchange with Gilles Espinasse.
51632 2010-04-26  Jim Meyering  <meyering@redhat.com>
51634         git-version-gen: aesthetic tweak
51635         * build-aux/git-version-gen: Use "$nl" rather than a literal,
51636         so that the command remains on a single line.
51638 2010-04-26  Eric Blake  <eblake@redhat.com>
51640         git-version-gen: allow use on EBCDIC hosts
51641         * build-aux/git-version-gen (dirty): Use literal rather than tying
51642         ourselves to ascii.
51643         Reported by Steve Goetze.
51645 2010-04-25  Bruno Haible  <bruno@clisp.org>
51647         netdb: Add support for GNULIB_POSIXCHECK.
51648         * lib/netdb.in.h: Include warn-on-use.h.
51649         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
51650         functions are used when GNULIB_POSIXCHECK is defined and the
51651         getaddrinfo module is not in use.
51652         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
51653         freeaddrinfo, gai_strerror, getnameinfo are declared.
51654         * modules/netdb (Depends-on): Add warn-on-use.
51655         (Makefile.am): Include warn-on-use.h in netdb.h.
51657 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
51659         build: avoid "make check" failure without .git/ directory
51660         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
51661         there is no .git/ directory.
51663 2010-04-25  Bruno Haible  <bruno@clisp.org>
51665         ptsname: Fix misuse of ttyname_r.
51666         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
51667         of errno.
51669 2010-04-25  Bruno Haible  <bruno@clisp.org>
51671         ttyname_r: Make it work on Solaris 10.
51672         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
51673         if the system function has the POSIX declaration. Test whether the
51674         function fails if the buffer is less than 128 bytes large.
51675         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
51676         system's ttyname_r function. Provide a reasonably large buffer.
51677         * modules/ttyname_r (Depends-on): Add extensions.
51678         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
51680 2010-04-25  Bruno Haible  <bruno@clisp.org>
51682         Use the 'extensions' module for some more functions on Solaris.
51683         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
51684         module.
51685         * doc/posix-functions/ctime_r.texi: Likewise.
51686         * doc/posix-functions/getgrgid_r.texi: Likewise.
51687         * doc/posix-functions/getgrnam_r.texi: Likewise.
51688         * doc/posix-functions/getpwnam_r.texi: Likewise.
51689         * doc/posix-functions/getpwuid_r.texi: Likewise.
51690         * doc/posix-functions/readdir_r.texi: Likewise.
51691         * doc/posix-functions/sigwait.texi: Likewise.
51692         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
51693         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
51695 2010-04-25  Bruno Haible  <bruno@clisp.org>
51697         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
51698         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
51699         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
51700         * lib/ttyname_r.c: Include <limits.h>.
51701         (ttyname_r): Define using the system's ttyname_r function, if it exists
51702         and not on Solaris.
51703         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
51704         set.
51705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
51706         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
51707         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
51708         Reported by Simon Josefsson.
51710 2010-04-25  Bruno Haible  <bruno@clisp.org>
51712         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
51713         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
51714         * doc/posix-functions/ctime_r.texi: Likewise.
51715         * doc/posix-functions/getgrgid_r.texi: Likewise.
51716         * doc/posix-functions/getgrnam_r.texi: Likewise.
51717         * doc/posix-functions/getlogin_r.texi: Likewise.
51718         * doc/posix-functions/getpwnam_r.texi: Likewise.
51719         * doc/posix-functions/getpwuid_r.texi: Likewise.
51720         * doc/posix-functions/readdir_r.texi: Likewise.
51721         * doc/posix-functions/sigwait.texi: Likewise.
51722         * doc/posix-functions/ttyname_r.texi: Likewise.
51723         Reported by Simon Josefsson.
51725 2010-04-25  Bruno Haible  <bruno@clisp.org>
51727         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
51728         * gnulib-tool (func_usage): Document that --with-*-tests options apply
51729         also to --create-testdir.
51730         (func_acceptable): Don't consider the status of *-tests modules here.
51731         (func_modules_transitive_closure): Consider it here, before including a
51732         test module.
51733         (func_import, func_create_testdir): Set inc_all_direct_tests,
51734         inc_all_indirect_tests.
51735         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
51736         --create-testdir and --create-megatestdir.
51738 2010-04-25  Bruno Haible  <bruno@clisp.org>
51740         gnulib-tool: Add --without-*-tests options.
51741         * gnulib-tool (func_usage): Document the --without-*-tests options.
51742         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
51743         excl_unportable_tests): New variables.
51744         Fail if they are specified with --import or --update.
51745         (func_acceptable): Respect the excl_*_tests variables.
51746         (func_import): Set the excl_*_tests variables to empty.
51748 2010-04-25  Simon Josefsson  <simon@josefsson.org>
51749             Bruno Haible  <bruno@clisp.org>
51751         Work around a MacOS X 10.4 bug with openpty.
51752         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
51753         * tests/test-openpty.c (main): Close the master side explicitly.
51755 2010-04-25  Bruno Haible  <bruno@clisp.org>
51757         strnlen: Fix a C++ test error on MacOS X and Solaris.
51758         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
51759         the function is not declared.
51760         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
51761         Simon Josefsson.
51763 2010-04-24  Bruno Haible  <bruno@clisp.org>
51765         Avoid a gcc warning.
51766         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
51767         of correct type for %08lx directive.
51768         Reported by Eric Blake.
51770 2010-04-24  Bruno Haible  <bruno@clisp.org>
51772         vasnprintf: Correct errno value in case of out-of-memory.
51773         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
51774         or sprintf. Use the errno value from SNPRINTF or sprintf.
51775         Reported by Ian Beckwith <ianb@erislabs.net>.
51777 2010-04-24  Bruno Haible  <bruno@clisp.org>
51779         ansi-c++-opt: Find correct compiler when cross-compiling.
51780         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
51781         AC_CHECK_PROGS.
51782         Reported by Simon Josefsson.
51784 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
51786         vc-list-files: Add support for subversion
51787         * build-aux/vc-list-files: Use "svn list" to generate the list of
51788         files controlled by subversion.
51790 2010-04-23  Jim Meyering  <meyering@redhat.com>
51792         vc-list-files tests: convert to use init.sh
51793         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
51794         path_prepend_.
51795         Use Exit, not exit.
51796         Use skip_ rather than open coding it.
51797         Remove trap set-up and compare definitions.
51798         * tests/test-vc-list-files-git.sh: Likewise.
51799         * modules/vc-list-files-tests (Files): Add tests/init.sh.
51801 2010-04-22  Simon Josefsson  <simon@josefsson.org>
51803         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
51804         backup files.
51806 2010-04-21  Simon Josefsson  <simon@josefsson.org>
51808         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
51810 2010-04-20  Eric Blake  <eblake@redhat.com>
51812         tests: be robust to ignored SIGPIPE
51813         * tests/test-select-in.sh: Consume all output.
51814         * tests/test-lseek.sh: Check correct exit status, while avoiding
51815         EPIPE.
51817 2010-04-20  Simon Josefsson  <simon@josefsson.org>
51818             Bruno Haible  <bruno@clisp.org>
51820         visibility: Don't use -fvisibility if it leads to a warning.
51821         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
51822         yes, don't pretend that visibility works if it leads to a warning.
51823         Reported by Mike Gran <spk121@yahoo.com>.
51825 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
51827         * build-aux/bootstrap: Use "git -h" for testing for supported options
51828         instead of "git --help".  The short-form option only shows a summary,
51829         and doesn't layout the full man page.  Grep for the full option name
51830         in the summary, too.
51832 2010-04-19  Bruno Haible  <bruno@clisp.org>
51834         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
51835         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
51836         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
51837         mention of RELOCATABLE_STRIP.
51838         Reported by Sylvain Beucler <beuc@beuc.net>.
51840 2010-04-19  Bruno Haible  <bruno@clisp.org>
51842         * lib/diffseq.h: Fix typo in comment.
51843         Reported by Eric Blake.
51845 2010-04-19  Bruno Haible  <bruno@clisp.org>
51847         ioctl: Move autoconf macro to a .m4 file.
51848         * m4/ioctl.m4: New file, extracted from modules/ioctl.
51849         * modules/ioctl (Files): Add it.
51850         (configure.ac): Simply invoke gl_FUNC_IOCTL.
51851         Reported by Ian Beckwith <ianb@erislabs.net>.
51853 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
51854             Bruno Haible  <bruno@clisp.org>
51856         diffseq: Accommodate use-case with abstract arrays.
51857         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
51858         is not defined.
51859         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
51860         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
51862 2010-04-18  Bruno Haible  <bruno@clisp.org>
51864         * doc/posix-headers/stdbool.texi: More precise wording.
51866 2010-04-17  Jim Meyering  <meyering@redhat.com>
51868         maint.mk: use gnu-style indentation in an embedded perl script
51869         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
51870         Rename variable: s/two/last_two_bytes/
51872 2010-04-16  Eric Blake  <eblake@redhat.com>
51874         test-stdbool: skip test that fails with Solaris CC
51875         * tests/test-stdbool.c (f): Skip test that causes compilation
51876         error under buggy C++ compiler.
51877         * lib/stdbool.in.h: Document the limitation.
51878         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
51880         setenv: allow compilation with C++
51881         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
51882         register keyword.
51884         stdint: allow test to pass with C++
51885         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
51887         getopt: allow compilation with C++
51888         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
51889         struct.
51890         * lib/getopt.c (_getopt_internal_r): Use correct type.
51891         Reported by Dagobert Michelson, via Joel E. Denny.
51893 2010-04-16  Bruno Haible  <bruno@clisp.org>
51895         Override netdb.h always.
51896         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
51897         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
51898         Reported by Ludovic Courtès <ludo@gnu.org>.
51900 2010-04-15  Bruno Haible  <bruno@clisp.org>
51902         openpty: Fix mistake from 2010-03-21.
51903         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
51904         Reported by Simon Josefsson.
51906 2010-04-15  Eric Blake  <eblake@redhat.com>
51908         test-forkpty: fix expected signature
51909         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
51910         Reported by Simon Josefsson.
51912 2010-04-15  Jim Meyering  <meyering@redhat.com>
51914         maint.mk: texinfo_suffix_re_: correct the default regexp
51915         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
51917         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
51918         make it configurable via texinfo_suffix_re_.
51920 2010-04-14  Eric Blake  <eblake@redhat.com>
51922         strtok_r: relax license to LGPLv2+
51923         * modules/strtok_r (License): Relax license.
51924         Reported by Matthias Bolte.
51926 2010-04-14  Simon Josefsson  <simon@josefsson.org>
51928         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
51929         version 1.4.4 by default instead of requiring the libgcrypt
51930         version used during build.  This makes it possible to use the
51931         application with older but still binary compatible libgcrypt
51932         versions.
51934 2010-04-13  Eric Blake  <eblake@redhat.com>
51936         getopt-gnu: match recent glibc fixes and posix ruling
51937         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
51938         '+' handling, when requesting extensions.
51939         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
51940         'W;' handling.
51941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
51942         * doc/posix-functions/getopt.texi (getopt): Document this.
51943         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
51944         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
51945         Likewise.
51947         getopt: merge bug fixes from glibc
51948         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
51949         diagnostics.  Honor '+:' correctly.  Reject ';'.
51951         getopt-posix: detect MacOS bug
51952         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
51953         optind when missing a required argument.
51954         * doc/posix-functions/getopt.texi (getopt): Document the bug.
51955         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
51956         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
51957         Likewise.
51959         getopt-posix: avoid spurious failure on Solaris
51960         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
51961         an indicator that setting optind=1 is sufficient for reset.
51963         getopt-posix: avoid spurious failure on FreeBSD
51964         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
51965         in POSIX mode, since the m4 test uses it.
51967         gnulib-tool: silence warning on BSD sh
51968         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
51970 2010-04-13  Jim Meyering  <meyering@redhat.com>
51972         doc: users.txt: GNU patch now uses gnulib
51973         * users.txt: Add patch.
51975 2010-04-12  Jim Meyering  <meyering@redhat.com>
51977         maint.mk: generate more concise timing data for syntax-check rules
51978         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
51979         " done" from each line that reports a syntax-check test duration.
51981 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
51983         git-version-gen: use "git update-index..." rather than "git status"
51984         * build-aux/git-version-gen: Use git update-index --refresh, not
51985         "git status".  With some versions of git, "git status" would fail
51986         to update the index and result in an unwarranted "-dirty" suffix.
51988 2010-04-11  Jim Meyering  <meyering@redhat.com>
51990         openat: correct formatting (no semantic change)
51991         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
51992         Suggested by Bruno Haible.
51994 2010-04-11  Bruno Haible  <bruno@clisp.org>
51996         Stricter declaration checking in testdirs.
51997         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51998         If for_tests is true, augment AM_CPPFLAGS to define
51999         GNULIB_STRICT_CHECKING.
52000         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
52001         GNULIB_STRICT_CHECKING is defined, verify that the function is
52002         declared.
52004 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
52005             Bruno Haible  <bruno@clisp.org>
52007         libunistring: Improve configure output.
52008         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
52009         Don't say "consider installing GNU libunistring" when checking again
52010         with libiconv.
52012 2010-04-11  Bruno Haible  <bruno@clisp.org>
52014         libunistring: Correct value of $LTLIBUNISTRING.
52015         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
52016         correct the value of $LTLIBUNISTRING.
52018 2010-04-11  Bruno Haible  <bruno@clisp.org>
52020         havelib: Add static libraries to LIBS in the right order.
52021         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
52022         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
52024 2010-04-11  Bruno Haible  <bruno@clisp.org>
52026         libunistring: Detect libunistring also when it depends on libiconv.
52027         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
52028         the second AC_LIB_HAVE_LINKFLAGS invocation.
52030 2010-04-11  James Youngman  <jay@gnu.org>
52032         close-stream: declare local scalars to be "const"
52033         * lib/close-stream.c (close_stream): Make boolean variables const
52034         to document the fact that we set but do not change them.
52036 2010-04-11  Bruno Haible  <bruno@clisp.org>
52038         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
52040 2010-04-11  Jim Meyering  <meyering@redhat.com>
52042         maint.mk: don't include dist-check.mk
52043         * top/maint.mk: Remove bogus include directive.
52045         maint.mk: improve empty-line-at-EOF check
52046         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
52047         solution, rather than tail+Perl-based one.  The latter would read
52048         a few kilobytes from the end of each file, and did not handle empty
52049         files properly.
52051         maint.mk: print the elapsed time for each syntax-check rule
52052         * top/maint.mk (sc_m_rules_): Save start time in a file.
52053         (sc_z_rules_): New rules: remove temp file and print elapsed time.
52054         (local-check): Interpose the .z rules
52056 2010-04-11  Jim Meyering  <meyering@redhat.com>
52058         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
52059         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
52060         empty file with one that ends in an empty line.
52062 2010-04-10  Bruno Haible  <bruno@clisp.org>
52064         mkdir: Make it work on mingw64.
52065         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
52066         * lib/mkdir.c: Update comment.
52067         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
52069 2010-04-10  Bruno Haible  <bruno@clisp.org>
52071         Don't override improved macro from newer autoconf.
52072         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
52073         autoconf >= 2.62.
52074         Reported by Joel E. Denny <jdenny@clemson.edu>.
52076 2010-04-10  Jim Meyering  <meyering@redhat.com>
52078         maint.mk: new syntax-check rule: prohibit empty lines at end of file
52079         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
52081         maint.mk: correct a diagnostic
52082         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
52083         in diagnostic; now use $prohibit.
52085 2010-04-10  Bruno Haible  <address@hidden>
52087         fchownat: Fix a C++ test error on Solaris 8.
52088         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
52089         the function does not exist.
52091 2010-04-10  Bruno Haible  <bruno@clisp.org>
52093         vasnprintf: Add more tests.
52094         * tests/test-vasnprintf-posix.c: Include <errno.h>.
52095         (test_function): Test converting an invalid wide string.
52097         vasnprintf: Correct handling of unconvertible wide string arguments.
52098         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
52099         VASNPRINTF.
52100         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
52101         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
52102         smaller than the expected maximum need for the directive. Set errno to
52103         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
52104         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
52105         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
52106         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
52107         * modules/vasnprintf (Files): Add m4/printf.m4.
52108         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52110 2010-04-10  Bruno Haible  <bruno@clisp.org>
52112         vasnprintf: Fix crash in %ls directive.
52113         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
52114         string is passed as argument to %ls, with no precision and no width.
52115         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52117 2010-04-10  Bruno Haible  <bruno@clisp.org>
52119         vasnprintf: Fix multiple test failures on mingw.
52120         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
52121         _snprintf, or snwprintf, not _snwprintf.
52123 2010-04-10  Bruno Haible  <bruno@clisp.org>
52125         write: Fix a C++ test error on mingw.
52126         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
52128 2010-04-10  Bruno Haible  <bruno@clisp.org>
52130         vasnprintf test: Reduce code duplication.
52131         * tests/test-vasnprintf.c (test_function): New function, extracted from
52132         test_vasnprintf.
52133         (test_vasnprintf, test_asnprintf): Invoke it.
52135 2010-04-10  Bruno Haible  <bruno@clisp.org>
52137         strnlen: Fix warning in C++ mode on MacOS X.
52138         * lib/string.in.h (strnlen): Use the modern idiom.
52139         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
52140         defining strnlen as a macro already in <config.h>.
52141         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52142         REPLACE_STRNLEN.
52143         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
52144         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52146 2010-04-08  James Youngman  <jay@gnu.org>
52148         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
52149         the example.
52151 2010-04-09  Jim Meyering  <meyering@redhat.com>
52153         maint.mk: print better diagnostic when there is no $(_hv_file)
52154         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
52155         announce that when $(_hv_file) (aka help-version) does not exist.
52157         init.sh: run tr in the "C" locale to avoid multibyte interpretation
52158         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
52159         not try to interpret its random input bytes.  Jarno Rajahalme reported
52160         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
52161         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
52162         (mktempd_): Likewise, just in case.
52164         ftruncate: add two years to projected module removal date: 2012
52165         * m4/ftruncate.m4: Adjust comments.
52167         ftruncate: mark module as obsolete; even MinGW provides it, now
52168         * modules/ftruncate (Status): Obsolete.
52169         (Notice): Say that.
52170         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
52171         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
52173 2010-04-08  Bruno Haible  <bruno@clisp.org>
52175         Fix side effects from tests-related modules.
52176         * modules/dprintf-posix (Comment): New section.
52177         * modules/fprintf-posix (Comment): Likewise.
52178         * modules/obstack-printf-posix (Comment): Likewise.
52179         * modules/printf-posix (Comment): Likewise.
52180         * modules/snprintf-posix (Comment): Likewise.
52181         * modules/sprintf-posix (Comment): Likewise.
52182         * modules/vasnprintf-posix (Comment): Likewise.
52183         * modules/vasprintf-posix (Comment): Likewise.
52184         * modules/vdprintf-posix (Comment): Likewise.
52185         * modules/vfprintf-posix (Comment): Likewise.
52186         * modules/vprintf-posix (Comment): Likewise.
52187         * modules/vsnprintf-posix (Comment): Likewise.
52188         * modules/vsprintf-posix (Comment): Likewise.
52189         * modules/xprintf-posix (Comment): Likewise.
52190         * modules/xvasprintf-posix (Comment): Likewise.
52191         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
52192         * modules/floorf-tests (Depends-on): Likewise.
52193         * modules/round-tests (Depends-on): Likewise.
52194         * modules/roundf-tests (Depends-on): Likewise.
52195         * modules/trunc-tests (Depends-on): Likewise.
52196         * modules/truncf-tests (Depends-on): Likewise.
52197         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
52198         'fprintf-posix' module is not present.
52199         * tests/test-floorf2.c (check): Likewise.
52200         * tests/test-trunc2.c (check): Likewise.
52201         * tests/test-truncf2.c (check): Likewise.
52202         * tests/test-round2.c (equal): Likewise.
52203         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52205 2010-04-07  Karl Berry  <karl@gnu.org>
52207         * config/srclist.txt,
52208         * config/srclistvars.sh,
52209         * config/srclist-update: doc fixes.
52211 2010-04-07  Jim Meyering  <meyering@redhat.com>
52213         maint.mk: add a PATH crosschecking syntax-check rule
52214         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
52215         Useful if you use a test like the one in help-version (coreutils,
52216         diffutils, grep, gzip) that ensures $(VERSION) matches what is
52217         printed by prog --version.
52219 2010-04-06  Bruno Haible  <bruno@clisp.org>
52221         Fix link error on mingw.
52222         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
52223         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
52225 2010-04-06  Bruno Haible  <bruno@clisp.org>
52227         Assume rmdir exists.
52228         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
52230 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
52232         doc: update users.txt
52233         * users.txt: Add gcal.
52235 2010-04-06  Jim Meyering  <meyering@redhat.com>
52237         init.sh: simply unset TMPDIR rather than risking env -i
52238         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
52239         although it probably works fine on all Unix-based systems, some
52240         systems (Cygwin?) cannot tolerate a totally cleared environment.
52241         Suggestion from Eric Blake.
52243 2010-04-06  Jim Meyering  <meyering@redhat.com>
52245         init.sh: portability fix: use env's POSIX-specified -i option not -u
52246         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
52247         than unportable env -u.  Solaris 5.11's env lacks support for -u.
52249 2010-04-05  Bruno Haible  <bruno@clisp.org>
52251         btowc: Work around Cygwin 1.7.2 bug.
52252         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
52253         does not map NUL to 0.
52254         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
52256 2010-04-05  Bruno Haible  <bruno@clisp.org>
52258         Make the multithread modules work on Cygwin 1.7.2.
52259         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
52260         imported symbols can be declared weak, so that it returns "no" on
52261         Cygwin 1.7.2.
52263 2010-04-05  Bruno Haible  <bruno@clisp.org>
52265         Use the module 'strncat'.
52266         * modules/unistr/u8-strncat (Depends-on): Add strncat.
52268         Tests for module 'strncat'.
52269         * modules/strncat-tests: New file.
52270         * tests/test-strncat.c: New file.
52272         New module 'strncat'.
52273         * lib/string.in.h (strncat): New declaration.
52274         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
52275         * m4/strncat.m4: New file, based on m4/memchr.m4.
52276         * modules/strncat: New file.
52277         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
52278         is declared.
52279         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
52280         REPLACE_STRNCAT.
52281         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
52282         REPLACE_STRNCAT.
52283         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
52284         module.
52285         * tests/test-string-c++.cc: Check signature of strncat.
52287 2010-04-05  Jim Meyering  <meyering@redhat.com>
52289         xstrtoumax-tests: convert to use init.sh
52290         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
52291         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
52292         Use Exit, not exit.
52293         Remove uses of $EXEEXT and "./" to run a program in the current dir.
52295         xstrtoimax-tests: convert to use init.sh
52296         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
52297         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
52298         Use Exit, not exit.
52299         Remove uses of $EXEEXT and "./" to run a program in the current dir.
52301 2010-04-05  Bruno Haible  <bruno@clisp.org>
52303         sys_socket: Avoid #define replacements in C++ mode.
52304         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
52305         warning to the function if possible, rather than #defining the symbol
52306         to a dysfunctional alias.
52308 2010-04-05  Bruno Haible  <bruno@clisp.org>
52310         fseeko: Fix C++ test error on mingw.
52311         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
52312         gl_FUNC_FSEEKO.
52313         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
52314         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
52315         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
52316         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
52318 2010-04-05  Bruno Haible  <bruno@clisp.org>
52320         duplocale: Improve test output.
52321         * tests/test-duplocale.c (main): Print reason for skipped test.
52323 2010-04-05  Bruno Haible  <bruno@clisp.org>
52325         Assume rmdir exists.
52326         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
52327         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
52329 2010-04-05  Bruno Haible  <bruno@clisp.org>
52331         Fix link error on Solaris 8 with cc.
52332         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
52334 2010-04-05  Bruno Haible  <bruno@clisp.org>
52336         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
52337         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
52339 2010-04-05  Bruno Haible  <bruno@clisp.org>
52341         vasprintf: Update documentation.
52342         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
52344 2010-04-05  Bruno Haible  <bruno@clisp.org>
52346         ptsname: Improve test.
52347         * tests/test-ptsname.c (main): Also try the various master names of BSD
52348         systems.
52350 2010-04-05  Bruno Haible  <bruno@clisp.org>
52352         memchr: Avoid a possible C++ test error.
52353         * lib/string.in.h (memchr): Provide declaration if function is missing.
52354         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
52355         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
52356         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
52357         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
52359 2010-04-05  Bruno Haible  <bruno@clisp.org>
52361         strtok_r: Improve idiom.
52362         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
52363         AC_LIBOBJ is used.
52365 2010-04-05  Bruno Haible  <bruno@clisp.org>
52367         strdup: Improve idiom.
52368         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
52369         AC_LIBOBJ is used.
52370         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
52371         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
52372         when AC_LIBOBJ is used.
52374 2010-04-05  Bruno Haible  <bruno@clisp.org>
52376         mbsinit, mbrtowc, wcrtomb: Improve idioms.
52377         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
52378         don't set REPLACE_MBSINIT to 1.
52379         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
52380         don't set REPLACE_MBRTOWC to 1.
52381         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
52382         exist, don't set REPLACE_MBSRTOWCS to 1.
52383         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
52384         exist, don't set REPLACE_MBSNRTOWCS to 1.
52385         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
52386         don't set REPLACE_WCRTOMB to 1.
52387         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
52388         exist, don't set REPLACE_WCSRTOMBS to 1.
52389         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
52390         exist, don't set REPLACE_WCSNRTOMBS to 1.
52392 2010-04-05  Bruno Haible  <bruno@clisp.org>
52394         ldexpl: Improve idiom.
52395         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
52396         make sure to set HAVE_DECL_LDEXPL to 0.
52398 2010-04-05  Jim Meyering  <meyering@redhat.com>
52400         xstrtol-tests: convert to use init.sh
52401         * modules/xstrtol-tests (Files): Add tests/init.sh.
52402         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
52403         Use Exit, not exit.
52404         Remove uses of $EXEEXT and "./" to run a program in the current dir.
52406         atexit-tests: convert to use init.sh
52407         * modules/atexit-tests (Files): Add tests/init.sh.
52408         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
52409         Use Exit, not exit.
52410         Remove uses of $EXEEXT and "./" to run a program in the current dir.
52412         init.sh: fix typo
52413         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
52415         init.sh: make it easier for a test script to write to the tty, ...
52416         when using automake's parallel-tests mode.
52417         * tests/init.sh (stderr_fileno_): Define overridable variable.
52418         (warn_): New function, to use it.
52419         (fail_, skip_, framework_failure_): Use warn_.
52421 2010-04-04  Bruno Haible  <bruno@clisp.org>
52423         btowc: Avoid warning.
52424         * lib/btowc.c: Include <stdlib.h>.
52425         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
52427 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
52428             Bruno Haible  <bruno@clisp.org>
52430         wchar: Port to NetBSD 1.5.
52431         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
52432         * lib/wctype.in.h (WEOF): Likewise.
52434 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
52435             Bruno Haible  <bruno@clisp.org>
52437         Port extended stdio to NetBSD 1.5.
52438         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
52439         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
52440         older.
52442 2010-04-04  Bruno Haible  <bruno@clisp.org>
52444         string: Remove unused substitution.
52445         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
52446         HAVE_DECL_STRERROR.
52447         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
52449 2010-04-04  Bruno Haible  <bruno@clisp.org>
52451         strtod: Avoid a possible C++ test error.
52452         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
52453         set REPLACE_STRTOD.
52455 2010-04-04  Bruno Haible  <bruno@clisp.org>
52457         strerror: Update documentation.
52458         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
52460 2010-04-04  Bruno Haible  <bruno@clisp.org>
52462         stdio: Fix some C++ test errors on Solaris 8 with GCC.
52463         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
52464         _GL_CXXALIAS_SYS_CAST.
52466 2010-04-04  Bruno Haible  <bruno@clisp.org>
52468         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
52469         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
52470         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
52471         REPLACE_FREXPL to 1.
52472         * doc/posix-functions/frexpl.texi: Update documentation.
52474 2010-04-04  Bruno Haible  <bruno@clisp.org>
52476         math: Fix some C++ test errors on Solaris 8 and Cygwin.
52477         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
52479 2010-04-04  Bruno Haible  <bruno@clisp.org>
52481         Implement nanosleep for native Windows.
52482         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
52484 2010-04-04  Bruno Haible  <bruno@clisp.org>
52486         math: Fix some C++ test errors on Solaris 8.
52487         * lib/math.in.h (truncf, trunc): Use simpler idiom.
52489 2010-04-04  Bruno Haible  <bruno@clisp.org>
52491         math: Fix some C++ test errors on Cygwin.
52492         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
52493         truncl): Provide declaration if the system does not have it.
52494         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
52495         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
52496         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
52497         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
52498         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
52499         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
52500         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
52501         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
52502         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
52503         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
52504         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
52505         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
52506         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
52507         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
52508         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
52509         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
52510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
52511         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
52512         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
52513         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
52514         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
52515         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
52517 2010-04-04  Bruno Haible  <bruno@clisp.org>
52519         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
52520         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
52521         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
52522         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
52523         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
52524         * m4/isinf.m4 (gl_ISINF): Likewise.
52525         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
52527 2010-04-04  Bruno Haible  <bruno@clisp.org>
52529         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
52530         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
52532 2010-04-04  Bruno Haible  <bruno@clisp.org>
52534         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
52535         * modules/tmpfile (configure.ac): Update.
52537         tmpfile: Fix C++ test error on mingw.
52538         * lib/stdio.in.h (tmpfile): New declaration.
52539         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
52540         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
52541         * modules/tmpfile (Depends-on): Add stdio.
52542         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52543         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
52544         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
52545         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
52546         REPLACE_TMPFILE.
52547         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
52549 2010-04-04  Bruno Haible  <bruno@clisp.org>
52551         ioctl: Fix C++ test error on mingw.
52552         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
52553         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
52554         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
52556 2010-04-03  Bruno Haible  <bruno@clisp.org>
52558         wcwidth: Fix C++ test error on mingw.
52559         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
52560         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
52561         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
52563 2010-04-03  Bruno Haible  <bruno@clisp.org>
52565         nanosleep: Fix C++ test error on mingw.
52566         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
52567         * lib/time.in.h (nanosleep): Use modern idiom.
52568         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
52569         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
52570         REPLACE_NANOSLEEP to 1.
52571         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
52572         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
52574 2010-04-03  Bruno Haible  <bruno@clisp.org>
52576         strptime: Fix C++ test error on mingw.
52577         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
52578         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
52579         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
52580         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
52581         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
52582         not REPLACE_STRPTIME.
52583         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
52584         REPLACE_STRPTIME.
52586 2010-04-03  Bruno Haible  <bruno@clisp.org>
52588         timegm: Fix C++ test error on mingw.
52589         * lib/time.in.h (timegm): Use modern idiom.
52590         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
52591         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
52592         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
52593         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
52595 2010-04-03  Bruno Haible  <bruno@clisp.org>
52597         timegm: Assume declaration if function exists.
52598         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
52599         if it exists. Don't clobber ac_cv_func_timegm.
52601 2010-04-03  Bruno Haible  <bruno@clisp.org>
52603         time_r: Fix C++ test error on mingw.
52604         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
52605         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
52606         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
52607         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
52608         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
52610 2010-04-03  Bruno Haible  <bruno@clisp.org>
52612         time_r: Minor updates.
52613         * modules/time_r (Description): Mention the provided functions.
52614         * lib/time_r.c: Don't include <string.h>.
52615         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
52616         * doc/posix-functions/localtime_r.texi: Likewise.
52618 2010-04-03  Bruno Haible  <bruno@clisp.org>
52620         time: Fix regression introduced on 2010-03-08.
52621         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
52622         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
52624 2010-04-03  Jim Meyering  <meyering@redhat.com>
52626         maint.mk: don't silently disable project-specific syntax-check rules
52627         * top/maint.mk (_prohibit_regexp): Define, to help people realize
52628         that they need to convert their project-specific syntax-check rules
52629         to use the new _sc_search_regexp.
52631 2010-04-03  Bruno Haible  <bruno@clisp.org>
52633         fchdir: Fix regression introduced on 2010-03-08.
52634         * lib/unistd.in.h (fchdir): Fix declaration.
52635         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
52636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
52637         REPLACE_FCHDIR.
52638         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
52639         REPLACE_FCHDIR.
52641 2010-04-03  Bruno Haible  <bruno@clisp.org>
52643         getpagesize: Fix C++ test error on mingw.
52644         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
52645         system does not declare the function.
52646         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
52647         declared.
52648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52649         HAVE_DECL_GETPAGESIZE.
52650         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
52652 2010-04-03  Bruno Haible  <bruno@clisp.org>
52654         stdio: Make C++ tests work on mingw.
52655         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
52656         does not declare the function.
52658 2010-04-03  Bruno Haible  <bruno@clisp.org>
52660         ftello: Fix C++ test error on mingw.
52661         * lib/stdio.in.h (ftello): Use modern idiom.
52662         * lib/ftello.c (ftello): Renamed from rpl_ftello.
52663         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
52664         is missing and that it needs to be replaced.
52665         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
52666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
52667         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
52669 2010-04-03  Bruno Haible  <bruno@clisp.org>
52671         fseeko: Fix C++ test error on mingw.
52672         * lib/stdio.in.h (fseeko): Use modern idiom.
52673         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
52674         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
52675         is missing and that it needs to be replaced.
52676         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
52677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
52678         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
52680 2010-04-03  Bruno Haible  <bruno@clisp.org>
52682         mkstemp: Fix C++ test error on mingw.
52683         * lib/stdlib.in.h (mkstemp): Use modern idiom.
52684         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
52685         function is missing and that it needs to be replaced.
52686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
52687         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
52689 2010-04-03  Bruno Haible  <bruno@clisp.org>
52691         stpncpy: Fix C++ test error on mingw.
52692         * lib/string.in.h (stpncpy): Use modern idiom.
52693         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
52694         function is missing and that it needs to be replaced.
52695         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52696         REPLACE_STPNCPY.
52697         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
52699 2010-04-03  Bruno Haible  <bruno@clisp.org>
52701         sys_stat: Fix C++ test error on mingw.
52702         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
52703         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
52705 2010-04-03  Bruno Haible  <bruno@clisp.org>
52707         pty: Update doc.
52708         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
52710 2010-04-03  Bruno Haible  <bruno@clisp.org>
52712         unistd: Fix C++ test error on mingw.
52713         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
52715 2010-04-03  Bruno Haible  <bruno@clisp.org>
52717         Update doc regarding mingw.
52718         * doc/glibc-functions/openpty.texi: Update regarding mingw.
52719         * doc/glibc-functions/login_tty.texi: Likewise.
52720         * doc/glibc-functions/forkpty.texi: Likewise.
52722 2010-04-03  Bruno Haible  <bruno@clisp.org>
52724         stdlib: Avoid compilation failure of c-strtold on mingw.
52725         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
52727 2010-04-03  Bruno Haible  <bruno@clisp.org>
52729         locale: Make C++ tests work on Cygwin and mingw.
52730         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
52731         cannot provide the function.
52732         Reported by Simon Josefsson.
52734 2010-04-03  Bruno Haible  <bruno@clisp.org>
52736         localename: Port to MacOS X 10.6.
52737         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
52738         memory layout of the locales in MacOS X 10.6 as well.
52739         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
52741 2010-04-02  Bruno Haible  <bruno@clisp.org>
52743         gnulib-tool: Ensure that long-running tests are executed last.
52744         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
52745         running tests after the one for the other tests.
52747 2010-04-02  Bruno Haible  <bruno@clisp.org>
52749         gnulib-tool: Ensure the tests in the main directory are executed first.
52750         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
52751         start with the current directory.
52753 2010-04-02  Bruno Haible  <bruno@clisp.org>
52755         Tests for module 'havelib', moved here from GNU gettext.
52756         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
52757         modifications.
52758         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
52759         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
52760         with modifications.
52761         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
52762         modifications.
52763         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
52764         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
52765         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
52766         with modifications.
52767         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
52768         with modifications.
52769         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
52770         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
52771         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
52772         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
52773         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
52774         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
52775         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
52776         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
52777         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
52778         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
52779         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
52780         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
52781         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
52782         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
52783         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
52784         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
52785         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
52786         with modifications.
52787         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
52788         with modifications.
52789         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
52790         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
52791         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
52792         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
52793         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
52794         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
52795         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
52796         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
52797         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
52798         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
52799         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
52800         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
52801         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
52802         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
52803         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
52804         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
52805         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
52806         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
52807         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
52808         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
52809         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
52810         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
52811         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
52812         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
52813         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
52814         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
52815         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
52816         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
52817         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
52818         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
52819         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
52820         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
52821         * tests/havelib/rpathx/rpathx.c: New file, from
52822         gettext/autoconf-lib-link.
52823         * tests/havelib/rpathx/Makefile.am: New file, from
52824         gettext/autoconf-lib-link.
52825         * tests/havelib/rpathx/configure.ac: New file, from
52826         gettext/autoconf-lib-link with modifications.
52827         * tests/havelib/rpathy/rpathy.c: New file, from
52828         gettext/autoconf-lib-link.
52829         * tests/havelib/rpathy/Makefile.am: New file, from
52830         gettext/autoconf-lib-link.
52831         * tests/havelib/rpathy/configure.ac: New file, from
52832         gettext/autoconf-lib-link with modifications.
52833         * tests/havelib/rpathz/rpathz.c: New file, from
52834         gettext/autoconf-lib-link.
52835         * tests/havelib/rpathz/Makefile.am: New file, from
52836         gettext/autoconf-lib-link.
52837         * tests/havelib/rpathz/configure.ac: New file, from
52838         gettext/autoconf-lib-link with modifications.
52839         * tests/havelib/rpathlx/usex.c: New file, from
52840         gettext/autoconf-lib-link.
52841         * tests/havelib/rpathlx/Makefile.am: New file, from
52842         gettext/autoconf-lib-link.
52843         * tests/havelib/rpathlx/configure.ac: New file, from
52844         gettext/autoconf-lib-link with modifications.
52845         * tests/havelib/rpathly/usey.c: New file, from
52846         gettext/autoconf-lib-link.
52847         * tests/havelib/rpathly/Makefile.am: New file, from
52848         gettext/autoconf-lib-link.
52849         * tests/havelib/rpathly/configure.ac: New file, from
52850         gettext/autoconf-lib-link with modifications.
52851         * tests/havelib/rpathlz/usez.c: New file, from
52852         gettext/autoconf-lib-link.
52853         * tests/havelib/rpathlz/Makefile.am: New file, from
52854         gettext/autoconf-lib-link.
52855         * tests/havelib/rpathlz/configure.ac: New file, from
52856         gettext/autoconf-lib-link with modifications.
52857         * tests/havelib/rpathlyx/usey.c: New file, from
52858         gettext/autoconf-lib-link.
52859         * tests/havelib/rpathlyx/Makefile.am: New file, from
52860         gettext/autoconf-lib-link.
52861         * tests/havelib/rpathlyx/configure.ac: New file, from
52862         gettext/autoconf-lib-link with modifications.
52863         * tests/havelib/rpathlzyx/usez.c: New file, from
52864         gettext/autoconf-lib-link.
52865         * tests/havelib/rpathlzyx/Makefile.am: New file, from
52866         gettext/autoconf-lib-link.
52867         * tests/havelib/rpathlzyx/configure.ac: New file, from
52868         gettext/autoconf-lib-link with modifications.
52869         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
52870         with modifications.
52872 2010-04-02  Bruno Haible  <bruno@clisp.org>
52874         gnulib-tool: Create distributed built sources also for the tests.
52875         * gnulib-tool (func_create_testdir): Also generate distributed built
52876         sources in the tests directory.
52878 2010-04-02  Bruno Haible  <bruno@clisp.org>
52880         gnulib-tool: Obey user's environment variables.
52881         * gnulib-tool (func_create_testdir): When creating built sources,
52882         respect the environment variables for autoconf, automake, etc. given by
52883         the user.
52885 2010-04-02  Bruno Haible  <bruno@clisp.org>
52887         gnulib-tool: Provide the value of --m4-base to modules.
52888         * gnulib-tool (func_import, func_create_testdir): Emit a definition
52889         of gl_m4_base.
52891 2010-04-02  Eric Blake  <eblake@redhat.com>
52893         maint.mk: fix some fallout
52894         * NEWS: Document the incompatible change, and its effect on cfg.mk.
52895         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
52897 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
52899         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
52900         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
52901         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
52902         (sc_cast_of_x_alloc_return_value): Likewise.
52903         (sc_cast_of_alloca_return_value): Likewise.
52904         (sc_space_tab): Likewise.
52905         (sc_prohibit_atoi_atof): Likewise.
52906         (sc_prohibit_magic_number_exit): Likewise.
52907         (sc_error_exit_success): Likewise.
52908         (sc_file_system): Likewise.
52909         (sc_prohibit_have_config_h): Likewise.
52910         (sc_require_config_h): Likewise.
52911         (sc_prohibit_HAVE_MBRTOWC): Likewise.
52912         (sc_obsolete_symbols): Likewise.
52913         (sc_changelog): Likewise.
52914         (sc_program_name): Likewise.
52915         (sc_the_the): Likewise.
52916         (sc_trailing_blank): Likewise.
52917         (sc_two_space_separator_in_usage): Likewise.
52918         (sc_useless_cpp_parens): Likewise.
52919         (sc_GPL_version): Likewise.
52920         (sc_GFDL_version): Likewise.
52921         (sc_texinfo_acronym): Likewise.
52922         (sc_prohibit_cvs_keyword): Likewise.
52923         (sc_prohibit_stat_st_blocks): Likewise.
52924         (sc_prohibit_S_IS_definition): Likewise.
52925         (sc_redundant_const): Likewise.
52926         (sc_makefile_TAB_only_indentation): Likewise.
52927         (sc_m4_quote_check): Likewise.
52928         (sc_makefile_path_separator_check): Likewise.
52929         (sc_copyright_check): Likewise.
52930         (sc_Wundef_boolean): Likewise.
52931         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
52933         maint.mk: match 0 or more whitespace-before-function-call '('
52934         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
52935         that have zero or two-and-more spaces between the function name
52936         and the open parenthesis.
52937         (sc_error_message_warn_fatal): Likewise.
52938         (sc_error_message_uppercase): Likewise.
52939         (sc_error_message_period): Likewise.
52941 2010-03-31  Eric Blake  <eblake@redhat.com>
52943         maint.mk: check for [ as well as test
52944         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
52945         Based on a libvirt report by Matthias Bolte.
52947         gnumakefile: don't squelch _version output
52948         * top/GNUmakefile (_version): Create one-shot dependency rather
52949         than using $(shell) when version must be regenerated.
52950         (_autoreconf): Run verbosely, by default.
52952         sys_time: avoid compiler warnings
52953         * lib/sys_time.in.h (includes): Ensure gcc pragma is
52954         unconditional, fixing regression from 2010-03-29.
52955         Reported by Simon Josefsson.
52957 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
52959         maint.mk: s/_header_without_use/_sc_header_without_use/
52960         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
52961         (sc_prohibit_assert_without_use): Use the new name.
52962         (sc_prohibit_close_stream_without_use): Likewise.
52963         (sc_prohibit_getopt_without_use): Likewise.
52964         (sc_prohibit_quotearg_without_use): Likewise.
52965         (sc_prohibit_quote_without_use): Likewise.
52966         (sc_prohibit_long_options_without_use): Likewise.
52967         (sc_prohibit_inttostr_without_use): Likewise.
52968         (sc_prohibit_ignore_value_without_use): Likewise.
52969         (sc_prohibit_error_without_use): Likewise.
52970         (sc_prohibit_xalloc_without_use): Likewise.
52971         (sc_prohibit_hash_without_use): Likewise.
52972         (sc_prohibit_hash_pjw_without_use): Likewise.
52973         (sc_prohibit_safe_read_without_use): Likewise.
52974         (sc_prohibit_argmatch_without_use): Likewise.
52975         (sc_prohibit_canonicalize_without_use): Likewise.
52976         (sc_prohibit_root_dev_ino_without_use): Likewise.
52977         (sc_prohibit_openat_without_use): Likewise.
52978         (sc_prohibit_c_ctype_without_use): Likewise.
52979         (sc_prohibit_signal_without_use): Likewise.
52980         (sc_prohibit_intprops_without_use): Likewise.
52982 2010-03-30  Eric Blake  <eblake@redhat.com>
52984         maint: improve module indicators
52985         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
52986         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
52987         columns, and avoid extra macro expansion.
52989         fdopendir: work around FreeBSD bug
52990         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
52991         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
52992         * modules/dirent (Makefile.am): Substitute it.
52993         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
52994         declaration.
52995         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
52996         fix.
52997         Reported by Christian Weisgerber <naddy@mips.inka.de>.
52999 2010-03-29  Bruno Haible  <bruno@clisp.org>
53001         Emit #pragma system_header after the inclusion guard, not before.
53002         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
53003         guard that spans the entire file, not before. This enables an
53004         optimization in GCC's preprocessor.
53005         * lib/ctype.in.h: Likewise.
53006         * lib/dirent.in.h: Likewise.
53007         * lib/errno.in.h: Likewise.
53008         * lib/float.in.h: Likewise.
53009         * lib/getopt.in.h: Likewise.
53010         * lib/iconv.in.h: Likewise.
53011         * lib/langinfo.in.h: Likewise.
53012         * lib/locale.in.h: Likewise.
53013         * lib/math.in.h: Likewise.
53014         * lib/netdb.in.h: Likewise.
53015         * lib/netinet_in.in.h: Likewise.
53016         * lib/pty.in.h: Likewise.
53017         * lib/sched.in.h: Likewise.
53018         * lib/se-selinux.in.h: Likewise.
53019         * lib/search.in.h: Likewise.
53020         * lib/spawn.in.h: Likewise.
53021         * lib/stdarg.in.h: Likewise.
53022         * lib/stdint.in.h: Likewise.
53023         * lib/string.in.h: Likewise.
53024         * lib/strings.in.h: Likewise.
53025         * lib/sys_file.in.h: Likewise.
53026         * lib/sys_ioctl.in.h: Likewise.
53027         * lib/sys_time.in.h: Likewise.
53028         * lib/sys_times.in.h: Likewise.
53029         * lib/sys_utsname.in.h: Likewise.
53030         * lib/sys_wait.in.h: Likewise.
53031         * lib/sysexits.in.h: Likewise.
53032         * lib/wctype.in.h: Likewise.
53034 2010-03-28  James Youngman  <jay@gnu.org>
53036         save-cwd: don't leak a file descriptor when the caller execs.
53037         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
53038         saved file descriptor.
53039         * modules/save-cwd (Depends-on): Depend on cloexec.
53041 2010-03-29  Bruno Haible  <bruno@clisp.org>
53043         Remove vestiges of fts-lgpl module.
53044         * lib/fts_.h: Assume GNULIB_FTS is 1.
53045         * lib/fts.c: Likewise.
53046         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
53048 2010-03-28  Bruno Haible  <bruno@clisp.org>
53050         Fix definition of tests witness macro.
53051         * gnulib-tool (func_import): Fix definition of witness macro.
53053 2010-03-28  Bruno Haible  <bruno@clisp.org>
53055         Fix ioctl's protoype on glibc systems.
53056         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
53057         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
53058         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
53059         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
53060         signature. If not, arrange to replace the ioctl function.
53061         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
53062         REPLACE_IOCTL.
53063         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
53064         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
53065         Reported by Ludovic Courtès <ludo@gnu.org>.
53067 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
53069         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
53070         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
53071         made it so grep -r --include=GLOB* ... did not work.
53073 2010-03-26  Jim Meyering  <meyering@redhat.com>
53074             Eric Blake  <eblake@redhat.com>
53076         maint.mk: prohibit use of test's -o and -a operators
53077         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
53079 2010-03-28  Bruno Haible  <bruno@clisp.org>
53081         Remove unused GNULIB_XYZ macro definitions.
53082         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
53083         invocation.
53085 2010-03-28  Bruno Haible  <bruno@clisp.org>
53087         Mark privileged tests modules.
53088         * modules/idpriv-drop-tests (Status): New section.
53089         * modules/idpriv-droptemp-tests (Status): New section.
53091 2010-03-28  Bruno Haible  <bruno@clisp.org>
53093         Split C++ tests into separate tests modules.
53094         * modules/dirent-c++-tests: New file, extracted from
53095         modules/dirent-tests.
53096         * modules/dirent-tests: Depend on it.
53097         * modules/fcntl-h-c++-tests: New file, extracted from
53098         modules/fcntl-h-tests.
53099         * modules/fcntl-h-tests: Depend on it.
53100         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
53101         * modules/glob-tests: Depend on it.
53102         * modules/iconv-h-c++-tests: New file, extracted from
53103         modules/iconv-h-tests.
53104         * modules/iconv-h-tests: Depend on it.
53105         * modules/langinfo-c++-tests: New file, extracted from
53106         modules/langinfo-tests.
53107         * modules/langinfo-tests: Depend on it.
53108         * modules/locale-c++-tests: New file, extracted from
53109         modules/locale-tests.
53110         * modules/locale-tests: Depend on it.
53111         * modules/math-c++-tests: New file, extracted from modules/math-tests.
53112         * modules/math-tests: Depend on it.
53113         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
53114         * modules/pty-tests: Depend on it.
53115         * modules/search-c++-tests: New file, extracted from
53116         modules/search-tests.
53117         * modules/search-tests: Depend on it.
53118         * modules/signal-c++-tests: New file, extracted from
53119         modules/signal-tests.
53120         * modules/signal-tests: Depend on it.
53121         * modules/spawn-c++-tests: New file, extracted from
53122         modules/spawn-tests.
53123         * modules/spawn-tests: Depend on it.
53124         * modules/stdio-c++-tests: New file, extracted from
53125         modules/stdio-tests.
53126         * modules/stdio-tests: Depend on it.
53127         * modules/stdlib-c++-tests: New file, extracted from
53128         modules/stdlib-tests.
53129         * modules/stdlib-tests: Depend on it.
53130         * modules/string-c++-tests: New file, extracted from
53131         modules/string-tests.
53132         * modules/string-tests: Depend on it.
53133         * modules/sys_ioctl-c++-tests: New file, extracted from
53134         modules/sys_ioctl-tests.
53135         * modules/sys_ioctl-tests: Depend on it.
53136         * modules/sys_select-c++-tests: New file, extracted from
53137         modules/sys_select-tests.
53138         * modules/sys_select-tests: Depend on it.
53139         * modules/sys_socket-c++-tests: New file, extracted from
53140         modules/sys_socket-tests.
53141         * modules/sys_socket-tests: Depend on it.
53142         * modules/sys_stat-c++-tests: New file, extracted from
53143         modules/sys_stat-tests.
53144         * modules/sys_stat-tests: Depend on it.
53145         * modules/sys_time-c++-tests: New file, extracted from
53146         modules/sys_time-tests.
53147         * modules/sys_time-tests: Depend on it.
53148         * modules/time-c++-tests: New file, extracted from modules/time-tests.
53149         * modules/time-tests: Depend on it.
53150         * modules/unistd-c++-tests: New file, extracted from
53151         modules/unistd-tests.
53152         * modules/unistd-tests: Depend on it.
53153         * modules/wchar-c++-tests: New file, extracted from
53154         modules/wchar-tests.
53155         * modules/wchar-tests: Depend on it.
53156         * modules/wctype-c++-tests: New file, extracted from
53157         modules/wctype-tests.
53158         * modules/wctype-tests: Depend on it.
53159         Reported by Simon Josefsson.
53161 2010-03-28  Bruno Haible  <bruno@clisp.org>
53163         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
53164         * gnulib-tool (func_exists_module): New function, extracted from
53165         func_verify_module.
53166         (func_verify_module): Use it.
53167         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
53168         'foo' only if 'foo' exists.
53169         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
53170         module.
53172 2010-03-28  Bruno Haible  <bruno@clisp.org>
53174         gnulib-tool: Add support for special categories of tests.
53175         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
53176         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
53177         (func_usage): Document them.
53178         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
53179         inc_unportable_tests, inc_all_tests): New variables.
53180         (func_acceptable): Consider these variables.
53181         (func_modules_transitive_closure): Make it work when the 'Status' field
53182         consists of multiple words.
53183         (func_import): Store and restore the values of inc_cxx_tests,
53184         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
53185         inc_all_tests in gnulib-comp.m4.
53186         (func_create_testdir): Set inc_all_tests to true.
53187         * doc/gnulib.texi (Extra tests modules): New section.
53188         Suggested by Jim Meyering.
53190 2010-03-28  Bruno Haible  <bruno@clisp.org>
53192         ansi-c++-opt: Allow turning off the C++ build by default.
53193         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
53194         gl_CXX_CHOICE_DEFAULT_NO is defined.
53195         Requested by Eric Blake.
53197 2010-03-28  Bruno Haible  <bruno@clisp.org>
53199         unistd: Avoid #define replacements in C++ mode.
53200         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
53201         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
53202         setsockopt, shutdown, select): In C++, attach a warning to the function
53203         if possible, rather than #defining the symbol to a dysfunctional alias.
53204         Reported by John W. Eaton <jwe@gnu.org>.
53206 2010-03-28  Bruno Haible  <bruno@clisp.org>
53208         Fix link errors on mingw.
53209         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
53210         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
53211         $(LIBSOCKET).
53212         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
53213         $(LIBSOCKET).
53215 2010-03-28  Bruno Haible  <bruno@clisp.org>
53216             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53218         lib-ignore: Determine different options for different compilers.
53219         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
53220         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
53221         Add comments.
53222         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
53223         * NEWS: Mention the change.
53225 2010-03-27  Bruno Haible  <bruno@clisp.org>
53227         Remove unused GNULIB_XYZ macro definitions.
53228         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
53229         * modules/fseek (configure.ac): Likewise.
53230         * modules/ioctl (configure.ac): Likewise.
53231         * modules/open (configure.ac): Likewise.
53232         * modules/stdlib-safer (configure.ac): Likewise.
53234 2010-03-27  Bruno Haible  <bruno@clisp.org>
53236         Add a remark about certain modules.
53237         * modules/malloc (Comment): New section.
53238         * modules/realloc (Comment): Likewise.
53239         * modules/sigpipe (Comment): Likewise.
53241 2010-03-27  Bruno Haible  <bruno@clisp.org>
53243         Resolve conflict between the two kinds of module indicators.
53244         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
53245         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
53246         * modules/canonicalize (configure.ac): Invoke
53247         gl_MODULE_INDICATOR_FOR_TESTS.
53248         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
53249         GNULIB_XYZ.
53250         * tests/test-dirent-c++.cc: Likewise.
53251         * tests/test-dirent-safer.c: Likewise.
53252         * tests/test-dup2.c: Likewise.
53253         * tests/test-fchdir.c: Likewise.
53254         * tests/test-fcntl-h-c++.cc: Likewise.
53255         * tests/test-getopt.c: Likewise.
53256         * tests/test-getopt.h: Likewise.
53257         * tests/test-langinfo-c++.cc: Likewise.
53258         * tests/test-locale-c++.cc: Likewise.
53259         * tests/test-math-c++.cc: Likewise.
53260         * tests/test-pty-c++.cc: Likewise.
53261         * tests/test-search-c++.cc: Likewise.
53262         * tests/test-signal-c++.cc: Likewise.
53263         * tests/test-spawn-c++.cc: Likewise.
53264         * tests/test-stdio-c++.cc: Likewise.
53265         * tests/test-stdlib-c++.cc: Likewise.
53266         * tests/test-string-c++.cc: Likewise.
53267         * tests/test-sys_ioctl-c++.cc: Likewise.
53268         * tests/test-sys_select-c++.cc: Likewise.
53269         * tests/test-sys_socket-c++.cc: Likewise.
53270         * tests/test-sys_stat-c++.cc: Likewise.
53271         * tests/test-sys_time-c++.cc: Likewise.
53272         * tests/test-time-c++.cc: Likewise.
53273         * tests/test-unistd-c++.cc: Likewise.
53274         * tests/test-wchar-c++.cc: Likewise.
53275         * tests/uninorm/test-u8-nfc.c: Likewise.
53276         * tests/uninorm/test-u8-nfd.c: Likewise.
53277         * tests/uninorm/test-u8-nfkc.c: Likewise.
53278         * tests/uninorm/test-u8-nfkd.c: Likewise.
53279         * tests/uninorm/test-u16-nfc.c: Likewise.
53280         * tests/uninorm/test-u16-nfd.c: Likewise.
53281         * tests/uninorm/test-u16-nfkc.c: Likewise.
53282         * tests/uninorm/test-u16-nfkd.c: Likewise.
53283         * tests/uninorm/test-u32-nfc.c: Likewise.
53284         * tests/uninorm/test-u32-nfc-big.c: Likewise.
53285         * tests/uninorm/test-u32-nfd.c: Likewise.
53286         * tests/uninorm/test-u32-nfd-big.c: Likewise.
53287         * tests/uninorm/test-u32-nfkc.c: Likewise.
53288         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
53289         * tests/uninorm/test-u32-nfkd.c: Likewise.
53290         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
53291         * tests/uninorm/test-u32-normalize-big.c: Likewise.
53293 2010-03-27  Bruno Haible  <bruno@clisp.org>
53295         Distinguish two kinds of module indicators.
53296         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
53297         gl_MODULE_INDICATOR.
53298         (gl_MODULE_INDICATOR): New macro.
53299         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
53300         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
53301         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
53302         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
53303         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
53304         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
53305         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
53306         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
53307         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
53308         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
53309         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
53310         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
53311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
53312         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
53313         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
53314         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
53315         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
53316         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
53317         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
53318         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
53319         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
53320         * modules/cloexec (configure.ac): Likewise.
53321         * modules/getopt-gnu (configure.ac): Likewise.
53322         * modules/uninorm/u8-normalize (configure.ac): Likewise.
53323         * modules/uninorm/u16-normalize (configure.ac): Likewise.
53324         * modules/uninorm/u32-normalize (configure.ac): Likewise.
53325         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
53327 2010-03-27  Bruno Haible  <bruno@clisp.org>
53329         New module description field 'Comment'.
53330         * gnulib-tool: New option --extract-comment.
53331         (func_usage): Document it.
53332         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
53333         (func_get_comment): New function.
53334         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
53336 2010-03-27  Bruno Haible  <bruno@clisp.org>
53338         Addendum to 2010-02-07 commit.
53339         * gnulib-tool (func_usage): Document --extract-applicability option.
53341 2010-03-27  Bruno Haible  <bruno@clisp.org>
53343         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
53344         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
53345         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
53346         rather than link errors.
53348 2010-03-27  Bruno Haible  <bruno@clisp.org>
53350         Avoid side effects from tests-related modules on the compilation of lib.
53351         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
53352         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
53353         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
53354         parameter. Emit into AM_CPPFLAGS a definition of the designated C
53355         macro.
53356         (func_import): Define a witness macro. Assign it a value that depends
53357         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
53358         tests-related modules.
53359         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
53360         Reported by Jim Meyering.
53362 2010-03-27  Bruno Haible  <bruno@clisp.org>
53364         Factorize common .m4 code.
53365         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
53366         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
53367         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
53368         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
53369         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
53370         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
53371         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
53372         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
53373         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
53374         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
53375         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
53376         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
53377         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
53378         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
53379         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
53380         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
53381         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
53382         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
53383         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
53384         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
53385         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
53386         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
53387         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
53388         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
53389         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
53390         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
53391         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
53392         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
53393         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
53394         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
53395         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
53396         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
53398 2010-03-27  Bruno Haible  <bruno@clisp.org>
53400         Fix a compilation error on Cygwin with g++ >= 4.3.
53401         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
53402         if it is undefined or if we alias it to chmod.
53403         (lstat): Don't warn about the use of this function if it is undefined
53404         or if we alias it to stat.
53405         Reported by Simon Josefsson.
53407 2010-03-27  Bruno Haible  <bruno@clisp.org>
53409         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
53410         * modules/getlogin (configure.ac): Update.
53412         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
53413         * modules/getlogin_r (configure.ac): Update.
53415         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
53416         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
53417         * modules/inet_ntop (configure.ac): Update.
53419         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
53420         * modules/inet_pton (configure.ac): Update.
53422         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
53423         * modules/mbslen (configure.ac): Update.
53425         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
53426         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
53427         * modules/forkpty (configure.ac): Update.
53428         * modules/openpty (configure.ac): Update.
53430 2010-03-26  Simon Josefsson  <simon@josefsson.org>
53432         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
53433         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
53435 2010-03-25  Eric Blake  <eblake@redhat.com>
53437         maint: use pragma consistently across replacement headers
53438         * lib/ctype.in.h (system_header): Hoist for consistent placement.
53439         * lib/dirent.in.h (system_header): Likewise.
53440         * lib/errno.in.h (system_header): Likewise.
53441         * lib/float.in.h (system_header): Likewise.
53442         * lib/getopt.in.h (system_header): Likewise.
53443         * lib/iconv.in.h (system_header): Likewise.
53444         * lib/inttypes.in.h (system_header): Likewise.
53445         * lib/langinfo.in.h (system_header): Likewise.
53446         * lib/locale.in.h (system_header): Likewise.
53447         * lib/math.in.h (system_header): Likewise.
53448         * lib/netdb.in.h (system_header): Likewise.
53449         * lib/netinet_in.in.h (system_header): Likewise.
53450         * lib/pty.in.h (system_header): Likewise.
53451         * lib/sched.in.h (system_header): Likewise.
53452         * lib/se-selinux.in.h (system_header): Likewise.
53453         * lib/search.in.h (system_header): Likewise.
53454         * lib/spawn.in.h (system_header): Likewise.
53455         * lib/stdarg.in.h (system_header): Likewise.
53456         * lib/stdint.in.h (system_header): Likewise.
53457         * lib/string.in.h (system_header): Likewise.
53458         * lib/strings.in.h (system_header): Likewise.
53459         * lib/sys_file.in.h (system_header): Likewise.
53460         * lib/sys_ioctl.in.h (system_header): Likewise.
53461         * lib/sys_socket.in.h (system_header): Likewise.
53462         * lib/sys_times.in.h (system_header): Likewise.
53463         * lib/sys_utsname.in.h (system_header): Likewise.
53464         * lib/sys_wait.in.h (system_header): Likewise.
53465         * lib/sysexits.in.h (system_header): Likewise.
53466         * lib/unistd.in.h (system_header): Likewise.
53467         * lib/wctype.in.h (system_header): Likewise.
53469         arpa/inet: fix mingw compilation warning
53470         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
53471         Reported by Matthew Bolte.
53473 2010-03-25  Bruno Haible  <bruno@clisp.org>
53475         Avoid collision between gnulib wrapper and libintl wrapper.
53476         * lib/printf.c (printf): Don't define if a printf wrapper is already
53477         defined in intl/printf.c.
53478         Reported by Michel Boaventura <michel@michelboaventura.com>.
53480 2010-03-25  Bruno Haible  <bruno@clisp.org>
53482         Use ANSI C.
53483         * lib/readutmp.h (getutent): Provide ANSI C prototype.
53485 2010-03-25  Bruno Haible  <bruno@clisp.org>
53487         Minor formatting changes.
53488         * lib/acosl.c: Insert space before function argument list.
53489         * lib/argz.c: Likewise.
53490         * lib/asinl.c: Likewise.
53491         * lib/expl.c: Likewise.
53492         * lib/gen-uni-tables.c: Likewise.
53493         * lib/gettext.h: Likewise.
53494         * lib/glthread/lock.h: Likewise.
53495         * lib/tanl.c: Likewise.
53496         * lib/uniname/uniname.c: Likewise.
53497         * tests/test-idpriv-drop.c: Likewise.
53498         * tests/test-idpriv-droptemp.c: Likewise.
53499         * tests/test-lock.c: Likewise.
53500         * tests/test-tls.c: Likewise.
53501         * lib/argp-help.c: Insert space before function-like macro argument
53502         list.
53503         * lib/memcmp.c: Likewise.
53504         * tests/test-base64.c: Likewise.
53505         * lib/localename.c: Insert space before sizeof's argument list.
53506         * lib/safe-alloc.h: Likewise.
53507         * lib/file-set.h: Insert space before macro argument list.
53508         * tests/test-argp.c: Likewise.
53509         * lib/argp-namefrob.h: Insert space before function parameter list.
53510         * lib/getaddrinfo.c: Likewise.
53511         * lib/netdb.in.h: Likewise.
53512         * lib/parse-duration.h: Likewise.
53513         * lib/parse-duration.c: Likewise.
53514         * lib/poll.c: Likewise.
53515         * lib/select.c: Likewise.
53516         * lib/trim.h: Likewise.
53517         * tests/test-usleep.c: Likewise.
53518         * lib/ldexpl.c: Insert space before function parameter list and before
53519         function argument list.
53520         * lib/logl.c: Likewise.
53521         * lib/sqrtl.c: Likewise.
53522         * lib/trim.c: Likewise.
53523         * lib/cosl.c: Use GNU style indentation. Insert space before function
53524         argument list.
53525         * lib/sinl.c: Likewise.
53526         * lib/tsearch.c: Insert space after 'for'.
53527         Reported by Jim Meyering.
53529 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
53531         * maint.mk (sc_Wundef_boolean): Check for the presence of the
53532         config header before grepping, as it's not present before
53533         autoreconf/configure are run.  Reported by Simon Josefsson.
53535 2010-03-23  Bruno Haible  <bruno@clisp.org>
53537         pt_chown: Make it work with automake < 1.11.
53538         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
53539         Reported by Simon Josefsson.
53541 2010-03-23  Bruno Haible  <bruno@clisp.org>
53543         pt_chown: Don't depend on GPLed modules.
53544         * lib/pt_chown.c: Don't include idpriv.h.
53545         (main): Don't drop privileges.
53546         * modules/pt_chown (Depends-on): Remove idpriv-drop.
53547         Reported by Simon Josefsson.
53549 2010-03-24  Simon Josefsson  <simon@josefsson.org>
53551         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
53552         suggestions from karl@freefriends.org (Karl Berry).
53554 2010-03-22  Eric Blake  <eblake@redhat.com>
53556         gethostname: further tweaks
53557         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
53558         are overriding gethostname.
53559         Suggested by Bruno Haible.
53561 2010-03-21  Bruno Haible  <bruno@clisp.org>
53563         Fix comments.
53564         * lib/forkpty.c (rpl_forkpty): Fix comment.
53565         * lib/openpty.c (rpl_openpty): Likewise.
53566         Reported by Eric Blake.
53568 2010-03-22  Eric Blake  <eblake@redhat.com>
53570         gethostname: fix build on mingw
53571         * lib/unistd.in.h (includes): Work around fact that mingw
53572         <winsock2.h> re-includes <unistd.h>, by avoiding any
53573         redeclarations if we are being included by <winsock2.h>.
53574         Reported by Matthias Bolte.
53576 2010-03-21  Bruno Haible  <bruno@clisp.org>
53578         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
53579         * lib/forkpty.c (forkpty): New replacement function, from glibc with
53580         modifications.
53581         * lib/pty.in.h (forkpty): Update declaration. Add comments.
53582         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
53583         provide the replacement.
53584         * modules/forkpty (Depends-on): Add openpty, login_tty.
53585         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
53586         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
53587         * doc/glibc-functions/forkpty.texi: More supported platforms.
53588         * config/srclist.txt: Add forkpty.c (commented).
53590 2010-03-21  Bruno Haible  <bruno@clisp.org>
53592         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
53593         (Makefile.am): Verify that PTY_LIB is defined.
53595         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
53597 2010-03-21  Bruno Haible  <bruno@clisp.org>
53599         Tests for module 'login_tty'.
53600         * modules/login_tty-tests: New file.
53601         * tests/test-login_tty.c: New file.
53603         New module 'login_tty'.
53604         * lib/login_tty.c: New file.
53605         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
53606         * modules/login_tty: New file.
53607         * doc/glibc-functions/login_tty.texi: Mention the new module.
53609 2010-03-21  Bruno Haible  <bruno@clisp.org>
53611         login_tty: Documentation.
53612         * doc/glibc-functions/login_tty.texi: New file.
53613         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
53615 2010-03-21  Bruno Haible  <bruno@clisp.org>
53617         pty: Consistent macro naming.
53618         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
53619         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
53620         * modules/pty (configure.ac): Update.
53622 2010-03-21  Bruno Haible  <bruno@clisp.org>
53624         Tests for openpty: Make stricter.
53625         * tests/test-openpty.c (main): Add test of canonical processing and
53626         erase.
53627         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
53629         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
53630         * lib/openpty.c (openpty): New replacement function.
53631         * lib/pty.in.h: Include <termios.h>.
53632         (openpty): Update declaration. Add comments.
53633         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
53634         is not declared, arrange to provide the replacement. Check for _getpty
53635         and posix_openpt.
53636         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
53637         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
53638         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
53639         * modules/pty-tests (test_pty_c___LDADD): New variable.
53640         * doc/glibc-functions/openpty.texi: More supported platforms.
53642 2010-03-21  Bruno Haible  <bruno@clisp.org>
53644         setenv: Tweaks.
53645         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
53646         the test program.
53647         * doc/posix-functions/setenv.texi: Update platforms list.
53649 2010-03-21  Bruno Haible  <bruno@clisp.org>
53651         New module 'unlockpt'.
53652         * lib/unlockpt.c: New file, from glibc with modifications.
53653         * m4/unlockpt.m4: New file.
53654         * modules/unlockpt: New file.
53655         * lib/stdlib.in.h (unlockpt): New declaration.
53656         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
53657         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
53658         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
53659         HAVE_UNLOCKPT.
53660         * doc/posix-functions/unlockpt.texi: Mention the new module.
53661         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
53662         * config/srclist.txt: Add unlockpt.c (commented).
53664 2010-03-21  Jim Meyering  <meyering@redhat.com>
53666         maint.mk: prohibit inclusion of "intprops.h" without use
53667         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
53669 2010-03-21  Bruno Haible  <bruno@clisp.org>
53671         New module 'grantpt'.
53672         * lib/grantpt.c: New file, from glibc with modifications.
53673         * m4/grantpt.m4: New file.
53674         * modules/grantpt: New file.
53675         * lib/stdlib.in.h (grantpt): New declaration.
53676         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
53677         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
53678         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
53679         HAVE_GRANTPT.
53680         * doc/posix-functions/grantpt.texi: Mention the new module.
53681         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
53682         * config/srclist.txt: Add grantpt.c (commented).
53684 2010-03-21  Bruno Haible  <bruno@clisp.org>
53686         New module 'pt_chown'.
53687         * lib/pt_chown.c: New file, from glibc with modifications.
53688         * lib/pty-private.h: New file, from glibc with modifications.
53689         * modules/pt_chown: New file.
53690         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
53692 2010-03-21  Bruno Haible  <bruno@clisp.org>
53694         Tests for module 'ptsname'.
53695         * modules/ptsname-tests: New file.
53696         * tests/test-ptsname.c: New file.
53698         New module 'ptsname'.
53699         * lib/ptsname.c: New file, from glibc with modifications.
53700         * m4/ptsname.m4: New file.
53701         * modules/ptsname: New file.
53702         * lib/stdlib.in.h (ptsname): New declaration.
53703         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
53704         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
53705         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
53706         HAVE_PTSNAME.
53707         * doc/posix-functions/ptsname.texi: Mention the new module.
53708         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
53709         * config/srclist.txt: Add ptsname.c (commented).
53711 2010-03-21  Bruno Haible  <bruno@clisp.org>
53713         Tests for module 'ttyname_r'.
53714         * modules/ttyname_r-tests: New file.
53715         * tests/test-ttyname_r.c: New file.
53717         New module 'ttyname_r'.
53718         * lib/ttyname_r.c: New file.
53719         * m4/ttyname_r.m4: New file.
53720         * modules/ttyname_r: New file.
53721         * lib/unistd.in.h (ttyname_r): New declaration.
53722         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
53723         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
53724         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
53725         HAVE_TTYNAME_R.
53726         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
53727         * doc/posix-functions/ttyname_r.texi: Mention the new module.
53729 2010-03-20  Bruno Haible  <bruno@clisp.org>
53731         signal: Undefine macro definitions in C++ mode.
53732         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
53733         sigfillset): Undefine macro definitions from the system header in C++
53734         mode.
53735         Reported by John W. Eaton <jwe@gnu.org>.
53737 2010-03-20  Bruno Haible  <bruno@clisp.org>
53739         Ensure no #include statements inside extern "C" { ... }.
53740         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
53741         contain #include statements.
53742         * lib/time.in.h: Likewise.
53744 2010-03-20  Bruno Haible  <bruno@clisp.org>
53746         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
53747         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
53748         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
53749         Reported by John W. Eaton <jwe@gnu.org>.
53751 2010-03-20  Bruno Haible  <bruno@clisp.org>
53753         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
53754         Reported by Jim Meyering.
53756 2010-03-20  Bruno Haible  <bruno@clisp.org>
53758         pipe: Set errno upon failure.
53759         * lib/pipe.h: Specify that when -1 is returned, errno is set.
53760         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
53761         errno value in error message.
53763 2010-03-20  Bruno Haible  <bruno@clisp.org>
53764             Jim Meyering  <meyering@redhat.com>
53766         lchown: Avoid "unused variable" warning.
53767         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
53769 2010-03-20  Bruno Haible  <bruno@clisp.org>
53771         Work around unlink() bug on MacOS X 10.5.6.
53772         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
53773         attempting to unlink a parent directory.
53774         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
53775         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
53776         activate for the replacement function.
53777         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
53779 2010-03-20  Bruno Haible  <bruno@clisp.org>
53781         Fix link errors on Solaris 8.
53782         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
53783         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
53785 2010-03-19  Jim Meyering  <meyering@redhat.com>
53787         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
53788         The _LIBC implementation of build_range_exp correctly honors the
53789         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
53790         However, the non-_LIBC implementation would ignore that syntax-bit
53791         flag and return REG_ERANGE unconditionally.
53792         This change makes it honor that flag.
53793         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
53794         Make two pointer parameters "const".
53795         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
53796         (parse_bracket_exp): Update caller.
53798         regex.m4: correct the reversed range endpoint ([b-a]) test
53799         * m4/regex.m4: When requiring that [b-a] evoke failure,
53800         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
53801         test pass once again for x86-based systems.
53803 2010-03-19  Bruno Haible  <bruno@clisp.org>
53805         scandir: Fix link error on Solaris 8.
53806         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
53807         macros.
53809 2010-03-19  Bruno Haible  <bruno@clisp.org>
53811         getusershell: Fix documentation.
53812         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
53813         module.
53814         * doc/glibc-functions/setusershell.texi: Likewise.
53816         getusershell: Provide declaration, missing on Solaris 9.
53817         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
53818         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
53819         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
53820         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
53821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53822         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
53823         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
53824         HAVE_GETUSERSHELL.
53825         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
53827 2010-03-19  Bruno Haible  <bruno@clisp.org>
53829         wctype: Provide iswblank function.
53830         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
53831         exists and is fine.
53832         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
53833         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
53834         * tests/test-wctype.c (main): Re-enable the iswblank tests.
53835         * doc/posix-functions/iswblank.texi: Update.
53837 2010-03-19  Bruno Haible  <bruno@clisp.org>
53839         Tests of module 'pty' in C++ mode.
53840         * modules/pty-tests: New file.
53841         * tests/test-pty-c++.cc: New file.
53842         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
53844 2010-03-19  Eric Blake  <eblake@redhat.com>
53846         logb: fix documentation
53847         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
53848         1.5 declaration bug.
53850         forkpty, openpty: prefer glibc's const-safe prototype
53851         * lib/forkpty.c (rpl_forkpty): New file.
53852         * lib/openpty.c (rpl_openpty): Likewise.
53853         * modules/forkpty (Files): Distribute it.
53854         * modules/openpty (Files): Likewise.
53855         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
53856         check...
53857         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
53858         replacement for non-const BSD signature.
53859         * modules/pty (Makefile.am): Substitute witnesses.
53860         * lib/pty.in.h (forkpty, openpty): Declare replacements.
53861         * tests/test-forkpty.c: Update signature check.
53862         * tests/test-openpty.c: Likewise.
53863         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
53864         * doc/glibc-functions/openpty.texi (openpty): Likewise.
53866         forkpty, openpty: split functions into new modules
53867         * modules/pty (Makefile.am): Substitute new witnesses.
53868         (Libraries): Move library detection...
53869         * modules/forkpty: ...into new module.
53870         * modules/openpty: Another new module.
53871         * modules/pty-tests: Rename and split...
53872         * modules/forkpty-tests: ...to this...
53873         * modules/openpty-tests: ...and this.
53874         * tests/test-pty.c: Rename and split...
53875         * tests/test-forkpty.c: ...to this...
53876         * tests/test-openpty.c: ...and this.
53877         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
53878         (gl_PTY): Split library searching...
53879         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
53880         (gl_FORKPTY, gl_OPENPTY): New macros.
53881         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
53882         * NEWS: Mention the split.
53883         * MODULES.html.sh (Misc): Document the modules.
53884         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
53885         * doc/glibc-functions/openpty.texi (openpty): Likewise.
53887         pty: improve replacement header
53888         * lib/pty.in.h: New file.
53889         * modules/pty (Files): Ship it.
53890         (Makefile.am): Always build replacement.
53891         * m4/pty.m4: Rename...
53892         * m4/pty_h.m4: ...to this.
53893         (gl_PTY): Modernize setting of witness macros; update check of
53894         forkpty to take proper advantage of cache.
53895         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
53897         getopt: avoid compiler warning
53898         * lib/getopt.c (attribute_hidden): Remove unused macro.
53900 2010-03-18  Bruno Haible  <bruno@clisp.org>
53902         Fix link errors on Solaris 8.
53903         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
53904         * modules/search-tests (test_search_c___LDADD): Likewise.
53905         * modules/signal-tests (test_signal_c___LDADD): Likewise.
53906         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
53907         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
53908         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
53909         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
53910         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
53911         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
53913 2010-03-18  Bruno Haible  <bruno@clisp.org>
53915         Fix bug introduced on 2010-03-14.
53916         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
53917         (gl_SPAWN_H): Require it.
53918         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
53919         Reported by Simon Josefsson.
53921 2010-03-18  Bruno Haible  <bruno@clisp.org>
53923         Fix typo introduced on 2009-12-31.
53924         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
53925         posix_spawn_file_actions_adddup2.
53927 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
53928         and Eric Blake  <eblake@redhat.com>
53930         test-vc-list-files-git: make more robust
53931         * tests/test-vc-list-files-git.sh: Unset problematic environment
53932         variables.  Chain commands together.
53934 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
53936         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
53937         `AC_CHECK_DECL' invocation.
53939 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
53941         * lib/inttostr.c (inttostr): Make sure the invocation of verify
53942         appears before executable statements. Suggested by Petr Sumbera
53943         <Petr.Sumbera@Sun.COM>.
53945 2010-03-14  Bruno Haible  <bruno@clisp.org>
53947         * tests/test-flock.c (test_exclusive): Comment out a test that causes
53948         portability problems. Instead use a simpler test.
53949         (main): Check that invalid arguments are rejected only on Linux.
53951 2010-03-14  Bruno Haible  <bruno@clisp.org>
53953         Fix bug introduced on 2009-12-31.
53954         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
53955         gl_PREREQ_SYS_H_WINSOCK2 always.
53956         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
53957         SYS_SOCKET_H variable.
53958         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
53959         Update comments.
53960         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
53961         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
53962         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
53963         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
53964         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
53966 2010-03-14  Bruno Haible  <bruno@clisp.org>
53968         Fix values returned by sinl, cosl.
53969         * lib/trigl.h: Add specification comments.
53970         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
53971         that combines the values from the precomputed table with the values of
53972         the Chebyshev polynomials.
53974 2010-03-14  Bruno Haible  <bruno@clisp.org>
53976         Fix compilation error when modules 'posix_spawn[p]' are not used.
53977         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
53978         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
53980 2010-03-14  Bruno Haible  <bruno@clisp.org>
53982         Fix compilation error on mingw when module 'time_r' is not used.
53983         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
53984         is 1.
53985         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
53986         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
53987         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
53988         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
53990 2010-03-14  Bruno Haible  <bruno@clisp.org>
53992         Fix compilation error with Sun C.
53993         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
53994         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
53995         instead of GCC specific ULONG_LONG_MAX.
53996         * lib/xstrtoll.c: Likewise.
53997         * lib/xstrtoull.c: Likewise.
53999 2010-03-13  Bruno Haible  <bruno@clisp.org>
54001         Allow the user to disable C++ code and tests.
54002         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
54003         (gl_PROG_ANSI_CXX): Require it.
54005 2010-03-13  Bruno Haible  <bruno@clisp.org>
54007         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
54008         cases.
54010 2010-03-13  Bruno Haible  <bruno@clisp.org>
54012         Test that gnulib does not break the standard C++ headers.
54013         * tests/test-locale-c++2.cc: New file.
54014         * modules/locale-tests (Files): Add it.
54015         (Makefile.am): Compile it for test-locale-c++.
54016         * tests/test-math-c++2.cc: New file.
54017         * modules/math-tests (Files): Add it.
54018         (Makefile.am): Compile it for test-math-c++.
54019         * tests/test-signal-c++2.cc: New file.
54020         * modules/signal-tests (Files): Add it.
54021         (Makefile.am): Compile it for test-signal-c++.
54022         * tests/test-stdio-c++2.cc: New file.
54023         * modules/stdio-tests (Files): Add it.
54024         (Makefile.am): Compile it for test-stdio-c++.
54025         * tests/test-stdlib-c++2.cc: New file.
54026         * modules/stdlib-tests (Files): Add it.
54027         (Makefile.am): Compile it for test-stdlib-c++.
54028         * tests/test-string-c++2.cc: New file.
54029         * modules/string-tests (Files): Add it.
54030         (Makefile.am): Compile it for test-string-c++.
54031         * tests/test-time-c++2.cc: New file.
54032         * modules/time-tests (Files): Add it.
54033         (Makefile.am): Compile it for test-time-c++.
54034         Reported by John W. Eaton <jwe@gnu.org>.
54036 2010-03-13  Bruno Haible  <bruno@clisp.org>
54038         * gnulib-tool (func_usage): Clarify which options are available for
54039         --create-testdir and --create-megatestdir.
54041 2010-03-13  Bruno Haible  <bruno@clisp.org>
54043         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
54044         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
54045         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
54046         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
54047         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
54048         when appropriate.
54049         Reported by Jim Meyering.
54051 2010-03-12  Simon Josefsson  <simon@josefsson.org>
54053         * gnulib-tool (func_import): Explain origin of code.
54055 2010-03-12  Bruno Haible  <bruno@clisp.org>
54057         Fix problem with automake's definition of CXXLINK.
54058         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
54059         Reported by Simon Josefsson and Ludovic Courtès.
54061 2010-03-12  Bruno Haible  <bruno@clisp.org>
54063         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
54064         stable releases.
54066 2010-03-11  Bruno Haible  <bruno@clisp.org>
54068         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
54069         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
54070         whether the system provides one variant or multiple variants of the
54071         function.
54072         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
54073         C++ compilers.
54074         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
54075         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
54076         Reported by Jim Meyering.
54078 2010-03-09  Simon Josefsson  <simon@josefsson.org>
54080         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
54082 2010-03-08  Bruno Haible  <bruno@clisp.org>
54084         gnulib-tool: Add support for --libtool in --create-testdir.
54085         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
54086         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
54088 2010-03-08  Eric Blake  <eblake@redhat.com>
54090         gnulib-tool.texi: mention possibility of git submodule
54091         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
54092         submodules.
54093         * doc/.gitignore: Ignore another generated file.
54095 2010-03-08  Karl Berry  <karl@gnu.org>
54097         * doc/gnulib-tool.texi (VCS Issues): Mention third option
54098         of committing gnulib files while skipping others.
54100 2010-03-07  Bruno Haible  <bruno@clisp.org>
54102         Tests of module 'wctype' in C++ mode.
54103         * tests/test-wctype-c++.cc: New file.
54104         * modules/wctype-tests (Files): Add it and tests/signature.h.
54105         (Depends-on): Add ansi-c++-opt.
54106         (Makefile.am): Arrange to compile and run test-wctype-c++.
54108         Tests of module 'wchar' in C++ mode.
54109         * tests/test-wchar-c++.cc: New file.
54110         * modules/wchar-tests (Files): Add it and tests/signature.h.
54111         (Depends-on): Add ansi-c++-opt.
54112         (Makefile.am): Arrange to compile and run test-wchar-c++.
54113         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
54114         gl_MODULE_INDICATOR.
54116         Tests of module 'unistd' in C++ mode.
54117         * tests/test-unistd-c++.cc: New file.
54118         * modules/unistd-tests (Files): Add it and tests/signature.h.
54119         (Depends-on): Add ansi-c++-opt.
54120         (Makefile.am): Arrange to compile and run test-unistd-c++.
54121         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
54122         gl_MODULE_INDICATOR.
54124         Tests of module 'time' in C++ mode.
54125         * tests/test-time-c++.cc: New file.
54126         * modules/time-tests (Files): Add it and tests/signature.h.
54127         (Depends-on): Add ansi-c++-opt.
54128         (Makefile.am): Arrange to compile and run test-time-c++.
54129         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
54131         Tests of module 'sys_time' in C++ mode.
54132         * tests/test-sys_time-c++.cc: New file.
54133         * modules/sys_time-tests (Files): Add it and tests/signature.h.
54134         (Depends-on): Add ansi-c++-opt.
54135         (Makefile.am): Arrange to compile and run test-sys_time-c++.
54136         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
54137         gl_MODULE_INDICATOR.
54139         Tests of module 'sys_stat' in C++ mode.
54140         * tests/test-sys_stat-c++.cc: New file.
54141         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
54142         (Depends-on): Add ansi-c++-opt.
54143         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
54144         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
54145         gl_MODULE_INDICATOR.
54147         Tests of module 'sys_socket' in C++ mode.
54148         * tests/test-sys_socket-c++.cc: New file.
54149         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
54150         (Depends-on): Add ansi-c++-opt.
54151         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
54152         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
54153         gl_MODULE_INDICATOR.
54155         Tests of module 'sys_select' in C++ mode.
54156         * tests/test-sys_select-c++.cc: New file.
54157         * modules/sys_select-tests (Files): Add it and tests/signature.h.
54158         (Depends-on): Add ansi-c++-opt.
54159         (Makefile.am): Arrange to compile and run test-sys_select-c++.
54160         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
54161         gl_MODULE_INDICATOR.
54163         Tests of module 'sys_ioctl' in C++ mode.
54164         * tests/test-sys_ioctl-c++.cc: New file.
54165         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
54166         (Depends-on): Add ansi-c++-opt.
54167         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
54168         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
54169         gl_MODULE_INDICATOR.
54171         Tests of module 'string' in C++ mode.
54172         * tests/test-string-c++.cc: New file.
54173         * modules/string-tests (Files): Add it and tests/signature.h.
54174         (Depends-on): Add ansi-c++-opt.
54175         (Makefile.am): Arrange to compile and run test-string-c++.
54176         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
54177         gl_MODULE_INDICATOR.
54179         Tests of module 'stdlib' in C++ mode.
54180         * tests/test-stdlib-c++.cc: New file.
54181         * modules/stdlib-tests (Files): Add it and tests/signature.h.
54182         (Depends-on): Add ansi-c++-opt.
54183         (Makefile.am): Arrange to compile and run test-stdlib-c++.
54184         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
54185         gl_MODULE_INDICATOR.
54187         Tests of module 'stdio' in C++ mode.
54188         * tests/test-stdio-c++.cc: New file.
54189         * modules/stdio-tests (Files): Add it and tests/signature.h.
54190         (Depends-on): Add ansi-c++-opt.
54191         (Makefile.am): Arrange to compile and run test-stdio-c++.
54192         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
54193         gl_MODULE_INDICATOR.
54195         Tests of module 'spawn' in C++ mode.
54196         * tests/test-spawn-c++.cc: New file.
54197         * modules/spawn-tests (Files): Add it and tests/signature.h.
54198         (Depends-on): Add ansi-c++-opt.
54199         (Makefile.am): Arrange to compile and run test-spawn-c++.
54200         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
54201         gl_MODULE_INDICATOR.
54203         Tests of module 'signal' in C++ mode.
54204         * tests/test-signal-c++.cc: New file.
54205         * modules/signal-tests (Files): Add it and tests/signature.h.
54206         (Depends-on): Add ansi-c++-opt.
54207         (Makefile.am): Arrange to compile and run test-signal-c++.
54208         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
54209         gl_MODULE_INDICATOR.
54211         Tests of module 'search' in C++ mode.
54212         * tests/test-search-c++.cc: New file.
54213         * modules/search-tests (Files): Add it and tests/signature.h.
54214         (Depends-on): Add ansi-c++-opt.
54215         (Makefile.am): Arrange to compile and run test-search-c++.
54216         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
54217         gl_MODULE_INDICATOR.
54219         Tests of module 'math' in C++ mode.
54220         * tests/test-math-c++.cc: New file.
54221         * modules/math-tests (Files): Add it and tests/signature.h.
54222         (Depends-on): Add ansi-c++-opt.
54223         (Makefile.am): Arrange to compile and run test-math-c++.
54224         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
54226         Tests of module 'locale' in C++ mode.
54227         * tests/test-locale-c++.cc: New file.
54228         * modules/locale-tests (Files): Add it and tests/signature.h.
54229         (Depends-on): Add ansi-c++-opt.
54230         (Makefile.am): Arrange to compile and run test-locale-c++.
54231         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
54232         gl_MODULE_INDICATOR.
54234         Tests of module 'langinfo' in C++ mode.
54235         * tests/test-langinfo-c++.cc: New file.
54236         * modules/langinfo-tests (Files): Add it and tests/signature.h.
54237         (Depends-on): Add ansi-c++-opt.
54238         (Makefile.am): Arrange to compile and run test-langinfo-c++.
54239         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
54240         gl_MODULE_INDICATOR.
54242         Tests of module 'iconv-h' in C++ mode.
54243         * tests/test-iconv-h-c++.cc: New file.
54244         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
54245         (Depends-on): Add ansi-c++-opt.
54246         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
54248         Tests of module 'glob' in C++ mode.
54249         * tests/test-glob-c++.cc: New file.
54250         * modules/glob-tests (Files): Add it.
54251         (Depends-on): Add ansi-c++-opt.
54252         (Makefile.am): Arrange to compile and run test-glob-c++.
54254         Tests of module 'fcntl-h' in C++ mode.
54255         * tests/test-fcntl-h-c++.cc: New file.
54256         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
54257         (Depends-on): Add ansi-c++-opt.
54258         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
54259         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
54260         gl_MODULE_INDICATOR.
54262         Tests of module 'dirent' in C++ mode.
54263         * tests/test-dirent-c++.cc: New file.
54264         * modules/dirent-tests (Files): Add it and tests/signature.h.
54265         (Depends-on): Add ansi-c++-opt.
54266         (Makefile.am): Arrange to compile and run test-dirent-c++.
54267         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
54268         gl_MODULE_INDICATOR.
54270         New module 'ansi-c++-opt'.
54271         * modules/ansi-c++-opt: New file.
54272         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
54274         Document C++ namespace mode.
54275         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
54277         wctype: Avoid #define replacements in C++ mode.
54278         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
54279         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
54280         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
54281         In C++, define a namespaced alias symbol.
54282         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
54283         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
54284         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
54285         rule.
54287         wchar: Avoid #define replacements in C++ mode.
54288         * lib/wchar.in.h: Include c++defs.h.
54289         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
54290         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
54291         symbol.
54292         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
54293         * modules/wchar (Depends-on): Add c++defs.
54294         (Makefile.am): Update wchar.h rule.
54296         unistd: Avoid #define replacements in C++ mode.
54297         * lib/unistd.in.h: Include c++defs.h.
54298         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
54299         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
54300         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
54301         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
54302         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
54303         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
54304         symbol.
54305         (environ): Update.
54306         * modules/unistd (Depends-on): Add c++defs.
54307         (Makefile.am): Update unistd.h rule.
54309         time: Avoid #define replacements in C++ mode.
54310         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
54311         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
54312         define a namespaced alias symbol.
54313         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
54314         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
54315         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
54316         * modules/time (Depends-on): Add c++defs, warn-on-use.
54317         (Makefile.am): Update time.h rule.
54318         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
54319         * modules/nanosleep (configure.ac): Likewise.
54320         * modules/strptime (configure.ac): Likewise.
54321         * modules/timegm (configure.ac): Likewise.
54323         sys_time: Avoid #define replacements in C++ mode.
54324         * lib/sys_time.in.h: Include c++defs.h.
54325         (gettimeofday): In C++, define a namespaced alias symbol.
54326         * modules/sys_time (Depends-on): Add c++defs.
54327         (Makefile.am): Update sys/time.h rule.
54329         sys_stat: Avoid #define replacements in C++ mode.
54330         * lib/sys_stat.in.h: Include c++defs.h.
54331         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
54332         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
54333         namespaced alias symbol.
54334         In C++, define a namespaced alias symbol.
54335         * modules/sys_stat (Depends-on): Add c++defs.
54336         (Makefile.am): Update sys/stat.h rule.
54338         sys_socket: Avoid #define replacements in C++ mode.
54339         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
54340         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
54341         definitions also when the system has a <sys/socket.h>.
54342         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
54343         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
54344         In C++, define a namespaced alias symbol.
54345         * modules/sys_socket (Depends-on): Add c++defs.
54346         (Makefile.am): Update sys/socket.h rule.
54348         sys_select: Avoid #define replacements in C++ mode.
54349         * lib/sys_select.in.h: Include c++defs.h. Enable the function
54350         definitions also when the system has a <sys/select.h>.
54351         (select): In C++, define a namespaced alias symbol.
54352         * modules/sys_select (Depends-on): Add c++defs.
54353         (Makefile.am): Update sys/select.h rule.
54355         sys_ioctl: Avoid #define replacements in C++ mode.
54356         * lib/sys_ioctl.in.h: Include c++defs.h.
54357         (ioctl): In C++, define a namespaced alias symbol.
54358         * modules/sys_ioctl (Depends-on): Add c++defs.
54359         (Makefile.am): Update sys/ioctl.h rule.
54361         string: Avoid #define replacements in C++ mode.
54362         * lib/string.in.h: Include c++defs.h.
54363         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
54364         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
54365         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
54366         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
54367         strsignal, strverscmp): In C++, define a namespaced alias symbol.
54368         * modules/string (Depends-on): Add c++defs.
54369         (Makefile.am): Update string.h rule.
54371         stdlib: Avoid #define replacements in C++ mode.
54372         * lib/stdlib.in.h: Include c++defs.h.
54373         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
54374         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
54375         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
54376         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
54377         symbol.
54378         * modules/stdlib (Depends-on): Add c++defs.
54379         (Makefile.am): Update stdlib.h rule.
54381         stdio: Avoid #define replacements in C++ mode.
54382         * lib/stdio.in.h: Include c++defs.h.
54383         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
54384         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
54385         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
54386         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
54387         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
54388         namespaced alias symbol.
54389         * modules/stdio (Depends-on): Add c++defs.
54390         (Makefile.am): Update stdio.h rule.
54392         spawn: Avoid #define replacements in C++ mode.
54393         * lib/spawn.in.h: Include c++defs.h.
54394         (posix_spawn, posix_spawnp, posix_spawnattr_init,
54395         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
54396         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
54397         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
54398         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
54399         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
54400         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
54401         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
54402         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
54403         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
54404         In C++, define a namespaced alias symbol.
54405         * modules/spawn (Depends-on): Add c++defs.
54406         (Makefile.am): Update spawn.h rule.
54408         signal: Avoid #define replacements in C++ mode.
54409         * lib/signal.in.h: Include c++defs.h.
54410         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
54411         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
54412         namespaced alias symbol.
54413         * modules/signal (Depends-on): Add c++defs.
54414         (Makefile.am): Update signal.h rule.
54416         search: Avoid #define replacements in C++ mode.
54417         * lib/search.in.h: Include c++defs.h.
54418         (_gl_search_compar_fn, _gl_search_action_fn): New types.
54419         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
54420         symbol.
54421         * modules/search (Depends-on): Add c++defs.
54422         (Makefile.am): Update search.h rule.
54424         math: Avoid #define replacements in C++ mode.
54425         * lib/math.in.h: Include c++defs.h.
54426         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
54427         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
54428         trunc, truncl): In C++, define a namespaced alias symbol.
54429         * modules/math (Depends-on): Add c++defs.
54430         (Makefile.am): Update math.h rule.
54432         locale: Avoid #define replacements in C++ mode.
54433         * lib/locale.in.h: Include c++defs.h.
54434         (duplocale): In C++, define a namespaced alias symbol.
54435         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
54436         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
54437         * modules/locale (Depends-on): Add c++defs.
54438         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
54440         langinfo: Avoid #define replacements in C++ mode.
54441         * lib/langinfo.in.h: Include c++defs.h.
54442         (nl_langinfo): In C++, define a namespaced alias symbol.
54443         * modules/langinfo (Depends-on): Add c++defs.
54444         (Makefile.am): Update langinfo.h rule.
54446         iconv-h: Avoid #define replacements in C++ mode.
54447         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
54448         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
54449         symbol.
54450         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
54451         whenever iconv is present.
54452         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
54453         (Makefile.am): Update iconv.h rule.
54455         glob: Avoid #define replacements in C++ mode.
54456         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
54457         (_gl_glob_errfunc_fn): New type.
54458         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
54459         symbol.
54460         * modules/glob (Depends-on): Add c++defs, warn-on-use.
54461         (Makefile.am): Update glob.h rule.
54463         fcntl-h: Avoid #define replacements in C++ mode.
54464         * lib/fcntl.in.h: Include c++defs.h.
54465         (fcntl, open, openat): In C++, define a namespaced alias symbol.
54466         * modules/fcntl-h (Depends-on): Add c++defs.
54467         (Makefile.am): Update fcntl.h rule.
54469         dirent: Avoid #define replacements in C++ mode.
54470         * lib/dirent.in.h: Include c++defs.h.
54471         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
54472         namespaced alias symbol.
54473         (dirfd): Update declaration.
54474         * modules/dirent (Depends-on): Add c++defs.
54475         (Makefile.am): Update dirent.h rule.
54477         ctype: Make it usable in C++ code.
54478         * lib/ctype.in.h: Include c++defs.h.
54479         (isblank): Declare as extern "C".
54480         * modules/ctype (Depends-on): Add c++defs.
54481         (Makefile.am): Update ctype.h rule.
54483         New module 'c++defs'.
54484         * modules/c++defs: New file.
54485         * build-aux/c++defs.h: New file.
54486         Reported by John W. Eaton <jwe@gnu.org>.
54488 2010-03-07  Bruno Haible  <bruno@clisp.org>
54490         logb: Provide missing declaration for Cygwin.
54491         * lib/math.in.h (logb): New declaration.
54492         * m4/logb.m4: New file.
54493         * modules/logb (Files): Add m4/logb.m4.
54494         (Depends-on): Add math.
54495         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
54496         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
54497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
54498         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
54499         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
54501 2010-03-07  Bruno Haible  <bruno@clisp.org>
54503         Fix test-cond link error.
54504         * tests/test-cond.c: Include <stdio.h>.
54506 2010-03-07  Bruno Haible  <bruno@clisp.org>
54508         Fix test-dirent-safer link error.
54509         * modules/dirent-safer-tests (Makefile.am): Define
54510         test_dirent_safer_LDADD.
54512 2010-03-07  Bruno Haible  <bruno@clisp.org>
54514         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
54515         among default module list.
54517 2010-03-07  Bruno Haible  <bruno@clisp.org>
54519         Fix link error on platforms with GNU libiconv.
54520         * modules/unistr/u8-strcoll-tests (Makefile): Define
54521         test_u8_strcoll_LDADD.
54522         * modules/unistr/u16-strcoll-tests (Makefile): Define
54523         test_u16_strcoll_LDADD.
54524         * modules/unistr/u32-strcoll-tests (Makefile): Define
54525         test_u32_strcoll_LDADD.
54527 2010-03-07  Bruno Haible  <bruno@clisp.org>
54529         Use POSIX declarations for socket functions.
54530         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
54531         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
54532         rpl_sendto): Change declaration to match POSIX.
54533         * lib/connect.c (rpl_connect): Likewise.
54534         * lib/accept.c (rpl_accept): Likewise.
54535         * lib/bind.c (rpl_bind): Likewise.
54536         * lib/getpeername.c (rpl_getpeername): Likewise.
54537         * lib/getsockname.c (rpl_getsockname): Likewise.
54538         * lib/recv.c (rpl_recv): Likewise.
54539         * lib/send.c (rpl_send): Likewise.
54540         * lib/recvfrom.c (rpl_recvfrom): Likewise.
54541         * lib/sendto.c (rpl_sendto): Likewise.
54543 2010-03-06  Bruno Haible  <bruno@clisp.org>
54545         Clarify access, euidaccess, faccessat.
54546         * doc/posix-functions/faccessat.texi: Mention security problem under
54547         "Other problems", not "Portability problems".
54548         * doc/posix-functions/access.texi: Likewise. Mention a related security
54549         problem.
54550         * doc/glibc-functions/euidaccess.texi: Mention security problems.
54551         * lib/euidaccess.c: Add comments about platforms.
54552         * lib/unistd.in.h (access, euidaccess): Add warnings.
54554 2010-03-07  Bruno Haible  <bruno@clisp.org>
54556         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
54557         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
54558         (POSIX_SPAWN_SETSCHEDULER): Likewise.
54559         (POSIX_SPAWN_USEVFORK): Define in a way that works when
54560         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
54561         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
54562         declare when POSIX_SPAWN_SETSCHEDULER is zero.
54563         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
54564         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
54565         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
54566         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
54567         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
54568         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
54569         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
54570         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
54571         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
54572         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
54573         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
54574         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
54575         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
54576         Likewise.
54577         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
54578         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
54579         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
54580         Likewise.
54581         * tests/test-spawn.c (main): Make it work when
54582         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
54584 2010-03-07  Bruno Haible  <bruno@clisp.org>
54586         Fix incorrect Makefile.am generation in German locale.
54587         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54588         Execute sed command with character range in C locale.
54590 2010-03-06  Bruno Haible  <bruno@clisp.org>
54592         Tests for module 'iconv-h'.
54593         * modules/iconv-h-tests: New file.
54594         * tests/test-iconv-h.c: New file.
54596         New module 'iconv-h'.
54597         * modules/iconv-h: New file.
54598         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
54599         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
54600         (configure.ac): Remove gl_ICONV_H.
54601         (Makefile.am): Remove rule for iconv.h.
54603 2010-03-06  Bruno Haible  <bruno@clisp.org>
54605         More consistent naming of *.m4 files.
54606         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
54607         * modules/wctype (Files): Update.
54609         More consistent naming of *.m4 files.
54610         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
54611         * modules/wchar (Files): Update.
54613 2010-03-06  Jim Meyering  <meyering@redhat.com>
54615         euidaccess: relax license to LGPLv2+
54616         * modules/euidaccess (License): Relax to LGPLv2+.
54618 2010-03-06  Bruno Haible  <bruno@clisp.org>
54620         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
54621         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
54622         (Makefile.am): Augment lib_SOURCES instead.
54624 2010-03-04  Jim Meyering  <meyering@redhat.com>
54626         utime: remove obsolete module
54627         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
54628         unnecessary for years, and has been marked as obsolete for 10 months.
54629         * modules/utime: Remove file.
54630         * lib/utime.c: Remove file.
54631         * m4/utime.m4: Remove file.
54632         * m4/utimes-null.m4: Remove file.
54633         * doc/posix-functions/utime.texi (utime): Remove reference to
54634         the module.  Move the sole "fixed by gnulib" item into the
54635         "problems not fixed by Gnulib" list.
54636         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
54638 2010-03-05  Simon Josefsson  <simon@josefsson.org>
54640         * modules/exit (License): Relax license to LGPLv2+.
54641         (Status): Mark as obsolete.
54642         * NEWS: Mention deprecated 'exit' module.
54643         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
54644         of now obsolete 'exit'.
54646 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54648         fts-lgpl: remove unused module
54649         * modules/fts-lgpl: Remove.
54650         * MODULES.html.sh (func_all_modules): Adjust.
54651         * check-module (find_included_lib_files): Adjust.
54652         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
54654 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
54656         copy-acl: enhance Solaris ACL error handling
54657         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
54658         * lib/set-mode-acl.c (qset_acl): Likewise.
54660 2010-03-02  Bruno Haible  <bruno@clisp.org>
54662         spawn: Don't override the system defined values on FreeBSD 8.
54663         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
54664         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
54665         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
54666         if HAVE_POSIX_SPAWN is 1.
54667         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
54669 2010-03-01  Bruno Haible  <bruno@clisp.org>
54671         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
54672         regarding Automake.
54674 2010-02-25  Bruno Haible  <bruno@clisp.org>
54676         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
54677         * gnulib-tool: Define 'echo' as a function only before the ksh alias
54678         setting, not afterwards.
54679         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
54681 2010-02-24  Eric Blake  <eblake@redhat.com>
54683         bootstrap, git-version-gen: use timestamp
54684         * build-aux/git-version-gen (scriptversion): Force UTC.
54685         * build-aux/bootstrap (scriptversion): New variable.
54687         bootstrap: allow older git
54688         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
54689         older than 1.6.4.  Requested by the libvirt project.
54691 2010-02-23  Eric Blake  <eblake@redhat.com>
54693         warn-on-use: work with old autoconf
54694         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
54695         AS_VAR semantics of autoconf 2.60.
54696         Reported by Bruno Haible.
54698         bootstrap: improve some comments
54699         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
54700         clarification comments.
54702         gettimeofday: provide correct function
54703         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
54704         when replacement is declared, otherwise provide gettimeofday.
54705         Reported by Michael Goffioul.
54707 2010-02-23  Jim Meyering  <meyering@redhat.com>
54709         lib-ignore: relax license to "unlimited", not LGPLv2+
54710         * modules/lib-ignore (License): Relax to "unlimited".
54712 2010-02-23  Jim Meyering  <meyering@redhat.com>
54714         lib-ignore: relax license to LGPLv2+
54715         * modules/lib-ignore (License): Relax to LGPLv2+.
54717 2010-02-22  Eric Blake  <eblake@redhat.com>
54719         lseek: avoid bash 3.2 broken pipe bug
54720         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
54721         warning from bash 3.2.
54722         Reported by Ben Pfaff, with analysis from Bruno Haible.
54724         bootstrap: support non-FSF copyright holder
54725         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
54726         bootstrap.conf override of COPYRIGHT_HOLDER.
54727         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
54729         bootstrap: interoperate with gettext 0.14.1
54730         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
54732         bootstrap: allow for alternate submodule location
54733         * build-aux/bootstrap (gnulib_path): New variable; use instead of
54734         hardcoding submodule location.
54735         (gnulib_mk): Allow direct use of Makefile.am.
54737         bootstrap: use GNULIB_SRCDIR to reduce disk usage
54738         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
54739         rather than reconfiguring where the submodule points.
54741         gettimeofday: restore support for platforms that lack function
54742         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
54743         replacement if function is missing.
54744         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
54745         * modules/sys_time (Makefile.am): Substitute it.
54746         * lib/sys_time.in.h (gettimeofday): Check it.
54747         Reported by Michael Goffioul.
54749 2010-02-21  Bruno Haible  <bruno@clisp.org>
54751         * lib/stdio.in.h (obstack_printf): Fix typo.
54753 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
54755         vc-list-files: use bzr ls's -R option
54756         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
54757         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
54759 2010-02-21  Jim Meyering  <meyering@redhat.com>
54761         init.sh: fix EXEEXT shims to work also for names like test-prog
54762         * tests/init.sh: Re-exec a better shell, when needed.
54763         If the current shell lacks support for posix $(...), an init.sh-using
54764         test will now try to find a shell that supports that.  If EXEEXT is
54765         nonempty, we also require support for hyphen-in-alias-name and shell
54766         substitutions like ${var#glob}.  Failure to find such a shell results
54767         in a skipped test.
54769 2010-02-21  Bruno Haible  <bruno@clisp.org>
54771         Really work around "broken pipe" error message from bash 3.2.
54772         * gnulib-tool (func_reset_sigpipe): Remove function.
54773         (echo): In bash 3.2, define to a function that uses printf.
54774         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
54776 2010-02-20  Bruno Haible  <bruno@clisp.org>
54778         Restore support for automake 1.9.6 with autoconf 2.61.
54779         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
54780         Reported by James Youngman <jay@gnu.org>.
54782 2010-02-20  Bruno Haible  <bruno@clisp.org>
54784         Improve *printf warning condition.
54785         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
54786         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
54787         and the function is overridden due to SIGPIPE emulation.
54789 2010-02-20  Bruno Haible  <bruno@clisp.org>
54791         * lib/stdio.in.h: Tweak comments.
54793 2010-02-19  Bruno Haible  <bruno@clisp.org>
54795         Make it easier to find modules. New gnulib-tool option '--find'.
54796         * gnulib-tool: New option --find.
54797         (func_usage): Document it.
54798         (func_sanitize_modulelist): New function, extracted from
54799         func_all_modules.
54800         (func_all_modules): Invoke it.
54801         * doc/gnulib-tool.texi (Which modules?): New node.
54803 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
54805         * lib/sys_select.in.h: Provide select replacement even if
54806         sys/select.h exists on a system, for Interix.
54808 2010-02-18  Jim Meyering  <meyering@redhat.com>
54810         init.sh: don't use $(...) just yet
54811         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
54812         to accommodate e.g., Solaris' /bin/sh.
54814 2010-02-17  Bruno Haible  <bruno@clisp.org>
54816         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
54817         Reported by Ludovic Courtès <ludo@gnu.org>.
54819 2010-02-16  Simon Josefsson  <simon@josefsson.org>
54821         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
54822         linking with -lintl.
54824 2010-02-17  Simon Josefsson  <simon@josefsson.org>
54826         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
54827         if not provided by the system's netdb.h.  Reported by
54828         ludo@gnu.org (Ludovic Courtès).
54830 2010-02-15  Jim Meyering  <meyering@redhat.com>
54832         init.sh: improve portability and efficiency
54833         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
54834         "dummy" in a for loop.
54835         Use '!', not '^' to select the complement of a character set used
54836         in a "case" statement.
54837         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
54838         Suggestions from Eric Blake.
54840         init.sh: automatically accommodate programs with the .exe suffix
54841         Automatically arrange for an invocation of "prog" to execute the
54842         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
54843         may use the simpler "prog", yet still work when built on a system
54844         that requires specifying the added suffix.
54845         Do this by constructing a function named "prog" that invokes
54846         "prog.exe" for each .exe file in selected directories.
54847         * tests/init.sh (find_exe_basenames_): New function.
54848         (create_exe_shim_functions_): New function.
54849         (path_prepend_): Use it.
54851         maint.mk: mark syntax-check sc_*.m rules as .PHONY
54852         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
54853         "make -t syntax-check" doesn't create a ton of sc_*.m files.
54855 2010-02-14  Jim Meyering  <meyering@redhat.com>
54857         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
54858         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
54859         (sc_prohibit_hash_pjw_without_use): New rule.
54861         maint.mk: allow the default upload destination dir to be overridden
54862         * top/maint.mk (upload_dest_dir_): Define with a default that
54863         preserves the status quo.
54864         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
54865         Reported by Peter Simons.
54867         maint.mk: prohibit inclusion of "hash.h" without_use
54868         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
54870 2010-02-10  Jim Meyering  <meyering@redhat.com>
54872         maint.mk: prohibit inclusion of "ignore-value.h" without_use
54873         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
54875 2010-02-09  Eric Blake  <ebb9@byu.net>
54876         and Bruno Haible  <bruno@clisp.org>
54878         obstack-printf-posix: ensure declaration
54879         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
54880         extracted from gl_FUNC_OBSTACK_PRINTF.
54881         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
54882         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
54883         Likewise.
54884         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
54885         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
54886         0.
54888 2010-02-08  Bruno Haible  <bruno@clisp.org>
54890         gnulib-tool: Fix typo in 2010-02-07 commit.
54891         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
54892         Reported by Eric Blake.
54894 2010-02-07  Bruno Haible  <bruno@clisp.org>
54896         gnulib-tool: Fix up caching patches.
54897         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
54898         option --no-cache. Use associative arrays when supported by the shell.
54899         (sed_comments): New variable.
54900         (modcache): Renamed from do_cache.
54901         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
54902         abbreviate unnecessarily.
54903         (have_associative): New variable.
54904         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
54905         way also for ksh and zsh.
54906         (func_init_sed_convert_to_cache_statements): New function, extracted
54907         from func_cache_lookup_module. Add support for associative arrays.
54908         Don't set the c_MODULE_cached variable here. Ignore all lines before
54909         the first field header. Remove only the final newline, not all trailing
54910         newlines. Support empty fields correctly. Limit the use of 'eval' to
54911         assignments.
54912         (func_get_description, func_get_status, func_get_notice,
54913         func_get_applicability, func_get_filelist, func_get_dependencies,
54914         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
54915         func_get_automake_snippet, func_get_include_directive,
54916         func_get_link_directive, func_get_license, func_get_maintainer):
54917         Update documentation. List the unoptimized code first. Add support for
54918         associative arrays. Limit the use of 'eval' to assignments.
54919         (func_get_applicability): Undo stylistic pessimisations.
54920         (func_get_automake_snippet, func_get_include_directive): Reduce code
54921         duplication.
54922         (func_modules_transitive_closure, func_modules_add_dummy,
54923         func_modules_notice, func_modules_to_filelist, func_add_file,
54924         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
54925         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
54926         func_create_testdir, func_create_megatestdir): Update documentation.
54928 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54930         * gnulib-tool (func_cache_lookup_module): Store the module name
54931         belonging to the cache variable; error out if two different
54932         module names map to the same cache variable name.
54934 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54936         gnulib-tool: Make caching optional.
54937         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
54938         Update matching short versions of --no-changelog.
54939         (func_usage): Update.
54940         (sed_extract_cache_prog): Renamed from ...
54941         (sed_extract_prog): ... this; revert to old extraction script.
54942         (func_get_description, func_get_status)
54943         (func_get_notice, func_get_applicability, func_get_filelist)
54944         (func_get_dependencies, func_get_autoconf_early_snippet)
54945         (func_get_autoconf_snippet, func_get_automake_snippet)
54946         (func_get_include_directive, func_get_link_directive)
54947         (func_get_license, func_get_maintainer): If $do_cache is false,
54948         use old, non-caching extraction scripts.
54949         Suggestion by Bruno Haible.
54951 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54953         gnulib-tool: cache module metainformation.
54954         * gnulib-tool (sed_extract_prog): Match newline before each
54955         header, and rewrite header to a shell variable suffix.
54956         (func_cache_var, func_cache_lookup_module): New functions,
54957         to turn a module name into a cache variable prefix, and to
54958         look up and cache module metainformation.
54959         (func_get_description, func_get_status)
54960         (func_get_notice, func_get_applicability, func_get_filelist)
54961         (func_get_dependencies, func_get_autoconf_early_snippet)
54962         (func_get_autoconf_snippet, func_get_automake_snippet)
54963         (func_get_include_directive, func_get_link_directive)
54964         (func_get_license, func_get_maintainer): Use
54965         func_cache_lookup_module.
54967 2010-02-07  Bruno Haible  <bruno@clisp.org>
54969         fnctl: Fix missing dependency.
54970         * modules/fcntl (Depends-on): Add getdtablesize.
54971         Reported by John W. Eaton <jwe@gnu.org>.
54973 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54975         Argp: fix recognition of short alias options.
54977         * lib/argp-parse.c (convert_options): Fix improper use of
54978         `|' between character values.
54979         * tests/test-argp.c (group1_option): New alias option
54980         --read (-r).
54981         (group1_parser): Special handling for 'r'.
54982         (test15): New test case.
54983         (test_fun): Add test15.
54984         * tests/test-argp-2.sh: Update expected --help and --usage
54985         outputs.
54987 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54989         * tests/test-argp.c: Fix indentation.
54991 2010-02-04  Eric Blake  <ebb9@byu.net>
54993         gettimeofday: expose type of second argument
54994         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
54995         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
54996         * tests/test-gettimeofday.c: Use it to silence warning.
54997         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
54998         the issue.
55000 2010-02-03  Jim Meyering  <meyering@redhat.com>
55002         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
55003         * lib/regcomp.c (TYPE_SIGNED): Define.
55004         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
55006         regcomp.c: avoid a new -Wshadow warning
55007         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
55009 2010-02-01  Jim Meyering  <meyering@redhat.com>
55011         removing useless parentheses in cpp #define directives
55012         For motivation, see commit c0221df4, "define STREQ(a,b)
55013         consistently, removing useless parentheses"
55014         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
55015         * lib/mountlist.c (MNT_IGNORE): Likewise.
55016         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
55018 2010-02-01  Eric Blake  <ebb9@byu.net>
55020         sys_time: use link-warning
55021         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
55022         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
55023         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
55024         * modules/sys_time (Depends-on): Add warn-on-use.
55025         (Makefile.am): Always build replacement.
55026         (configure.ac): Update substitutions.
55027         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
55028         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
55029         bother with SYS_TIME_H.
55030         * modules/gettimeofday (configure.ac): Declare indicator.
55031         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
55032         in use.
55034         closein-tests: silence compiler warning
55035         * tests/test-closein.c (main): Ignore fread result.
55036         * modules/closein-tests (Depends-on): Add ignore-value.
55038         tests: silence warning about system return
55039         * tests/test-areadlink-with-size.c (main): Ignore system result.
55040         * tests/test-areadlink.c (main): Likewise.
55041         * tests/test-areadlinkat-with-size.c (main): Likewise.
55042         * tests/test-areadlinkat.c (main): Likewise.
55043         * tests/test-canonicalize-lgpl.c (main): Likewise.
55044         * tests/test-canonicalize.c (main): Likewise.
55045         * tests/test-chown.c (main): Likewise.
55046         * tests/test-fchownat.c (main): Likewise.
55047         * tests/test-fdutimensat.c (main): Likewise.
55048         * tests/test-fstatat.c (main): Likewise.
55049         * tests/test-futimens.c (main): Likewise.
55050         * tests/test-lchown.c (main): Likewise.
55051         * tests/test-link.c (main): Likewise.
55052         * tests/test-linkat.c (main): Likewise.
55053         * tests/test-lstat.c (main): Likewise.
55054         * tests/test-mkdir.c (main): Likewise.
55055         * tests/test-mkdirat.c (main): Likewise.
55056         * tests/test-mkfifo.c (main): Likewise.
55057         * tests/test-mkfifoat.c (main): Likewise.
55058         * tests/test-mknod.c (main): Likewise.
55059         * tests/test-readlink.c (main): Likewise.
55060         * tests/test-remove.c (main): Likewise.
55061         * tests/test-rename.c (main): Likewise.
55062         * tests/test-renameat.c (main): Likewise.
55063         * tests/test-rmdir.c (main): Likewise.
55064         * tests/test-symlink.c (main): Likewise.
55065         * tests/test-symlinkat.c (main): Likewise.
55066         * tests/test-unlink.c (main): Likewise.
55067         * tests/test-unlinkat.c (main): Likewise.
55068         * tests/test-utimens.c (main): Likewise.
55069         * tests/test-utimensat.c (main): Likewise.
55070         * modules/areadlink-tests (Depends-on): Add ignore-value.
55071         * modules/areadlink-with-size-tests (Depends-on): Likewise.
55072         * modules/areadlinkat-tests (Depends-on): Likewise.
55073         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
55074         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
55075         * modules/canonicalize-tests (Depends-on): Likewise.
55076         * modules/chown-tests (Depends-on): Likewise.
55077         * modules/fdutimensat-tests (Depends-on): Likewise.
55078         * modules/futimens-tests (Depends-on): Likewise.
55079         * modules/lchown-tests (Depends-on): Likewise.
55080         * modules/link-tests (Depends-on): Likewise.
55081         * modules/linkat-tests (Depends-on): Likewise.
55082         * modules/lstat-tests (Depends-on): Likewise.
55083         * modules/mkdir-tests (Depends-on): Likewise.
55084         * modules/mkfifo-tests (Depends-on): Likewise.
55085         * modules/mkfifoat-tests (Depends-on): Likewise.
55086         * modules/mknod-tests (Depends-on): Likewise.
55087         * modules/openat-tests (Depends-on): Likewise.
55088         * modules/readlink-tests (Depends-on): Likewise.
55089         * modules/remove-tests (Depends-on): Likewise.
55090         * modules/rename-tests (Depends-on): Likewise.
55091         * modules/renameat-tests (Depends-on): Likewise.
55092         * modules/rmdir-tests (Depends-on): Likewise.
55093         * modules/symlink-tests (Depends-on): Likewise.
55094         * modules/symlinkat-tests (Depends-on): Likewise.
55095         * modules/unlink-tests (Depends-on): Likewise.
55096         * modules/utimens-tests (Depends-on): Likewise.
55097         * modules/utimensat-tests (Depends-on): Likewise.
55099 2010-01-31  Bruno Haible  <bruno@clisp.org>
55101         Perform the same test for many <math.h> functions.
55102         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
55103         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
55104         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
55105         of gl_MATHFUNC.
55106         * modules/acos (configure.ac): Likewise.
55107         * modules/asin (configure.ac): Likewise.
55108         * modules/atan (configure.ac): Likewise.
55109         * modules/atan2 (configure.ac): Likewise.
55110         * modules/cbrt (configure.ac): Likewise.
55111         * modules/copysign (configure.ac): Likewise.
55112         * modules/cos (configure.ac): Likewise.
55113         * modules/cosh (configure.ac): Likewise.
55114         * modules/erf (configure.ac): Likewise.
55115         * modules/erfc (configure.ac): Likewise.
55116         * modules/exp (configure.ac): Likewise.
55117         * modules/fmod (configure.ac): Likewise.
55118         * modules/hypot (configure.ac): Likewise.
55119         * modules/j0 (configure.ac): Likewise.
55120         * modules/j1 (configure.ac): Likewise.
55121         * modules/jn (configure.ac): Likewise.
55122         * modules/lgamma (configure.ac): Likewise.
55123         * modules/log (configure.ac): Likewise.
55124         * modules/log10 (configure.ac): Likewise.
55125         * modules/log1p (configure.ac): Likewise.
55126         * modules/pow (configure.ac): Likewise.
55127         * modules/remainder (configure.ac): Likewise.
55128         * modules/sin (configure.ac): Likewise.
55129         * modules/sinh (configure.ac): Likewise.
55130         * modules/tan (configure.ac): Likewise.
55131         * modules/tanh (configure.ac): Likewise.
55132         * modules/y0 (configure.ac): Likewise.
55133         * modules/y1 (configure.ac): Likewise.
55134         * modules/yn (configure.ac): Likewise.
55135         Suggested by Paolo Bonzini.
55137 2010-01-31  Bruno Haible  <bruno@clisp.org>
55139         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
55141 2010-01-31  Bruno Haible  <bruno@clisp.org>
55143         Work around getdelim() bug on FreeBSD 8.0.
55144         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
55145         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
55146         not work.
55147         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
55148         is 1.
55149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
55150         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
55151         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
55152         a non-zero size.
55153         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
55155 2010-01-31  Bruno Haible  <bruno@clisp.org>
55157         Work around getline() bug on FreeBSD 8.0.
55158         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
55159         and a non-zero size.
55160         * tests/test-getline.c (main): Likewise.
55161         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
55162         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
55164 2010-01-28  Eric Blake  <ebb9@byu.net>
55166         regex: fix build failure
55167         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
55168         platforms.
55170 2010-01-28  Jim Meyering  <meyering@redhat.com>
55172         regex: do not ignore memory allocation failure
55173         * lib/regex_internal.c (create_cd_newstate): Detect
55174         re_node_set_init_copy failure.   Extracted from glibc commit
55175         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
55177         regex: sync more white-space changes from libc
55178         * lib/regex_internal.c: White-space only changes.
55179         * lib/regexec.c: Likewise.
55181         regex: add many uses of __attribute_warn_unused_result__
55182         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
55183         * lib/regexec.c: Likewise.
55184         Extracted from a messy glibc commit.
55186         regcomp.c: spelling and merge-artifact from glibc
55187         * lib/regcomp.c: Merge remainder of glibc's
55188         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
55190         regcomp.c: sync white-space changes from glibc
55191         * lib/regcomp.c: Merge to accommodate white space
55192         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
55194         regcomp.c: do not ignore internal return values
55195         * lib/regcomp.c: Do not ignore internal return values.
55196         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
55197         but without its white-space changes and spelling fixes.
55199         regex_internal.h: define __attribute_warn_unused_result__
55200         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
55202         maint: add a syntax-check rule to check for vulnerable Makefile.in
55203         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
55205 2010-01-27  Jim Meyering  <meyering@redhat.com>
55207         ncftpput-ftp: clean up spaces
55208         * build-aux/ncftpput-ftp: Make Copyright line consistent.
55209         Remove trailing blanks.
55211 2010-01-27  Simon Josefsson  <simon@josefsson.org>
55213         * build-aux/git-version-gen: Fix copyright statement.
55214         * build-aux/gnupload: Likewise.
55215         * tests/test-arcfour.c: Likewise.
55216         * tests/test-arctwo.c: Likewise.
55217         * tests/test-count-one-bits.c: Likewise.
55218         * tests/test-crc.c: Likewise.
55219         * tests/test-des.c: Likewise.
55220         * tests/test-gc-arcfour.c: Likewise.
55221         * tests/test-gc-arctwo.c: Likewise.
55222         * tests/test-gc-des.c: Likewise.
55223         * tests/test-gc-hmac-md5.c: Likewise.
55224         * tests/test-gc-hmac-sha1.c: Likewise.
55225         * tests/test-gc-md2.c: Likewise.
55226         * tests/test-gc-md4.c: Likewise.
55227         * tests/test-gc-md5.c: Likewise.
55228         * tests/test-gc-pbkdf2-sha1.c: Likewise.
55229         * tests/test-gc-rijndael.c: Likewise.
55230         * tests/test-gc-sha1.c: Likewise.
55231         * tests/test-gc.c: Likewise.
55232         * tests/test-gethostname.c: Likewise.
55233         * tests/test-gettimeofday.c: Likewise.
55234         * tests/test-hash.c: Likewise.
55235         * tests/test-hmac-md5.c: Likewise.
55236         * tests/test-hmac-sha1.c: Likewise.
55237         * tests/test-md2.c: Likewise.
55238         * tests/test-md4.c: Likewise.
55239         * tests/test-md5.c: Likewise.
55240         * tests/test-memchr.c: Likewise.
55241         * tests/test-memchr2.c: Likewise.
55242         * tests/test-memcmp.c: Likewise.
55243         * tests/test-memmem.c: Likewise.
55244         * tests/test-memrchr.c: Likewise.
55245         * tests/test-rawmemchr.c: Likewise.
55246         * tests/test-read-file.c: Likewise.
55247         * tests/test-rijndael.c: Likewise.
55248         * tests/test-sockets.c: Likewise.
55249         * tests/test-strchrnul.c: Likewise.
55250         * tests/test-strstr.c: Likewise.
55251         * tests/test-strtod.c: Likewise.
55252         * build-aux/ncftpput-ftp: Likewise.
55254 2010-01-26  Eric Blake  <ebb9@byu.net>
55256         ignore-value: update recommended header name
55257         * modules/ignore-value (Include): Only use <> for headers that
55258         exist in glibc.
55260 2010-01-26  Jim Meyering  <meyering@redhat.com>
55262         test-userspec.c: avoid compiler warnings
55263         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
55264         and "initialization discards qualifiers..." warnings.
55265         Put the first "uid" in its own scope, and make char* members "const".
55267 2010-01-25  Bruno Haible  <bruno@clisp.org>
55269         gnulib-tool: Make warning diagnostics consistent.
55270         * gnulib-tool (func_warning): New function.
55271         Use it everywhere where gnulib-tool produces output to stderr and it is
55272         not a fatal error.
55274 2010-01-25  Bruno Haible  <bruno@clisp.org>
55276         Fix test dependencies.
55277         * modules/xstrtol-tests (Depends-on): Add inttypes.
55278         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
55280 2010-01-25  Pádraig Brady  <P@draigBrady.com>
55282         syntax-check: detect incorrect boolean macro values in config.h
55283         * modules/maintainer-makefile (configure.ac): Parameterize the location
55284         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
55285         The logic is from Eric Blake and the location indicated by Jim Meyering.
55286         Note the more natural CONFIG_HEADER name is prohibited by automake
55287         for backwards compatibility reasons.
55288         * top/maint.mk (sc_Wundef_boolean): New rule.
55290 2010-01-25  Jim Meyering  <meyering@redhat.com>
55292         bootstrap: detect MacOS 10.6's shasum, too
55293         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
55294         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
55296 2010-01-23  Jim Meyering  <meyering@redhat.com>
55298         xstrtoll: new module
55299         * modules/xstrtoll: New file.
55300         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
55301         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
55302         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
55303         ./configure fails if you use this module and lack "long long".
55304         * modules/xstrtoll-tests: New module.
55305         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
55306         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
55307         new init.sh-based test framework.
55309 2010-01-24  Bruno Haible  <bruno@clisp.org>
55311         Tests for module 'yn'.
55312         * modules/yn-tests: New file.
55313         * tests/test-yn.c: New file.
55315         Tests for module 'y1'.
55316         * modules/y1-tests: New file.
55317         * tests/test-y1.c: New file.
55319         Tests for module 'y0'.
55320         * modules/y0-tests: New file.
55321         * tests/test-y0.c: New file.
55323         Tests for module 'tanh'.
55324         * modules/tanh-tests: New file.
55325         * tests/test-tanh.c: New file.
55327         Tests for module 'tan'.
55328         * modules/tan-tests: New file.
55329         * tests/test-tan.c: New file.
55331         Tests for module 'sqrt'.
55332         * modules/sqrt-tests: New file.
55333         * tests/test-sqrt.c: New file.
55335         Tests for module 'sinh'.
55336         * modules/sinh-tests: New file.
55337         * tests/test-sinh.c: New file.
55339         Tests for module 'sin'.
55340         * modules/sin-tests: New file.
55341         * tests/test-sin.c: New file.
55343         Tests for module 'rint'.
55344         * modules/rint-tests: New file.
55345         * tests/test-rint.c: New file.
55347         Tests for module 'remainder'.
55348         * modules/remainder-tests: New file.
55349         * tests/test-remainder.c: New file.
55351         Tests for module 'pow'.
55352         * modules/pow-tests: New file.
55353         * tests/test-pow.c: New file.
55355         Tests for module 'nextafter'.
55356         * modules/nextafter-tests: New file.
55357         * tests/test-nextafter.c: New file.
55359         Tests for module 'modf'.
55360         * modules/modf-tests: New file.
55361         * tests/test-modf.c: New file.
55363         Tests for module 'logb'.
55364         * modules/logb-tests: New file.
55365         * tests/test-logb.c: New file.
55367         Tests for module 'log1p'.
55368         * modules/log1p-tests: New file.
55369         * tests/test-log1p.c: New file.
55371         Tests for module 'log10'.
55372         * modules/log10-tests: New file.
55373         * tests/test-log10.c: New file.
55375         Tests for module 'log'.
55376         * modules/log-tests: New file.
55377         * tests/test-log.c: New file.
55379         Tests for module 'lgamma'.
55380         * modules/lgamma-tests: New file.
55381         * tests/test-lgamma.c: New file.
55383         Tests for module 'ldexp'.
55384         * modules/ldexp-tests: New file.
55385         * tests/test-ldexp.c: New file.
55387         Tests for module 'jn'.
55388         * modules/jn-tests: New file.
55389         * tests/test-jn.c: New file.
55391         Tests for module 'j1'.
55392         * modules/j1-tests: New file.
55393         * tests/test-j1.c: New file.
55395         Tests for module 'j0'.
55396         * modules/j0-tests: New file.
55397         * tests/test-j0.c: New file.
55399         Tests for module 'hypot'.
55400         * modules/hypot-tests: New file.
55401         * tests/test-hypot.c: New file.
55403         Tests for module 'fmod'.
55404         * modules/fmod-tests: New file.
55405         * tests/test-fmod.c: New file.
55407         Tests for module 'fabs'.
55408         * modules/fabs-tests: New file.
55409         * tests/test-fabs.c: New file.
55411         Tests for module 'exp'.
55412         * modules/exp-tests: New file.
55413         * tests/test-exp.c: New file.
55415         Tests for module 'erfc'.
55416         * modules/erfc-tests: New file.
55417         * tests/test-erfc.c: New file.
55419         Tests for module 'erf'.
55420         * modules/erf-tests: New file.
55421         * tests/test-erf.c: New file.
55423         Tests for module 'cosh'.
55424         * modules/cosh-tests: New file.
55425         * tests/test-cosh.c: New file.
55427         Tests for module 'cos'.
55428         * modules/cos-tests: New file.
55429         * tests/test-cos.c: New file.
55431         Tests for module 'copysign'.
55432         * modules/copysign-tests: New file.
55433         * tests/test-copysign.c: New file.
55435         Tests for module 'cbrt'.
55436         * modules/cbrt-tests: New file.
55437         * tests/test-cbrt.c: New file.
55439         Tests for module 'atan2'.
55440         * modules/atan2-tests: New file.
55441         * tests/test-atan2.c: New file.
55443         Tests for module 'atan'.
55444         * modules/atan-tests: New file.
55445         * tests/test-atan.c: New file.
55447         Tests for module 'asin'.
55448         * modules/asin-tests: New file.
55449         * tests/test-asin.c: New file.
55451         Tests for module 'acos'.
55452         * modules/acos-tests: New file.
55453         * tests/test-acos.c: New file.
55455 2010-01-24  Bruno Haible  <bruno@clisp.org>
55457         Fix tests for common <math.h> functions.
55458         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
55459         code snippet that references the function pointer, rather than merely
55460         calling the function. Substitute the FUNC_LIBM variable.
55461         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
55462         * modules/acos (configure.ac): Likewise.
55463         * modules/asin (configure.ac): Likewise.
55464         * modules/atan (configure.ac): Likewise.
55465         * modules/atan2 (configure.ac): Likewise.
55466         * modules/cbrt (configure.ac): Likewise.
55467         * modules/copysign (configure.ac): Likewise.
55468         * modules/cos (configure.ac): Likewise.
55469         * modules/cosh (configure.ac): Likewise.
55470         * modules/erf (configure.ac): Likewise.
55471         * modules/erfc (configure.ac): Likewise.
55472         * modules/exp (configure.ac): Likewise.
55473         * modules/fabs (configure.ac): Likewise.
55474         * modules/fmod (configure.ac): Likewise.
55475         * modules/hypot (configure.ac): Likewise.
55476         * modules/j0 (configure.ac): Likewise.
55477         * modules/j1 (configure.ac): Likewise.
55478         * modules/jn (configure.ac): Likewise.
55479         * modules/ldexp (configure.ac): Likewise.
55480         * modules/lgamma (configure.ac): Likewise.
55481         * modules/log (configure.ac): Likewise.
55482         * modules/log10 (configure.ac): Likewise.
55483         * modules/log1p (configure.ac): Likewise.
55484         * modules/logb (configure.ac): Likewise.
55485         * modules/modf (configure.ac): Likewise.
55486         * modules/nextafter (configure.ac): Likewise.
55487         * modules/pow (configure.ac): Likewise.
55488         * modules/remainder (configure.ac): Likewise.
55489         * modules/rint (configure.ac): Likewise.
55490         * modules/sin (configure.ac): Likewise.
55491         * modules/sinh (configure.ac): Likewise.
55492         * modules/tan (configure.ac): Likewise.
55493         * modules/tanh (configure.ac): Likewise.
55494         * modules/y0 (configure.ac): Likewise.
55495         * modules/y1 (configure.ac): Likewise.
55496         * modules/yn (configure.ac): Likewise.
55498 2010-01-24  Bruno Haible  <bruno@clisp.org>
55500         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
55501         * tests/test-acosl.c (x): New variable.
55502         (main): Store argument in x and fetch it from x.
55503         * tests/test-asinl.c (x): New variable.
55504         (main): Store argument in x and fetch it from x.
55505         * tests/test-atanl.c (x): New variable.
55506         (main): Store argument in x and fetch it from x.
55507         * tests/test-cosl.c (x): New variable.
55508         (main): Store argument in x and fetch it from x.
55509         * tests/test-expl.c (x): New variable.
55510         (main): Store argument in x and fetch it from x.
55511         * tests/test-logl.c (x): New variable.
55512         (main): Store argument in x and fetch it from x.
55513         * tests/test-sinl.c (x): New variable.
55514         (main): Store argument in x and fetch it from x.
55515         * tests/test-sqrtl.c (x): New variable.
55516         (main): Store argument in x and fetch it from x.
55517         * tests/test-tanl.c (x): New variable.
55518         (main): Store argument in x and fetch it from x.
55520 2010-01-24  Bruno Haible  <bruno@clisp.org>
55522         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
55523         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
55524         assignments to the initial TESTS_ENVIRONMENT.
55525         * doc/gnulib.texi (Unit test modules): Document it.
55526         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
55527         TESTS_ENVIRONMENT.
55528         * modules/btowc-tests (Makefile.am): Likewise.
55529         * modules/c-stack-tests (Makefile.am): Likewise.
55530         * modules/c-strcase-tests (Makefile.am): Likewise.
55531         * modules/copy-file-tests (Makefile.am): Likewise.
55532         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
55533         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
55534         * modules/mbrtowc-tests (Makefile.am): Likewise.
55535         * modules/mbscasecmp-tests (Makefile.am): Likewise.
55536         * modules/mbscasestr-tests (Makefile.am): Likewise.
55537         * modules/mbschr-tests (Makefile.am): Likewise.
55538         * modules/mbscspn-tests (Makefile.am): Likewise.
55539         * modules/mbsinit-tests (Makefile.am): Likewise.
55540         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
55541         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
55542         * modules/mbspbrk-tests (Makefile.am): Likewise.
55543         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
55544         * modules/mbsrchr-tests (Makefile.am): Likewise.
55545         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
55546         * modules/mbsspn-tests (Makefile.am): Likewise.
55547         * modules/mbsstr-tests (Makefile.am): Likewise.
55548         * modules/nl_langinfo-tests (Makefile.am): Likewise.
55549         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
55550         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
55551         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
55552         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
55553         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
55554         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
55555         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
55556         * modules/wcrtomb-tests (Makefile.am): Likewise.
55557         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
55558         * modules/wcsrtombs-tests (Makefile.am): Likewise.
55559         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
55560         assignments from TESTS_ENVIRONMENT.
55561         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
55562         augmentation.
55563         * modules/argp-version-etc-tests (Makefile.am): Likewise.
55564         * modules/atexit-tests (Makefile.am): Likewise.
55565         * modules/binary-io-tests (Makefile.am): Likewise.
55566         * modules/closein-tests (Makefile.am): Likewise.
55567         * modules/dprintf-posix-tests (Makefile.am): Likewise.
55568         * modules/exclude-tests (Makefile.am): Likewise.
55569         * modules/fflush-tests (Makefile.am): Likewise.
55570         * modules/fpending-tests (Makefile.am): Likewise.
55571         * modules/fprintf-posix-tests (Makefile.am): Likewise.
55572         * modules/freadahead-tests (Makefile.am): Likewise.
55573         * modules/freadptr-tests (Makefile.am): Likewise.
55574         * modules/freadseek-tests (Makefile.am): Likewise.
55575         * modules/fseek-tests (Makefile.am): Likewise.
55576         * modules/fseeko-tests (Makefile.am): Likewise.
55577         * modules/ftell-tests (Makefile.am): Likewise.
55578         * modules/ftello-tests (Makefile.am): Likewise.
55579         * modules/idpriv-drop-tests (Makefile.am): Likewise.
55580         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
55581         * modules/lseek-tests (Makefile.am): Likewise.
55582         * modules/parse-duration-tests (Makefile.am): Likewise.
55583         * modules/perror-tests (Makefile.am): Likewise.
55584         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
55585         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
55586         * modules/pipe-tests (Makefile.am): Likewise.
55587         * modules/pread-tests (Makefile.am): Likewise.
55588         * modules/printf-posix-tests (Makefile.am): Likewise.
55589         * modules/select-tests (Makefile.am): Likewise.
55590         * modules/sigpipe-tests (Makefile.am): Likewise.
55591         * modules/tsearch-tests (Makefile.am): Likewise.
55592         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
55593         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
55594         * modules/uniname/uniname-tests (Makefile.am): Likewise.
55595         * modules/uniwidth/width-tests (Makefile.am): Likewise.
55596         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
55597         * modules/version-etc-tests (Makefile.am): Likewise.
55598         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
55599         * modules/vprintf-posix-tests (Makefile.am): Likewise.
55600         * modules/xalloc-die-tests (Makefile.am): Likewise.
55601         * modules/xprintf-posix-tests (Makefile.am): Likewise.
55602         * modules/xstrtoimax-tests (Makefile.am): Likewise.
55603         * modules/xstrtol-tests (Makefile.am): Likewise.
55604         * modules/xstrtoumax-tests (Makefile.am): Likewise.
55605         * modules/yesno-tests (Makefile.am): Likewise.
55606         Suggested by Jim Meyering.
55608 2010-01-24  Bruno Haible  <bruno@clisp.org>
55610         More documentation.
55611         * doc/gnulib.texi (Writing modules): New chapter.
55612         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
55613         the new chapter.
55615 2010-01-24  Jim Meyering  <meyering@redhat.com>
55617         maint.mk: do not prepend "./" after filtering
55618         * top/maint.mk (_prepend_srcdir_prefix): New variable
55619         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
55620         "./" when $(srcdir) is ".".
55622         define STREQ(a,b) consistently, removing useless parentheses
55623         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
55624         since the only risk is that "a" or "b" contains an unparenthesized
55625         comma, but if either did that, STREQ would have 3 or more arguments.
55626         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
55627         * lib/fts.c (STREQ): Remove unnecessary parentheses.
55628         * lib/hash-triple.c (STREQ): Likewise.
55629         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
55630         * lib/getugroups.c (STREQ): Likewise.
55632 2010-01-23  Jim Meyering  <meyering@redhat.com>
55634         maint.mk: fix syntax-check in a non-srcdir build directory
55635         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
55636         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
55638 2010-01-22  Jim Meyering  <meyering@redhat.com>
55640         userspec: add unit tests
55641         * tests/test-userspec.c: New file.
55642         * modules/userspec-tests: Likewise.
55644 2010-01-21  Jim Meyering  <meyering@redhat.com>
55646         maint.mk: handle source file names containing "." robustly
55647         * top/maint.mk (_dot_escaped_srcdir): Define.
55648         (VC_LIST): Use it in LHS of sed substitution.
55650 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
55652         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
55653         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
55654         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
55655         from a non-srcdir build.
55657 2010-01-20  Eric Blake  <ebb9@byu.net>
55659         warn-on-use: use instead of link-warning
55660         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
55661         * modules/unistd (Depends-on, Makefile.am): Likewise.
55662         * modules/arpa_inet (Depends-on): Replace link-warning with
55663         warn-on-use.
55664         (Makefile.am): Update rules accordingly.
55665         * modules/ctype (Depends-on, Makefile.am): Likewise.
55666         * modules/dirent (Depends-on, Makefile.am): Likewise.
55667         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
55668         * modules/inttypes (Depends-on, Makefile.am): Likewise.
55669         * modules/langinfo (Depends-on, Makefile.am): Likewise.
55670         * modules/locale (Depends-on, Makefile.am): Likewise.
55671         * modules/math (Depends-on, Makefile.am): Likewise.
55672         * modules/search (Depends-on, Makefile.am): Likewise.
55673         * modules/signal (Depends-on, Makefile.am): Likewise.
55674         * modules/spawn (Depends-on, Makefile.am): Likewise.
55675         * modules/stdlib (Depends-on, Makefile.am): Likewise.
55676         * modules/string (Depends-on, Makefile.am): Likewise.
55677         * modules/strings (Depends-on, Makefile.am): Likewise.
55678         * modules/sys_file (Depends-on, Makefile.am): Likewise.
55679         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
55680         * modules/sys_select (Depends-on, Makefile.am): Likewise.
55681         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
55682         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
55683         * modules/sys_times (Depends-on, Makefile.am): Likewise.
55684         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
55685         * modules/wchar (Depends-on, Makefile.am): Likewise.
55686         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
55687         should be poisoned.
55688         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
55689         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
55690         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
55691         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55692         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
55693         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
55694         * m4/math_h.m4 (gl_MATH_H): Likewise.
55695         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55696         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
55697         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
55698         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
55699         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
55700         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
55701         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
55702         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
55703         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
55704         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55705         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55706         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
55707         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
55708         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
55709         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55710         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
55711         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
55712         GL_LINK_WARNING.
55713         * lib/ctype.in.h: Likewise.
55714         * lib/dirent.in.h: Likewise.
55715         * lib/fcntl.in.h: Likewise.
55716         * lib/inttypes.in.h: Likewise.
55717         * lib/langinfo.in.h: Likewise.
55718         * lib/locale.in.h: Likewise.
55719         * lib/math.in.h: Likewise.
55720         * lib/search.in.h: Likewise.
55721         * lib/signal.in.h: Likewise.
55722         * lib/spawn.in.h: Likewise.
55723         * lib/stdio.in.h: Likewise.
55724         * lib/stdlib.in.h: Likewise.
55725         * lib/string.in.h: Likewise.
55726         * lib/strings.in.h: Likewise.
55727         * lib/sys_file.in.h: Likewise.
55728         * lib/sys_ioctl.in.h: Likewise.
55729         * lib/sys_select.in.h: Likewise.
55730         * lib/sys_socket.in.h: Likewise.
55731         * lib/sys_stat.in.h: Likewise.
55732         * lib/sys_times.in.h: Likewise.
55733         * lib/sys_utsname.in.h: Likewise.
55734         * lib/unistd.in.h: Likewise.
55735         * lib/wchar.in.h: Likewise.
55737 2010-01-20  Bruno Haible  <bruno@clisp.org>
55739         Avoid duplicate -lm.
55740         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
55741         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
55742         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
55743         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
55744         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
55745         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
55746         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
55747         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
55748         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
55749         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
55750         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
55751         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
55752         Reported by Paolo Bonzini.
55754 2010-01-19  Bruno Haible  <bruno@clisp.org>
55756         langinfo, nl_langinfo: Relicense under LGPLv2+.
55757         * modules/langinfo (License): Change to LGPLv2+.
55758         * modules/nl_langinfo (License): Likewise.
55759         Patch by David Lutterkort <lutter@redhat.com>.
55761 2010-01-19  Bruno Haible  <bruno@clisp.org>
55763         Avoid compilation error with cc on OSF/1 5.1.
55764         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
55765         statement, not before.
55766         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55768 2010-01-18  Bruno Haible  <bruno@clisp.org>
55770         Avoid a link error due to the __printf__ symbol.
55771         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
55772         and 2.6.x.
55773         (__format__, __printf__): Remove definitions.
55774         * lib/argp-fmtstream.h: Likewise.
55775         * lib/argp.h: Likewise.
55776         * lib/error.h: Likewise.
55777         * lib/vasnprintf.h: Likewise.
55778         * lib/xprintf.h: Likewise.
55779         * lib/xvasprintf.h: Likewise.
55780         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55782 2010-01-18  Bruno Haible  <bruno@clisp.org>
55784         Tests for module 'tanl'.
55785         * modules/tanl-tests: New file.
55786         * tests/test-tanl.c: New file.
55788         Tests for module 'sqrtl'.
55789         * modules/sqrtl-tests: New file.
55790         * tests/test-sqrtl.c: New file.
55792         Tests for module 'sinl'.
55793         * modules/sinl-tests: New file.
55794         * tests/test-sinl.c: New file.
55796         Tests for module 'logl'.
55797         * modules/logl-tests: New file.
55798         * tests/test-logl.c: New file.
55800         Tests for module 'expl'.
55801         * modules/expl-tests: New file.
55802         * tests/test-expl.c: New file.
55804         Tests for module 'cosl'.
55805         * modules/cosl-tests: New file.
55806         * tests/test-cosl.c: New file.
55808         Tests for module 'atanl'.
55809         * modules/atanl-tests: New file.
55810         * tests/test-atanl.c: New file.
55812         Tests for module 'asinl'.
55813         * modules/asinl-tests: New file.
55814         * tests/test-asinl.c: New file.
55816         Tests for module 'acosl'.
55817         * modules/acosl-tests: New file.
55818         * tests/test-acosl.c: New file.
55820         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
55821         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
55822         tanl): Use the standard gnulib idiom.
55823         * lib/cosl.c: Don't include trigl.c and sincosl.c.
55824         * lib/sinl.c: Likewise.
55825         * lib/tanl.c: Don't include trigl.c.
55826         (kernel_tanl): Make static.
55827         * lib/sincosl.c: Include trigl.h first.
55828         * lib/trigl.c: Likewise.
55829         * m4/acosl.m4: New file.
55830         * m4/asinl.m4: New file.
55831         * m4/atanl.m4: New file.
55832         * m4/cosl.m4: New file.
55833         * m4/expl.m4: New file.
55834         * m4/logl.m4: New file.
55835         * m4/sinl.m4: New file.
55836         * m4/sqrtl.m4: New file.
55837         * m4/tanl.m4: New file.
55838         * m4/mathl.m4: Remove file.
55839         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
55840         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
55841         Don't initialize GNULIB_MATHL.
55842         * modules/acosl: New file.
55843         * modules/asinl: New file.
55844         * modules/atanl: New file.
55845         * modules/cosl: New file.
55846         * modules/expl: New file.
55847         * modules/logl: New file.
55848         * modules/sinl: New file.
55849         * modules/sqrtl: New file.
55850         * modules/tanl: New file.
55851         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
55852         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
55853         substitute GNULIB_MATHL.
55854         * modules/mathl: Rewritten.
55855         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
55856         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
55857         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
55858         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
55859         * doc/posix-functions/expl.texi: Mention the 'expl' module.
55860         * doc/posix-functions/logl.texi: Mention the 'logl' module.
55861         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
55862         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
55863         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
55865 2010-01-18  Bruno Haible  <bruno@clisp.org>
55867         sqrt: Make gl_FUNC_SQRT requirable.
55868         * m4/sqrt.m4: New file.
55869         * modules/sqrt (Files): Add it.
55870         (configure.ac): Invoke gl_FUNC_SQRT.
55872 2010-01-18  Bruno Haible  <bruno@clisp.org>
55874         New modules for common <math.h> functions.
55875         * m4/mathfunc.m4: New file.
55876         * modules/acos: New file.
55877         * modules/asin: New file.
55878         * modules/atan: New file.
55879         * modules/atan2: New file.
55880         * modules/cbrt: New file.
55881         * modules/copysign: New file.
55882         * modules/cos: New file.
55883         * modules/cosh: New file.
55884         * modules/erf: New file.
55885         * modules/erfc: New file.
55886         * modules/exp: New file.
55887         * modules/fabs: New file.
55888         * modules/fmod: New file.
55889         * modules/hypot: New file.
55890         * modules/j0: New file.
55891         * modules/j1: New file.
55892         * modules/jn: New file.
55893         * modules/ldexp: New file.
55894         * modules/lgamma: New file.
55895         * modules/log: New file.
55896         * modules/log10: New file.
55897         * modules/log1p: New file.
55898         * modules/logb: New file.
55899         * modules/modf: New file.
55900         * modules/nextafter: New file.
55901         * modules/pow: New file.
55902         * modules/remainder: New file.
55903         * modules/rint: New file.
55904         * modules/sin: New file.
55905         * modules/sinh: New file.
55906         * modules/sqrt: New file.
55907         * modules/tan: New file.
55908         * modules/tanh: New file.
55909         * modules/y0: New file.
55910         * modules/y1: New file.
55911         * modules/yn: New file.
55912         * doc/posix-functions/acos.texi: Mention the 'acos' module.
55913         * doc/posix-functions/asin.texi: Mention the 'asin' module.
55914         * doc/posix-functions/atan.texi: Mention the 'atan' module.
55915         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
55916         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
55917         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
55918         * doc/posix-functions/cos.texi: Mention the 'cos' module.
55919         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
55920         * doc/posix-functions/erf.texi: Mention the 'erf' module.
55921         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
55922         * doc/posix-functions/exp.texi: Mention the 'exp' module.
55923         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
55924         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
55925         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
55926         * doc/posix-functions/j0.texi: Mention the 'j0' module.
55927         * doc/posix-functions/j1.texi: Mention the 'j1' module.
55928         * doc/posix-functions/jn.texi: Mention the 'jn' module.
55929         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
55930         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
55931         * doc/posix-functions/log.texi: Mention the 'log' module.
55932         * doc/posix-functions/log10.texi: Mention the 'log10' module.
55933         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
55934         * doc/posix-functions/logb.texi: Mention the 'logb' module.
55935         * doc/posix-functions/modf.texi: Mention the 'modf' module.
55936         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
55937         * doc/posix-functions/pow.texi: Mention the 'pow' module.
55938         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
55939         * doc/posix-functions/rint.texi: Mention the 'rint' module.
55940         * doc/posix-functions/sin.texi: Mention the 'sin' module.
55941         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
55942         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
55943         * doc/posix-functions/tan.texi: Mention the 'tan' module.
55944         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
55945         * doc/posix-functions/y0.texi: Mention the 'y0' module.
55946         * doc/posix-functions/y1.texi: Mention the 'y1' module.
55947         * doc/posix-functions/yn.texi: Mention the 'yn' module.
55949 2010-01-18  Jim Meyering  <meyering@redhat.com>
55951         ignore-value: relax license to LGPLv2+
55952         * modules/ignore-value (License): Relax to LGPLv2+.
55954         getdate: don't leak when TZ contains two or more '"'s
55955         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
55956         double quote in TZ after the first one.
55958         readtokens: do not leak internal token_lengths buffer
55959         * lib/readtokens.c (readtokens): Free the local, lengths,
55960         when the supplied "token_lengths" parameter is NULL.
55962 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55964         Fix a couple of missing LIBTHREAD link failures on AIX.
55965         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
55966         $(LIBTHREAD).
55967         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
55969         Link test-poll against INET_PTON_LIB.
55970         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
55971         for inet_pton on Solaris 10.
55973 2010-01-17  Bruno Haible  <bruno@clisp.org>
55975         unistdio/*-sprintf: Fix typo in module description.
55976         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
55977         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
55978         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
55979         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
55980         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
55981         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
55982         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
55983         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55985 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55987         gnulib-tool: fix filelist for AIX, HP-UX ksh.
55988         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
55989         variables in shell case patterns, for AIX and HP-UX ksh.
55991         Split large sed scripts, for HP-UX sed.
55992         * modules/stdio: Split sed scripts around 50 sed commands,
55993         to avoid HP-UX limit of 99 commands, in the near future.
55994         * modules/string: Likewise.
55995         * modules/unistd: Likewise.
55997         gnulib-tool: avoid writing in the current directory.
55998         * gnulib-tool (func_emit_lib_Makefile_am)
55999         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
56000         not in the current directory, so concurrent gnulib-tool
56001         instances do not interfere.
56003 2010-01-16  Jim Meyering  <meyering@redhat.com>
56005         doc: update users.txt
56006         * users.txt: Add grep.
56007         (diffutils, gzip): Update URLs.
56009 2010-01-12  Bruno Haible  <bruno@clisp.org>
56011         posix_spawn: Avoid test failure on Cygwin.
56012         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
56013         characters.
56014         Reported by Simon Josefsson.
56016 2010-01-12  Bruno Haible  <bruno@clisp.org>
56018         * tests/test-cond.c (main): When skipping the test, show the reason.
56020 2010-01-12  Simon Josefsson  <simon@josefsson.org>
56022         * lib/striconv.c (str_cd_iconv): Avoid if before free.
56024 2010-01-12  Simon Josefsson  <simon@josefsson.org>
56026         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
56027         VC_LIST_ALWAYS_EXCLUDE_REGEX.
56029 2010-01-12  Eric Blake  <ebb9@byu.net>
56031         build: guarantee AS_VAR_IF
56032         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
56033         (gl_AS_VAR_IF): Move...
56034         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
56035         Reported by Simon Josefsson.
56037 2010-01-12  Simon Josefsson  <simon@josefsson.org>
56039         * lib/stdio.in.h: Fix typo.
56041 2010-01-12  Simon Josefsson  <simon@josefsson.org>
56043         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
56044         libgpg-error.
56046 2010-01-12  Simon Josefsson  <simon@josefsson.org>
56048         * tests/test-xalloc-die.sh: Use $EXEEXT.
56050 2010-01-12  Simon Josefsson  <simon@josefsson.org>
56051             Bruno Haible  <bruno@clisp.org>
56053         getlogin, getlogin_r: Avoid test failure.
56054         * tests/test-getlogin.c: Include <stdio.h>.
56055         (main): Skip the test when the function fails because stdin is not a
56056         tty.
56057         * tests/test-getlogin_r.c: Include <stdio.h>.
56058         (main): Skip the test when the function fails because stdin is not a
56059         tty.
56061 2010-01-11  Eric Blake  <ebb9@byu.net>
56063         tests: avoid more large file warnings
56064         * tests/test-fflush.c: Avoid warning about ftell use.
56065         * tests/test-fseek.c: Avoid warning about fseek use.
56067 2010-01-10  Bruno Haible  <bruno@clisp.org>
56069         nproc: Work better on Linux when /proc and /sys are not mounted.
56070         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
56071         as lower bound when, on glibc/Linux systems,
56072         sysconf (_SC_NPROCESSORS_CONF) returns 1.
56073         Suggested by Pádraig Brady <P@draigbrady.com>.
56074         Reported by Dmitry V. Levin <ldv@altlinux.org>.
56076         nproc: Refactor.
56077         * lib/nproc.c (num_processors_via_affinity_mask): New function,
56078         extracted from num_processors.
56079         (num_processors): Call it.
56081 2010-01-11  Jim Meyering  <meyering@redhat.com>
56083         utimecmp: avoid new warning from upcoming gcc-4.5.0
56084         * lib/utimecmp.c (BILLION): Define using #define rather than an
56085         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
56087 2010-01-11  Eric Blake  <ebb9@byu.net>
56089         math: add portability warnings for classification macros
56090         * modules/math (Depends-on): Add warn-on-use.
56091         (Makefile.am): Provide new substitutions.
56092         * m4/math_h.m4 (gl_MATH_H): Require inline.
56093         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
56094         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
56095         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
56096         implement warnings.
56098         unistd: warn on use of environ without module
56099         * modules/unistd (Depends-on): Add warn-on-use.
56100         (Makefile.am): Provide new substitutions.
56101         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
56102         * lib/unistd.in.h (environ): Wrap with a warning helper function.
56104         stdio: warn on suspicious uses
56105         * modules/stdio (Depends-on): Add warn-on-use.
56106         (Makefile.am): Provide new substitutions.
56107         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
56108         fseeko.
56109         * lib/stdio.in.h (gets): Always warn on use.
56110         (fseek, ftell): Adjust when warnings are issued, and honor
56111         _GL_NO_LARGE_FILES as a way to silence the warning.
56112         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
56113         any warning about large file offsets.
56114         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
56115         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
56116         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
56117         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
56118         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
56119         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
56120         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
56121         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
56123         warn-on-use: new module
56124         * modules/warn-on-use: New file.
56125         * build-aux/warn-on-use.h: Likewise.
56126         * m4/warn-on-use.m4: Likewise.
56127         * MODULES.html.sh (Support for building): Mention it.
56129 2010-01-10  Bruno Haible  <bruno@clisp.org>
56131         Tests for module 'unistr/u32-strdup'.
56132         * modules/unistr/u32-strdup-tests: New file.
56133         * tests/unistr/test-u32-strdup.c: New file.
56135         Tests for module 'unistr/u16-strdup'.
56136         * modules/unistr/u16-strdup-tests: New file.
56137         * tests/unistr/test-u16-strdup.c: New file.
56139         Tests for module 'unistr/u8-strdup'.
56140         * modules/unistr/u8-strdup-tests: New file.
56141         * tests/unistr/test-u8-strdup.c: New file.
56142         * tests/unistr/test-strdup.h: New file.
56144         Tests for module 'unistr/u32-strncmp'.
56145         * modules/unistr/u32-strncmp-tests: New file.
56146         * tests/unistr/test-u32-strncmp.c: New file.
56148         Tests for module 'unistr/u16-strncmp'.
56149         * modules/unistr/u16-strncmp-tests: New file.
56150         * tests/unistr/test-u16-strncmp.c: New file.
56152         Tests for module 'unistr/u8-strncmp'.
56153         * modules/unistr/u8-strncmp-tests: New file.
56154         * tests/unistr/test-u8-strncmp.c: New file.
56155         * tests/unistr/test-strncmp.h: New file.
56157         Tests for module 'unistr/u32-strcoll'.
56158         * modules/unistr/u32-strcoll-tests: New file.
56159         * tests/unistr/test-u32-strcoll.c: New file.
56161         Tests for module 'unistr/u16-strcoll'.
56162         * modules/unistr/u16-strcoll-tests: New file.
56163         * tests/unistr/test-u16-strcoll.c: New file.
56165         Tests for module 'unistr/u8-strcoll'.
56166         * modules/unistr/u8-strcoll-tests: New file.
56167         * tests/unistr/test-u8-strcoll.c: New file.
56169         Tests for module 'unistr/u32-strcmp'.
56170         * modules/unistr/u32-strcmp-tests: New file.
56171         * tests/unistr/test-u32-strcmp.c: New file.
56172         * tests/unistr/test-u32-strcmp.h: New file.
56174         Tests for module 'unistr/u16-strcmp'.
56175         * modules/unistr/u16-strcmp-tests: New file.
56176         * tests/unistr/test-u16-strcmp.c: New file.
56177         * tests/unistr/test-u16-strcmp.h: New file.
56179         Tests for module 'unistr/u8-strcmp'.
56180         * modules/unistr/u8-strcmp-tests: New file.
56181         * tests/unistr/test-u8-strcmp.c: New file.
56182         * tests/unistr/test-u8-strcmp.h: New file.
56183         * tests/unistr/test-strcmp.h: New file.
56185         Tests for module 'unistr/u32-strncat'.
56186         * modules/unistr/u32-strncat-tests: New file.
56187         * tests/unistr/test-u32-strncat.c: New file.
56189         Tests for module 'unistr/u16-strncat'.
56190         * modules/unistr/u16-strncat-tests: New file.
56191         * tests/unistr/test-u16-strncat.c: New file.
56193         Tests for module 'unistr/u8-strncat'.
56194         * modules/unistr/u8-strncat-tests: New file.
56195         * tests/unistr/test-u8-strncat.c: New file.
56196         * tests/unistr/test-strncat.h: New file.
56198         Tests for module 'unistr/u32-strcat'.
56199         * modules/unistr/u32-strcat-tests: New file.
56200         * tests/unistr/test-u32-strcat.c: New file.
56202         Tests for module 'unistr/u16-strcat'.
56203         * modules/unistr/u16-strcat-tests: New file.
56204         * tests/unistr/test-u16-strcat.c: New file.
56206         Tests for module 'unistr/u8-strcat'.
56207         * modules/unistr/u8-strcat-tests: New file.
56208         * tests/unistr/test-u8-strcat.c: New file.
56209         * tests/unistr/test-strcat.h: New file.
56211         Tests for module 'unistr/u32-stpncpy'.
56212         * modules/unistr/u32-stpncpy-tests: New file.
56213         * tests/unistr/test-u32-stpncpy.c: New file.
56215         Tests for module 'unistr/u16-stpncpy'.
56216         * modules/unistr/u16-stpncpy-tests: New file.
56217         * tests/unistr/test-u16-stpncpy.c: New file.
56219         Tests for module 'unistr/u8-stpncpy'.
56220         * modules/unistr/u8-stpncpy-tests: New file.
56221         * tests/unistr/test-u8-stpncpy.c: New file.
56222         * tests/unistr/test-stpncpy.h: New file.
56224         Tests for module 'unistr/u32-strncpy'.
56225         * modules/unistr/u32-strncpy-tests: New file.
56226         * tests/unistr/test-u32-strncpy.c: New file.
56228         Tests for module 'unistr/u16-strncpy'.
56229         * modules/unistr/u16-strncpy-tests: New file.
56230         * tests/unistr/test-u16-strncpy.c: New file.
56232         Tests for module 'unistr/u8-strncpy'.
56233         * modules/unistr/u8-strncpy-tests: New file.
56234         * tests/unistr/test-u8-strncpy.c: New file.
56235         * tests/unistr/test-strncpy.h: New file.
56237         Tests for module 'unistr/u32-stpcpy'.
56238         * modules/unistr/u32-stpcpy-tests: New file.
56239         * tests/unistr/test-u32-stpcpy.c: New file.
56241         Tests for module 'unistr/u16-stpcpy'.
56242         * modules/unistr/u16-stpcpy-tests: New file.
56243         * tests/unistr/test-u16-stpcpy.c: New file.
56245         Tests for module 'unistr/u8-stpcpy'.
56246         * modules/unistr/u8-stpcpy-tests: New file.
56247         * tests/unistr/test-u8-stpcpy.c: New file.
56248         * tests/unistr/test-stpcpy.h: New file.
56250         Tests for module 'unistr/u32-strcpy'.
56251         * modules/unistr/u32-strcpy-tests: New file.
56252         * tests/unistr/test-u32-strcpy.c: New file.
56254         Tests for module 'unistr/u16-strcpy'.
56255         * modules/unistr/u16-strcpy-tests: New file.
56256         * tests/unistr/test-u16-strcpy.c: New file.
56258         Tests for module 'unistr/u8-strcpy'.
56259         * modules/unistr/u8-strcpy-tests: New file.
56260         * tests/unistr/test-u8-strcpy.c: New file.
56261         * tests/unistr/test-strcpy.h: New file.
56263         Tests for module 'unistr/u32-strnlen'.
56264         * modules/unistr/u32-strnlen-tests: New file.
56265         * tests/unistr/test-u32-strnlen.c: New file.
56267         Tests for module 'unistr/u16-strnlen'.
56268         * modules/unistr/u16-strnlen-tests: New file.
56269         * tests/unistr/test-u16-strnlen.c: New file.
56271         Tests for module 'unistr/u8-strnlen'.
56272         * modules/unistr/u8-strnlen-tests: New file.
56273         * tests/unistr/test-u8-strnlen.c: New file.
56274         * tests/unistr/test-strnlen.h: New file.
56276         Tests for module 'unistr/u32-strlen'.
56277         * modules/unistr/u32-strlen-tests: New file.
56278         * tests/unistr/test-u32-strlen.c: New file.
56280         Tests for module 'unistr/u16-strlen'.
56281         * modules/unistr/u16-strlen-tests: New file.
56282         * tests/unistr/test-u16-strlen.c: New file.
56284         Tests for module 'unistr/u8-strlen'.
56285         * modules/unistr/u8-strlen-tests: New file.
56286         * tests/unistr/test-u8-strlen.c: New file.
56288         Tests for module 'unistr/u32-prev'.
56289         * modules/unistr/u32-prev-tests: New file.
56290         * tests/unistr/test-u32-prev.c: New file.
56292         Tests for module 'unistr/u16-prev'.
56293         * modules/unistr/u16-prev-tests: New file.
56294         * tests/unistr/test-u16-prev.c: New file.
56296         Tests for module 'unistr/u8-prev'.
56297         * modules/unistr/u8-prev-tests: New file.
56298         * tests/unistr/test-u8-prev.c: New file.
56300         Tests for module 'unistr/u32-next'.
56301         * modules/unistr/u32-next-tests: New file.
56302         * tests/unistr/test-u32-next.c: New file.
56304         Tests for module 'unistr/u16-next'.
56305         * modules/unistr/u16-next-tests: New file.
56306         * tests/unistr/test-u16-next.c: New file.
56308         Tests for module 'unistr/u8-next'.
56309         * modules/unistr/u8-next-tests: New file.
56310         * tests/unistr/test-u8-next.c: New file.
56312         Tests for module 'unistr/u32-strmbtouc'.
56313         * modules/unistr/u32-strmbtouc-tests: New file.
56314         * tests/unistr/test-u32-strmbtouc.c: New file.
56316         Tests for module 'unistr/u16-strmbtouc'.
56317         * modules/unistr/u16-strmbtouc-tests: New file.
56318         * tests/unistr/test-u16-strmbtouc.c: New file.
56320         Tests for module 'unistr/u8-strmbtouc'.
56321         * modules/unistr/u8-strmbtouc-tests: New file.
56322         * tests/unistr/test-u8-strmbtouc.c: New file.
56324         Tests for module 'unistr/u32-strmblen'.
56325         * modules/unistr/u32-strmblen-tests: New file.
56326         * tests/unistr/test-u32-strmblen.c: New file.
56328         Tests for module 'unistr/u16-strmblen'.
56329         * modules/unistr/u16-strmblen-tests: New file.
56330         * tests/unistr/test-u16-strmblen.c: New file.
56332         Tests for module 'unistr/u8-strmblen'.
56333         * modules/unistr/u8-strmblen-tests: New file.
56334         * tests/unistr/test-u8-strmblen.c: New file.
56336         Tests for module 'unistr/u32-cpy-alloc'.
56337         * modules/unistr/u32-cpy-alloc-tests: New file.
56338         * tests/unistr/test-u32-cpy-alloc.c: New file.
56340         Tests for module 'unistr/u16-cpy-alloc'.
56341         * modules/unistr/u16-cpy-alloc-tests: New file.
56342         * tests/unistr/test-u16-cpy-alloc.c: New file.
56344         Tests for module 'unistr/u8-cpy-alloc'.
56345         * modules/unistr/u8-cpy-alloc-tests: New file.
56346         * tests/unistr/test-u8-cpy-alloc.c: New file.
56347         * tests/unistr/test-cpy-alloc.h: New file.
56349         Tests for module 'unistr/u32-mbsnlen'.
56350         * modules/unistr/u32-mbsnlen-tests: New file.
56351         * tests/unistr/test-u32-mbsnlen.c: New file.
56353         Tests for module 'unistr/u16-mbsnlen'.
56354         * modules/unistr/u16-mbsnlen-tests: New file.
56355         * tests/unistr/test-u16-mbsnlen.c: New file.
56357         Tests for module 'unistr/u8-mbsnlen'.
56358         * modules/unistr/u8-mbsnlen-tests: New file.
56359         * tests/unistr/test-u8-mbsnlen.c: New file.
56361         Tests for module 'unistr/u32-chr'.
56362         * modules/unistr/u32-chr-tests: New file.
56363         * tests/unistr/test-u32-chr.c: New file.
56365         Tests for module 'unistr/u16-chr'.
56366         * modules/unistr/u16-chr-tests: New file.
56367         * tests/unistr/test-u16-chr.c: New file.
56369         Tests for module 'unistr/u8-chr'.
56370         * modules/unistr/u8-chr-tests: New file.
56371         * tests/unistr/test-u8-chr.c: New file.
56372         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
56374         Tests for module 'unistr/u32-cmp2'.
56375         * modules/unistr/u32-cmp2-tests: New file.
56376         * tests/unistr/test-u32-cmp2.c: New file.
56378         Tests for module 'unistr/u16-cmp2'.
56379         * modules/unistr/u16-cmp2-tests: New file.
56380         * tests/unistr/test-u16-cmp2.c: New file.
56382         Tests for module 'unistr/u8-cmp2'.
56383         * modules/unistr/u8-cmp2-tests: New file.
56384         * tests/unistr/test-u8-cmp2.c: New file.
56385         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
56387         Tests for module 'unistr/u32-cmp'.
56388         * modules/unistr/u32-cmp-tests: New file.
56389         * tests/unistr/test-u32-cmp.c: New file.
56391         Tests for module 'unistr/u16-cmp'.
56392         * modules/unistr/u16-cmp-tests: New file.
56393         * tests/unistr/test-u16-cmp.c: New file.
56395         Tests for module 'unistr/u8-cmp'.
56396         * modules/unistr/u8-cmp-tests: New file.
56397         * tests/unistr/test-u8-cmp.c: New file.
56398         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
56400         Tests for module 'unistr/u32-set'.
56401         * modules/unistr/u32-set-tests: New file.
56402         * tests/unistr/test-u32-set.c: New file.
56404         Tests for module 'unistr/u16-set'.
56405         * modules/unistr/u16-set-tests: New file.
56406         * tests/unistr/test-u16-set.c: New file.
56408         Tests for module 'unistr/u8-set'.
56409         * modules/unistr/u8-set-tests: New file.
56410         * tests/unistr/test-u8-set.c: New file.
56411         * tests/unistr/test-set.h: New file.
56413         Tests for module 'unistr/u32-move'.
56414         * modules/unistr/u32-move-tests: New file.
56415         * tests/unistr/test-u32-move.c: New file.
56417         Tests for module 'unistr/u16-move'.
56418         * modules/unistr/u16-move-tests: New file.
56419         * tests/unistr/test-u16-move.c: New file.
56421         Tests for module 'unistr/u8-move'.
56422         * modules/unistr/u8-move-tests: New file.
56423         * tests/unistr/test-u8-move.c: New file.
56424         * tests/unistr/test-move.h: New file.
56426         Tests for module 'unistr/u32-cpy'.
56427         * modules/unistr/u32-cpy-tests: New file.
56428         * tests/unistr/test-u32-cpy.c: New file.
56430         Tests for module 'unistr/u16-cpy'.
56431         * modules/unistr/u16-cpy-tests: New file.
56432         * tests/unistr/test-u16-cpy.c: New file.
56434         Tests for module 'unistr/u8-cpy'.
56435         * modules/unistr/u8-cpy-tests: New file.
56436         * tests/unistr/test-u8-cpy.c: New file.
56437         * tests/unistr/test-cpy.h: New file.
56439 2010-01-09  Bruno Haible  <bruno@clisp.org>
56441         Tests for module 'unistr/u32-uctomb'.
56442         * modules/unistr/u32-uctomb-tests: New file.
56443         * tests/unistr/test-u32-uctomb.c: New file.
56445         Tests for module 'unistr/u16-uctomb'.
56446         * modules/unistr/u16-uctomb-tests: New file.
56447         * tests/unistr/test-u16-uctomb.c: New file.
56449         Tests for module 'unistr/u8-uctomb'.
56450         * modules/unistr/u8-uctomb-tests: New file.
56451         * tests/unistr/test-u8-uctomb.c: New file.
56453         Tests for module 'unistr/u32-mbtoucr'.
56454         * modules/unistr/u32-mbtoucr-tests: New file.
56455         * tests/unistr/test-u32-mbtoucr.c: New file.
56457         Tests for module 'unistr/u16-mbtoucr'.
56458         * modules/unistr/u16-mbtoucr-tests: New file.
56459         * tests/unistr/test-u16-mbtoucr.c: New file.
56461         Tests for module 'unistr/u8-mbtoucr'.
56462         * modules/unistr/u8-mbtoucr-tests: New file.
56463         * tests/unistr/test-u8-mbtoucr.c: New file.
56465         Tests for module 'unistr/u32-mbtouc'.
56466         * modules/unistr/u32-mbtouc-tests: New file.
56467         * tests/unistr/test-u32-mbtouc.c: New file.
56469         Tests for module 'unistr/u16-mbtouc'.
56470         * modules/unistr/u16-mbtouc-tests: New file.
56471         * tests/unistr/test-u16-mbtouc.c: New file.
56473         Tests for module 'unistr/u8-mbtouc'.
56474         * modules/unistr/u8-mbtouc-tests: New file.
56475         * tests/unistr/test-u8-mbtouc.c: New file.
56477         Tests for module 'unistr/u32-mbtouc-unsafe'.
56478         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
56479         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
56480         * tests/unistr/test-u32-mbtouc.h: New file.
56482         Tests for module 'unistr/u16-mbtouc-unsafe'.
56483         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
56484         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
56485         * tests/unistr/test-u16-mbtouc.h: New file.
56487         Tests for module 'unistr/u8-mbtouc-unsafe'.
56488         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
56489         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
56490         * tests/unistr/test-u8-mbtouc.h: New file.
56492         Tests for module 'unistr/u32-mblen'.
56493         * modules/unistr/u32-mblen-tests: New file.
56494         * tests/unistr/test-u32-mblen.c: New file.
56496         Tests for module 'unistr/u16-mblen'.
56497         * modules/unistr/u16-mblen-tests: New file.
56498         * tests/unistr/test-u16-mblen.c: New file.
56500         Tests for module 'unistr/u8-mblen'.
56501         * modules/unistr/u8-mblen-tests: New file.
56502         * tests/unistr/test-u8-mblen.c: New file.
56504         Tests for module 'unistr/u32-to-u16'.
56505         * modules/unistr/u32-to-u16-tests: New file.
56506         * tests/unistr/test-u32-to-u16.c: New file.
56508         Tests for module 'unistr/u32-to-u8'.
56509         * modules/unistr/u32-to-u8-tests: New file.
56510         * tests/unistr/test-u32-to-u8.c: New file.
56512         Tests for module 'unistr/u16-to-u32'.
56513         * modules/unistr/u16-to-u32-tests: New file.
56514         * tests/unistr/test-u16-to-u32.c: New file.
56516         Tests for module 'unistr/u16-to-u8'.
56517         * modules/unistr/u16-to-u8-tests: New file.
56518         * tests/unistr/test-u16-to-u8.c: New file.
56520         Tests for module 'unistr/u8-to-u32'.
56521         * modules/unistr/u8-to-u32-tests: New file.
56522         * tests/unistr/test-u8-to-u32.c: New file.
56524         Tests for module 'unistr/u8-to-u16'.
56525         * modules/unistr/u8-to-u16-tests: New file.
56526         * tests/unistr/test-u8-to-u16.c: New file.
56528         Tests for module 'unistr/u32-check'.
56529         * modules/unistr/u32-check-tests: New file.
56530         * tests/unistr/test-u32-check.c: New file.
56532         Tests for module 'unistr/u16-check'.
56533         * modules/unistr/u16-check-tests: New file.
56534         * tests/unistr/test-u16-check.c: New file.
56536         Tests for module 'unistr/u8-check'.
56537         * modules/unistr/u8-check-tests: New file.
56538         * tests/unistr/test-u8-check.c: New file.
56540         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
56541         (category_equals): New function.
56542         (main): Add more tests.
56543         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
56545         * tests/unictype/test-bidi_byname.c (main): Add more tests.
56547 2010-01-10  Bruno Haible  <bruno@clisp.org>
56549         unistr/u*-strcoll: Try harder to distinguish different strings.
56550         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
56551         compare s1 and s2 to see if they are different.
56553 2010-01-10  Bruno Haible  <bruno@clisp.org>
56555         unistr/u*-stpncpy: Fix the return value.
56556         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
56557         description of the return value consistent with stpncpy in glibc.
56558         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
56559         written non-NUL unit.
56561 2010-01-10  Bruno Haible  <bruno@clisp.org>
56563         unistr/u*-next: Add missing dependencies.
56564         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
56565         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
56566         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
56568 2010-01-10  Bruno Haible  <bruno@clisp.org>
56570         unistr/u8-mbsnlen: Fix return value for incomplete character.
56571         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
56572         u8_mblen.
56573         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
56574         Remove unistr/u8-mblen.
56575         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
56576         u16_mblen.
56577         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
56578         Remove unistr/u16-mblen.
56580 2010-01-10  Bruno Haible  <bruno@clisp.org>
56582         wchar: Fix compilation error when <wchar.h> is used from coreutils.
56583         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
56584         Reported by Brian Gough <bjg@gnu.org> and
56585         Chris Clayton <chris2553@googlemail.com> via
56586         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
56588 2010-01-09  Bruno Haible  <bruno@clisp.org>
56590         unistr/u16-to-u32: Reject invalid input.
56591         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
56592         u16_mbtouc.
56593         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
56594         Remove unistr/u16-mbtouc.
56596         unistr/u16-to-u8: Reject invalid input.
56597         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
56598         u16_mbtouc.
56599         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
56600         Remove unistr/u16-mbtouc.
56602         unistr/u8-to-u32: Reject invalid input.
56603         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
56604         u8_mbtouc.
56605         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
56606         Remove unistr/u8-mbtouc.
56608         unistr/u8-to-u16: Reject invalid input.
56609         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
56610         u8_mbtouc.
56611         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
56612         Remove unistr/u8-mbtouc.
56614 2010-01-09  Bruno Haible  <bruno@clisp.org>
56616         Tests for module 'getlogin'.
56617         * modules/getlogin-tests: New file.
56618         * tests/test-getlogin.c: New file.
56620         New module 'getlogin'.
56621         * lib/unistd.in.h (getlogin): New declaration.
56622         * lib/getlogin.c: New file.
56623         * m4/getlogin.m4: New file.
56624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
56625         HAVE_GETLOGIN.
56626         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
56627         HAVE_GETLOGIN.
56628         * modules/getlogin: New file.
56629         * doc/posix-functions/getlogin.texi: Mention the new module.
56630         Reported by John W. Eaton <jwe@gnu.org>.
56632 2010-01-09  Bruno Haible  <bruno@clisp.org>
56634         getlogin_r: Support for native Windows.
56635         * lib/getlogin_r.c: Include <windows.h>
56636         (getlogin_r): Implement for native Windows.
56637         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
56638         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
56639         via John W. Eaton <jwe@gnu.org>.
56641 2010-01-09  Bruno Haible  <bruno@clisp.org>
56643         getlogin_r: Small fixes.
56644         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
56645         succeeds.
56646         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
56647         before testing whether getlogin_r is declared. No need to set
56648         HAVE_DECL_GETLOGIN_R to 1.
56649         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
56651 2010-01-09  Bruno Haible  <bruno@clisp.org>
56653         * lib/unistd.in.h (getlogin_r): Add comment.
56655 2010-01-09  Bruno Haible  <bruno@clisp.org>
56657         Tests for module 'getlogin_r'.
56658         * modules/getlogin_r-tests: New file.
56659         * tests/test-getlogin_r.c: New file.
56661 2010-01-09  Jim Meyering  <meyering@redhat.com>
56663         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
56664         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
56665         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
56667 2010-01-08  Simon Josefsson  <simon@josefsson.org>
56669         * lib/dup2.c (rpl_dup2): Improve comment.
56671 2010-01-08  Eric Blake  <ebb9@byu.net>
56673         maint.mk: allow packages to add makefile @@ exceptions
56674         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
56675         (sc_makefile_check): Rename...
56676         (sc_makefile_at_at_check): ...to this, and use hook.
56678         dup2: work around mingw bug
56679         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
56680         Reported by Simon Josefsson.
56682 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
56684         glob: Fix C++ compilation.
56685         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
56686         C++.
56688 2010-01-07  Bruno Haible  <bruno@clisp.org>
56690         Fix indentation of wctype.in.h, broken since 2007-01-06.
56691         * lib/wctype.in.h: Fix indentation of preprocessor directives.
56693 2010-01-07  Bruno Haible  <bruno@clisp.org>
56695         mbslen: Avoid collision with system function.
56696         * lib/string.in.h [MirBSD]: Include <wchar.h>.
56697         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
56698         * m4/mbslen.m4: New file.
56699         * modules/mbslen (Files): Add it.
56700         (configure.ac): Invoke gl_MBSLEN.
56701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
56702         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
56703         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
56704         via Ian Beckwith <ianb@erislabs.net>.
56706 2010-01-07  Bruno Haible  <bruno@clisp.org>
56708         dirent: Document the last fix.
56709         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
56711 2010-01-07  Bruno Haible  <bruno@clisp.org>
56713         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
56714         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
56715         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
56716         va_list are defined.
56717         * doc/posix-headers/stdio.texi: Document the bug of missing types.
56718         Reported by Eric Blake.
56720 2010-01-07  Bruno Haible  <bruno@clisp.org>
56722         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
56723         * modules/xlist (Depends-on): Add 'list',
56724         * modules/xoset (Depends-on): Add 'oset'.
56725         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56727 2010-01-07  Bruno Haible  <bruno@clisp.org>
56729         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
56730         * doc/posix-functions/strncasecmp.texi: Likewise.
56732 2010-01-07  Bruno Haible  <bruno@clisp.org>
56734         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
56736 2010-01-07  John W. Eaton  <jwe@octave.org>
56738         wctype: allow C++ use
56739         * lib/wctype.in.h: Add extern "C" block for C++.
56741 2010-01-06  Eric Blake  <ebb9@byu.net>
56743         maint.mk: detect incorrect GFDL usage
56744         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
56746 2010-01-06  Jim Meyering  <meyering@redhat.com>
56747         and Eric Blake  <ebb9@byu.net>
56749         maint.mk: ignore multi-line copyright in NEWS
56750         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
56752 2010-01-06  Eric Blake  <ebb9@byu.net>
56754         select: add missing dependency
56755         * modules/select-tests (Depends-on): Move sockets dependency...
56756         * modules/select (Depends-on): ...here.
56757         Reported by Ian Beckwith.
56759         doc: regenerate INSTALL
56760         * doc/INSTALL: Reflect recent autoconf update.
56761         * doc/INSTALL.ISO: Likewise.
56762         * doc/INSTALL.UTF-8: Likewise.
56764         pread: fix compilation on glibc
56765         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
56766         Reported by Ralf Wildenhues.
56768         dirent: fix test failure
56769         * lib/dirent.in.h (includes): Guarantee ino_t.
56770         Reported by Ralf Wildenhues.
56772 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
56774         linkat, renameat: avoid bad free
56775         * lib/at-func2.c (at_func2): Fix typo.
56776         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
56778 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56780         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
56781         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
56782         to avoid failure of symlink test later.
56784 2010-01-06  Eric Blake  <ebb9@byu.net>
56786         stdio, unistd: guarantee ssize_t
56787         * lib/unistd.in.h (includes): Ensure that types required by POSIX
56788         2008 are exposed when needed.
56789         * lib/stdio.in.h (includes): Likewise.
56790         Reported by Ralf Wildenhues.
56792 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
56794         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
56795         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
56796         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
56798 2010-01-06  Jim Meyering  <meyering@redhat.com>
56800         readtokens: this module *does* require xalloc.h
56801         It uses only functions that were omitted by the old syntax-check rule.
56802         * lib/readtokens.c: Include "xalloc.h" once again.
56803         * modules/readtokens (Depends-on): Add xalloc.
56804         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
56806 2010-01-05  Eric Blake  <ebb9@byu.net>
56808         maint: support 'make announcement' from a VPATH build
56809         * top/maint.mk (announcement): Look for correct NEWS file.
56811 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
56813         utimens (fdutimens): ignore a negative FD, per contract
56814         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
56815         when we have a valid file descriptor.  Otherwise, using a brand
56816         new glibc (with just-patched futimens that now fails with EBADF)
56817         would cause this function to fail with ENOSYS.
56818         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
56819         See also http://bugzilla.redhat.com/552320.
56821 2010-01-05  Eric Blake  <ebb9@byu.net>
56823         strcase: document what it provides
56824         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
56825         gnulib module.
56826         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
56827         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
56829 2010-01-05  Jim Meyering  <meyering@redhat.com>
56831         maint: remove useless inclusions of "xalloc.h"
56832         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
56833         * lib/readtokens.c: Likewise.
56834         * lib/same.c: Likewise.
56835         * modules/getloadavg (Depends-on): Remove xalloc.
56836         * modules/readtokens: Likewise.
56837         * modules/same: Likewise.
56839         maint.mk: include 4 more function names in alloca.h-checking regexp
56840         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
56841         regexp.  Before, we would give a false-positive (saying alloca.h
56842         is included unnecessarily) when the only uses involved omitted symbols.
56844         xalloc.h: use consistent formatting
56845         * lib/xalloc.h: Move declarations to start in the first column.
56847 2010-01-05  Eric Blake  <ebb9@byu.net>
56849         mkdir: avoid xalloc
56850         * lib/mkdir.c (includes): Drop unused header.
56851         Reported by John W. Eaton.
56853 2010-01-04  Jim Meyering  <meyering@redhat.com>
56855         nl_langinfo: avoid configure-time syntax error
56856         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
56857         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
56858         the empty string.  Don't let that provoke a shell syntax error.
56860         regcomp, regexec, fnmatch: avoid array bounds read error
56861         * lib/regcomp.c (build_equiv_class): From glibc:
56862         Use only the low 24 bits of a findidx return value as an index
56863         into the weights array.  Patch by Ulrich Drepper:
56864         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
56865         * lib/regexec.c (check_node_accept_bytes): Likewise.
56866         * lib/fnmatch_loop.c (FCT): Likewise.
56868         regcomp: skip collseq lookup when there are no rules
56869         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
56870         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
56872         regcomp: recognize ill-formed { } expressions
56873         * lib/regcomp.c (parse_dup_op): From glibc:
56874         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
56876         regcomp: fix typo in comment
56877         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
56878         s/satisfy/satisfies/.
56880         regcomp: sync from glibc: remove dead store
56881         * lib/regcomp.c (duplicate_node_closure): Remove useless
56882         search_duplicated_node call and dead store.
56884         regcomp: sync from glibc; always use nl_langinfo
56885         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
56886         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
56887         * modules/regex (Depends-on): Add nl_langinfo.
56889 2010-01-04  Eric Blake  <ebb9@byu.net>
56891         fdopendir: fix configure test
56892         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
56894 2010-01-01  Bruno Haible  <bruno@clisp.org>
56896         wchar: Remove unused configure check.
56897         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
56899 2010-01-01  Eric Blake  <ebb9@byu.net>
56901         headers: make check of system header explicit
56902         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
56903         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
56904         ourselves.
56905         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56906         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56907         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
56908         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
56909         internals.
56910         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
56911         missing.
56912         Suggested by Bruno Haible.
56914 2010-01-01  Jim Meyering  <meyering@redhat.com>
56916         ChangeLog: tweak to eliminate unnecessary copyright line
56917         * ChangeLog: Remove a copyright line that was mistakenly updated
56918         by today's update-copyright run.  Reported by Eric Blake.
56920         test-update-copyright: don't let envvar setting cause test failure
56921         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
56923 2010-01-01  Bruno Haible  <bruno@clisp.org>
56925         localename: Avoid gcc warning.
56926         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
56927         function if it is not used.
56929 2010-01-01  Jim Meyering  <meyering@redhat.com>
56931         update nearly all FSF copyright year lists to include 2010
56932         Use the same procedure as for 2009, outlined in
56933         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
56935         version-etc: set COPYRIGHT_YEAR to 2010
56936         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
56938 2009-12-31  Eric Blake  <ebb9@byu.net>
56940         doc: correct availability of cygwin 1.5.x getopt
56941         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
56942         variables.
56943         * doc/posix-functions/opterr.texi (opterr): Likewise.
56944         * doc/posix-functions/optind.texi (optind): Likewise.
56945         * doc/posix-functions/optopt.texi (optopt): Likewise.
56946         * doc/posix-functions/tzname.texi (tzname): Likewise.
56948         openat: update maintainer
56949         * modules/openat (Maintainer): Add myself.
56951         utimens: avoid shadowing warning
56952         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
56953         buffers into one, to avoid shadowing, as well as avoiding a
56954         redundant stat.
56955         Reported by Jim Meyering.
56957         test-dup2: avoid compiler warning
56958         * tests/test-dup2.c (is_inheritable): Only define if used.
56960 2010-01-01  Bruno Haible  <bruno@clisp.org>
56962         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
56963         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
56964         defined, use wctomb instead of wcrtomb.
56966 2010-01-01  Bruno Haible  <bruno@clisp.org>
56968         iconv: Reject native Solaris iconv.
56969         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
56970         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
56972 2009-12-31  Bruno Haible  <bruno@clisp.org>
56974         * tests/test-signal.c (main): Remove test of 'SIG'.
56976 2009-12-31  Bruno Haible  <bruno@clisp.org>
56978         spawn: Fix incomplete fix.
56979         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
56980         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
56981         warnings for GNULIB_POSIXCHECK again.
56982         Reported by Eric Blake.
56984 2009-12-31  Bruno Haible  <bruno@clisp.org>
56986         Avoid namespace pollution on glibc systems.
56987         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
56988         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
56989         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
56990         glibc systems.
56992 2009-12-31  Bruno Haible  <bruno@clisp.org>
56994         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
56995         (gl_REPLACE_WCHAR_H): Turn into a no-op.
56996         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
56997         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
56998         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
56999         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
57000         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
57002 2009-12-31  Bruno Haible  <bruno@clisp.org>
57004         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
57005         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
57006         afterwards.
57008 2009-12-31  Bruno Haible  <bruno@clisp.org>
57010         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
57011         SYS_UTSNAME_H.
57013 2009-12-31  Bruno Haible  <bruno@clisp.org>
57015         spawn: Fix misapplied patch.
57016         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
57017         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
57018         warnings for GNULIB_POSIXCHECK.
57020 2009-12-31  Bruno Haible  <bruno@clisp.org>
57022         times: Update after sys_times changed.
57023         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
57024         * modules/times (Files): Add it.
57025         (configure.ac): Invoke gl_FUNC_TIMES.
57027 2009-12-31  Bruno Haible  <bruno@clisp.org>
57029         Use AC_C_INLINE where necessary.
57030         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
57031         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57032         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
57033         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57034         * m4/mbfile.m4 (gl_MBFILE): Likewise.
57035         * m4/mbiter.m4 (gl_MBITER): Likewise.
57036         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57037         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
57038         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
57039         * modules/u64 (configure.ac): Likewise.
57041 2009-12-31  Bruno Haible  <bruno@clisp.org>
57043         Use AC_C_INLINE instead of module 'inline' where possible.
57044         * modules/inline (Description): Clarify purpose.
57045         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
57046         * modules/count-one-bits (Depends-on): Remove inline.
57047         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
57048         * modules/openat (Depends-on): Remove inline.
57049         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
57050         instead of depending on module 'inline'.
57051         * modules/filevercmp (Depends-on, configure.ac): Likewise.
57052         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
57053         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
57054         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
57055         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
57056         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
57057         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
57058         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
57059         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
57060         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
57061         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
57062         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
57063         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
57064         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
57065         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
57066         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
57067         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
57068         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
57069         Likewise.
57070         * modules/unictype/property-ascii-hex-digit (Depends-on,
57071         configure.ac): Likewise.
57072         * modules/unictype/property-bidi-arabic-digit (Depends-on,
57073         configure.ac): Likewise.
57074         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
57075         configure.ac): Likewise.
57076         * modules/unictype/property-bidi-block-separator (Depends-on,
57077         configure.ac): Likewise.
57078         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
57079         configure.ac): Likewise.
57080         * modules/unictype/property-bidi-common-separator (Depends-on,
57081         configure.ac): Likewise.
57082         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
57083         Likewise.
57084         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
57085         configure.ac): Likewise.
57086         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
57087         configure.ac): Likewise.
57088         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
57089         configure.ac): Likewise.
57090         * modules/unictype/property-bidi-european-digit (Depends-on,
57091         configure.ac): Likewise.
57092         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
57093         configure.ac): Likewise.
57094         * modules/unictype/property-bidi-left-to-right (Depends-on,
57095         configure.ac): Likewise.
57096         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
57097         configure.ac): Likewise.
57098         * modules/unictype/property-bidi-other-neutral (Depends-on,
57099         configure.ac): Likewise.
57100         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
57101         Likewise.
57102         * modules/unictype/property-bidi-segment-separator (Depends-on,
57103         configure.ac): Likewise.
57104         * modules/unictype/property-bidi-whitespace (Depends-on,
57105         configure.ac): Likewise.
57106         * modules/unictype/property-combining (Depends-on, configure.ac):
57107         Likewise.
57108         * modules/unictype/property-composite (Depends-on, configure.ac):
57109         Likewise.
57110         * modules/unictype/property-currency-symbol (Depends-on,
57111         configure.ac): Likewise.
57112         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
57113         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
57114         Likewise.
57115         * modules/unictype/property-default-ignorable-code-point (Depends-on,
57116         configure.ac): Likewise.
57117         * modules/unictype/property-deprecated (Depends-on, configure.ac):
57118         Likewise.
57119         * modules/unictype/property-diacritic (Depends-on, configure.ac):
57120         Likewise.
57121         * modules/unictype/property-extender (Depends-on, configure.ac):
57122         Likewise.
57123         * modules/unictype/property-format-control (Depends-on, configure.ac):
57124         Likewise.
57125         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
57126         Likewise.
57127         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
57128         Likewise.
57129         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
57130         Likewise.
57131         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
57132         Likewise.
57133         * modules/unictype/property-hyphen (Depends-on, configure.ac):
57134         Likewise.
57135         * modules/unictype/property-id-continue (Depends-on, configure.ac):
57136         Likewise.
57137         * modules/unictype/property-id-start (Depends-on, configure.ac):
57138         Likewise.
57139         * modules/unictype/property-ideographic (Depends-on, configure.ac):
57140         Likewise.
57141         * modules/unictype/property-ids-binary-operator (Depends-on,
57142         configure.ac): Likewise.
57143         * modules/unictype/property-ids-trinary-operator (Depends-on,
57144         configure.ac): Likewise.
57145         * modules/unictype/property-ignorable-control (Depends-on,
57146         configure.ac): Likewise.
57147         * modules/unictype/property-iso-control (Depends-on, configure.ac):
57148         Likewise.
57149         * modules/unictype/property-join-control (Depends-on, configure.ac):
57150         Likewise.
57151         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
57152         Likewise.
57153         * modules/unictype/property-line-separator (Depends-on, configure.ac):
57154         Likewise.
57155         * modules/unictype/property-logical-order-exception (Depends-on,
57156         configure.ac): Likewise.
57157         * modules/unictype/property-lowercase (Depends-on, configure.ac):
57158         Likewise.
57159         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
57160         * modules/unictype/property-non-break (Depends-on, configure.ac):
57161         Likewise.
57162         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
57163         Likewise.
57164         * modules/unictype/property-numeric (Depends-on, configure.ac):
57165         Likewise.
57166         * modules/unictype/property-other-alphabetic (Depends-on,
57167         configure.ac): Likewise.
57168         * modules/unictype/property-other-default-ignorable-code-point
57169         (Depends-on, configure.ac): Likewise.
57170         * modules/unictype/property-other-grapheme-extend (Depends-on,
57171         configure.ac): Likewise.
57172         * modules/unictype/property-other-id-continue (Depends-on,
57173         configure.ac): Likewise.
57174         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
57175         Likewise.
57176         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
57177         Likewise.
57178         * modules/unictype/property-other-math (Depends-on, configure.ac):
57179         Likewise.
57180         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
57181         Likewise.
57182         * modules/unictype/property-paired-punctuation (Depends-on,
57183         configure.ac): Likewise.
57184         * modules/unictype/property-paragraph-separator (Depends-on,
57185         configure.ac): Likewise.
57186         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
57187         Likewise.
57188         * modules/unictype/property-pattern-white-space (Depends-on,
57189         configure.ac): Likewise.
57190         * modules/unictype/property-private-use (Depends-on, configure.ac):
57191         Likewise.
57192         * modules/unictype/property-punctuation (Depends-on, configure.ac):
57193         Likewise.
57194         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
57195         Likewise.
57196         * modules/unictype/property-radical (Depends-on, configure.ac):
57197         Likewise.
57198         * modules/unictype/property-sentence-terminal (Depends-on,
57199         configure.ac): Likewise.
57200         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
57201         Likewise.
57202         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
57203         * modules/unictype/property-terminal-punctuation (Depends-on,
57204         configure.ac): Likewise.
57205         * modules/unictype/property-titlecase (Depends-on, configure.ac):
57206         Likewise.
57207         * modules/unictype/property-unassigned-code-value (Depends-on,
57208         configure.ac): Likewise.
57209         * modules/unictype/property-unified-ideograph (Depends-on,
57210         configure.ac): Likewise.
57211         * modules/unictype/property-uppercase (Depends-on, configure.ac):
57212         Likewise.
57213         * modules/unictype/property-variation-selector (Depends-on,
57214         configure.ac): Likewise.
57215         * modules/unictype/property-white-space (Depends-on, configure.ac):
57216         Likewise.
57217         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
57218         Likewise.
57219         * modules/unictype/property-xid-start (Depends-on, configure.ac):
57220         Likewise.
57221         * modules/unictype/property-zero-width (Depends-on, configure.ac):
57222         Likewise.
57223         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
57224         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
57225         Likewise.
57227 2009-12-31  Bruno Haible  <bruno@clisp.org>
57229         Remove unnecessary AC_C_INLINE invocation.
57230         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
57231         since 2009-08-21.
57233 2009-12-31  Jim Meyering  <meyering@redhat.com>
57235         maint.mk: don't require explicit gpg_key_ID in cfg.mk
57236         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
57237         With this change, we can all remove the gpg_key_ID = ... definition
57238         from our respective cfg.mk files.
57240         maint.mk: create announcement template in ~/, not in /tmp
57241         * top/maint.mk (emit_upload_commands): Adjust.
57242         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
57243         Remove temporary file, .ci-msg.
57245 2009-12-31  Eric Blake  <ebb9@byu.net>
57247         link-warning: always build headers with link warnings
57248         * modules/arpa_inet (Makefile.am): Always build replacement
57249         header.
57250         * modules/ctype (Makefile.am): Likewise.
57251         * modules/dirent (Makefile.am): Likewise.
57252         * modules/inttypes (Makefile.am): Likewise.
57253         * modules/langinfo (Makefile.am): Likewise.
57254         * modules/locale (Makefile.am): Likewise.
57255         * modules/spawn (Makefile.am): Likewise.
57256         * modules/sys_file (Makefile.am): Likewise.
57257         * modules/sys_ioctl (Makefile.am): Likewise.
57258         * modules/sys_select (Makefile.am): Likewise.
57259         * modules/sys_socket (Makefile.am): Likewise.
57260         * modules/sys_times (Makefile.am): Likewise.
57261         * modules/sys_utsname (Makefile.am): Likewise.
57262         * modules/sys_wait (Makefile.am): Likewise.
57263         * modules/wchar (Makefile.am): Likewise.
57264         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
57265         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
57266         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
57267         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
57268         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
57269         Likewise.
57270         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57271         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
57272         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
57273         Likewise.
57274         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
57275         Likewise.
57276         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
57277         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
57278         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
57279         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57280         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
57281         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
57282         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
57283         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
57284         (gl_WCHAR_H_DEFAULTS): Likewise.
57286 2009-12-31  Eric Blake  <ebb9@byu.net>
57288         signal, spawn: use link warnings
57289         * lib/signal.in.h (sigset_t): Make unconditional.
57290         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
57291         (sigpending, sigprocmask, sigaction): Add link warnings.
57292         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
57293         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
57294         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
57295         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
57296         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
57297         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
57298         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
57299         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
57300         (posix_spawn_file_actions_destroy)
57301         (posix_spawn_file_actions_addopen)
57302         (posix_spawn_file_actions_addclose)
57303         (posix_spawn_file_actions_adddup2): Likewise.
57304         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
57305         * tests/test-signal.c (main): Enhance test.
57307         spawn: improve wrapper support
57308         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
57309         (gl_SPAWN_H_DEFAULTS): New defaults.
57310         * modules/spawn (Makefile.am): Substitute them.
57311         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
57312         Only declare if missing or broken.
57314         sys_times, sys_utsname: use include_next
57315         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
57316         header.
57317         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
57318         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
57319         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
57320         * modules/sys_times (Depends-on): Add include_next.
57321         (Makefile.am): Substitute additional values.
57322         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
57323         * lib/sys_times.in.h (includes): Include native header, if
57324         available.
57325         * lib/sys_utsname.in.h (includes): Likewise.
57326         * tests/test-sys_times.c (main): Enhance test.
57328         fdutimensat: revert prior patch
57329         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
57330         utimens.h.
57331         Reported by Bruno Haible.
57333 2009-12-30  Eric Blake  <ebb9@byu.net>
57335         sys_wait: drop link-warning dependency
57336         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
57337         link-warning efforts.
57338         * lib/sys_wait.in.h: Likewise.
57340         fdutimensat: remove bogus dependency
57341         * modules/fdutimensat (Depends-on): Drop inline.
57343         unistd: fix typo
57344         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
57346 2009-12-30  Bruno Haible  <bruno@clisp.org>
57348         Fix compilation error with Solaris cc.
57349         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
57350         * lib/unicase/u16-is-invariant.c: Likewise.
57351         * lib/unicase/u32-is-invariant.c: Likewise.
57352         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57354 2009-12-30  Bruno Haible  <bruno@clisp.org>
57356         Fix test crash.
57357         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
57358         locales.
57359         Reported by Simon Josefsson <simon@josefsson.org>.
57361 2009-12-30  Bruno Haible  <bruno@clisp.org>
57363         Fix compilation error on most platforms.
57364         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
57365         Reported by Simon Josefsson <simon@josefsson.org>
57366         and Nelson H. F. Beebe <beebe@math.utah.edu>.
57368 2009-12-30  Eric Blake  <ebb9@byu.net>
57370         futimens, utimensat: work around ntfs-3g bug
57371         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
57372         a ctime bug is present, and expand workaround to cover ntfs-3g.
57373         * lib/utimens.c (fdutimens, lutimens): Likewise.
57374         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
57375         (validate_timespec): Adjust return value.
57376         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
57377         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
57378         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
57380 2009-12-29  Eric Blake  <ebb9@byu.net>
57382         link-warning: make usage consistent
57383         * modules/ctype (Depends-on): Add link-warning.
57384         (Makefile.am): Update rules accordingly.
57385         * modules/langinfo (Depends-on, Makefile.am): Likewise.
57386         * modules/locale (Depends-on, Makefile.am): Likewise.
57387         * modules/sys_file (Makefile.am): Likewise.
57388         * modules/getopt-posix (Makefile.am): Delete unused link warning
57389         efforts.
57390         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
57391         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
57392         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
57393         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
57395         stdio: remove unused variables
57396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
57397         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
57398         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
57400         tests: test more substitute headers
57401         * modules/ctype-tests: New file.
57402         * modules/dirent-tests: Likewise.
57403         * modules/spawn-tests: Likewise.
57404         * modules/sys_file-tests: Likewise.
57405         * modules/sys_ioctl-tests: Likewise.
57406         * modules/sys_wait-tests: Likewise.
57407         * tests/test-ctype.c: Likewise.
57408         * tests/test-dirent.c: Likewise.
57409         * tests/test-spawn.c: Likewise.
57410         * tests/test-sys_file.c: Likewise.
57411         * tests/test-sys_ioctl.c: Likewise.
57412         * tests/test-sys_wait.c: Likewise.
57413         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
57414         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
57415         whether or not flock is in use.
57417         tests: remove License section from module
57418         * modules/arpa_inet-tests: Remove unneeded section.
57419         * modules/byteswap-tests: Likewise.
57420         * modules/ceilf-tests: Likewise.
57421         * modules/ceill-tests: Likewise.
57422         * modules/crypto/des-tests: Likewise.
57423         * modules/crypto/gc-arcfour-tests: Likewise.
57424         * modules/crypto/gc-arctwo-tests: Likewise.
57425         * modules/crypto/gc-des-tests: Likewise.
57426         * modules/crypto/gc-hmac-md5-tests: Likewise.
57427         * modules/crypto/gc-hmac-sha1-tests: Likewise.
57428         * modules/crypto/gc-md2-tests: Likewise.
57429         * modules/crypto/gc-md4-tests: Likewise.
57430         * modules/crypto/gc-md5-tests: Likewise.
57431         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
57432         * modules/crypto/gc-rijndael-tests: Likewise.
57433         * modules/crypto/gc-sha1-tests: Likewise.
57434         * modules/crypto/gc-tests: Likewise.
57435         * modules/crypto/md2-tests: Likewise.
57436         * modules/crypto/md4-tests: Likewise.
57437         * modules/fcntl-h-tests: Likewise.
57438         * modules/floorf-tests: Likewise.
57439         * modules/floorl-tests: Likewise.
57440         * modules/frexp-nolibm-tests: Likewise.
57441         * modules/frexp-tests: Likewise.
57442         * modules/frexpl-nolibm-tests: Likewise.
57443         * modules/frexpl-tests: Likewise.
57444         * modules/getaddrinfo-tests: Likewise.
57445         * modules/inttypes-tests: Likewise.
57446         * modules/isfinite-tests: Likewise.
57447         * modules/isinf-tests: Likewise.
57448         * modules/ldexpl-tests: Likewise.
57449         * modules/locale-tests: Likewise.
57450         * modules/math-tests: Likewise.
57451         * modules/netdb-tests: Likewise.
57452         * modules/netinet_in-tests: Likewise.
57453         * modules/printf-frexp-tests: Likewise.
57454         * modules/printf-frexpl-tests: Likewise.
57455         * modules/priv-set-tests: Likewise.
57456         * modules/random_r-tests: Likewise.
57457         * modules/round-tests: Likewise.
57458         * modules/roundf-tests: Likewise.
57459         * modules/roundl-tests: Likewise.
57460         * modules/search-tests: Likewise.
57461         * modules/select-tests: Likewise.
57462         * modules/signal-tests: Likewise.
57463         * modules/stdbool-tests: Likewise.
57464         * modules/stddef-tests: Likewise.
57465         * modules/stdint-tests: Likewise.
57466         * modules/stdio-tests: Likewise.
57467         * modules/stdlib-tests: Likewise.
57468         * modules/string-tests: Likewise.
57469         * modules/strings-tests: Likewise.
57470         * modules/sys_select-tests: Likewise.
57471         * modules/sys_socket-tests: Likewise.
57472         * modules/sys_stat-tests: Likewise.
57473         * modules/sys_time-tests: Likewise.
57474         * modules/sys_utsname-tests: Likewise.
57475         * modules/sysexits-tests: Likewise.
57476         * modules/time-tests: Likewise.
57477         * modules/trunc-tests: Likewise.
57478         * modules/truncf-tests: Likewise.
57479         * modules/truncl-tests: Likewise.
57480         * modules/tsearch-tests: Likewise.
57481         * modules/unistd-tests: Likewise.
57482         * modules/wchar-tests: Likewise.
57483         * modules/wctype-tests: Likewise.
57485         tests: fix license on several tests
57486         * tests/test-des.c: Update to GPLv3+.
57487         * tests/test-flock.c: Likewise.
57488         * tests/test-fsync.c: Likewise.
57489         * tests/test-futimens.h: Likewise.
57490         * tests/test-gc-arcfour.c: Likewise.
57491         * tests/test-gc-arctwo.c: Likewise.
57492         * tests/test-gc-des.c: Likewise.
57493         * tests/test-gc-hmac-md5.c: Likewise.
57494         * tests/test-gc-hmac-sha1.c: Likewise.
57495         * tests/test-gc-md2.c: Likewise.
57496         * tests/test-gc-md4.c: Likewise.
57497         * tests/test-gc-md5.c: Likewise.
57498         * tests/test-gc-pbkdf2-sha1.c: Likewise.
57499         * tests/test-gc-rijndael.c: Likewise.
57500         * tests/test-gc-sha1.c: Likewise.
57501         * tests/test-gc.c: Likewise.
57502         * tests/test-getcwd.c: Likewise.
57503         * tests/test-link.c: Likewise.
57504         * tests/test-link.h: Likewise.
57505         * tests/test-lutimens.h: Likewise.
57506         * tests/test-md2.c: Likewise.
57507         * tests/test-md4.c: Likewise.
57508         * tests/test-mkdir.h: Likewise.
57509         * tests/test-rename.c: Likewise.
57510         * tests/test-rename.h: Likewise.
57511         * tests/test-safe-alloc.c: Likewise.
57512         * tests/test-utimens-common.h: Likewise.
57513         * tests/test-utimens.h: Likewise.
57515         maint: sync license texts
57516         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
57517         * doc/gpl-3.0.texi: Revert copyright year update.
57518         * doc/lgpl-3.0.texi: Likewise.
57520 2009-12-29  Jim Meyering  <meyering@redhat.com>
57522         update nearly all FSF copyright year lists to include 2009
57523         The files named by the following are exempted:
57524             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
57525               test -f "$dst" && { echo "$dst"; continue; }
57526               test -d "$dst" || continue
57527               echo "$dst"/$(basename "$src")
57528             done > exempt
57529             git ls-files tests/unictype >> exempt
57530         In the remaining files, convert to all-interval notation if
57531         - there is already at least one year interval like 2000-2003
57532         - the file is maintained by me
57533         - the file is in lib/uni*/, where that style already prevails
57534         Otherwise, use update-copyright's default.
57536 2009-12-29  Simon Josefsson  <simon@josefsson.org>
57537         and Eric Blake  <ebb9@byu.net>
57539         tests: don't require debug system() to pass
57540         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
57541         * tests/test-rmdir.h (test_rmdir_func): Likewise.
57542         * tests/test-unlink.h (test_unlink_func): Likewise.
57543         * tests/test-fstatat.c (main): ...into callers.
57544         * tests/test-lstat.c (main): Likewise.
57545         * tests/test-rmdir.c (main): Likewise.
57546         * tests/test-unlink.c (main): Likewise.
57547         * tests/test-unlinkat.c (main): Likewise.
57548         * tests/test-areadlink-with-size.c (main): Don't require a
57549         debug-only system call to pass, aiding cross-testing to mingw.
57550         * tests/test-areadlink.c (main): Likewise.
57551         * tests/test-areadlinkat-with-size.c (main): Likewise.
57552         * tests/test-areadlinkat.c (main): Likewise.
57553         * tests/test-canonicalize-lgpl.c (main): Likewise.
57554         * tests/test-canonicalize.c (main): Likewise.
57555         * tests/test-chown.c (main): Likewise.
57556         * tests/test-fchownat.c (main): Likewise.
57557         * tests/test-lchown.c (main): Likewise.
57558         * tests/test-fdutimensat.c (main): Likewise.
57559         * tests/test-futimens.c (main): Likewise.
57560         * tests/test-link.c (main): Likewise.
57561         * tests/test-linkat.c (main): Likewise.
57562         * tests/test-mkdir.c (main): Likewise.
57563         * tests/test-mkdirat.c (main): Likewise.
57564         * tests/test-mkfifo.c (main): Likewise.
57565         * tests/test-mkfifoat.c (main): Likewise.
57566         * tests/test-mknod.c (main): Likewise.
57567         * tests/test-readlink.c (main): Likewise.
57568         * tests/test-remove.c (main): Likewise.
57569         * tests/test-rename.c (main): Likewise.
57570         * tests/test-renameat.c (main): Likewise.
57571         * tests/test-symlink.c (main): Likewise.
57572         * tests/test-symlinkat.c (main): Likewise.
57573         * tests/test-utimens.c (main): Likewise.
57574         * tests/test-utimensat.c (main): Likewise.
57576 2009-12-29  Simon Josefsson  <simon@josefsson.org>
57578         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
57579         on $(UNUSED_PARAMETER_H) to avoid build failure.
57581 2009-12-28  Jim Meyering  <meyering@redhat.com>
57583         update-copyright: you may specify a max. line length other than 72
57584         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
57586         maint: use consistent FSF copyright line syntax
57587         * lib/posixtm.c: Add missing comma in FSF copyright line.
57588         * lib/posixtm.h: Likewise.
57589         * lib/getugroups.c: Add missing ", Inc.".
57591         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
57592         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
57593         FSF copyright line.  Remove trailing blanks.
57595 2009-12-28  Eric Blake  <ebb9@byu.net>
57597         test-dup2: reduce dependencies
57598         * modules/cloexec (Configure.ac): Set witness.
57599         * modules/dup2-tests (Depends-on): Drop cloexec.
57600         * tests/test-dup2.c (main): Skip portion of test if cloexec module
57601         not present.
57602         Suggested by Bruno Haible.
57604 2009-12-26  Bruno Haible  <bruno@clisp.org>
57606         Remove an unneeded dependency.
57607         * modules/fseterr (Depends-on): Remove dup2.
57609 2009-12-26  Eric Blake  <ebb9@byu.net>
57611         tests: use macros.h in more places
57612         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
57613         (ASSERT_STREAM): Provide default of stderr.
57614         * tests/test-dirent-safer.c: Include macros.h, using alternate
57615         stream for assertions.
57616         * tests/test-dup-safer.c: Likewise.
57617         * tests/test-freopen-safer.c: Likewise.
57618         * tests/test-getopt.c: Likewise.
57619         * tests/test-openat-safer.c: Likewise.
57620         * tests/test-pipe.c: Likewise.
57621         * tests/test-popen-safer.c: Likewise.
57622         * modules/dirent-safer-tests (Files): Include macros.h.
57623         * modules/unistd-safer-tests (Files): Likewise.
57624         * modules/freopen-safer-tests (Files): Likewise.
57625         * modules/getopt-posix-tests (Files): Likewise.
57626         * modules/openat-safer-tests (Files): Likewise.
57627         * modules/pipe-tests (Files): Likewise.
57629 2009-12-26  Bruno Haible  <bruno@clisp.org>
57631         javacomp-script: Portability fix.
57632         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
57633         that it also works on Solaris.
57635 2009-12-26  Bruno Haible  <bruno@clisp.org>
57637         localename: Fix storage allocation of gl_locale_name_thread's result.
57638         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
57639         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
57640         all platforms that have 'uselocale'.
57641         (gl_locale_name_thread_unsafe): New function, extracted from
57642         gl_locale_name_thread.
57643         (gl_locale_name_thread): Call struniq on all platforms that have
57644         'uselocale'.
57645         * tests/test-localename.c (test_locale_name_thread): Check that the
57646         resulting strings are permanently allocated.
57647         * modules/localename-tests (Depends-on): Add strdup.
57649 2009-12-26  Bruno Haible  <bruno@clisp.org>
57651         * tests/test-localename.c (categories): Fill in the strings.
57653 2009-12-26  Jim Meyering  <meyering@redhat.com>
57655         isdir: complete the removal of m4/isdir.m4
57656         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
57658         isdir: clean up, since at least grep still uses it
57659         * lib/isdir.c: Include "isdir.h".
57660         (S_ISDIR): Remove now-unneeded definition.
57661         * modules/isdir (Files): Add lib/isdir.h.
57662         * lib/isdir.h: New file, with declaration.
57663         * m4/isdir.m4: Remove file -- unneeded.
57665 2009-12-25  Bruno Haible  <bruno@clisp.org>
57667         selinux-h: Make generated .h files standalone.
57668         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
57669         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
57670         * lib/se-selinux.in.h: Likewise.
57671         * modules/selinux-h (Depends-on): Add unused-parameter.
57672         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
57673         selinux/selinux.h and selinux/context.h.
57674         Suggested by Eric Blake.
57676 2009-12-25  Bruno Haible  <bruno@clisp.org>
57678         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
57679         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
57680         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
57681         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
57682         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
57684 2009-12-24  Bruno Haible  <bruno@clisp.org>
57686         openat: Fix warning.
57687         * lib/openat-proc.c: Include <unistd.h>.
57689 2009-12-24  Bruno Haible  <bruno@clisp.org>
57691         New module 'unused-parameter'.
57692         * build-aux/unused-parameter.h: New file, extracted from earlier
57693         gnulib-common.m4.
57694         * modules/unused-parameter: New file.
57695         * lib/unistr.h: Include unused-parameter.h.
57696         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
57697         _GL_UNUSED.
57698         * modules/unistr/base (Depends-on): Add unused-parameter.
57700 2009-12-24  Bruno Haible  <bruno@clisp.org>
57702         Add missing dependencies to 'extensions' module.
57703         * m4/extensions.m4: Add comment.
57704         * modules/accept4 (Depends-on): Add extensions.
57705         * modules/dup3 (Depends-on): Likewise.
57706         * modules/fcntl (Depends-on): Likewise.
57707         * modules/futimens (Depends-on): Likewise.
57708         * modules/mknod (Depends-on): Likewise.
57709         * modules/pipe2 (Depends-on): Likewise.
57710         * modules/stat-time (Depends-on): Likewise.
57711         * modules/strcasestr-simple (Depends-on): Likewise.
57712         * modules/strsignal (Depends-on): Likewise.
57713         * modules/utimensat (Depends-on): Likewise.
57714         * modules/localcharset (Depends-on): Likewise. Needed because of
57715         gl_FCNTL_O_FLAGS.
57716         * modules/wcrtomb (Depends-on): Likewise. Needed because of
57717         AC_TYPE_MBSTATE_T.
57718         * modules/wcsnrtombs (Depends-on): Likewise.
57719         * modules/wcsrtombs (Depends-on): Likewise.
57721 2009-12-24  Bruno Haible  <bruno@clisp.org>
57723         binary-io: Avoid gcc warning due to SET_BINARY.
57724         * lib/binary-io.h (SET_BINARY): Cast the result to void.
57725         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
57727 2009-12-24  Bruno Haible  <bruno@clisp.org>
57729         Avoid future namespace pollution on glibc systems.
57730         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
57731         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
57732         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
57733         glibc systems.
57735 2009-12-24  Bruno Haible  <bruno@clisp.org>
57737         Refactor common macros used in tests.
57738         * tests/macros.h: New file.
57739         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
57740         and/or <stdlib.h>, if appropriate.
57741         (ASSERT, SIZEOF): Remove macros.
57742         * tests/test-areadlink-with-size.c: Likewise.
57743         * tests/test-areadlinkat.c: Likewise.
57744         * tests/test-areadlinkat-with-size.c: Likewise.
57745         * tests/test-argmatch.c: Likewise.
57746         * tests/test-argv-iter.c: Likewise.
57747         * tests/test-array-mergesort.c: Likewise.
57748         * tests/test-array_list.c: Likewise.
57749         * tests/test-array_oset.c: Likewise.
57750         * tests/test-avltree_list.c: Likewise.
57751         * tests/test-avltree_oset.c: Likewise.
57752         * tests/test-avltreehash_list.c: Likewise.
57753         * tests/test-base64.c: Likewise.
57754         * tests/test-binary-io.c: Likewise.
57755         * tests/test-bitrotate.c: Likewise.
57756         * tests/test-btowc.c: Likewise.
57757         * tests/test-byteswap.c: Likewise.
57758         * tests/test-c-ctype.c: Likewise.
57759         * tests/test-c-stack.c: Likewise.
57760         * tests/test-c-strcasecmp.c: Likewise.
57761         * tests/test-c-strcasestr.c: Likewise.
57762         * tests/test-c-strncasecmp.c: Likewise.
57763         * tests/test-c-strstr.c: Likewise.
57764         * tests/test-canonicalize-lgpl.c: Likewise.
57765         * tests/test-canonicalize.c: Likewise.
57766         * tests/test-carray_list.c: Likewise.
57767         * tests/test-ceilf1.c: Likewise.
57768         * tests/test-ceilf2.c: Likewise.
57769         * tests/test-ceill.c: Likewise.
57770         * tests/test-chown.c: Likewise.
57771         * tests/test-cloexec.c: Likewise.
57772         * tests/test-copy-acl.c: Likewise.
57773         * tests/test-copy-file.c: Likewise.
57774         * tests/test-count-one-bits.c: Likewise.
57775         * tests/test-dprintf-posix.c: Likewise.
57776         * tests/test-dup2.c: Likewise.
57777         * tests/test-dup3.c: Likewise.
57778         * tests/test-duplocale.c: Likewise.
57779         * tests/test-fbufmode.c: Likewise.
57780         * tests/test-fchdir.c: Likewise.
57781         * tests/test-fchownat.c: Likewise.
57782         * tests/test-fcntl-safer.c: Likewise.
57783         * tests/test-fcntl.c: Likewise.
57784         * tests/test-fdopendir.c: Likewise.
57785         * tests/test-fdutimensat.c: Likewise.
57786         * tests/test-fflush2.c: Likewise.
57787         * tests/test-file-has-acl.c: Likewise.
57788         * tests/test-filevercmp.c: Likewise.
57789         * tests/test-flock.c: Likewise.
57790         * tests/test-floorf1.c: Likewise.
57791         * tests/test-floorf2.c: Likewise.
57792         * tests/test-floorl.c: Likewise.
57793         * tests/test-fnmatch.c: Likewise.
57794         * tests/test-fopen.h: Likewise.
57795         * tests/test-fpending.c: Likewise.
57796         * tests/test-fprintf-posix.c: Likewise.
57797         * tests/test-fpurge.c: Likewise.
57798         * tests/test-freadable.c: Likewise.
57799         * tests/test-freadahead.c: Likewise.
57800         * tests/test-freading.c: Likewise.
57801         * tests/test-freadptr.c: Likewise.
57802         * tests/test-freadptr2.c: Likewise.
57803         * tests/test-freadseek.c: Likewise.
57804         * tests/test-freopen.c: Likewise.
57805         * tests/test-frexp.c: Likewise.
57806         * tests/test-frexpl.c: Likewise.
57807         * tests/test-fseek.c: Likewise.
57808         * tests/test-fseeko.c: Likewise.
57809         * tests/test-fstatat.c: Likewise.
57810         * tests/test-fstrcmp.c: Likewise.
57811         * tests/test-fsync.c: Likewise.
57812         * tests/test-ftell.c: Likewise.
57813         * tests/test-ftello.c: Likewise.
57814         * tests/test-func.c: Likewise.
57815         * tests/test-futimens.c: Likewise.
57816         * tests/test-fwritable.c: Likewise.
57817         * tests/test-fwriting.c: Likewise.
57818         * tests/test-getcwd.c: Likewise.
57819         * tests/test-getdate.c: Likewise.
57820         * tests/test-getdelim.c: Likewise.
57821         * tests/test-getdtablesize.c: Likewise.
57822         * tests/test-getgroups.c: Likewise.
57823         * tests/test-getline.c: Likewise.
57824         * tests/test-getndelim2.c: Likewise.
57825         * tests/test-glob.c: Likewise.
57826         * tests/test-hash.c: Likewise.
57827         * tests/test-i-ring.c: Likewise.
57828         * tests/test-iconv-utf.c: Likewise.
57829         * tests/test-iconv.c: Likewise.
57830         * tests/test-idpriv-drop.c: Likewise.
57831         * tests/test-idpriv-droptemp.c: Likewise.
57832         * tests/test-inet_ntop.c: Likewise.
57833         * tests/test-inet_pton.c: Likewise.
57834         * tests/test-isblank.c: Likewise.
57835         * tests/test-isfinite.c: Likewise.
57836         * tests/test-isinf.c: Likewise.
57837         * tests/test-isnan.c: Likewise.
57838         * tests/test-isnand.h: Likewise.
57839         * tests/test-isnanf.h: Likewise.
57840         * tests/test-isnanl.h: Likewise.
57841         * tests/test-lchown.c: Likewise.
57842         * tests/test-ldexpl.c: Likewise.
57843         * tests/test-link.c: Likewise.
57844         * tests/test-linkat.c: Likewise.
57845         * tests/test-linked_list.c: Likewise.
57846         * tests/test-linkedhash_list.c: Likewise.
57847         * tests/test-localename.c: Likewise.
57848         * tests/test-lseek.c: Likewise.
57849         * tests/test-lstat.c: Likewise.
57850         * tests/test-mbmemcasecmp.c: Likewise.
57851         * tests/test-mbmemcasecoll.c: Likewise.
57852         * tests/test-mbrtowc.c: Likewise.
57853         * tests/test-mbscasecmp.c: Likewise.
57854         * tests/test-mbscasestr1.c: Likewise.
57855         * tests/test-mbscasestr2.c: Likewise.
57856         * tests/test-mbscasestr3.c: Likewise.
57857         * tests/test-mbscasestr4.c: Likewise.
57858         * tests/test-mbschr.c: Likewise.
57859         * tests/test-mbscspn.c: Likewise.
57860         * tests/test-mbsinit.c: Likewise.
57861         * tests/test-mbsncasecmp.c: Likewise.
57862         * tests/test-mbsnrtowcs.c: Likewise.
57863         * tests/test-mbspbrk.c: Likewise.
57864         * tests/test-mbspcasecmp.c: Likewise.
57865         * tests/test-mbsrchr.c: Likewise.
57866         * tests/test-mbsrtowcs.c: Likewise.
57867         * tests/test-mbsspn.c: Likewise.
57868         * tests/test-mbsstr1.c: Likewise.
57869         * tests/test-mbsstr2.c: Likewise.
57870         * tests/test-mbsstr3.c: Likewise.
57871         * tests/test-memchr.c: Likewise.
57872         * tests/test-memchr2.c: Likewise.
57873         * tests/test-memcmp.c: Likewise.
57874         * tests/test-memmem.c: Likewise.
57875         * tests/test-memrchr.c: Likewise.
57876         * tests/test-mkdir.c: Likewise.
57877         * tests/test-mkdirat.c: Likewise.
57878         * tests/test-mkfifo.c: Likewise.
57879         * tests/test-mkfifoat.c: Likewise.
57880         * tests/test-mknod.c: Likewise.
57881         * tests/test-nanosleep.c: Likewise.
57882         * tests/test-nl_langinfo.c: Likewise.
57883         * tests/test-obstack-printf.c: Likewise.
57884         * tests/test-open.c: Likewise.
57885         * tests/test-openat.c: Likewise.
57886         * tests/test-pipe-filter-gi1.c: Likewise.
57887         * tests/test-pipe-filter-gi2-main.c: Likewise.
57888         * tests/test-pipe-filter-ii1.c: Likewise.
57889         * tests/test-pipe-filter-ii2-main.c: Likewise.
57890         * tests/test-pipe2.c: Likewise.
57891         * tests/test-popen.h: Likewise.
57892         * tests/test-posixtm.c: Likewise.
57893         * tests/test-pread.c: Likewise.
57894         * tests/test-printf-frexp.c: Likewise.
57895         * tests/test-printf-frexpl.c: Likewise.
57896         * tests/test-printf-posix.c: Likewise.
57897         * tests/test-priv-set.c: Likewise.
57898         * tests/test-quotearg.c: Likewise.
57899         * tests/test-random_r.c: Likewise.
57900         * tests/test-rawmemchr.c: Likewise.
57901         * tests/test-rbtree_list.c: Likewise.
57902         * tests/test-rbtree_oset.c: Likewise.
57903         * tests/test-rbtreehash_list.c: Likewise.
57904         * tests/test-readlink.c: Likewise.
57905         * tests/test-remove.c: Likewise.
57906         * tests/test-rename.c: Likewise.
57907         * tests/test-renameat.c: Likewise.
57908         * tests/test-rmdir.c: Likewise.
57909         * tests/test-round1.c: Likewise.
57910         * tests/test-roundf1.c: Likewise.
57911         * tests/test-roundl.c: Likewise.
57912         * tests/test-safe-alloc.c: Likewise.
57913         * tests/test-sameacls.c: Likewise.
57914         * tests/test-set-mode-acl.c: Likewise.
57915         * tests/test-setenv.c: Likewise.
57916         * tests/test-sigaction.c: Likewise.
57917         * tests/test-signbit.c: Likewise.
57918         * tests/test-sleep.c: Likewise.
57919         * tests/test-snprintf-posix.c: Likewise.
57920         * tests/test-snprintf.c: Likewise.
57921         * tests/test-sprintf-posix.c: Likewise.
57922         * tests/test-stat-time.c: Likewise.
57923         * tests/test-stat.c: Likewise.
57924         * tests/test-strcasestr.c: Likewise.
57925         * tests/test-strchrnul.c: Likewise.
57926         * tests/test-strerror.c: Likewise.
57927         * tests/test-striconv.c: Likewise.
57928         * tests/test-striconveh.c: Likewise.
57929         * tests/test-striconveha.c: Likewise.
57930         * tests/test-strsignal.c: Likewise.
57931         * tests/test-strstr.c: Likewise.
57932         * tests/test-strtod.c: Likewise.
57933         * tests/test-strverscmp.c: Likewise.
57934         * tests/test-symlink.c: Likewise.
57935         * tests/test-symlinkat.c: Likewise.
57936         * tests/test-trunc1.c: Likewise.
57937         * tests/test-trunc2.c: Likewise.
57938         * tests/test-truncf1.c: Likewise.
57939         * tests/test-truncf2.c: Likewise.
57940         * tests/test-truncl.c: Likewise.
57941         * tests/test-uname.c: Likewise.
57942         * tests/test-unlink.c: Likewise.
57943         * tests/test-unlinkat.c: Likewise.
57944         * tests/test-unsetenv.c: Likewise.
57945         * tests/test-usleep.c: Likewise.
57946         * tests/test-utimens.c: Likewise.
57947         * tests/test-utimensat.c: Likewise.
57948         * tests/test-vasnprintf-posix.c: Likewise.
57949         * tests/test-vasnprintf-posix2.c: Likewise.
57950         * tests/test-vasnprintf.c: Likewise.
57951         * tests/test-vasprintf-posix.c: Likewise.
57952         * tests/test-vasprintf.c: Likewise.
57953         * tests/test-vdprintf-posix.c: Likewise.
57954         * tests/test-vfprintf-posix.c: Likewise.
57955         * tests/test-vprintf-posix.c: Likewise.
57956         * tests/test-vsnprintf-posix.c: Likewise.
57957         * tests/test-vsnprintf.c: Likewise.
57958         * tests/test-vsprintf-posix.c: Likewise.
57959         * tests/test-wcrtomb.c: Likewise.
57960         * tests/test-wcsnrtombs.c: Likewise.
57961         * tests/test-wcsrtombs.c: Likewise.
57962         * tests/test-wctype.c: Likewise.
57963         * tests/test-wcwidth.c: Likewise.
57964         * tests/test-xfprintf-posix.c: Likewise.
57965         * tests/test-xmemdup0.c: Likewise.
57966         * tests/test-xprintf-posix.c: Likewise.
57967         * tests/test-xvasprintf.c: Likewise.
57968         * tests/unicase/test-locale-language.c: Likewise.
57969         * tests/unicase/test-mapping-part1.h: Likewise.
57970         * tests/unicase/test-predicate-part1.h: Likewise.
57971         * tests/unicase/test-u8-casecmp.c: Likewise.
57972         * tests/unicase/test-u8-casecoll.c: Likewise.
57973         * tests/unicase/test-u8-casefold.c: Likewise.
57974         * tests/unicase/test-u8-is-cased.c: Likewise.
57975         * tests/unicase/test-u8-is-casefolded.c: Likewise.
57976         * tests/unicase/test-u8-is-lowercase.c: Likewise.
57977         * tests/unicase/test-u8-is-titlecase.c: Likewise.
57978         * tests/unicase/test-u8-is-uppercase.c: Likewise.
57979         * tests/unicase/test-u8-tolower.c: Likewise.
57980         * tests/unicase/test-u8-totitle.c: Likewise.
57981         * tests/unicase/test-u8-toupper.c: Likewise.
57982         * tests/unicase/test-u16-casecmp.c: Likewise.
57983         * tests/unicase/test-u16-casecoll.c: Likewise.
57984         * tests/unicase/test-u16-casefold.c: Likewise.
57985         * tests/unicase/test-u16-is-cased.c: Likewise.
57986         * tests/unicase/test-u16-is-casefolded.c: Likewise.
57987         * tests/unicase/test-u16-is-lowercase.c: Likewise.
57988         * tests/unicase/test-u16-is-titlecase.c: Likewise.
57989         * tests/unicase/test-u16-is-uppercase.c: Likewise.
57990         * tests/unicase/test-u16-tolower.c: Likewise.
57991         * tests/unicase/test-u16-totitle.c: Likewise.
57992         * tests/unicase/test-u16-toupper.c: Likewise.
57993         * tests/unicase/test-u32-casecmp.c: Likewise.
57994         * tests/unicase/test-u32-casecoll.c: Likewise.
57995         * tests/unicase/test-u32-casefold.c: Likewise.
57996         * tests/unicase/test-u32-is-cased.c: Likewise.
57997         * tests/unicase/test-u32-is-casefolded.c: Likewise.
57998         * tests/unicase/test-u32-is-lowercase.c: Likewise.
57999         * tests/unicase/test-u32-is-titlecase.c: Likewise.
58000         * tests/unicase/test-u32-is-uppercase.c: Likewise.
58001         * tests/unicase/test-u32-tolower.c: Likewise.
58002         * tests/unicase/test-u32-totitle.c: Likewise.
58003         * tests/unicase/test-u32-toupper.c: Likewise.
58004         * tests/unicase/test-ulc-casecmp.c: Likewise.
58005         * tests/unicase/test-ulc-casecoll.c: Likewise.
58006         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58007         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
58008         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58009         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58010         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
58011         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
58012         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58013         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58014         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58015         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
58016         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58017         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58018         * tests/unictype/test-bidi_byname.c: Likewise.
58019         * tests/unictype/test-bidi_name.c: Likewise.
58020         * tests/unictype/test-bidi_of.c: Likewise.
58021         * tests/unictype/test-bidi_test.c: Likewise.
58022         * tests/unictype/test-block_list.c: Likewise.
58023         * tests/unictype/test-block_of.c: Likewise.
58024         * tests/unictype/test-block_test.c: Likewise.
58025         * tests/unictype/test-categ_and.c: Likewise.
58026         * tests/unictype/test-categ_and_not.c: Likewise.
58027         * tests/unictype/test-categ_byname.c: Likewise.
58028         * tests/unictype/test-categ_name.c: Likewise.
58029         * tests/unictype/test-categ_none.c: Likewise.
58030         * tests/unictype/test-categ_of.c: Likewise.
58031         * tests/unictype/test-categ_or.c: Likewise.
58032         * tests/unictype/test-categ_test_withtable.c: Likewise.
58033         * tests/unictype/test-combining.c: Likewise.
58034         * tests/unictype/test-decdigit.c: Likewise.
58035         * tests/unictype/test-digit.c: Likewise.
58036         * tests/unictype/test-mirror.c: Likewise.
58037         * tests/unictype/test-numeric.c: Likewise.
58038         * tests/unictype/test-pr_byname.c: Likewise.
58039         * tests/unictype/test-pr_test.c: Likewise.
58040         * tests/unictype/test-predicate-part1.h: Likewise.
58041         * tests/unictype/test-scripts.c: Likewise.
58042         * tests/unictype/test-sy_c_ident.c: Likewise.
58043         * tests/unictype/test-sy_java_ident.c: Likewise.
58044         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
58045         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
58046         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
58047         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
58048         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
58049         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
58050         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
58051         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
58052         * tests/uninorm/test-canonical-decomposition.c: Likewise.
58053         * tests/uninorm/test-compat-decomposition.c: Likewise.
58054         * tests/uninorm/test-composition.c: Likewise.
58055         * tests/uninorm/test-decomposing-form.c: Likewise.
58056         * tests/uninorm/test-decomposition.c: Likewise.
58057         * tests/uninorm/test-u8-nfc.c: Likewise.
58058         * tests/uninorm/test-u8-nfd.c: Likewise.
58059         * tests/uninorm/test-u8-nfkc.c: Likewise.
58060         * tests/uninorm/test-u8-nfkd.c: Likewise.
58061         * tests/uninorm/test-u8-normcmp.c: Likewise.
58062         * tests/uninorm/test-u8-normcoll.c: Likewise.
58063         * tests/uninorm/test-u16-nfc.c: Likewise.
58064         * tests/uninorm/test-u16-nfd.c: Likewise.
58065         * tests/uninorm/test-u16-nfkc.c: Likewise.
58066         * tests/uninorm/test-u16-nfkd.c: Likewise.
58067         * tests/uninorm/test-u16-normcmp.c: Likewise.
58068         * tests/uninorm/test-u16-normcoll.c: Likewise.
58069         * tests/uninorm/test-u32-nfc.c: Likewise.
58070         * tests/uninorm/test-u32-nfd.c: Likewise.
58071         * tests/uninorm/test-u32-nfkc.c: Likewise.
58072         * tests/uninorm/test-u32-nfkd.c: Likewise.
58073         * tests/uninorm/test-u32-normalize-big.c: Likewise.
58074         * tests/uninorm/test-u32-normcmp.c: Likewise.
58075         * tests/uninorm/test-u32-normcoll.c: Likewise.
58076         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
58077         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
58078         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
58079         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
58080         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
58081         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
58082         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
58083         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
58084         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
58085         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
58086         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
58087         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
58088         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
58089         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
58090         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
58091         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
58092         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
58093         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
58094         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
58095         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
58096         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
58097         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
58098         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
58099         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
58100         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
58101         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
58102         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
58103         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
58104         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
58105         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
58106         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
58107         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
58108         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
58109         * tests/uniwidth/test-u8-strwidth.c: Likewise.
58110         * tests/uniwidth/test-u8-width.c: Likewise.
58111         * tests/uniwidth/test-u16-strwidth.c: Likewise.
58112         * tests/uniwidth/test-u16-width.c: Likewise.
58113         * tests/uniwidth/test-u32-strwidth.c: Likewise.
58114         * tests/uniwidth/test-u32-width.c: Likewise.
58115         * tests/uniwidth/test-uc_width.c: Likewise.
58116         * tests/uniwidth/test-uc_width2.c: Likewise.
58117         * modules/acl-tests (Files): Add tests/macros.h.
58118         * modules/areadlink-tests (Files): Likewise.
58119         * modules/areadlink-with-size-tests (Files): Likewise.
58120         * modules/areadlinkat-tests (Files): Likewise.
58121         * modules/areadlinkat-with-size-tests (Files): Likewise.
58122         * modules/argmatch-tests (Files): Likewise.
58123         * modules/argv-iter-tests (Files): Likewise.
58124         * modules/array-list-tests (Files): Likewise.
58125         * modules/array-mergesort-tests (Files): Likewise.
58126         * modules/array-oset-tests (Files): Likewise.
58127         * modules/avltree-list-tests (Files): Likewise.
58128         * modules/avltree-oset-tests (Files): Likewise.
58129         * modules/avltreehash-list-tests (Files): Likewise.
58130         * modules/base64-tests (Files): Likewise.
58131         * modules/binary-io-tests (Files): Likewise.
58132         * modules/bitrotate-tests (Files): Likewise.
58133         * modules/btowc-tests (Files): Likewise.
58134         * modules/byteswap-tests (Files): Likewise.
58135         * modules/c-ctype-tests (Files): Likewise.
58136         * modules/c-stack-tests (Files): Likewise.
58137         * modules/c-strcase-tests (Files): Likewise.
58138         * modules/c-strcasestr-tests (Files): Likewise.
58139         * modules/c-strstr-tests (Files): Likewise.
58140         * modules/canonicalize-lgpl-tests (Files): Likewise.
58141         * modules/canonicalize-tests (Files): Likewise.
58142         * modules/carray-list-tests (Files): Likewise.
58143         * modules/ceilf-tests (Files): Likewise.
58144         * modules/ceill-tests (Files): Likewise.
58145         * modules/chown-tests (Files): Likewise.
58146         * modules/cloexec-tests (Files): Likewise.
58147         * modules/copy-file-tests (Files): Likewise.
58148         * modules/count-one-bits-tests (Files): Likewise.
58149         * modules/dprintf-posix-tests (Files): Likewise.
58150         * modules/dup2-tests (Files): Likewise.
58151         * modules/dup3-tests (Files): Likewise.
58152         * modules/duplocale-tests (Files): Likewise.
58153         * modules/fbufmode-tests (Files): Likewise.
58154         * modules/fchdir-tests (Files): Likewise.
58155         * modules/fcntl-safer-tests (Files): Likewise.
58156         * modules/fcntl-tests (Files): Likewise.
58157         * modules/fdopendir-tests (Files): Likewise.
58158         * modules/fdutimensat-tests (Files): Likewise.
58159         * modules/fflush-tests (Files): Likewise.
58160         * modules/filevercmp-tests (Files): Likewise.
58161         * modules/flock-tests (Files): Likewise.
58162         * modules/floorf-tests (Files): Likewise.
58163         * modules/floorl-tests (Files): Likewise.
58164         * modules/fnmatch-tests (Files): Likewise.
58165         * modules/fopen-safer-tests (Files): Likewise.
58166         * modules/fopen-tests (Files): Likewise.
58167         * modules/fpending-tests (Files): Likewise.
58168         * modules/fprintf-posix-tests (Files): Likewise.
58169         * modules/fpurge-tests (Files): Likewise.
58170         * modules/freadable-tests (Files): Likewise.
58171         * modules/freadahead-tests (Files): Likewise.
58172         * modules/freading-tests (Files): Likewise.
58173         * modules/freadptr-tests (Files): Likewise.
58174         * modules/freadseek-tests (Files): Likewise.
58175         * modules/freopen-tests (Files): Likewise.
58176         * modules/frexp-nolibm-tests (Files): Likewise.
58177         * modules/frexp-tests (Files): Likewise.
58178         * modules/frexpl-nolibm-tests (Files): Likewise.
58179         * modules/frexpl-tests (Files): Likewise.
58180         * modules/fseek-tests (Files): Likewise.
58181         * modules/fseeko-tests (Files): Likewise.
58182         * modules/fstrcmp-tests (Files): Likewise.
58183         * modules/fsync-tests (Files): Likewise.
58184         * modules/ftell-tests (Files): Likewise.
58185         * modules/ftello-tests (Files): Likewise.
58186         * modules/func-tests (Files): Likewise.
58187         * modules/futimens-tests (Files): Likewise.
58188         * modules/fwritable-tests (Files): Likewise.
58189         * modules/fwriting-tests (Files): Likewise.
58190         * modules/getcwd-tests (Files): Likewise.
58191         * modules/getdate-tests (Files): Likewise.
58192         * modules/getdelim-tests (Files): Likewise.
58193         * modules/getdtablesize-tests (Files): Likewise.
58194         * modules/getgroups-tests (Files): Likewise.
58195         * modules/getline-tests (Files): Likewise.
58196         * modules/getndelim2-tests (Files): Likewise.
58197         * modules/glob-tests (Files): Likewise.
58198         * modules/hash-tests (Files): Likewise.
58199         * modules/i-ring-tests (Files): Likewise.
58200         * modules/iconv-tests (Files): Likewise.
58201         * modules/iconv_open-utf-tests (Files): Likewise.
58202         * modules/idpriv-drop-tests (Files): Likewise.
58203         * modules/idpriv-droptemp-tests (Files): Likewise.
58204         * modules/inet_ntop-tests (Files): Likewise.
58205         * modules/inet_pton-tests (Files): Likewise.
58206         * modules/isblank-tests (Files): Likewise.
58207         * modules/isfinite-tests (Files): Likewise.
58208         * modules/isinf-tests (Files): Likewise.
58209         * modules/isnan-tests (Files): Likewise.
58210         * modules/isnand-nolibm-tests (Files): Likewise.
58211         * modules/isnand-tests (Files): Likewise.
58212         * modules/isnanf-nolibm-tests (Files): Likewise.
58213         * modules/isnanf-tests (Files): Likewise.
58214         * modules/isnanl-nolibm-tests (Files): Likewise.
58215         * modules/isnanl-tests (Files): Likewise.
58216         * modules/lchown-tests (Files): Likewise.
58217         * modules/ldexpl-tests (Files): Likewise.
58218         * modules/link-tests (Files): Likewise.
58219         * modules/linkat-tests (Files): Likewise.
58220         * modules/linked-list-tests (Files): Likewise.
58221         * modules/linkedhash-list-tests (Files): Likewise.
58222         * modules/localename-tests (Files): Likewise.
58223         * modules/lseek-tests (Files): Likewise.
58224         * modules/lstat-tests (Files): Likewise.
58225         * modules/mbmemcasecmp-tests (Files): Likewise.
58226         * modules/mbmemcasecoll-tests (Files): Likewise.
58227         * modules/mbrtowc-tests (Files): Likewise.
58228         * modules/mbscasecmp-tests (Files): Likewise.
58229         * modules/mbscasestr-tests (Files): Likewise.
58230         * modules/mbschr-tests (Files): Likewise.
58231         * modules/mbscspn-tests (Files): Likewise.
58232         * modules/mbsinit-tests (Files): Likewise.
58233         * modules/mbsncasecmp-tests (Files): Likewise.
58234         * modules/mbsnrtowcs-tests (Files): Likewise.
58235         * modules/mbspbrk-tests (Files): Likewise.
58236         * modules/mbspcasecmp-tests (Files): Likewise.
58237         * modules/mbsrchr-tests (Files): Likewise.
58238         * modules/mbsrtowcs-tests (Files): Likewise.
58239         * modules/mbsspn-tests (Files): Likewise.
58240         * modules/mbsstr-tests (Files): Likewise.
58241         * modules/memchr-tests (Files): Likewise.
58242         * modules/memchr2-tests (Files): Likewise.
58243         * modules/memcmp-tests (Files): Likewise.
58244         * modules/memmem-tests (Files): Likewise.
58245         * modules/memrchr-tests (Files): Likewise.
58246         * modules/mkdir-tests (Files): Likewise.
58247         * modules/mkfifo-tests (Files): Likewise.
58248         * modules/mkfifoat-tests (Files): Likewise.
58249         * modules/mknod-tests (Files): Likewise.
58250         * modules/nanosleep-tests (Files): Likewise.
58251         * modules/nl_langinfo-tests (Files): Likewise.
58252         * modules/obstack-printf-tests (Files): Likewise.
58253         * modules/open-tests (Files): Likewise.
58254         * modules/openat-tests (Files): Likewise.
58255         * modules/pipe-filter-gi-tests (Files): Likewise.
58256         * modules/pipe-filter-ii-tests (Files): Likewise.
58257         * modules/pipe2-tests (Files): Likewise.
58258         * modules/popen-safer-tests (Files): Likewise.
58259         * modules/popen-tests (Files): Likewise.
58260         * modules/posixtm-tests (Files): Likewise.
58261         * modules/pread-tests (Files): Likewise.
58262         * modules/printf-frexp-tests (Files): Likewise.
58263         * modules/printf-frexpl-tests (Files): Likewise.
58264         * modules/printf-posix-tests (Files): Likewise.
58265         * modules/priv-set-tests (Files): Likewise.
58266         * modules/quotearg-tests (Files): Likewise.
58267         * modules/random_r-tests (Files): Likewise.
58268         * modules/rawmemchr-tests (Files): Likewise.
58269         * modules/rbtree-list-tests (Files): Likewise.
58270         * modules/rbtree-oset-tests (Files): Likewise.
58271         * modules/rbtreehash-list-tests (Files): Likewise.
58272         * modules/readlink-tests (Files): Likewise.
58273         * modules/remove-tests (Files): Likewise.
58274         * modules/rename-tests (Files): Likewise.
58275         * modules/renameat-tests (Files): Likewise.
58276         * modules/rmdir-tests (Files): Likewise.
58277         * modules/round-tests (Files): Likewise.
58278         * modules/roundf-tests (Files): Likewise.
58279         * modules/roundl-tests (Files): Likewise.
58280         * modules/safe-alloc-tests (Files): Likewise.
58281         * modules/setenv-tests (Files): Likewise.
58282         * modules/sigaction-tests (Files): Likewise.
58283         * modules/signbit-tests (Files): Likewise.
58284         * modules/sleep-tests (Files): Likewise.
58285         * modules/snprintf-posix-tests (Files): Likewise.
58286         * modules/snprintf-tests (Files): Likewise.
58287         * modules/sprintf-posix-tests (Files): Likewise.
58288         * modules/stat-tests (Files): Likewise.
58289         * modules/stat-time-tests (Files): Likewise.
58290         * modules/strcasestr-tests (Files): Likewise.
58291         * modules/strchrnul-tests (Files): Likewise.
58292         * modules/strerror-tests (Files): Likewise.
58293         * modules/striconv-tests (Files): Likewise.
58294         * modules/striconveh-tests (Files): Likewise.
58295         * modules/striconveha-tests (Files): Likewise.
58296         * modules/strsignal-tests (Files): Likewise.
58297         * modules/strstr-tests (Files): Likewise.
58298         * modules/strtod-tests (Files): Likewise.
58299         * modules/strverscmp-tests (Files): Likewise.
58300         * modules/symlink-tests (Files): Likewise.
58301         * modules/symlinkat-tests (Files): Likewise.
58302         * modules/trunc-tests (Files): Likewise.
58303         * modules/truncf-tests (Files): Likewise.
58304         * modules/truncl-tests (Files): Likewise.
58305         * modules/uname-tests (Files): Likewise.
58306         * modules/unicase/cased-tests (Files): Likewise.
58307         * modules/unicase/ignorable-tests (Files): Likewise.
58308         * modules/unicase/locale-language-tests (Files): Likewise.
58309         * modules/unicase/tolower-tests (Files): Likewise.
58310         * modules/unicase/totitle-tests (Files): Likewise.
58311         * modules/unicase/toupper-tests (Files): Likewise.
58312         * modules/unicase/u8-casecmp-tests (Files): Likewise.
58313         * modules/unicase/u8-casecoll-tests (Files): Likewise.
58314         * modules/unicase/u8-casefold-tests (Files): Likewise.
58315         * modules/unicase/u8-is-cased-tests (Files): Likewise.
58316         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
58317         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
58318         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
58319         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
58320         * modules/unicase/u8-tolower-tests (Files): Likewise.
58321         * modules/unicase/u8-totitle-tests (Files): Likewise.
58322         * modules/unicase/u8-toupper-tests (Files): Likewise.
58323         * modules/unicase/u16-casecmp-tests (Files): Likewise.
58324         * modules/unicase/u16-casecoll-tests (Files): Likewise.
58325         * modules/unicase/u16-casefold-tests (Files): Likewise.
58326         * modules/unicase/u16-is-cased-tests (Files): Likewise.
58327         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
58328         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
58329         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
58330         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
58331         * modules/unicase/u16-tolower-tests (Files): Likewise.
58332         * modules/unicase/u16-totitle-tests (Files): Likewise.
58333         * modules/unicase/u16-toupper-tests (Files): Likewise.
58334         * modules/unicase/u32-casecmp-tests (Files): Likewise.
58335         * modules/unicase/u32-casecoll-tests (Files): Likewise.
58336         * modules/unicase/u32-casefold-tests (Files): Likewise.
58337         * modules/unicase/u32-is-cased-tests (Files): Likewise.
58338         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
58339         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
58340         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
58341         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
58342         * modules/unicase/u32-tolower-tests (Files): Likewise.
58343         * modules/unicase/u32-totitle-tests (Files): Likewise.
58344         * modules/unicase/u32-toupper-tests (Files): Likewise.
58345         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
58346         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
58347         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
58348         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
58349         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
58350         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
58351         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
58352         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
58353         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
58354         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
58355         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
58356         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
58357         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
58358         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
58359         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
58360         * modules/unictype/bidicategory-name-tests (Files): Likewise.
58361         * modules/unictype/bidicategory-of-tests (Files): Likewise.
58362         * modules/unictype/bidicategory-test-tests (Files): Likewise.
58363         * modules/unictype/block-list-tests (Files): Likewise.
58364         * modules/unictype/block-of-tests (Files): Likewise.
58365         * modules/unictype/block-test-tests (Files): Likewise.
58366         * modules/unictype/category-C-tests (Files): Likewise.
58367         * modules/unictype/category-Cc-tests (Files): Likewise.
58368         * modules/unictype/category-Cf-tests (Files): Likewise.
58369         * modules/unictype/category-Cn-tests (Files): Likewise.
58370         * modules/unictype/category-Co-tests (Files): Likewise.
58371         * modules/unictype/category-Cs-tests (Files): Likewise.
58372         * modules/unictype/category-L-tests (Files): Likewise.
58373         * modules/unictype/category-Ll-tests (Files): Likewise.
58374         * modules/unictype/category-Lm-tests (Files): Likewise.
58375         * modules/unictype/category-Lo-tests (Files): Likewise.
58376         * modules/unictype/category-Lt-tests (Files): Likewise.
58377         * modules/unictype/category-Lu-tests (Files): Likewise.
58378         * modules/unictype/category-M-tests (Files): Likewise.
58379         * modules/unictype/category-Mc-tests (Files): Likewise.
58380         * modules/unictype/category-Me-tests (Files): Likewise.
58381         * modules/unictype/category-Mn-tests (Files): Likewise.
58382         * modules/unictype/category-N-tests (Files): Likewise.
58383         * modules/unictype/category-Nd-tests (Files): Likewise.
58384         * modules/unictype/category-Nl-tests (Files): Likewise.
58385         * modules/unictype/category-No-tests (Files): Likewise.
58386         * modules/unictype/category-P-tests (Files): Likewise.
58387         * modules/unictype/category-Pc-tests (Files): Likewise.
58388         * modules/unictype/category-Pd-tests (Files): Likewise.
58389         * modules/unictype/category-Pe-tests (Files): Likewise.
58390         * modules/unictype/category-Pf-tests (Files): Likewise.
58391         * modules/unictype/category-Pi-tests (Files): Likewise.
58392         * modules/unictype/category-Po-tests (Files): Likewise.
58393         * modules/unictype/category-Ps-tests (Files): Likewise.
58394         * modules/unictype/category-S-tests (Files): Likewise.
58395         * modules/unictype/category-Sc-tests (Files): Likewise.
58396         * modules/unictype/category-Sk-tests (Files): Likewise.
58397         * modules/unictype/category-Sm-tests (Files): Likewise.
58398         * modules/unictype/category-So-tests (Files): Likewise.
58399         * modules/unictype/category-Z-tests (Files): Likewise.
58400         * modules/unictype/category-Zl-tests (Files): Likewise.
58401         * modules/unictype/category-Zp-tests (Files): Likewise.
58402         * modules/unictype/category-Zs-tests (Files): Likewise.
58403         * modules/unictype/category-and-not-tests (Files): Likewise.
58404         * modules/unictype/category-and-tests (Files): Likewise.
58405         * modules/unictype/category-byname-tests (Files): Likewise.
58406         * modules/unictype/category-name-tests (Files): Likewise.
58407         * modules/unictype/category-none-tests (Files): Likewise.
58408         * modules/unictype/category-of-tests (Files): Likewise.
58409         * modules/unictype/category-or-tests (Files): Likewise.
58410         * modules/unictype/category-test-withtable-tests (Files): Likewise.
58411         * modules/unictype/combining-class-tests (Files): Likewise.
58412         * modules/unictype/ctype-alnum-tests (Files): Likewise.
58413         * modules/unictype/ctype-alpha-tests (Files): Likewise.
58414         * modules/unictype/ctype-blank-tests (Files): Likewise.
58415         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
58416         * modules/unictype/ctype-digit-tests (Files): Likewise.
58417         * modules/unictype/ctype-graph-tests (Files): Likewise.
58418         * modules/unictype/ctype-lower-tests (Files): Likewise.
58419         * modules/unictype/ctype-print-tests (Files): Likewise.
58420         * modules/unictype/ctype-punct-tests (Files): Likewise.
58421         * modules/unictype/ctype-space-tests (Files): Likewise.
58422         * modules/unictype/ctype-upper-tests (Files): Likewise.
58423         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
58424         * modules/unictype/decimal-digit-tests (Files): Likewise.
58425         * modules/unictype/digit-tests (Files): Likewise.
58426         * modules/unictype/mirror-tests (Files): Likewise.
58427         * modules/unictype/numeric-tests (Files): Likewise.
58428         * modules/unictype/property-alphabetic-tests (Files): Likewise.
58429         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
58430         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
58431         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
58432         Likewise.
58433         * modules/unictype/property-bidi-block-separator-tests (Files):
58434         Likewise.
58435         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
58436         Likewise.
58437         * modules/unictype/property-bidi-common-separator-tests (Files):
58438         Likewise.
58439         * modules/unictype/property-bidi-control-tests (Files): Likewise.
58440         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
58441         Likewise.
58442         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
58443         Likewise.
58444         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
58445         Likewise.
58446         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
58447         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
58448         Likewise.
58449         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
58450         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
58451         Likewise.
58452         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
58453         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
58454         * modules/unictype/property-bidi-segment-separator-tests (Files):
58455         Likewise.
58456         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
58457         * modules/unictype/property-byname-tests (Files): Likewise.
58458         * modules/unictype/property-combining-tests (Files): Likewise.
58459         * modules/unictype/property-composite-tests (Files): Likewise.
58460         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
58461         * modules/unictype/property-dash-tests (Files): Likewise.
58462         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
58463         * modules/unictype/property-default-ignorable-code-point-tests (Files):
58464         Likewise.
58465         * modules/unictype/property-deprecated-tests (Files): Likewise.
58466         * modules/unictype/property-diacritic-tests (Files): Likewise.
58467         * modules/unictype/property-extender-tests (Files): Likewise.
58468         * modules/unictype/property-format-control-tests (Files): Likewise.
58469         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
58470         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
58471         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
58472         * modules/unictype/property-hex-digit-tests (Files): Likewise.
58473         * modules/unictype/property-hyphen-tests (Files): Likewise.
58474         * modules/unictype/property-id-continue-tests (Files): Likewise.
58475         * modules/unictype/property-id-start-tests (Files): Likewise.
58476         * modules/unictype/property-ideographic-tests (Files): Likewise.
58477         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
58478         * modules/unictype/property-ids-trinary-operator-tests (Files):
58479         Likewise.
58480         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
58481         * modules/unictype/property-iso-control-tests (Files): Likewise.
58482         * modules/unictype/property-join-control-tests (Files): Likewise.
58483         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
58484         * modules/unictype/property-line-separator-tests (Files): Likewise.
58485         * modules/unictype/property-logical-order-exception-tests (Files):
58486         Likewise.
58487         * modules/unictype/property-lowercase-tests (Files): Likewise.
58488         * modules/unictype/property-math-tests (Files): Likewise.
58489         * modules/unictype/property-non-break-tests (Files): Likewise.
58490         * modules/unictype/property-not-a-character-tests (Files): Likewise.
58491         * modules/unictype/property-numeric-tests (Files): Likewise.
58492         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
58493         * modules/unictype/property-other-default-ignorable-code-point-tests
58494         (Files): Likewise.
58495         * modules/unictype/property-other-grapheme-extend-tests (Files):
58496         Likewise.
58497         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
58498         * modules/unictype/property-other-id-start-tests (Files): Likewise.
58499         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
58500         * modules/unictype/property-other-math-tests (Files): Likewise.
58501         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
58502         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
58503         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
58504         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
58505         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
58506         * modules/unictype/property-private-use-tests (Files): Likewise.
58507         * modules/unictype/property-punctuation-tests (Files): Likewise.
58508         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
58509         * modules/unictype/property-radical-tests (Files): Likewise.
58510         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
58511         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
58512         * modules/unictype/property-space-tests (Files): Likewise.
58513         * modules/unictype/property-terminal-punctuation-tests (Files):
58514         Likewise.
58515         * modules/unictype/property-test-tests (Files): Likewise.
58516         * modules/unictype/property-titlecase-tests (Files): Likewise.
58517         * modules/unictype/property-unassigned-code-value-tests (Files):
58518         Likewise.
58519         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
58520         * modules/unictype/property-uppercase-tests (Files): Likewise.
58521         * modules/unictype/property-variation-selector-tests (Files): Likewise.
58522         * modules/unictype/property-white-space-tests (Files): Likewise.
58523         * modules/unictype/property-xid-continue-tests (Files): Likewise.
58524         * modules/unictype/property-xid-start-tests (Files): Likewise.
58525         * modules/unictype/property-zero-width-tests (Files): Likewise.
58526         * modules/unictype/scripts-tests (Files): Likewise.
58527         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
58528         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
58529         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
58530         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
58531         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
58532         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
58533         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
58534         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
58535         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
58536         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
58537         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
58538         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
58539         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
58540         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
58541         * modules/uninorm/composition-tests (Files): Likewise.
58542         * modules/uninorm/decomposing-form-tests (Files): Likewise.
58543         * modules/uninorm/decomposition-tests (Files): Likewise.
58544         * modules/uninorm/filter-tests (Files): Likewise.
58545         * modules/uninorm/nfc-tests (Files): Likewise.
58546         * modules/uninorm/nfd-tests (Files): Likewise.
58547         * modules/uninorm/nfkc-tests (Files): Likewise.
58548         * modules/uninorm/nfkd-tests (Files): Likewise.
58549         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
58550         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
58551         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
58552         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
58553         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
58554         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
58555         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
58556         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
58557         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
58558         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
58559         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
58560         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
58561         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
58562         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
58563         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
58564         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
58565         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
58566         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
58567         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
58568         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
58569         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
58570         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
58571         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
58572         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
58573         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
58574         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
58575         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
58576         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
58577         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
58578         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
58579         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
58580         * modules/uniwidth/u8-width-tests (Files): Likewise.
58581         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
58582         * modules/uniwidth/u16-width-tests (Files): Likewise.
58583         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
58584         * modules/uniwidth/u32-width-tests (Files): Likewise.
58585         * modules/uniwidth/width-tests (Files): Likewise.
58586         * modules/unlink-tests (Files): Likewise.
58587         * modules/unsetenv-tests (Files): Likewise.
58588         * modules/usleep-tests (Files): Likewise.
58589         * modules/utimens-tests (Files): Likewise.
58590         * modules/utimensat-tests (Files): Likewise.
58591         * modules/vasnprintf-posix-tests (Files): Likewise.
58592         * modules/vasnprintf-tests (Files): Likewise.
58593         * modules/vasprintf-posix-tests (Files): Likewise.
58594         * modules/vasprintf-tests (Files): Likewise.
58595         * modules/vdprintf-posix-tests (Files): Likewise.
58596         * modules/vfprintf-posix-tests (Files): Likewise.
58597         * modules/vprintf-posix-tests (Files): Likewise.
58598         * modules/vsnprintf-posix-tests (Files): Likewise.
58599         * modules/vsnprintf-tests (Files): Likewise.
58600         * modules/vsprintf-posix-tests (Files): Likewise.
58601         * modules/wcrtomb-tests (Files): Likewise.
58602         * modules/wcsnrtombs-tests (Files): Likewise.
58603         * modules/wcsrtombs-tests (Files): Likewise.
58604         * modules/wctype-tests (Files): Likewise.
58605         * modules/wcwidth-tests (Files): Likewise.
58606         * modules/xmemdup0-tests (Files): Likewise.
58607         * modules/xprintf-posix-tests (Files): Likewise.
58608         * modules/xvasprintf-tests (Files): Likewise.
58610 2009-12-24  Eric Blake  <ebb9@byu.net>
58612         test-nanosleep: fix typo
58613         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
58614         patch.
58615         Reported by Bruno Haible.
58617 2009-12-24  Bruno Haible  <bruno@clisp.org>
58619         Reduce namespace pollution on glibc systems.
58620         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
58621         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
58622         systems.
58623         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
58624         <getopt.h> on glibc systems.
58625         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
58626         systems.
58627         * lib/fcntl.c: Include <unistd.h> here instead.
58629 2009-12-24  Bruno Haible  <bruno@clisp.org>
58631         * lib/stdlib.in.h (includes): Fix typo in today's commit.
58633 2009-12-24  Eric Blake  <ebb9@byu.net>
58635         tests: add signature checks
58636         * tests/signature.h (SIGNATURE_CHECK): New file.
58637         * modules/atexit-tests (Files): Use it.
58638         * modules/btowc-tests (Files): Likewise.
58639         * modules/canonicalize-lgpl-tests (Files): Likewise.
58640         * modules/ceilf-tests (Files): Likewise.
58641         * modules/ceill-tests (Files): Likewise.
58642         * modules/chown-tests (Files): Likewise.
58643         * modules/dprintf-posix-tests (Files): Likewise.
58644         * modules/dup2-tests (Files): Likewise.
58645         * modules/dup3-tests (Files): Likewise.
58646         * modules/duplocale-tests (Files): Likewise.
58647         * modules/fchdir-tests (Files): Likewise.
58648         * modules/fcntl-tests (Files): Likewise.
58649         * modules/fdopendir-tests (Files): Likewise.
58650         * modules/fflush-tests (Files): Likewise.
58651         * modules/flock-tests (Files): Likewise.
58652         * modules/floorf-tests (Files): Likewise.
58653         * modules/floorl-tests (Files): Likewise.
58654         * modules/fnmatch-tests (Files): Likewise.
58655         * modules/fopen-tests (Files): Likewise.
58656         * modules/fprintf-posix-tests (Files): Likewise.
58657         * modules/freopen-tests (Files): Likewise.
58658         * modules/frexp-nolibm-tests (Files): Likewise.
58659         * modules/frexp-tests (Files): Likewise.
58660         * modules/frexpl-nolibm-tests (Files): Likewise.
58661         * modules/frexpl-tests (Files): Likewise.
58662         * modules/fseek-tests (Files): Likewise.
58663         * modules/fseeko-tests (Files): Likewise.
58664         * modules/fsync-tests (Files): Likewise.
58665         * modules/ftell-tests (Files): Likewise.
58666         * modules/ftello-tests (Files): Likewise.
58667         * modules/futimens-tests (Files): Likewise.
58668         * modules/getaddrinfo-tests (Files): Likewise.
58669         * modules/getcwd-tests (Files): Likewise.
58670         * modules/getdelim-tests (Files): Likewise.
58671         * modules/getdtablesize-tests (Files): Likewise.
58672         * modules/getgroups-tests (Files): Likewise.
58673         * modules/gethostname-tests (Files): Likewise.
58674         * modules/getline-tests (Files): Likewise.
58675         * modules/getopt-posix-tests (Files): Likewise.
58676         * modules/gettimeofday-tests (Files): Likewise.
58677         * modules/glob-tests (Files): Likewise.
58678         * modules/iconv-tests (Files): Likewise.
58679         * modules/inet_ntop-tests (Files): Likewise.
58680         * modules/inet_pton-tests (Files): Likewise.
58681         * modules/isblank-tests (Files): Likewise.
58682         * modules/lchown-tests (Files): Likewise.
58683         * modules/ldexpl-tests (Files): Likewise.
58684         * modules/link-tests (Files): Likewise.
58685         * modules/linkat-tests (Files): Likewise.
58686         * modules/lseek-tests (Files): Likewise.
58687         * modules/lstat-tests (Files): Likewise.
58688         * modules/mbrtowc-tests (Files): Likewise.
58689         * modules/mbsinit-tests (Files): Likewise.
58690         * modules/mbsnrtowcs-tests (Files): Likewise.
58691         * modules/mbsrtowcs-tests (Files): Likewise.
58692         * modules/memchr-tests (Files): Likewise.
58693         * modules/memcmp-tests (Files): Likewise.
58694         * modules/memmem-tests (Files): Likewise.
58695         * modules/memrchr-tests (Files): Likewise.
58696         * modules/mkdir-tests (Files): Likewise.
58697         * modules/mkfifo-tests (Files): Likewise.
58698         * modules/mkfifoat-tests (Files): Likewise.
58699         * modules/mknod-tests (Files): Likewise.
58700         * modules/nanosleep-tests (Files): Likewise.
58701         * modules/nl_langinfo-tests (Files): Likewise.
58702         * modules/obstack-printf-tests (Files): Likewise.
58703         * modules/open-tests (Files): Likewise.
58704         * modules/openat-tests (Files): Likewise.
58705         * modules/perror-tests (Files): Likewise.
58706         * modules/pipe2-tests (Files): Likewise.
58707         * modules/poll-tests (Files): Likewise.
58708         * modules/popen-tests (Files): Likewise.
58709         * modules/posix_spawn-tests (Files): Likewise.
58710         * modules/posix_spawnp-tests (Files): Likewise.
58711         * modules/pread-tests (Files): Likewise.
58712         * modules/printf-posix-tests (Files): Likewise.
58713         * modules/pty-tests (Files): Likewise.
58714         * modules/random_r-tests (Files): Likewise.
58715         * modules/rawmemchr-tests (Files): Likewise.
58716         * modules/readlink-tests (Files): Likewise.
58717         * modules/remove-tests (Files): Likewise.
58718         * modules/rename-tests (Files): Likewise.
58719         * modules/renameat-tests (Files): Likewise.
58720         * modules/rmdir-tests (Files): Likewise.
58721         * modules/round-tests (Files): Likewise.
58722         * modules/roundf-tests (Files): Likewise.
58723         * modules/roundl-tests (Files): Likewise.
58724         * modules/select-tests (Files): Likewise.
58725         * modules/setenv-tests (Files): Likewise.
58726         * modules/sigaction-tests (Files): Likewise.
58727         * modules/sleep-tests (Files): Likewise.
58728         * modules/snprintf-posix-tests (Files): Likewise.
58729         * modules/snprintf-tests (Files): Likewise.
58730         * modules/sprintf-posix-tests (Files): Likewise.
58731         * modules/stat-tests (Files): Likewise.
58732         * modules/strcasestr-tests (Files): Likewise.
58733         * modules/strchrnul-tests (Files): Likewise.
58734         * modules/strerror-tests (Files): Likewise.
58735         * modules/strsignal-tests (Files): Likewise.
58736         * modules/strstr-tests (Files): Likewise.
58737         * modules/strtod-tests (Files): Likewise.
58738         * modules/strverscmp-tests (Files): Likewise.
58739         * modules/symlink-tests (Files): Likewise.
58740         * modules/symlinkat-tests (Files): Likewise.
58741         * modules/times-tests (Files): Likewise.
58742         * modules/trunc-tests (Files): Likewise.
58743         * modules/truncf-tests (Files): Likewise.
58744         * modules/truncl-tests (Files): Likewise.
58745         * modules/tsearch-tests (Files): Likewise.
58746         * modules/uname-tests (Files): Likewise.
58747         * modules/unlink-tests (Files): Likewise.
58748         * modules/unsetenv-tests (Files): Likewise.
58749         * modules/usleep-tests (Files): Likewise.
58750         * modules/utimensat-tests (Files): Likewise.
58751         * modules/vasprintf-tests (Files): Likewise.
58752         * modules/vdprintf-posix-tests (Files): Likewise.
58753         * modules/vfprintf-posix-tests (Files): Likewise.
58754         * modules/vprintf-posix-tests (Files): Likewise.
58755         * modules/vsnprintf-posix-tests (Files): Likewise.
58756         * modules/vsnprintf-tests (Files): Likewise.
58757         * modules/vsprintf-posix-tests (Files): Likewise.
58758         * modules/wcrtomb-tests (Files): Likewise.
58759         * modules/wcsnrtombs-tests (Files): Likewise.
58760         * modules/wcsrtombs-tests (Files): Likewise.
58761         * modules/wcwidth-tests (Files): Likewise.
58762         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
58763         * tests/test-isinf.c (isinf): Likewise.
58764         * tests/test-isnan.c (isnan): Likewise.
58765         * tests/test-signbit.c (signbit): Likewise.
58766         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
58767         declaration, either as macro or with correct signature.
58768         (select): Ensure function under test is declared with correct
58769         signature in correct header.
58770         * tests/test-atexit.c (atexit): Likewise.
58771         * tests/test-btowc.c (btowc): Likewise.
58772         * tests/test-canonicalize-lgpl.c (realpath)
58773         (canonicalize_file_name): Likewise.
58774         * tests/test-ceilf1.c (ceilf): Likewise.
58775         * tests/test-ceill.c (ceill): Likewise.
58776         * tests/test-chown.c (chown): Likewise.
58777         * tests/test-dprintf-posix.c (dprintf): Likewise.
58778         * tests/test-dup2.c (dup2): Likewise.
58779         * tests/test-dup3.c (dup3): Likewise.
58780         * tests/test-duplocale.c (duplocale): Likewise.
58781         * tests/test-fchdir.c (fchdir): Likewise.
58782         * tests/test-fchownat.c (fchownat): Likewise.
58783         * tests/test-fcntl.c (fcntl): Likewise.
58784         * tests/test-fdopendir.c (fdopendir): Likewise.
58785         * tests/test-fflush.c (fflush): Likewise.
58786         * tests/test-flock.c (flock): Likewise.
58787         * tests/test-floorf1.c (floorf): Likewise.
58788         * tests/test-floorl.c (floorl): Likewise.
58789         * tests/test-fnmatch.c (fnmatch): Likewise.
58790         * tests/test-fopen.c (fopen): Likewise.
58791         * tests/test-fprintf-posix.c (fprintf): Likewise.
58792         * tests/test-freopen.c (freopen): Likewise.
58793         * tests/test-frexp.c (frexp): Likewise.
58794         * tests/test-frexpl.c (frexpl): Likewise.
58795         * tests/test-fseek.c (fseek): Likewise.
58796         * tests/test-fseeko.c (fseeko): Likewise.
58797         * tests/test-fstatat.c (fstatat): Likewise.
58798         * tests/test-fsync.c (fsync): Likewise.
58799         * tests/test-ftell.c (ftell): Likewise.
58800         * tests/test-ftello.c (ftello): Likewise.
58801         * tests/test-futimens.c (futimens): Likewise.
58802         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
58803         (gai_strerror): Likewise.
58804         * tests/test-getcwd.c (getcwd): Likewise.
58805         * tests/test-getdelim.c (getdelim): Likewise.
58806         * tests/test-getdtablesize.c (getdtablesize): Likewise.
58807         * tests/test-getgroups.c (getgroups): Likewise.
58808         * tests/test-gethostname.c (gethostname): Likewise.
58809         * tests/test-getline.c (getline): Likewise.
58810         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
58811         Likewise.
58812         * tests/test-gettimeofday.c (gettimeofday): Likewise.
58813         * tests/test-glob.c (glob, globfree): Likewise.
58814         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
58815         * tests/test-inet_ntop.c (inet_ntop): Likewise.
58816         * tests/test-inet_pton.c (inet_pton): Likewise.
58817         * tests/test-isblank.c (isblank): Likewise.
58818         * tests/test-lchown.c (lchown): Likewise.
58819         * tests/test-ldexpl.c (ldexpl): Likewise.
58820         * tests/test-link.c (link): Likewise.
58821         * tests/test-linkat.c (linkat): Likewise.
58822         * tests/test-lseek.c (lseek): Likewise.
58823         * tests/test-lstat.c (lstat): Likewise.
58824         * tests/test-mbrtowc.c (mbrtowc): Likewise.
58825         * tests/test-mbsinit.c (mbsinit): Likewise.
58826         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
58827         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
58828         * tests/test-memchr.c (memchr): Likewise.
58829         * tests/test-memcmp.c (memcmp): Likewise.
58830         * tests/test-memmem.c (memmem): Likewise.
58831         * tests/test-memrchr.c (memrchr): Likewise.
58832         * tests/test-mkdir.c (mkdir): Likewise.
58833         * tests/test-mkdirat.c (mkdirat): Likewise.
58834         * tests/test-mkfifo.c (mkfifo): Likewise.
58835         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
58836         * tests/test-mknod.c (mknod): Likewise.
58837         * tests/test-nanosleep.c (nanosleep): Likewise.
58838         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
58839         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
58840         Likewise.
58841         * tests/test-open.c (open): Likewise.
58842         * tests/test-openat.c (openat): Likewise.
58843         * tests/test-perror.c (perror): Likewise.
58844         * tests/test-pipe2.c (pipe2): Likewise.
58845         * tests/test-poll.c (poll): Likewise.
58846         * tests/test-popen.c (popen, pclose): Likewise.
58847         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
58848         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
58849         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
58850         (posix_spawn_file_actions_destroy)
58851         (posix_spawn_file_actions_addclose)
58852         (posix_spawn_file_actions_addopen)
58853         (posix_spawn_file_actions_adddup2): Likewise.
58854         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
58855         * tests/test-pread.c (pread): Likewise.
58856         * tests/test-printf-posix.c (printf): Likewise.
58857         * tests/test-pty.c (openpty, forkpty): Likewise.
58858         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
58859         (random_r): Likewise.
58860         * tests/test-rawmemchr.c (rawmemchr): Likewise.
58861         * tests/test-readlink.c (readlink): Likewise.
58862         * tests/test-remove.c (remove): Likewise.
58863         * tests/test-rename.c (rename): Likewise.
58864         * tests/test-renameat.c (renameat): Likewise.
58865         * tests/test-rmdir.c (rmdir): Likewise.
58866         * tests/test-round1.c (round): Likewise.
58867         * tests/test-roundf1.c (roundf): Likewise.
58868         * tests/test-roundl.c (roundl): Likewise.
58869         * tests/test-setenv.c (setenv): Likewise.
58870         * tests/test-sigaction.c (sigaction): Likewise.
58871         * tests/test-sleep.c (sleep): Likewise.
58872         * tests/test-snprintf.c (snprintf): Likewise.
58873         * tests/test-sprintf-posix.c (sprintf): Likewise.
58874         * tests/test-stat.c (stat): Likewise.
58875         * tests/test-stpncpy.c (stpncpy): Likewise.
58876         * tests/test-strcasestr.c (strcasestr): Likewise.
58877         * tests/test-strchrnul.c (strchrnul): Likewise.
58878         * tests/test-strerror.c (strerror): Likewise.
58879         * tests/test-strsignal.c (strsignal): Likewise.
58880         * tests/test-strstr.c (strstr): Likewise.
58881         * tests/test-strtod.c (strtod): Likewise.
58882         * tests/test-strverscmp.c (strverscmp): Likewise.
58883         * tests/test-symlink.c (symlink): Likewise.
58884         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
58885         * tests/test-times.c (times): Likewise.
58886         * tests/test-trunc1.c (trunc): Likewise.
58887         * tests/test-truncf1.c (truncf): Likewise.
58888         * tests/test-truncl.c (truncl): Likewise.
58889         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
58890         Likewise.
58891         * tests/test-uname.c (uname): Likewise.
58892         * tests/test-unlink.c (unlink): Likewise.
58893         * tests/test-unlinkat.c (unlinkat): Likewise.
58894         * tests/test-unsetenv.c (unsetenv): Likewise.
58895         * tests/test-usleep.c (usleep): Likewise.
58896         * tests/test-utimensat.c (utimensat): Likewise.
58897         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
58898         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
58899         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
58900         * tests/test-vprintf-posix.c (vprintf): Likewise.
58901         * tests/test-vsnprintf.c (vsnprintf): Likewise.
58902         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
58903         * tests/test-wcrtomb.c (wcrtomb): Likewise.
58904         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
58905         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
58906         * tests/test-wcwidth.c (wcwidth): Likewise.
58908         build: pull in conditional headers during GNULIB_POSIXCHECK
58909         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
58910         definitions from any conditionally-included headers.
58911         * lib/stdlib.in.h (includes): Likewise.
58912         * lib/unistd.in.h (includes): Likewise.
58914 2009-12-24  Bruno Haible  <bruno@clisp.org>
58916         * tests/test-argv-iter.c: Include header file being tested immediately
58917         after config.h.
58918         * tests/test-base64.c: Likewise.
58919         * tests/test-flock.c: Likewise.
58920         * tests/test-fsync.c: Likewise.
58921         * tests/test-getdate.c: Likewise.
58922         * tests/test-getndelim2.c: Likewise.
58923         * tests/test-isfinite.c: Likewise.
58924         * tests/test-isinf.c: Likewise.
58925         * tests/test-strerror.c: Likewise.
58926         * tests/test-strsignal.c: Likewise.
58928 2009-12-23  Eric Blake  <ebb9@byu.net>
58930         unistd: work around cygwin bug
58931         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
58932         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
58933         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
58935 2009-12-23  Bruno Haible  <bruno@clisp.org>
58937         localename: More tests.
58938         * tests/test-localename.c (SIZEOF): New macro.
58939         (categories): New variable.
58940         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
58941         test_locale_name_default): Add test w.r.t. thread locale.
58942         (test_locale_name_thread): New function.
58943         (main): Invoke it.
58945         localename: Make aware of thread locale.
58946         * lib/localename.h (gl_locale_name_thread): New declaration.
58947         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
58948         behaviour with respect to thread locale.
58949         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
58950         <langinfo.h>, glthread/lock.h.
58951         (SIZE_BITS): New macro.
58952         (string_hash): New function.
58953         (struct hash_node): New type.
58954         (HASH_TABLE_SIZE): New macro.
58955         (struniq_hash_table, struniq_lock): New variables.
58956         (struniq): New function.
58957         (gl_locale_name_thread): New function.
58958         (gl_locale_name): Invoke it.
58959         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
58960         * modules/localename (Depends-on): Add lock.
58961         Reported by Mike Gran <spk121@yahoo.com>.
58963 2009-12-23  Eric Blake  <ebb9@byu.net>
58965         va-args: new module
58966         * modules/va-args: New file.
58967         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
58968         * MODULES.html.sh (Core language properties): Mention it.
58970         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
58971         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
58972         named alias for __attribute__((__unused__)).
58973         * lib/chown.c: Update client.
58974         * lib/fchmodat.c: Likewise.
58975         * lib/fts.c: Likewise.
58976         * lib/getdate.y: Likewise.
58977         * lib/getgroups.c: Likewise.
58978         * lib/getopt.c: Likewise.
58979         * lib/getugroups.c: Likewise.
58980         * lib/mkdir.c: Likewise.
58981         * lib/mkfifo.c: Likewise.
58982         * lib/mkfifoat.c: Likewise.
58983         * lib/mknod.c: Likewise.
58984         * lib/mknodat.c: Likewise.
58985         * lib/readlink.c: Likewise.
58986         * lib/se-context.in.h: Likewise.
58987         * lib/se-selinux.in.h: Likewise.
58988         * lib/sockets.c: Likewise.
58989         * lib/symlink.c: Likewise.
58990         * lib/symlinkat.c: Likewise.
58991         * lib/unicodeio.c: Likewise.
58992         * lib/unistr.h: Likewise.
58993         * tests/test-areadlink.c: Likewise.
58994         * tests/test-areadlinkat.c: Likewise.
58995         * tests/test-filenamecat.c: Likewise.
58996         * tests/test-fseeko.c: Likewise.
58997         * tests/test-ftello.c: Likewise.
58998         * tests/test-getdate.c: Likewise.
58999         * tests/test-getgroups.c: Likewise.
59000         * tests/test-gethostname.c: Likewise.
59001         * tests/test-quotearg.c: Likewise.
59002         * tests/test-version-etc.c: Likewise.
59003         * tests/test-xalloc-die.c: Likewise.
59004         * tests/test-xfprintf-posix.c: Likewise.
59005         * tests/test-xprintf-posix.c: Likewise.
59006         * tests/test-xvasprintf.c: Likewise.
59008         tests: avoid compiler warnings
59009         * tests/test-fcntl.c (main): Delete unused parameters.
59010         * tests/test-freopen-safer.c (main): Likewise.
59011         * tests/test-xalloc-die.c (main): Mark unused parameters.
59012         * tests/test-fseeko.c (main): Likewise.
59013         * tests/test-ftello.c (main): Likewise.
59014         * tests/test-nanosleep.c (main): Avoid declaration warning.
59015         * tests/test-sleep.c (main): Likewise.
59016         * tests/test-unsetenv.c (main): Silence warning about string
59017         literal.
59018         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
59020 2009-12-23  Bruno Haible  <bruno@clisp.org>
59022         * tests/test-localename.c (test_locale_name): New function, extracted
59023         from main. Also test mixed situations.
59024         (test_locale_name_posix, test_locale_name_environ,
59025         test_locale_name_default): New functions.
59026         (main): Invoke them all.
59027         * modules/localename-tests (configure.ac): Test for newlocale.
59029 2009-12-23  Bruno Haible  <bruno@clisp.org>
59031         unistd: Ensure getcwd gets declared before being overridden.
59032         * lib/unistd.in.h: Conditionally include <io.h>.
59034 2009-12-22  Bruno Haible  <bruno@clisp.org>
59036         wchar: Diagnose broken combination of glibc and gcc versions and flags.
59037         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
59038         (gl_WCHAR_H): Invoke it.
59039         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
59040         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
59041         Reported by Karl Berry <karl@freefriends.org>.
59043 2009-12-22  Eric Blake  <ebb9@byu.net>
59045         math, unistd: avoid redundant includes
59046         * lib/math.in.h (isnan): No need to re-include <math.h>.
59047         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
59049         getsubopt: work around cygwin bug
59050         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
59051         avoid conflicting with system getsubopt.
59052         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
59053         bug.
59055         getopt: synchronize from glibc
59056         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
59057         parameter order.  Adjust all callers.
59058         (_getopt_internal_r, main): Adjust quoting in error messages.
59059         Drop considerations for outdated POSIX 1003.2 error message.
59060         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
59061         callers.
59062         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
59064         test-getopt: test stderr behavior
59065         * modules/getopt-posix-tests (Depends-on): Add dup2.
59066         * tests/test-getopt.c (ASSERT): Avoid stderr.
59067         (main): Move stderr to a temporary file.
59068         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
59069         Instead, add parameter to inform caller if output occurred.
59070         (test_getopt): Adjust all existing tests to expect silence, and
59071         add new tests of leading ":".
59072         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
59073         glibc shortcomings with leading "-:" or "+:" in optstring.
59074         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
59075         Likewise.
59076         * doc/posix-functions/getopt.texi (getopt): Likewise.
59078         test-getopt: enhance test
59079         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
59080         supports optind=0.
59081         * tests/test-getopt.c (OPTIND_MIN): Move...
59082         * tests/test-getopt.h (OPTIND_MIN): ...here.
59083         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
59084         Require that optind=0 works, since modern BSD supports it in
59085         addition to optreset, and since coreutils expects it.
59086         (test_getopt_long_only): New test.
59087         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
59088         glibc shortcomings with 'W;', and enforcement of optind=0.
59089         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
59090         Likewise.
59092 2009-12-21  Bruno Haible  <bruno@clisp.org>
59094         localename: Improvements for MacOS X and Cygwin.
59095         * lib/localename.h (gl_locale_name_environ): New declaration.
59096         * lib/localename.c (gl_locale_name_environ): New function, extracted from
59097         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
59098         (gl_locale_name_posix): Invoke it.
59099         (gl_locale_name_default): Add comments. Use Windows native API also on
59100         Cygwin.
59102 2009-12-21  Bruno Haible  <bruno@clisp.org>
59104         Update list of Win32 locale ids.
59105         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
59106         (LANG_SAMI): Renamed from LANG_SAAMI.
59107         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
59108         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
59109         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
59110         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
59111         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
59112         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
59113         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
59114         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
59115         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
59116         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
59117         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
59118         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
59119         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
59120         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
59121         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
59122         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
59123         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
59124         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
59125         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
59126         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
59127         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
59128         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
59129         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
59130         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
59131         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
59132         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
59133         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
59134         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
59135         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
59136         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
59137         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
59138         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
59139         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
59140         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
59141         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
59142         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
59143         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
59144         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
59145         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
59146         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
59147         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
59148         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
59149         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
59150         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
59151         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
59152         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
59153         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
59154         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
59155         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
59156         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
59157         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
59158         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
59159         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
59160         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
59161         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
59162         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
59163         Add more languages and countries for Sami, Sorbian. Add more countries
59164         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
59165         for Pashto. Change country for Syriac, Tswana.
59167 2009-12-21  Eric Blake  <ebb9@byu.net>
59169         test-utimens: avoid spurious failure
59170         * tests/test-chown.h (nap): Factor...
59171         * tests/nap.h: ...into new file.
59172         * tests/test-lchown.h (nap): Avoid duplication.
59173         * tests/test-utimens-common.h (nap): Use shared implementation,
59174         necessary on file systems with 1-second resolution.
59175         * modules/chown-tests (Files): Include new file.
59176         * modules/fdutimensat-tests (Files): Likewise.
59177         * modules/futimens-tests (Files): Likewise.
59178         * modules/lchown-tests (Files): Likewise.
59179         * modules/openat-tests (Files): Likewise.
59180         * modules/utimens-tests (Files): Likewise.
59181         * modules/utimensat-tests (Files): Likewise.
59183 2009-12-19  Eric Blake  <ebb9@byu.net>
59185         futimens, utimensat: work around Linux bug
59186         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
59187         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
59188         * lib/utimensat.c (rpl_utimensat): Work around it.
59189         * lib/futimens.c (rpl_futimens): Adjust comment.
59191         utimens: work around Linux ctime bug
59192         * lib/utimens.c (detect_ctime_bug): New helper function.
59193         (update_timespec): Differentiate between workaround needed for
59194         this bug vs. what is needed for systems that lack utimensat.
59195         (fdutimens, lutimens): Work around bug.
59197         utimens: check for ctime update
59198         * tests/test-utimens-common.h (check_ctime): Define.
59199         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
59200         * tests/test-futimens.h (test_futimens): Likewise.
59201         * tests/test-lutimens.h (test_lutimens): Likewise.
59202         * doc/posix-functions/futimens.texi (futimens): Document the bug.
59203         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
59205 2009-12-19  Bruno Haible  <bruno@clisp.org>
59207         dprintf-posix: Check against memory leak fixed on 2009-12-15.
59208         * tests/test-dprintf-posix2.sh: New file.
59209         * tests/test-dprintf-posix2.c: New file.
59210         * modules/dprintf-posix-tests (Files): Add them.
59211         (configure.ac): Check for getrlimit and setrlimit.
59212         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
59214 2009-12-19  Bruno Haible  <bruno@clisp.org>
59216         fprintf-posix: Check against memory leak fixed on 2009-12-15.
59217         * tests/test-fprintf-posix3.sh: New file.
59218         * tests/test-fprintf-posix3.c: New file.
59219         * modules/fprintf-posix-tests (Files): Add them.
59220         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
59222 2009-12-19  Eric Blake  <ebb9@byu.net>
59224         dirfd: fix prototype
59225         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
59226         * lib/dirfd.c (dirfd): Likewise.
59228         canonicalize: reduce memory usage
59229         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
59230         allocation to size.
59231         Reported by Solar Designer <solar@openwall.com>.
59233 2009-12-19  Bruno Haible  <bruno@clisp.org>
59235         New module attribute 'Applicability'.
59236         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
59237         * gnulib-tool: New option --extract-applicability.
59238         (func_usage): Document it.
59239         (sed_extract_prog): Recognize it.
59240         (func_get_applicability): New function.
59241         (func_import): Generalize handling of 'link-warning' module.
59242         * modules/link-warning (Applicability): New section.
59243         * modules/arg-nonnull (Applicability): New section.
59244         Repoted by Simon Josefsson <simon@josefsson.org>.
59246 2009-12-19  Bruno Haible  <bruno@clisp.org>
59248         fflush: tweak
59249         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
59250         * lib/fseeko.c (rpl_fseeko): Likewise.
59252 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
59254         * lib/gl_list.h: Fix typo in comment.
59256 2009-12-16  Eric Blake  <ebb9@byu.net>
59258         fcntl: use to simplify other modules
59259         * modules/cloexec (Depends-on): Add fcntl.
59260         * modules/fchdir (Depends-on): Likewise.
59261         * modules/fd-safer-flag (Depends-on): Likewise.
59262         * modules/unistd-safer (Depends-on): Likewise.
59263         * modules/dup3 (configure.ac): Set module indicator.
59264         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
59265         missing.
59266         * lib/fchdir.c (_gl_register_dup): Fix comment.
59267         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
59268         * lib/dup-safer.c (dup_safer): Likewise.
59269         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
59270         * lib/dup3.c (dup3): Likewise.
59271         * tests/test-fchdir.c (main): Enhance test.
59272         Fixes a dup_cloexec bug reported by Ondřej Vašík.
59274         fcntl: port portions of fcntl to mingw
59275         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
59276         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
59277         replacement for mingw.
59278         * modules/fcntl (Description): Update.
59279         (Depends-on): Add dup2.
59280         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
59281         * modules/fcntl-h (Makefile.am): Substitute it.
59282         * lib/fcntl.in.h (fcntl): Update declaration.
59283         (F_DUPFD, F_GETFD): New macros, when needed.
59284         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
59285         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
59286         * tests/test-fcntl.c (check_flags, main): Enhance test for items
59287         we now guarantee.
59289         fcntl: work around cygwin bug in F_DUPFD
59290         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
59291         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
59292         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
59293         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
59294         * doc/posix-functions/fcntl.texi (fcntl): Document it.
59296         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
59297         * modules/fcntl (Files): List new files.
59298         (configure.ac): Run a test.
59299         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
59300         * lib/fcntl.c (rpl_fcntl): Likewise.
59301         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
59302         (gl_FCNTL_H): Always replace fcntl.h.
59303         * modules/fcntl-h (Makefile.am): Substitute witnesses.
59304         * lib/fcntl.in.h (fcntl): Declare replacement.
59305         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
59306         needed, plus a witness.
59307         * doc/posix-functions/fcntl.texi (fcntl): Document this.
59308         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
59309         * tests/test-fcntl.c: New file.
59310         * modules/fcntl-tests: Likewise.
59312         binary-io: avoid potential compilation warning
59313         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
59314         directives.
59316         fflush: avoid compilation error on NetBSD
59317         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
59318         between off_t and fpos_t, since the latter is sometimes a struct.
59319         * lib/fseeko.c (rpl_fseeko): Likewise.
59320         Reported by Alexander Nasonov <alnsn@yandex.ru>.
59322 2009-12-15  Eric Blake  <ebb9@byu.net>
59324         fcntl-h, stdio, sys_ioctl: fix declarations
59325         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
59326         function must not take arguments.
59327         * lib/sys_ioctl.in.h (ioctl): Likewise.
59328         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
59329         (open): Add a link warning.
59331 2009-12-15  Jim Meyering  <meyering@redhat.com>
59333         areadlink, areadlink-with-size: relax license to LGPLv2+
59334         * modules/areadlink (License): Relax to LGPLv2+.
59335         * modules/areadlink-with-size (License): Likewise.
59337 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
59338             Bruno Haible  <bruno@clisp.org>
59340         *printf: Fix memory leak.
59341         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
59342         * lib/vfprintf.c (vfprintf): Likewise.
59343         * lib/dprintf.c (dprintf): Likewise.
59344         * lib/vdprintf.c (vdprintf): Likewise.
59346 2009-12-14  Eric Blake  <ebb9@byu.net>
59348         accept4: adjust module dependencies
59349         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
59351         utimens: one more try at avoiding compiler warning
59352         * lib/utimens.c (lutimens): Lower scope of result.
59354 2009-12-13  Bruno Haible  <bruno@clisp.org>
59356         Move the malloc checking from module 'list' to new module 'xlist'.
59357         * modules/xlist: New file.
59358         * lib/gl_xlist.h: New file.
59359         * lib/gl_xlist.c: New file.
59360         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
59361         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
59362         gl_list_add_last, gl_list_add_before, gl_list_add_after,
59363         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
59364         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
59365         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
59366         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
59367         gl_sortedlist_nx_add): New declarations.
59368         (struct gl_list_implementation): Rename and change methods accordingly.
59369         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
59370         (gl_list_nx_create): Renamed from gl_list_create.
59371         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
59372         (gl_list_nx_set_at): Renamed from gl_list_set_at.
59373         (gl_list_nx_add_first): Renamed from gl_list_add_first.
59374         (gl_list_nx_add_last): Renamed from gl_list_add_last.
59375         (gl_list_nx_add_before): Renamed from gl_list_add_before.
59376         (gl_list_nx_add_after): Renamed from gl_list_add_after.
59377         (gl_list_nx_add_at): Renamed from gl_list_add_at.
59378         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
59379         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
59380         gl_list_create_empty.
59381         (gl_list_nx_create): Renamed from gl_list_create.
59382         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
59383         (gl_list_nx_set_at): Renamed from gl_list_set_at.
59384         (gl_list_nx_add_first): Renamed from gl_list_add_first.
59385         (gl_list_nx_add_last): Renamed from gl_list_add_last.
59386         (gl_list_nx_add_before): Renamed from gl_list_add_before.
59387         (gl_list_nx_add_after): Renamed from gl_list_add_after.
59388         (gl_list_nx_add_at): Renamed from gl_list_add_at.
59389         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
59390         * lib/gl_array_list.c: Don't include xalloc.h.
59391         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
59392         NULL upon out-of-memory.
59393         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
59394         out-of-memory.
59395         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
59396         Change return type to 'int'.
59397         (gl_array_nx_set_at): Renamed from gl_array_set_at.
59398         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
59399         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
59400         upon out-of-memory.
59401         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
59402         upon out-of-memory.
59403         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
59404         upon out-of-memory.
59405         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
59406         upon out-of-memory.
59407         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
59408         out-of-memory.
59409         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
59410         Update.
59411         (gl_array_list_implementation): Update.
59412         * lib/gl_carray_list.c: Don't include xalloc.h.
59413         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
59414         Return NULL upon out-of-memory.
59415         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
59416         out-of-memory.
59417         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
59418         Change return type to 'int'.
59419         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
59420         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
59421         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
59422         upon out-of-memory.
59423         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
59424         upon out-of-memory.
59425         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
59426         out-of-memory.
59427         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
59428         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
59429         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
59430         Update.
59431         (gl_carray_list_implementation): Update.
59432         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
59433         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
59434         gl_linked_create_empty. Return NULL upon out-of-memory.
59435         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
59436         out-of-memory.
59437         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
59438         Change return type to 'int'. Return -1 upon out-of-memory.
59439         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
59440         out-of-memory.
59441         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
59442         upon out-of-memory.
59443         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
59444         upon out-of-memory.
59445         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
59446         NULL upon out-of-memory.
59447         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
59448         upon out-of-memory.
59449         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
59450         out-of-memory.
59451         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
59452         Update.
59453         * lib/gl_linked_list.c: Don't include xalloc.h.
59454         (gl_linked_list_implementation): Update.
59455         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
59456         (add_to_bucket): Change return type to 'int'.
59457         (gl_linkedhash_list_implementation): Update.
59458         * lib/gl_anytree_list1.h (free_subtree): New function.
59459         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
59460         gl_tree_create_empty. Return NULL upon out-of-memory.
59461         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
59462         Change return type to 'int'. Return -1 upon out-of-memory.
59463         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
59464         out-of-memory.
59465         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
59466         (gl_tree_remove_node): New function, moved here from
59467         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
59468         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
59469         Update.
59470         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
59471         malloc, not xmalloc. Return NULL upon out-of-memory.
59472         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
59473         out-of-memory.
59474         (gl_tree_remove_node_from_tree): New function, extracted from
59475         gl_tree_remove_node.
59476         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
59477         upon out-of-memory.
59478         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
59479         out-of-memory.
59480         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
59481         upon out-of-memory.
59482         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
59483         upon out-of-memory.
59484         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
59485         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
59486         not xmalloc. Return NULL upon out-of-memory.
59487         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
59488         out-of-memory.
59489         (gl_tree_remove_node_from_tree): New function, extracted from
59490         gl_tree_remove_node.
59491         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
59492         upon out-of-memory.
59493         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
59494         out-of-memory.
59495         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
59496         upon out-of-memory.
59497         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
59498         upon out-of-memory.
59499         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
59500         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
59501         gl_anytree_list1.h before gl_anyavltree_list2.h.
59502         (gl_avltree_list_implementation): Update.
59503         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
59504         gl_anytree_list1.h before gl_anyavltree_list2.h.
59505         (gl_rbtree_list_implementation): Update.
59506         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
59507         Change return type to 'int'. Return -1 upon out-of-memory. Use
59508         __builtin_expect.
59509         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
59510         (gl_avltreehash_list_implementation): Update.
59511         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
59512         (gl_rbtreehash_list_implementation): Update.
59513         * modules/array-list (Depends-on): Remove xalloc.
59514         * modules/carray-list (Depends-on): Likewise.
59515         * modules/linked-list (Depends-on): Likewise.
59516         * modules/linkedhash-list (Depends-on): Likewise.
59517         * modules/avltree-list (Depends-on): Likewise.
59518         * modules/rbtree-list (Depends-on): Likewise.
59519         * modules/avltreehash-list (Depends-on): Likewise.
59520         * modules/rbtreehash-list (Depends-on): Likewise.
59522         * modules/xsublist: New file.
59523         * lib/gl_xsublist.h: New file.
59524         * lib/gl_xsublist.c: New file.
59525         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
59526         (gl_sublist_nx_create): New declaration.
59527         * lib/gl_sublist.c: Don't include xalloc.h.
59528         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
59529         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
59530         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
59531         Change return type to 'int'. Return -1 upon out-of-memory.
59532         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
59533         upon out-of-memory.
59534         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
59535         NULL upon out-of-memory.
59536         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
59537         upon out-of-memory.
59538         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
59539         NULL upon out-of-memory.
59540         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
59541         NULL upon out-of-memory.
59542         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
59543         upon out-of-memory.
59544         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
59545         (gl_sublist_list_implementation): Update.
59546         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
59547         upon out-of-memory.
59548         * modules/sublist (Depends-on): Remove xalloc.
59550         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
59551         * tests/test-carray_list.c: Likewise.
59552         * tests/test-linked_list.c: Likewise.
59553         * tests/test-linkedhash_list.c: Likewise.
59554         * tests/test-avltree_list.c: Likewise.
59555         * tests/test-rbtree_list.c: Likewise.
59556         * tests/test-avltreehash_list.c: Likewise.
59557         * tests/test-rbtreehash_list.c: Likewise.
59558         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
59559         * modules/carray-list-tests (Makefile.am): Likewise.
59560         * modules/linked-list-tests (Makefile.am): Likewise.
59561         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59562         * modules/avltree-list-tests (Makefile.am): Likewise.
59563         * modules/rbtree-list-tests (Makefile.am): Likewise.
59564         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59565         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59567         * NEWS: Mention the changes.
59569         * lib/clean-temp.c: Include gl_xlist.h.
59570         * modules/clean-temp (Depends-on): Add xlist.
59572         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
59573         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
59575         * tests/test-array_oset.c: Include gl_xlist.h.
59576         * modules/array-oset-tests (Depends-on): Add xlist.
59578         Reported by José E. Marchesi <jemarch@gnu.org>.
59580 2009-12-13  Bruno Haible  <bruno@clisp.org>
59582         Move the malloc checking from module 'oset' to new module 'xoset'.
59583         * modules/xoset: New file.
59584         * lib/gl_xoset.h: New file.
59585         * lib/gl_xoset.c: New file.
59586         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
59587         declarations.
59588         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
59589         (struct gl_oset_implementation): Rename and change methods accordingly.
59590         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
59591         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
59592         'int'. Mark as __warn_unused_result__.
59593         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
59594         gl_oset_create_empty.
59595         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
59596         'int'.
59597         * lib/gl_array_oset.c: Don't include xalloc.h.
59598         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
59599         malloc, not xmalloc.
59600         (grow): Change return type to 'int'. Don't call xalloc_die.
59601         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
59602         to 'int'.
59603         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
59604         'int'.
59605         (gl_array_oset_implementation): Update.
59606         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
59607         gl_tree_create_empty.
59608         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
59609         'int'.
59610         * lib/gl_avltree_oset.c: Don't include xalloc.h.
59611         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
59612         xmalloc.
59613         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
59614         not xmalloc.
59615         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
59616         xmalloc.
59617         (gl_avltree_oset_implementation): Update.
59618         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
59619         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
59620         xmalloc.
59621         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
59622         not xmalloc.
59623         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
59624         xmalloc.
59625         (gl_rbtree_oset_implementation): Update.
59626         * modules/array-oset (Depends-on): Remove xalloc.
59627         * modules/avltree-oset (Depends-on): Likewise.
59628         * modules/rbtree-oset (Depends-on): Likewise.
59629         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
59630         * tests/test-avltree_oset.c: Likewise.
59631         * tests/test-rbtree_oset.c: Likewise.
59632         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
59633         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
59634         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59635         * NEWS: Mention the change.
59637 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
59639         maint.mk: allow a project to override release-prep commands
59640         * top/maint.mk (alpha, beta, stable): Move release-preparatory
59641         commands into a new rule.
59642         (release-prep): New rule.
59643         (release-prep-hook): New overridable variable.
59645 2009-12-13  Bruno Haible  <bruno@clisp.org>
59647         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
59649 2009-12-13  Jim Meyering  <meyering@redhat.com>
59651         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
59652         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
59654 2009-12-12  Bruno Haible  <bruno@clisp.org>
59656         duplocale: Tweak.
59657         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
59659 2009-12-12  Karl Berry  <karl@gnu.org>
59661         * config/srclist.txt (strtoll.c): tab changes, no more sync.
59663 2009-12-12  Bruno Haible  <bruno@clisp.org>
59665         * m4/po.m4: Undo incorrect untabification.
59667 2009-12-12  Bruno Haible  <bruno@clisp.org>
59669         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
59670         * modules/c-strtod (Depends-on): Add locale.
59671         * modules/c-strtold (Depends-on): Likewise.
59673 2009-12-12  Bruno Haible  <bruno@clisp.org>
59675         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
59677 2009-12-11  Eric Blake  <ebb9@byu.net>
59679         setenv: relax requirement in light of POSIX ruling
59680         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
59681         not NULL.
59682         * tests/test-setenv.c (main): Relax test.
59683         * tests/test-unsetenv.c (main): Likewise.
59684         * doc/posix-functions/setenv.texi (setenv): Document this.
59685         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
59687 2009-12-11  Bruno Haible  <bruno@clisp.org>
59689         New module 'fd-safer-flag'.
59690         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
59691         * lib/dup-safer.c (dup_safer_flag): Remove function.
59692         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
59693         * lib/fd-safer.c (fd_safer_flag): Remove function.
59694         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
59695         * modules/cloexec (configure.ac): Drop indicator macro.
59696         * modules/fd-safer-flag: New file.
59697         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
59698         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
59699         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
59701 2009-12-11  Bruno Haible  <bruno@clisp.org>
59703         Tests for module 'nl_langinfo'.
59704         * modules/nl_langinfo-tests: New file.
59705         * tests/test-nl_langinfo.sh: New file.
59706         * tests/test-nl_langinfo.c: New file.
59708         New module 'nl_langinfo'.
59709         * lib/nl_langinfo.c: New file.
59710         * m4/nl_langinfo.m4: New file.
59711         * modules/nl_langinfo: New file.
59712         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
59714 2009-12-11  Bruno Haible  <bruno@clisp.org>
59716         Tests for module 'langinfo'.
59717         * modules/langinfo-tests: New file.
59718         * tests/test-langinfo.c: New file.
59720         New module 'langinfo'.
59721         * lib/langinfo.in.h: New file.
59722         * m4/langinfo_h.m4: New file.
59723         * modules/langinfo: New file.
59724         * doc/posix-headers/langinfo.texi: Mention the new module.
59726 2009-12-11  Bruno Haible  <bruno@clisp.org>
59728         * lib/config.charset: Untabify.
59730 2009-12-11  Bruno Haible  <bruno@clisp.org>
59732         * modules/unistd-safer (configure.ac): Drop indicator macro.
59734 2009-12-11  Bruno Haible  <bruno@clisp.org>
59736         Move pipe2-safer code to its own file.
59737         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
59738         * lib/pipe-safer.c (pipe2_safer): Remove function.
59739         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
59740         (Makefile.am): Add it to lib_SOURCES.
59742 2009-12-10  Bruno Haible  <bruno@clisp.org>
59744         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
59746 2009-12-10  Bruno Haible  <bruno@clisp.org>
59748         Declare which arguments expect non-NULL values, for GCC and clang.
59749         * build-aux/arg-nonnull.h: New file.
59750         * modules/arg-nonnull: New file.
59751         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
59752         (inet_ntop, inet_pton): Use it.
59753         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
59754         (closedir, dirfd, opendir, scandir, alphasort): Use it.
59755         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
59756         (open, openat): Use it.
59757         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
59758         (fnmatch): Use it.
59759         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
59760         (getopt, getopt_long, getopt_long_only): Use it.
59761         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
59762         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
59763         Use it.
59764         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
59765         (iconv_open): Use it.
59766         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
59767         (strtoimax, strtoumax): Use it.
59768         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
59769         (duplocale): Use it.
59770         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
59771         (frexp, frexpl): Use it.
59772         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
59773         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
59774         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
59775         (tsearch, tfind, tdelete, twalk): Use it.
59776         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
59777         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
59778         sigpending): Use it.
59779         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
59780         (posix_spawn, posix_spawnp, posix_spawnattr_init,
59781         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
59782         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
59783         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
59784         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
59785         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
59786         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
59787         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
59788         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
59789         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
59790         Use it.
59791         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
59792         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
59793         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
59794         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
59795         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
59796         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
59797         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
59798         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
59799         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
59800         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
59801         strtoull, unsetenv): Use it.
59802         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
59803         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
59804         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
59805         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
59806         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
59807         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
59808         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
59809         (strcasecmp, strncasecmp): Use it.
59810         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
59811         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
59812         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
59813         rpl_setsockopt): Use it.
59814         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
59815         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
59816         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
59817         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
59818         (gettimeofday): Use it.
59819         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
59820         (times): Use it.
59821         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
59822         (uname): Use it.
59823         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
59824         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
59825         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
59826         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
59827         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
59828         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
59829         unlinkat, write): Use it.
59830         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
59831         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
59832         * lib/argv-iter.h: Include arg-nonnull.h.
59833         (_ATTRIBUTE_NONNULL_): Remove macro.
59834         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
59835         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
59836         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
59837         optimization.
59838         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
59839         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
59840         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
59841         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
59842         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
59843         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
59844         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
59845         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
59846         * modules/arpa_inet (Depends-on): Add arg-nonnull.
59847         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
59848         * modules/dirent (Depends-on): Add arg-nonnull.
59849         (Makefile.am): Insert arg-nonnull.h into dirent.h.
59850         * modules/fcntl-h (Depends-on): Add arg-nonnull.
59851         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
59852         * modules/fnmatch (Depends-on): Add arg-nonnull.
59853         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
59854         * modules/getopt-posix (Depends-on): Add arg-nonnull.
59855         (Makefile.am): Insert arg-nonnull.h into getopt.h.
59856         * modules/glob (Depends-on): Add arg-nonnull.
59857         (Makefile.am): Insert arg-nonnull.h into glob.h.
59858         * modules/iconv_open (Depends-on): Add arg-nonnull.
59859         (Makefile.am): Insert arg-nonnull.h into iconv.h.
59860         * modules/inttypes (Depends-on): Add arg-nonnull.
59861         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
59862         * modules/locale (Depends-on): Add arg-nonnull.
59863         (Makefile.am): Insert arg-nonnull.h into locale.h.
59864         * modules/math (Depends-on): Add arg-nonnull.
59865         (Makefile.am): Insert arg-nonnull.h into math.h.
59866         * modules/netdb (Depends-on): Add arg-nonnull.
59867         (Makefile.am): Insert arg-nonnull.h into netdb.h.
59868         * modules/search (Depends-on): Add arg-nonnull.
59869         (Makefile.am): Insert arg-nonnull.h into search.h.
59870         * modules/signal (Depends-on): Add arg-nonnull.
59871         (Makefile.am): Insert arg-nonnull.h into signal.h.
59872         * modules/spawn (Depends-on): Add arg-nonnull.
59873         (Makefile.am): Insert arg-nonnull.h into spawn.h.
59874         * modules/stdio (Depends-on): Add arg-nonnull.
59875         (Makefile.am): Insert arg-nonnull.h into stdio.h.
59876         * modules/stdlib (Depends-on): Add arg-nonnull.
59877         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
59878         * modules/string (Depends-on): Add arg-nonnull.
59879         (Makefile.am): Insert arg-nonnull.h into string.h.
59880         * modules/strings (Depends-on): Add arg-nonnull.
59881         (Makefile.am): Insert arg-nonnull.h into strings.h.
59882         * modules/sys_socket (Depends-on): Add arg-nonnull.
59883         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
59884         * modules/sys_stat (Depends-on): Add arg-nonnull.
59885         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
59886         * modules/sys_time (Depends-on): Add arg-nonnull.
59887         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
59888         * modules/sys_times (Depends-on): Add arg-nonnull.
59889         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
59890         * modules/sys_utsname (Depends-on): Add arg-nonnull.
59891         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
59892         * modules/time (Depends-on): Add arg-nonnull.
59893         (Makefile.am): Insert arg-nonnull.h into time.h.
59894         * modules/unistd (Depends-on): Add arg-nonnull.
59895         (Makefile.am): Insert arg-nonnull.h into unistd.h.
59896         * modules/wchar (Depends-on): Add arg-nonnull.
59897         (Makefile.am): Insert arg-nonnull.h into wchar.h.
59898         * modules/argv-iter (Depends-on): Add arg-nonnull.
59899         * tests/test-canonicalize.c (null_ptr): New function.
59900         (main): Use it.
59901         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
59902         (main): Use it.
59903         * tests/test-memmem.c (null_ptr): New function.
59904         (main): Use it.
59905         Reported by Jim Meyering.
59907 2009-12-10  Bruno Haible  <bruno@clisp.org>
59909         Use spaces for indentation, not tabs.
59910         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
59911         * m4/*.m4: Untabify.
59912         * build-aux/*.h: Untabify.
59913         * tests/**/*.[hc]: Untabify.
59914         * README: New section "Indent with spaces, not TABs", based on
59915         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
59916         * NEWS: Mention the change.
59918 2009-12-10  Bruno Haible  <bruno@clisp.org>
59920         pty test: Fix link error.
59921         * modules/pty-tests (Makefile.am): Add the default LDADD value to
59922         test_pty_LDADD.
59924 2009-12-07  Simon Josefsson  <simon@josefsson.org>
59926         * modules/pty: New file.
59927         * modules/pty-tests: New file.
59928         * m4/pty.m4: New file.
59929         * tests/test-pty.c: New file.
59930         * doc/glibc-headers/pty.texi: Modified.
59931         * doc/glibc-functions/forkpty.texi: Modified.
59932         * doc/glibc-functions/openpty.texi: Modified.
59934 2009-12-10  Bruno Haible  <bruno@clisp.org>
59936         Avoid syntax error in C++ mode.
59937         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
59939 2009-12-10  Bruno Haible  <bruno@clisp.org>
59941         Use sed with option -e.
59942         * gnulib-tool (func_version, func_emit_copyright_notice,
59943         func_emit_initmacro_end, func_import, func_create_testdir): Pass
59944         option -e to sed.
59945         * modules/link-warning (Makefile.am): Likewise.
59947 2009-12-10  Jim Meyering  <meyering@redhat.com>
59949         mgetgroups: do not write bytes beyond end of malloc'd buffer
59950         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
59951         username, we call getgroups with a one-element-shorter buffer,
59952         but still told it the length was original, max_n_groups.
59954 2009-12-09  Eric Blake  <ebb9@byu.net>
59956         cloexec: relax license
59957         * modules/cloexec (Maintainer): Add myself.
59958         (License): Use LGPL, not GPL.
59960         link-warning: optimize generation
59961         * modules/link-warning (Makefile.am): Reduce process usage.
59963 2009-12-09  Bruno Haible  <bruno@clisp.org>
59965         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
59966         workaround was added on 2009-11-17.
59968 2009-12-09  Jim Meyering  <meyering@redhat.com>
59969             Bruno Haible  <bruno@clisp.org>
59971         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
59972         * modules/link-warning (Makefile.am): Make the comment-removing sed
59973         command more robust in the face of bootstrap-prepended comment lines.
59975 2009-12-09  Bruno Haible  <bruno@clisp.org>
59977         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
59978         most one group.
59980 2009-12-09  Simon Josefsson  <simon@josefsson.org>
59981             Bruno Haible  <bruno@clisp.org>
59983         * build-aux/link-warning.h: Add copyright notice.
59984         * modules/link-warning (Makefile.am): Generate link-warning.h from
59985         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
59986         * NEWS: Mention change in link-warning module.
59987         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
59988         * modules/dirent (Makefile.am): Add dependency to dirent.h.
59989         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
59990         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
59991         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
59992         * modules/math (Makefile.am): Add dependency to math.h.
59993         * modules/search (Makefile.am): Add dependency to search.h.
59994         * modules/signal (Makefile.am): Add dependency to signal.h.
59995         * modules/spawn (Makefile.am): Add dependency to spawn.h.
59996         * modules/stdio (Makefile.am): Add dependency to stdio.h.
59997         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
59998         * modules/string (Makefile.am): Add dependency to string.h.
59999         * modules/strings (Makefile.am): Add dependency to strings.h.
60000         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
60001         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
60002         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
60003         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
60004         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
60005         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
60006         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
60007         * modules/unistd (Makefile.am): Add dependency to unistd.h.
60008         * modules/wchar (Makefile.am): Add dependency to wchar.h.
60010 2009-12-09  Bruno Haible  <bruno@clisp.org>
60012         fchdir: Optimize away rpl_fstat when possible.
60013         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
60014         REPLACE_OPEN_DIRECTORY.
60015         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
60017 2009-12-09  Bruno Haible  <bruno@clisp.org>
60019         * lib/fchdir.c: Update comment.
60021 2009-12-09  Bruno Haible  <bruno@clisp.org>
60023         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
60025 2009-12-08  Eric Blake  <ebb9@byu.net>
60027         fchdir: avoid memory leak on re-registration.
60028         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
60030 2009-12-08  Jim Meyering  <meyering@redhat.com>
60032         init.sh: avoid Solaris 10 /bin/sh portability problem
60033         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
60034         sourced script:
60035           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
60036           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
60037           bar
60038         tests/init.sh relied on that, accepting a --set-path=DIR argument,
60039         and two tests used that idiom.
60040         * tests/init.sh: Update suggested usage comments.
60041         (path_prepend_): New function, to be used in place
60042         of the --src-path=DIR option.
60043         (setup_): Move PATH-prepending code into path_prepend_.
60044         * tests/test-pread.sh: Adapt to new usage.
60045         * tests/test-xalloc-die.sh: Likewise.
60047 2009-12-08  Simon Josefsson  <simon@josefsson.org>
60049         * doc/gnulib.texi (Glibc pty.h): Add.
60050         * doc/glibc-functions/forkpty.texi: Add.
60051         * doc/glibc-functions/openpty.texi: Add.
60052         Suggested by Bruno Haible.
60054 2009-12-08  Eric Blake  <ebb9@byu.net>
60056         fchdir: fix logic bugs
60057         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
60058         * tests/test-fchdir.c (main): Enhance test.
60059         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
60060         is in use.
60062         dup2: fix logic bugs
60063         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
60064         REPLACE_DUP2 to decide when rpl_dup2 is needed.
60065         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
60066         exists.
60067         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
60069 2009-12-07  Eric Blake  <ebb9@byu.net>
60071         unlink: fix m4 detection
60072         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
60074         unistd-safer: add unit test
60075         * modules/unistd-safer-tests: New file.
60076         * tests/test-dup-safer.c: Likewise.
60077         * tests/test-cloexec.c (setmode): Avoid compiler warning.
60078         * tests/test-dup2.c (setmode): Likewise.
60079         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
60081         cloexec: preserve text vs. binary across dup_cloexec
60082         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
60083         mode.
60084         * modules/dup2-tests (Depends-on): Add binary-io.
60085         * modules/cloexec-tests (Depends-on): Likewise.
60086         * tests/test-dup2.c (setmode, is_mode): New helpers.
60087         (main): Add tests that translation mode is preserved.
60088         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
60089         Reported by Bruno Haible.
60091         mgetgroups: reduce duplicate listings
60092         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
60093         resulting array.
60094         * tests/test-chown.h (test_chown): Simplify client.
60095         * tests/test-lchown.h (test_lchown): Likewise.
60097 2009-12-06  Bruno Haible  <bruno@clisp.org>
60099         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
60100         value.
60102 2009-12-06  Bruno Haible  <bruno@clisp.org>
60104         * lib/progname.c: Include stdio.h, stdlib.h.
60105         (set_program_name): Reject a NULL argument.
60107 2009-12-05  Eric Blake  <ebb9@byu.net>
60109         pipe2-safer: new module
60110         * modules/pipe2-safer: New file.
60111         * lib/unistd-safer.h (pipe2_safer): New prototype.
60112         * lib/unistd--.h (pipe2): New wrapper.
60113         * lib/pipe-safer.c (pipe2_safer): New function.
60114         * modules/pipe (Depends-on): Add pipe2-safer.
60115         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
60117         stdlib-safer: preserve cloexec flag for mkostemp[s]
60118         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
60119         fd_safer_flag.
60121         unistd-safer: allow preservation of cloexec status via flag
60122         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
60123         prototypes.
60124         * lib/dup-safer.c (dup_safer_flag): New function.
60125         * lib/fd-safer.c (fd_safer_flag): Likewise.
60126         * modules/cloexec (configure.ac): Set witness.
60128         test-dup2: enhance test
60129         * modules/dup2-tests (Depends-on): Add cloexec.
60130         * tests/test-dup2.c (main): Enhance test.
60132         cloexec: add dup_cloexec
60133         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
60134         header and comments.
60135         * lib/cloexec.c (set_cloexec_flag): Add comments.
60136         (dup_cloexec): New function, with mingw implementation borrowed
60137         from...
60138         * lib/w32spawn.h (dup_noinherit): ...here.
60139         * modules/execute (Depends-on): Add cloexec.
60140         * modules/pipe (Depends-on): Likewise.
60141         * modules/cloexec (Depends-on): Add dup2.
60142         * modules/cloexec-tests (Files): New file.
60143         * tests/test-cloexec.c: Likewise.
60145         test-xalloc-die: fix test for mingw
60146         * modules/xalloc-die-tests (Files): Add tests/init.sh.
60147         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
60148         directory and .exe suffix off argv[0] output.
60150         test-fseeko: fix test for mingw
60151         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
60152         than undefining fseek, so test will pass on mingw.
60154 2009-12-05  Bruno Haible  <bruno@clisp.org>
60156         * lib/progname.h (set_program_name): Clarify specification.
60157         * lib/progname.c (set_program_name): Likewise.
60158         Reported by Jim Meyering.
60160 2009-12-05  Jim Meyering  <meyering@redhat.com>
60162         maint.mk: backslash-escape parens in default regexp
60163         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
60164         backslash-escape the literal parentheses.
60166         maint.mk: news-date-check: use grep -E
60167         * top/maint.mk (today): Define a Make variable, not a...
60168         (news-date-check): ...shell variable.
60169         (news-date-regexp): Use the Make variable.
60170         Use grep's -E option.  Change the failing diagnostic to mention
60171         the variable, $(news-date-regexp).
60173 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
60175         maintainer-makefile: allow customization of NEWS entry format
60176         * top/maint.mk (news-date-regexp): New overridable variable.
60177         (news-date-check): Use it.
60179 2009-12-04  Eric Blake  <ebb9@byu.net>
60181         mgetgroups: add xgetgroups, and avoid ENOSYS failures
60182         * lib/mgetgroups.h (xgetgroups): New prototype.
60183         * lib/mgetgroups.c (xgetgroups): New wrapper.
60184         (mgetgroups): Handle ENOSYS.
60185         * modules/mgetgroups (Depends-on): Add realloc.
60186         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
60188         mgetgroups: avoid argument promotion issues with -1
60189         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
60190         for invalid gid_t.
60191         * tests/test-chown.h (getegid, test_chown): Likewise.
60192         * tests/test-lchown.h (getegid, test_lchown): Likewise.
60194 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
60196         exclude: Fix header file problems.
60197         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
60199 2009-12-01  Jim Meyering  <meyering@redhat.com>
60201         fts: fts_open: do not let an empty string cause immediate failure
60202         This is required in support of GNU rm, for which the command
60203         "rm A '' B" must process and remove both A and B, in spite of
60204         the empty string argument.
60205         * lib/fts.c (fts_open): Do not let the presence of an empty string
60206         cause fts_open to fail immediately.  Most fts-using tools must be
60207         able to process all arguments, in order, and can be expected to
60208         diagnose such arguments themselves.
60210 2009-11-30  Eric Blake  <ebb9@byu.net>
60212         utimens: fix compilation error
60213         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
60214         Declare variable at right scope.
60216 2009-11-29  Jim Meyering  <meyering@redhat.com>
60218         bootstrap: handle perl-5.11's changed --version output
60219         * build-aux/bootstrap (get_version): Handle perl separately,
60220         since perl-5.11's --version output is different.
60222 2009-11-28  Jim Meyering  <meyering@redhat.com>
60224         userspec: depend on the inttostr module, too
60225         * modules/userspec (Depends-on): Add inttostr.
60227         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
60228         * lib/userspec.c (parse_with_separator): Do not accept a user ID
60229         number of MAXUID when it evaluates to (uid_t) -1.
60230         Likewise for group ID.  Reported by Matt McCutchen in
60231         <http://savannah.gnu.org/bugs/?28113>
60233         userspec: reformat to use spaces, not TABs
60234         * lib/userspec.c: Expand TABs to spaces.
60235         Add Emacs' "indent-tabs-mode: nil" hint.
60237 2009-11-27  Eric Blake  <ebb9@byu.net>
60239         getopt-gnu: flush out another BSD bug
60240         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
60241         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
60242         flush out BSD bug.
60243         * tests/test-getopt.h (test_getopt): End lists with NULL.
60244         * tests/test-getopt_long.h (test_getopt_long): Likewise.
60245         (test_getopt_long_posix): Enhance test.
60246         * modules/getopt-posix-tests (Depends-on): Add stdbool.
60247         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
60248         getopt-gnu.
60249         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60250         Likewise.
60252 2009-11-27  Simon Josefsson  <simon@josefsson.org>
60254         * modules/idpriv-droptemp-tests (Notice): Fix text.
60256 2009-11-27  Jim Meyering  <meyering@redhat.com>
60258         test-xalloc-die: avoid spurious failure due to libtool argv difference
60259         In a libtool-enabled project, this test would fail due to a difference
60260         in the emitted program name, e.g.,
60261         -test-xalloc-die: memory exhausted
60262         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
60263         Use program to avoid that.
60264         * modules/xalloc-die-tests (Depends-on): Add progname.
60265         * tests/test-xalloc-die.c: Include progname.h".
60266         (program_name): Remove decl.
60267         (main): Call set_program_name.
60268         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
60270 2009-11-26  Richard Jones  <rjones@redhat.com>
60272         w32sock: leave win32 error in place.
60273         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
60275 2009-11-26  Eric Blake  <ebb9@byu.net>
60277         init.sh: suggest to use skip_ and fail_ functions in comments
60278         * tests/init.sh: Add a sentence.
60280 2009-11-25  Bruno Haible  <bruno@clisp.org>
60282         init.sh: add documentation in comments
60283         * tests/init.sh: Add some developer and user documentation.
60285 2009-11-26  Jim Meyering  <meyering@redhat.com>
60287         init.sh: accommodate even those who specify bogus srcdir manually
60288         * tests/init.sh: Normally, srcdir is guaranteed by automake and
60289         configure-time tests to be sanitized, so that there is no need to
60290         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
60291         (with no double quotes) suffices.  However, since tests may be
60292         invoked manually, and since you may explicitly set srcdir to the
60293         name of a directory containing spaces, do quote its uses here.
60294         * tests/test-pread.sh: Likewise.
60295         Suggested by Bruno Haible.
60297         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
60298         * tests/test-pread.sh: Write no data into the pipe, because
60299         test-pread actually reads none.  This avoids a diagnostic,
60300         "bash: echo: write error: Broken pipe", that arises in the unusual
60301         event something is ignoring SIGPIPE, and might be interpreted
60302         as some sort of failure.  Reported by Bruno Haible.
60304 2009-11-25  Jim Meyering  <meyering@redhat.com>
60306         test-pread: cover failure with ESPIPE and EINVAL
60307         * tests/test-pread.c (main): Test for failure, too.
60308         * tests/test-pread.sh: Invoke with stdin on a pipe.
60309         Suggested by Eric Blake.
60311         pread: improvement and fix
60312         * modules/pread (Depends-on): Depend on lseek, for portability to
60313         e.g., mingw.  Suggested by Eric Blake.
60314         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
60316         unistd.in.h: correct declaration of pread
60317         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
60318         Reported by Richard W.M. Jones.
60320         test-pread.sh: distribute the test script
60321         * modules/pread-tests (Files): Include test-pread.sh.
60323         test-pread.sh: clean up
60324         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
60325         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
60326         That is unnecessary, since it's always ".".
60327         Suggestion from Eric Blake.
60329         test-pread.sh: make executable
60330         * tests/test-pread.sh: Set executable bit.
60331         Reported by Eric Blake.
60333         correct typo in test-pread.sh
60334         * tests/test-pread.sh: Add #! line.
60336         test pread
60337         * tests/test-pread.c: New file.
60338         * tests/test-pread.sh: Likewise.
60339         * modules/pread-tests: Likewise.
60341         pread: new module
60342         * modules/pread: New file.
60343         * lib/unistd.in.h (pread): Define/declare.
60344         * lib/pread.c (pread): New file.
60345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
60346         * modules/unistd (Makefile.am): Substitute witnesses.
60347         * doc/posix-functions/pread.texi (pread): Update.
60348         * MODULES.html.sh: Add pread.
60350 2009-11-25  Jim Meyering  <meyering@redhat.com>
60352         tests/init.sh: new file to be used via most *.sh tests
60353         * tests/init.sh: New file.
60355 2009-11-25  Eric Blake  <ebb9@byu.net>
60357         utimens: work around older Linux failure with symlinks
60358         * lib/utimens.c (lutimensat_works_really): New variable.
60359         (fdutimens, lutimens): Use it to manage kernels that support
60360         nanosecond times on files, but not on symlinks.
60361         Reported by Ondřej Vašík.
60363         utimes: fix configure grammar
60364         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
60366 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
60368         regex: Fix fastmap for multibyte character ranges.
60369         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
60370         characters when a multibyte character range is included.
60372 2009-11-22  Andy Wingo  <wingo@pobox.com>
60374         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
60375         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
60377 2009-11-24  Bruno Haible  <bruno@clisp.org>
60379         doc: Most *_l functions exist in MacOS X 10.5.
60380         * doc/posix-functions/duplocale.texi: Update platforms list.
60381         * doc/posix-functions/freelocale.texi: Likewise.
60382         * doc/posix-functions/newlocale.texi: Likewise.
60383         * doc/posix-functions/uselocale.texi: Likewise.
60384         * doc/posix-functions/isalnum_l.texi: Likewise.
60385         * doc/posix-functions/isalpha_l.texi: Likewise.
60386         * doc/posix-functions/isblank_l.texi: Likewise.
60387         * doc/posix-functions/iscntrl_l.texi: Likewise.
60388         * doc/posix-functions/isdigit_l.texi: Likewise.
60389         * doc/posix-functions/isgraph_l.texi: Likewise.
60390         * doc/posix-functions/islower_l.texi: Likewise.
60391         * doc/posix-functions/isprint_l.texi: Likewise.
60392         * doc/posix-functions/ispunct_l.texi: Likewise.
60393         * doc/posix-functions/isspace_l.texi: Likewise.
60394         * doc/posix-functions/isupper_l.texi: Likewise.
60395         * doc/posix-functions/iswalnum_l.texi: Likewise.
60396         * doc/posix-functions/iswalpha_l.texi: Likewise.
60397         * doc/posix-functions/iswblank_l.texi: Likewise.
60398         * doc/posix-functions/iswcntrl_l.texi: Likewise.
60399         * doc/posix-functions/iswctype_l.texi: Likewise.
60400         * doc/posix-functions/iswdigit_l.texi: Likewise.
60401         * doc/posix-functions/iswgraph_l.texi: Likewise.
60402         * doc/posix-functions/iswlower_l.texi: Likewise.
60403         * doc/posix-functions/iswprint_l.texi: Likewise.
60404         * doc/posix-functions/iswpunct_l.texi: Likewise.
60405         * doc/posix-functions/iswspace_l.texi: Likewise.
60406         * doc/posix-functions/iswupper_l.texi: Likewise.
60407         * doc/posix-functions/iswxdigit_l.texi: Likewise.
60408         * doc/posix-functions/isxdigit_l.texi: Likewise.
60409         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
60410         * doc/posix-functions/strcasecmp_l.texi: Likewise.
60411         * doc/posix-functions/strcoll_l.texi: Likewise.
60412         * doc/posix-functions/strfmon_l.texi: Likewise.
60413         * doc/posix-functions/strftime_l.texi: Likewise.
60414         * doc/posix-functions/strncasecmp_l.texi: Likewise.
60415         * doc/posix-functions/strxfrm_l.texi: Likewise.
60416         * doc/posix-functions/tolower_l.texi: Likewise.
60417         * doc/posix-functions/toupper_l.texi: Likewise.
60418         * doc/posix-functions/towctrans_l.texi: Likewise.
60419         * doc/posix-functions/towlower_l.texi: Likewise.
60420         * doc/posix-functions/towupper_l.texi: Likewise.
60421         * doc/posix-functions/wcscoll_l.texi: Likewise.
60422         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
60423         * doc/posix-functions/wctrans_l.texi: Likewise.
60424         * doc/posix-functions/wctype_l.texi: Likewise.
60425         * doc/glibc-functions/strptime_l.texi: Likewise.
60426         * doc/glibc-functions/strtod_l.texi: Likewise.
60427         * doc/glibc-functions/strtof_l.texi: Likewise.
60428         * doc/glibc-functions/strtol_l.texi: Likewise.
60429         * doc/glibc-functions/strtold_l.texi: Likewise.
60430         * doc/glibc-functions/strtoll_l.texi: Likewise.
60431         * doc/glibc-functions/strtoul_l.texi: Likewise.
60432         * doc/glibc-functions/strtoull_l.texi: Likewise.
60433         * doc/glibc-functions/wcsftime_l.texi: Likewise.
60434         * doc/glibc-functions/wcstod_l.texi: Likewise.
60435         * doc/glibc-functions/wcstof_l.texi: Likewise.
60436         * doc/glibc-functions/wcstol_l.texi: Likewise.
60437         * doc/glibc-functions/wcstold_l.texi: Likewise.
60438         * doc/glibc-functions/wcstoll_l.texi: Likewise.
60439         * doc/glibc-functions/wcstoul_l.texi: Likewise.
60440         * doc/glibc-functions/wcstoull_l.texi: Likewise.
60442 2009-11-24  Bruno Haible  <bruno@clisp.org>
60444         duplocale: Fix logic bug.
60445         * lib/duplocale.c: Don't include <langinfo.h>.
60446         (_NL_LOCALE_NAME): Remove macro.
60447         (rpl_duplocale): Use setlocale instead of nl_langinfo.
60448         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
60450 2009-11-23  Jim Meyering  <meyering@redhat.com>
60452         test-update-copyright: don't hard-code /usr/bin/perl
60453         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
60454         perl to print the current year.  Gilles Espinasse reported that
60455         the replaced use of perl was hard-coded as /usr/bin/perl.
60457 2009-11-23  Bruno Haible  <bruno@clisp.org>
60459         duplocale: Add support for glibc 2.3.x.
60460         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
60462 2009-11-22  Bruno Haible  <bruno@clisp.org>
60464         vasnprintf: Tiny optimization.
60465         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
60466         MacOS X.
60468 2009-11-22  Bruno Haible  <bruno@clisp.org>
60470         Tests for module 'duplocale'.
60471         * modules/duplocale-tests: New file.
60472         * tests/test-duplocale.c: New file.
60474         New module 'duplocale'.
60475         * m4/duplocale.m4: New file.
60476         * lib/locale.in.h (duplocale): New declaration.
60477         * lib/duplocale.c: New file.
60478         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
60479         gl_LOCALE_H_DEFAULTS): New macros.
60480         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
60481         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
60482         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
60483         REPLACE_DUPLOCALE.
60484         * modules/duplocale: New file.
60485         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
60487 2009-11-22  Bruno Haible  <bruno@clisp.org>
60489         * modules/locale-tests (configure.ac): Test for newlocale function.
60490         * tests/test-locale.c: When the system has extended locale functions,
60491         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
60493         locale: Make locale_t available when possible.
60494         * lib/locale.in.h: Include <xlocale.h> when it exists.
60495         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
60496         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
60497         * modules/locale (Depends-on): Add extensions.
60498         (Makefile.am): Also substitute HAVE_XLOCALE_H.
60499         * doc/posix-headers/locale.texi: Document the problem with locale_t.
60501 2009-11-22  Bruno Haible  <bruno@clisp.org>
60503         Add comments.
60504         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
60505         invocation.
60506         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
60507         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
60508         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
60510 2009-11-22  Bruno Haible  <bruno@clisp.org>
60512         error: account for the possibility of freopen (stdout).
60513         * lib/error.c: Include <unistd.h>.
60514         (flush_stdout): New function, extracted from error and error_at_line.
60515         Determine stdout's fd dynamically.
60516         (error, error_at_line): Invoke flush_stdout.
60517         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
60518         * modules/error (Depends-on): Add unistd.
60520 2009-11-22  Bruno Haible  <bruno@clisp.org>
60522         diffseq: Add comment.
60523         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
60525 2009-11-22  Jim Meyering  <meyering@redhat.com>
60527         c-stack: avoid defining an unused static function
60528         * lib/c-stack.c (find_stack_direction): Do not define this function
60529         when it will not be used.
60531         diffseq: avoid spurious gcc warnings
60532         * lib/diffseq.h (IF_LINT2): Define.
60533         (compareseq): Use it to initialize two members of "part".
60534         This avoids two used-uninitialized warnings.
60536 2009-11-21  Jim Meyering  <meyering@redhat.com>
60538         c-stack: avoid "ignoring return value of `write'" warning
60539         * lib/c-stack.c: Include "ignore-value.h".
60540         (die): Explicitly ignore each write return value.
60541         * modules/c-stack (Depends-on): Add ignore-value.
60543 2009-11-21  Bruno Haible  <bruno@clisp.org>
60545         diffseq: reduce scope of variable 'best'.
60546         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
60547         variable, earlier used for two different purposes.
60549 2009-11-21  Jim Meyering  <meyering@redhat.com>
60551         diffseq: remove useless assignment to "best"
60552         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
60553         assignment.  At that point "best" is already guaranteed to be zero.
60555 2009-11-20  Eric Blake  <ebb9@byu.net>
60557         build: mention ftp redirector in release announcements
60558         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
60559         values that used to come from cfg.mk; mention FTP redirect URL.
60560         * build-aux/announce-gen: Mention the mirror list.
60561         Suggested by Karl Berry.
60563         nanosleep: improve port to mingw
60564         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
60565         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
60566         LIB_NANOSLEEP, but only when needed.
60567         * modules/select (Link): Document LIBSOCKET.
60568         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
60569         enough.
60571         nanosleep: work around cygwin bug
60572         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
60573         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
60574         bug.
60575         (getnow): Delete, not needed.
60576         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
60577         LIB_CLOCK_GETTIME.
60578         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
60579         clock-time, gettime.
60580         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
60581         bug.
60582         * modules/nanosleep-tests: New test.
60583         * tests/test-nanosleep.c: New file.
60585         sleep: work around cygwin bug
60586         * lib/sleep.c (rpl_sleep): Work around the bug.
60587         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
60588         (gl_PREREQ_SLEEP): Delete unused macro.
60589         * modules/sleep (Depends-on): Add verify.
60590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
60591         * modules/unistd (Makefile.am): Substitute witness.
60592         * lib/unistd.in.h (sleep): Update prototype.
60593         * doc/posix-functions/sleep.texi (sleep): Document the bug.
60594         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
60595         * modules/sleep-tests (Depends-on): Check for alarm.
60597 2009-11-20  Jim Meyering  <meyering@redhat.com>
60599         maint.mk: improve sc_prohibit_magic_number_exit
60600         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
60601         so it does not match uses like System.exit(1).
60602         Add comments showing how to correct all offenders.
60604 2009-11-19  Eric Blake  <ebb9@byu.net>
60606         xalloc-die-tests: add missing library
60607         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
60609         test-xvasprintf: silence compiler warnings
60610         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
60611         empty string from gcc.
60613 2009-11-19  Jim Meyering  <meyering@redhat.com>
60615         xfreopen: new module, from coreutils
60616         * modules/xfreopen: New module.
60617         * lib/xfreopen.c: New file.
60618         * lib/xfreopen.h: New file.
60619         * MODULES.html.sh (File stream based Input/Output"): Add it.
60621 2009-11-19  Eric Blake  <ebb9@byu.net>
60623         manywarnings: depend on warnings
60624         * modules/manywarnings (Depends-on): Add warnings.
60626         build: avoid compiler warnings
60627         * lib/select.c (rpl_select): Delete unused variable.
60628         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
60630 2009-11-18  Eric Blake  <ebb9@byu.net>
60632         tests: avoid false negative with --with-packager
60633         * tests/test-version-etc.sh: Discard packager information.
60634         * tests/test-argp-version-etc-1.sh: Likewise.
60635         Reported by Mike Frysinger.
60637         utimens: fix regression on Solaris
60638         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
60639         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
60640         can only change fd timestamps via futimesat.  Instead, use an
60641         additional witness macro to avoid BSD bug.
60642         Reported by Jim Meyering.
60644 2009-11-17  Eric Blake  <ebb9@byu.net>
60646         usleep: use it to simplify tests
60647         * modules/stat-time-tests (Depends-on): Add usleep.
60648         (configure.ac): Drop usleep check.
60649         * modules/chown-tests (Depends-on, configure.ac): Likewise.
60650         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
60651         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
60652         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
60653         * modules/openat-tests (Depends-on, configure.ac): Likewise.
60654         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
60655         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
60656         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
60657         Likewise.
60658         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
60659         * tests/test-lchown.h (nap): Likewise.
60660         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
60661         * tests/test-stat-time.c (nap): Likewise.
60662         * tests/test-utimens-common.h (nap): Update comments.
60664         usleep: new module
60665         * modules/usleep: New file.
60666         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
60667         * lib/usleep.c (usleep): Likewise.
60668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
60669         * modules/unistd (Makefile.am): Substitute witnesses.
60670         * lib/unistd.in.h (usleep): Add declaration.
60671         * doc/pastposix-functions/usleep.texi (usleep): Document this.
60672         * MODULES.html.sh (Date and time): Likewise.
60673         * modules/usleep-tests (Depends-on): New test.
60674         * tests/test-usleep.c: New file.
60676         chown: work around OpenBSD bug
60677         * lib/chown.c (rpl_chown): Work around the bug.
60678         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
60679         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
60680         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
60681         * modules/chown (Depends-on): Add stdbool.
60682         * modules/lchown (Depends-on): Likewise.
60683         * doc/posix-functions/chown.texi (chown): Document the bug.
60684         * doc/posix-functions/lchown.texi (lchown): Likewise.
60685         * tests/test-lchown.h (test_chown): Relax test.
60687         mkstemp: avoid conflict with C++ keyword template
60688         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
60689         * lib/mkostemp.c (mkostemp): Likewise.
60690         * lib/mkostemps.c (mkostemps): Likewise.
60691         * lib/mkstemp.c (mkstemp): Likewise.
60692         * lib/mkstemps.c (mkstemps): Likewise.
60694         xalloc-die-tests: optimize
60695         * tests/test-xalloc-die.sh: Reduce number of processes.
60697 2009-11-17  Simon Josefsson  <simon@josefsson.org>
60699         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
60700         patch from ludo@gnu.org (Ludovic Courtès).
60702 2009-11-17  Jim Meyering  <meyering@redhat.com>
60704         version-etc: use proper license string
60705         * modules/version-etc (License): Use LGPL, not LGPLv3+.
60706         * modules/version-etc-fsf: Likewise.
60708 2009-11-17  Simon Josefsson  <simon@josefsson.org>
60710         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
60711         printed to stdout.  Deal with EOL differences.
60713 2009-11-17  Eric Blake  <ebb9@byu.net>
60715         unsetenv: work around Solaris bug
60716         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
60717         * lib/unsetenv.c (rpl_unsetenv): Work around it.
60718         Reported by Jim Meyering.
60720         vasnprintf: avoid compiler warnings
60721         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
60722         variables.
60723         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
60725 2009-11-17  Simon Josefsson  <simon@josefsson.org>
60727         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
60728         settings since xalloc-die is no longer the self test,
60729         xalloc-die.sh is.
60731 2009-11-17  Jim Meyering  <meyering@redhat.com>
60733         test-xalloc-die.sh: make the code agree with the commit log
60734         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
60735         at the end, just in case you happen to have a test-xalloc-die
60736         program in some other PATH directory.
60738         test-xalloc-die.sh: fix a portability bug
60739         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
60740         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
60741         Otherwise, argv[0] (as often seen in diagnostics) would be too
60742         system-dependent, sometimes with, and sometimes without the leading "./".
60744         version-etc-fsf: relax license to LGPLv3+
60745         * modules/version-etc-fsf (License): Relax license.
60747 2009-11-16  Eric Blake  <ebb9@byu.net>
60749         xalloc-die-tests: avoid printing null pointer
60750         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
60751         shell script.
60752         * tests/test-xalloc-die.c (program_name): Declare.
60753         * tests/test-xalloc-die.sh (tmpfiles): New file.
60755         setenv, unsetenv: work around various bugs
60756         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
60757         (setenv) [HAVE_SETENV]: Work around bugs.
60758         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
60759         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
60760         for bugs.
60761         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
60762         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
60763         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
60764         * modules/stdlib (Makefile.am): Update substitutions.
60765         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
60766         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
60767         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
60768         * modules/setenv-tests: New test.
60769         * modules/unsetenv-tests: Likewise.
60770         * tests/test-setenv.c: New file.
60771         * tests/test-unsetenv.c: Likewise.
60773 2009-11-16  Jim Meyering  <meyering@redhat.com>
60775         version-etc: relax license to LGPLv3+
60776         * modules/version-etc (License): Relax license.
60778         better AC_REQUIRE expanded-before-required-warning avoidance
60779         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
60780         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
60781         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
60782         which is no longer needed.
60784 2009-11-16  Eric Blake  <ebb9@byu.net>
60786         test-freading: clean up temporary file
60787         * tests/test-freading.c (main): Remove file on success, and use
60788         ASSERT more liberally.
60789         Reported by Jim Meyering.
60791 2009-11-16  Jim Meyering  <meyering@redhat.com>
60793         avoid new AC_REQUIRE expanded-before-required warnings
60794         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
60795         merely using it.
60796         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
60797         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
60799 2009-11-15  Simon Josefsson  <simon@josefsson.org>
60801         * tests/test-xalloc-die.c: New file.
60802         * modules/xalloc-die-tests: New file.
60803         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
60804         XFAIL_TESTS so it can be appended by modules.
60806 2009-11-15  Simon Josefsson  <simon@josefsson.org>
60808         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
60809         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
60811 2009-11-14  Eric Blake  <ebb9@byu.net>
60813         fnmatch: avoid compiler warning
60814         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
60815         to silence compiler warning about mismatch signedness in ?:.
60816         Reported by Robert Millan.
60818         intprops: add double-inclusion guard
60819         * lib/intprops.h: Allow idempotent includes.
60820         Suggested by Bruce Korb.
60822         openat: detect Solaris fchownat bug
60823         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
60824         penalizing glibc chownat when only lchownat is broken.
60825         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
60826         trailing slash bugs.
60827         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
60828         * modules/openat-tests (Files): Include more files.
60829         (Depends-on): Add mgetgroups, sleep, stat-time.
60830         (configure.ac): Add additional checks.
60831         (Makefile.am): Build new test.
60832         * tests/test-fchownat.c: New file.
60834         lchown: detect Solaris and FreeBSD bug
60835         * lib/lchown.c (rpl_lchown): Work around bug.
60836         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
60837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60838         * modules/unistd (Makefile.am): Populate it.
60839         * lib/unistd.in.h (lchown): Update declaration.
60840         * doc/posix-functions/lchown.texi (lchown): Document the bug.
60841         * modules/lchown-tests: New file.
60842         * tests/test-lchown.h (test_lchown): Likewise.
60843         * tests/test-lchown.c (main): Likewise.
60845         chown: detect Solaris and FreeBSD bug
60846         * lib/chown.c (rpl_chown): Work around bug.
60847         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
60848         (gl_PREREQ_CHOWN): Delete.
60849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60850         * modules/unistd (Makefile.am): Populate it.
60851         * lib/unistd.in.h (chown): Update declaration.
60852         * lib/lchown.c (chown): Update client.
60853         * modules/lchown (Depends-on): Add lstat.
60854         * doc/posix-functions/chown.texi (chown): Document the bug.
60855         * doc/posix-functions/getgroups.texi (getgroups): Document
60856         getgroups pitfall.
60857         * modules/chown-tests: New file.
60858         * tests/test-chown.h (test_chown): Likewise.
60859         * tests/test-chown.c (main): Likewise.
60861 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
60863         gnulib-tool: correctly detect absence of m4 directories
60864         * gnulib-tool: Avoid extra newline on data passed to wc -l.
60866 2009-11-14  Jim Meyering  <meyering@redhat.com>
60868         maint.mk: Prohibit inclusion of "xalloc.h" without use.
60869         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
60871 2009-11-14  John W. Eaton  <jwe@gnu.org>
60873         strftime.h: wrap function declaration in extern "C" block
60874         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
60876 2009-11-13  Eric Blake  <ebb9@byu.net>
60878         getgroups: avoid compiler warning
60879         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
60881         getgroups: work around FreeBSD bug
60882         * lib/getgroups.c (rpl_getgroups): Work around the bug.
60883         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
60884         * doc/posix-functions/getgroups.texi (getgroups): Document it.
60885         * tests/test-getgroups.c (main): Fix buffer overrun.
60887         getgroups: avoid compilation failure
60888         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
60889         * modules/getgroups (Depends-on): Add stdint.
60891 2009-11-13  Jim Meyering  <meyering@redhat.com>
60893         test-getgroups: avoid compilation failure
60894         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
60896 2009-11-13  Eric Blake  <ebb9@byu.net>
60898         mgetgroups: new module, taken from coreutils
60899         * modules/mgetgroups: New file.
60900         * lib/mgetgroups.h: Likewise.
60901         * lib/mgetgroups.c (mgetgroups): Likewise.
60902         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
60903         * MODULES.html.sh (Users and groups): Mention it.
60905         getgroups: don't expose GETGROUPS_T to user
60906         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
60907         an element at a time if GETGROUPS_T is wrong size.
60908         * lib/getugroups.h (getugroups): Change signature.
60909         * lib/unistd.in.h (getgroups): Likewise.
60910         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
60911         signature needs fixing.
60912         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
60913         AC_TYPE_GETGROUPS.
60914         * modules/group-member (Depends-on): Add getgroups.
60915         * lib/group-member.c (group_info, get_group_info): Use gid_t.
60916         (group_member): Rely on getgroups replacement.
60917         * lib/getugroups.c (getugroups): Use gid_t.
60918         * tests/test-getgroups.c (main): Likewise.
60919         * NEWS: Mention the signature change.
60920         * doc/posix-functions/getgroups.texi (getgroups): Mention the
60921         problem with signature.
60922         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
60923         GETGROUPS_T is still useful for setgroups.
60925         getgroups, getugroups: provide stubs for mingw
60926         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
60927         * lib/getugroups.c (getugroups): Likewise.
60928         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
60929         function.  Modernize replacement scheme.
60930         (gl_PREREQ_GETGROUPS): Delete.
60931         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
60932         * modules/getgroups (configure.ac): Declare witness.
60933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
60934         * modules/unistd (Depends-on): Substitute witness.
60935         * lib/unistd.in.h (getgroups): Declare replacement.
60937         getgroups: avoid calling exit
60938         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
60939         drop xalloc.
60940         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
60941         dependencies.
60942         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
60943         exiting, in the rare case of malloc failure.
60945         getgroups: fix logic error
60946         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
60947         has more than 20 groups.
60948         * modules/getgroups-tests: New test.
60949         * tests/test-getgroups.c: New file.
60951 2009-11-13  Simon Josefsson  <simon@josefsson.org>
60953         * tests/test-base64.c: Improve.
60955 2009-11-13  Simon Josefsson  <simon@josefsson.org>
60957         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
60958         Blake <ebb9@byu.net>.
60960 2009-11-13  Simon Josefsson  <simon@josefsson.org>
60962         * tests/test-xvasprintf.c: Add %s%s related checks.
60964 2009-11-12  Eric Blake  <ebb9@byu.net>
60966         version-etc: match standards.texi style
60967         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
60968         and use <> only for URLs.
60970 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
60972         fts: do not fail on a submount during traversal
60973         * lib/fts.c (fts_build): Read the stat info again after opening
60974         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
60975         Original report at http://bugzilla.redhat.com/501848.
60977 2009-11-12  Jim Meyering  <meyering@redhat.com>
60979         bootstrap: sync from coreutils
60980         * build-aux/bootstrap (bootstrap_epilogue): New function.
60981         Use git_modules_config in one more place.  This make bootstrap's
60982         --gnulib-srcdir option more useful for testing.
60984         bootstrap: generalize autoheader check
60985         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
60986         AC_CONFIG_HEADERS.
60988 2009-11-11  Eric Blake  <ebb9@byu.net>
60990         mkfifoat: use new modules for Solaris and BSD bugs
60991         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
60992         * lib/mkfifoat.c (mknodat): Split...
60993         * lib/mknodat.c (mknodat): ...into new file.
60994         * modules/mkfifoat (Files): Ship new file.
60995         (Depends-on): Add mkfifo, mknod.
60996         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
60997         (Depends-on): Add symlink.
60998         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
60999         redundant with test_mkfifo.h.
61000         (do_mkfifoat, do_mknodat): New helpers.
61002         mknod: new module
61003         * modules/mknod: New file.
61004         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
61005         * lib/mknod.c (mknod): Likewise.
61006         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
61007         defaults.
61008         * modules/sys_stat (Makefile.am): Substitute them.
61009         * lib/sys_stat.in.h (mknod): Declare replacement.
61010         * MODULES.html.sh (Support for systems lacking POSIX:2008):
61011         Document it.
61012         * doc/posix-functions/mknod.texi (mknod): Likewise.
61013         * modules/mknod-tests: New test.
61014         * tests/test-mknod.c: Likewise.
61016         mkfifo: new module
61017         * modules/mkfifo: New file.
61018         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
61019         * lib/mkfifo.c (mkfifo): Likewise.
61020         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
61021         defaults.
61022         * modules/sys_stat (Makefile.am): Substitute them.
61023         * lib/sys_stat.in.h (mkfifo): Declare replacement.
61024         * MODULES.html.sh (Support for systems lacking POSIX:2008):
61025         Document it.
61026         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
61027         * modules/mkfifo-tests: New test.
61028         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
61029         from test-mkfifoat.c.
61030         * tests/test-mkfifo.c: New file.
61032         readlink: detect FreeBSD bug
61033         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
61034         slash on symlink.
61035         * doc/posix-functions/readlink.texi (readlink): Document the bug.
61036         * tests/test-readlink.h (test_readlink): Enhance test.
61038         symlink: detect FreeBSD bug
61039         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
61040         slash on symlink.
61041         * doc/posix-functions/symlink.texi (symlink): Document the bug.
61042         * tests/test-symlink.h (test_symlink): Enhance test.
61044 2009-11-10  Eric Blake  <ebb9@byu.net>
61046         link: detect FreeBSD bug
61047         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
61048         symlink.
61049         * doc/posix-functions/link.texi (link): Document the bug.
61050         * tests/test-link.h (test_link): Enhance test.
61051         * tests/test-linkat.c (main): Update caller.
61053         unlink, remove: detect FreeBSD bug
61054         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
61055         slash on symlink.
61056         * doc/posix-functions/unlink.texi (unlink): Document the bug.
61057         * doc/posix-functions/remove.texi (remove): Likewise.
61058         * tests/test-unlink.h (test_unlink): Enhance test.
61059         * tests/test-remove.c (main): Likewise.
61061 2009-11-09  Eric Blake  <ebb9@byu.net>
61063         rename: detect FreeBSD bug
61064         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
61065         slash on symlink.
61066         * modules/renameat-tests (Depends-on): Add filenamecat.
61067         * tests/test-rename.h (test_rename): Allow one more errno.
61068         * tests/test-renameat.c (main): Likewise.
61069         * doc/posix-functions/rename.texi (rename): Document the bug.
61071         open: detect FreeBSD bug
61072         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
61073         symlink.
61074         * doc/posix-functions/open.texi (open): Document the bug.
61075         * doc/posix-functions/utimes.texi (utimes): Likewise.
61076         * tests/test-open.h (test_open): Add parameters, and test symlink
61077         handling.
61078         * tests/test-open.c (main): Adjust caller.
61079         * tests/test-fcntl-safer.c (main): Likewise.
61080         * modules/open-tests (Depends-on): Add stdbool, symlink.
61081         * modules/fcntl-safer-tests (Depends-on): Likewise.
61082         * tests/test-openat.c (main): Add test-open tests.
61084         stat: detect FreeBSD bug
61085         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
61086         symlink.
61087         * doc/posix-functions/stat.texi (stat): Document the bug.
61088         * tests/test-stat.h (test_stat_func): Add argument.
61089         * tests/test-stat.c (main): Adjust caller.
61090         * tests/test-fstatat.c (main): Likewise.
61091         * modules/stat-tests (Depends-on): Add stdbool, symlink.
61092         Reported by Jim Meyering.
61094 2009-11-09  James Youngman  <jay@gnu.org>
61096         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
61097         * lib/strftime.c: Correct placement of #include "ignore-value.h".
61099 2009-11-08  Jim Meyering  <meyering@redhat.com>
61101         utimens: remove invalid futimesat call
61102         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
61103         It used the file descriptor of the target file as the DIR_FD
61104         parameter and NULL as the file name.  That caused failure with
61105         errno == EFAULT on FreeBSD-8.0-rc2
61107 2009-11-07  Eric Blake  <ebb9@byu.net>
61109         fflush, freadseek: use fseeko, not fseek
61110         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
61111         (clear_ungetc_buffer): Avoid potential problems on large files.
61112         * lib/freadseek.c (freadseek): Likewise.
61113         * modules/freadseek (Depends-on): Add fseeko.
61114         * modules/fseek (configure.ac): Set a witness.
61115         * tests/test-fflush.c (main): Use fseeko.
61116         * tests/test-fpurge.c (fseek): Disable link warning.
61117         * tests/test-freadable.c (fseek): Likewise.
61118         * tests/test-freading.c (fseek): Likewise.
61119         * tests/test-fseeko.c (fseek): Likewise.
61120         * tests/test-ftell.c (fseek): Likewise.
61121         * tests/test-ftello.c (fseek): Likewise.
61122         * tests/test-fwritable.c (fseek): Likewise.
61123         * tests/test-fwriting.c (fseek): Likewise.
61125 2009-11-06  Simon Josefsson  <simon@josefsson.org>
61127         * modules/memchr (Depends-on): Drop getpagesize dependency.
61129 2009-11-06  Simon Josefsson  <simon@josefsson.org>
61131         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
61132         Reported by Ludovic Courtès.
61133         * build-aux/pmccabe2html: Improve example usage.
61134         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
61136 2009-11-06  Jim Meyering  <meyering@redhat.com>
61138         do-release-commit-and-tag: New module.
61139         Automate the release-commit and tag process.
61140         * build-aux/do-release-commit-and-tag: New script, from coreutils.
61141         * modules/do-release-commit-and-tag: New file.
61142         * MODULES.html.sh (Support for maintaining and releasing): Add it.
61144 2009-11-06  Simon Josefsson  <simon@josefsson.org>
61146         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
61147         because test-select.c uses inet_pton.
61149 2009-11-06  Simon Josefsson  <simon@josefsson.org>
61151         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
61152         GETADDRINFO_LIB.  Bump serial number.
61153         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
61154         Suggested by Eric Blake <ebb9@byu.net>.
61156 2009-11-05  Eric Blake  <ebb9@byu.net>
61158         strtod: detect darwin bug
61159         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
61160         Reported by Leo Davis.
61162         freopen-safer: new module
61163         * modules/freopen-safer: New module.
61164         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
61165         * lib/freopen-safer.c (freopen_safer): New file.
61166         * lib/stdio-safer.h (freopen_safer): New declaration.
61167         * lib/stdio--.h (freopen): New override.
61168         * MODULES.html.sh (File stream based Input/Output): Mention it.
61169         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
61170         freopen-safer module.
61171         * doc/posix-functions/stderr.texi (stderr): Likewise.
61172         * doc/posix-functions/stdin.texi (stdin): Likewise.
61173         * doc/posix-functions/stdout.texi (stdout): Likewise.
61174         * modules/freopen-safer-tests: New test.
61175         * tests/test-reopen-safer.c: New file.
61177 2009-11-05  Jim Meyering  <meyering@redhat.com>
61179         maint.mk: Prohibit inclusion of "close-stream.h" without use.
61180         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
61182 2009-11-05  Simon Josefsson  <simon@josefsson.org>
61184         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
61186 2009-11-05  Simon Josefsson  <simon@josefsson.org>
61188         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
61190 2009-11-05  Simon Josefsson  <simon@josefsson.org>
61192         Fix link error.
61193         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
61194         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
61196 2009-11-05  Simon Josefsson  <simon@josefsson.org>
61198         * tests/test-func.c: Also test value of __func__.
61200 2009-11-05  Simon Josefsson  <simon@josefsson.org>
61202         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
61203         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
61205 2009-11-05  Bruno Haible  <bruno@clisp.org>
61207         Fix link error.
61208         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
61209         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
61210         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
61212 2009-11-05  Bruno Haible  <bruno@clisp.org>
61214         Tests for module 'inet_pton'.
61215         * modules/inet_pton-tests: New file.
61216         * tests/test-inet_pton.c: New file.
61218 2009-11-05  Bruno Haible  <bruno@clisp.org>
61220         Tests for module 'inet_ntop'.
61221         * modules/inet_ntop-tests: New file.
61222         * tests/test-inet_ntop.c: New file.
61224 2009-11-04  Eric Blake  <ebb9@byu.net>
61226         stdlib-safer: wrap all mkstemp variants
61227         * modules/mkostemp (configure.ac): Set witness.
61228         * modules/mkostemps (configure.ac): Likewise.
61229         * modules/mkstemps (configure.ac): Likewise.
61230         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
61231         (mkstemps_safer): Wrap more functions.
61232         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
61233         wrapping.
61234         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
61235         (mkstemps_safer): Implement the wrappers.
61237         mkstemps, mkostemps: new modules
61238         * modules/mkostemps: New module.
61239         * modules/mkstemps: Likewise.
61240         * lib/mkostemps.c (mkostemps): New file.
61241         * lib/mkstemps.c (mkstemps): Likewise.
61242         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
61243         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
61244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
61245         * modules/stdlib (Makefile.am): Substitute them.
61246         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
61247         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
61248         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
61249         * doc/gnulib.texi (Glibc stdlib.h): Include them.
61250         * MODULES.html.sh (File system functions): Mention them.
61252         tempname: resync from glibc
61253         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
61254         same values for __GT_FILE as glibc.  Abort even when assertions
61255         are disabled.
61256         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
61257         match its value otherwise.  Allow idempotent inclusion.
61258         * lib/mkdtemp.c (mkdtemp): Adjust caller.
61259         * lib/mkostemp.c (mkostemp): Likewise.
61260         * lib/mkstemp.c (mkstemp): Likewise.
61261         * lib/tmpfile.c (tmpfile): Likewise.
61262         * NEWS: Document this.
61264         utimens: fix use of futimens on older Linux
61265         * lib/utimens.c (fdutimens): Use updated, rather than original,
61266         timespec to avoid bug in older Linux kernel.
61267         Reported by Simon Josefsson.
61269 2009-11-04  Bruno Haible  <bruno@clisp.org>
61271         Make num_processors more flexible and consistent.
61272         * lib/nproc.h (enum nproc_query): New type.
61273         (num_processors): Add a 'query' argument.
61274         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
61275         (num_processors): Add a 'query' argument. Test the value of the
61276         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
61277         mingw, count the number of CPUs available for the current process.
61278         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
61279         Check for sched_getaffinity and sched_getaffinity_np.
61280         * modules/nproc (Depends-on): Add c-ctype, extensions.
61281         * NEWS: Mention the change.
61283 2009-11-03  Bruno Haible  <bruno@clisp.org>
61285         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
61287 2009-11-03  Jim Meyering  <meyering@redhat.com>
61289         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
61290         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
61291         if it is defined.
61293 2009-11-02  Eric Blake  <ebb9@byu.net>
61295         mktime, timegm: share common declaration
61296         * lib/mktime-internal.h: New file.
61297         * lib/mktime.c: Use it rather than open-coding a declaration.
61298         * lib/timegm.c: Likewise.
61299         * modules/mktime (Files): Ship it.
61300         * modules/timegm (Files): Likewise.
61301         Suggested by Bruno Haible.
61303         test-update-copyright: update test to match script changes
61304         * tests/test-update-copyright.sh: Avoid hard-coding perl
61305         location.  Don't update *.bak created by earlier runs.
61307 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61308             Simon Josefsson  <simon@josefsson.org>
61309             Bruno Haible  <bruno@clisp.org>
61311         Fix link error on Solaris 8.
61312         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
61313         also in libnsl. Define also INET_PTON_LIB.
61314         * modules/inet_pton (Link): New section.
61316 2009-11-02  Simon Josefsson  <simon@josefsson.org>
61317             Bruno Haible  <bruno@clisp.org>
61319         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
61320         * modules/inet_ntop (Link): New section.
61321         Reported by Boyan Kasarov <bkasarov@gmail.com>.
61323 2009-11-02  Eric Blake  <ebb9@byu.net>
61325         maint: avoid compiler warnings in m4 macros
61326         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
61327         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
61329 2009-11-02  Simon Josefsson  <simon@josefsson.org>
61331         * m4/pmccabe2html.m4: Remove file.
61332         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
61333         function.  Change maintainer.
61334         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
61335         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
61336         Courtès).
61338 2009-10-31  Eric Blake  <ebb9@byu.net>
61340         fseeko: fix m4 regression
61341         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
61342         regression from 2009-10-27.
61343         Reported by Ralf Wildenhues.
61345 2009-10-31  Jim Meyering  <meyering@redhat.com>
61347         inttostr: aesthetics and improved (compile-time) safety
61348         Define inttype_is_signed rather than inttype_is_unsigned,
61349         since the sole use is via "#if inttype_is_signed".
61350         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
61351         inttype_is_unsigned.
61352         * lib/offtostr.c (inttype_is_signed): Likewise.
61353         * lib/uinttostr.c (inttype_is_signed): Likewise.
61354         * lib/umaxtostr.c (inttype_is_signed): Likewise.
61355         * lib/inttostr.c (inttostr): Use verify to cross-check the
61356         inttype_is_signed value and the signedness of the actual type.
61357         * modules/inttostr (Depends-on): Add verify.
61359 2009-10-30  Eric Blake  <ebb9@byu.net>
61361         build: avoid compiler warnings
61362         * lib/fchmodat.c (lchmod): Mark unused variables.
61363         * lib/getopt.c (_getopt_initialize): Likewise.
61364         * lib/mktime.c (__mktime_internal): Provide prototype.
61365         * lib/inttostr.c (inttostr): Avoid compiler warning even with
61366         older gcc that do not understand #pragma GCC diagnostic.
61367         * lib/uinttostr.c (inttype_is_unsigned): Define.
61368         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
61370 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
61372         stat: fix compilation on AIX
61373         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
61374         only see struct stat64.
61376 2009-10-30  Eric Blake  <ebb9@byu.net>
61378         exclude: make more robust
61379         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
61380         rather than masking a coding bug.
61381         Suggested by Bruno Haible.
61383 2009-10-30  Jim Meyering  <meyering@redhat.com>
61385         perl scripts: remove #!/usr/bin/perl in favor of more portable...
61386         Rather than putting #!/usr/bin/perl on the first line,
61387         start with a variant of what's recommended by "man perlrun" that
61388         invokes the first "perl" program from your shell's search path.
61389         * build-aux/gitlog-to-changelog: Replace #!... as above.
61390         Add a "Local Variables" perl mode setting.
61391         Prompted by a patch from Ludovic Courtès.
61392         Improved by Eric Blake.
61393         * build-aux/useless-if-before-free: Likewise.
61394         * build-aux/announce-gen: Likewise.
61395         * build-aux/update-copyright: Likewise.
61397 2009-10-29  Eric Blake  <ebb9@byu.net>
61399         filenamecat-lgpl: adjust clients
61400         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
61401         filenamecat.
61402         * modules/renameat (Depends-on): Likewise.
61404         filenamecat: split into filenamecat-lgpl
61405         * modules/filenamecat-lgpl: New module.
61406         * modules/filenamecat (Files): Move library-safe files into
61407         filenamecat-lgpl.
61408         (Depends-on): Add filenamecat-lgpl.
61409         (configure.ac): Declare witness.
61410         * lib/filenamecat.h (file_name_concat): Only declare when using
61411         GPL module.
61412         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
61413         Move...
61414         * lib/filenamecat-lgpl.c: ...into new file.
61415         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
61416         (gl_FILE_NAME_CONCAT): Use it.
61417         * MODULES.html.sh (File system functions): Mention new module.
61419         argp: avoid memory leak
61420         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
61421         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
61422         base_name, since the latter malloc()s and can call exit().
61423         Leak introduced 2006-07-03.
61425         dirname-lgpl: adjust clients that don't need full dirname
61426         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
61427         * modules/filenamecat (Depends-on): Likewise.
61428         * modules/linkat (Depends-on): Likewise.
61429         * modules/mkancesdirs (Depends-on): Likewise.
61430         * modules/mkdir (Depends-on): Likewise.
61431         * modules/openat (Depends-on): Likewise.
61432         * modules/savewd (Depends-on): Likewise.
61433         * modules/rename (Depends-on): Likewise.
61434         (License): Relax license.
61435         * modules/mkdir-tests (Depends-on): Drop progname.
61436         (Makefile.am): Delete unneeded LDADD.
61437         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
61439         dirname: split into dirname-lgpl
61440         * modules/dirname-lgpl: New module.
61441         * modules/dirname (Files): Move library-safe files into
61442         dirname-lgpl.
61443         (Depends-on): Add dirname-lgpl.
61444         (configure.ac): Declare witness.
61445         * modules/double-slash-root (License): Relax license.
61446         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
61447         module.
61448         * lib/dirname.c (dir_len, mdir_name): Move...
61449         * lib/dirname-lgpl.c: ...into new file.
61450         * lib/basename.c (last_component, base_len): Move...
61451         * lib/basename-lgpl.c: ...into new file.
61452         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
61453         (gl_DIRNAME): Use it.
61454         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
61455         Mention new module.
61456         * modules/dirname-tests (Depends-on): Add progname.
61457         * tests/test-dirname.c (program_name): Delete.
61459         mkdir: make safe for libraries
61460         * modules/mkdir (Depends-on): Drop xalloc.
61461         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
61462         exit.
61464         tests: avoid some compiler warnings
61465         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
61466         literals.
61467         * tests/test-memchr.c (main): Avoid type mismatch.
61468         * tests/test-arpa_inet.c (main): Avoid unused parameters.
61469         * tests/test-base64.c (main): Likewise.
61470         * tests/test-getdelim.c (main): Likewise.
61471         * tests/test-gethostname.c (main): Likewise.
61472         * tests/test-getline.c (main): Likewise.
61473         * tests/test-netinet_in.c (main): Likewise.
61474         * tests/test-select.c (open_server_socket, main): Likewise.
61475         * tests/test-select-stdin.c (main): Likewise.
61476         * tests/test-sockets.c (main): Likewise.
61477         * tests/test-strsignal.c (main): Likewise.
61478         * tests/test-sys_select.c (main): Likewise.
61479         * tests/test-sys_socket.c (main): Likewise.
61480         * tests/test-u64.c (main): Likewise.
61481         * tests/test-xfprintf-posix.c (main): Likewise.
61482         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
61484         sockets: avoid compiler warning
61485         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
61487         maint: detect usage(1) and other suspicious exits
61488         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
61490 2009-10-29  Jim Meyering  <meyering@redhat.com>
61492         timespec: long-to-int truncation could make timespec_cmp malfunction
61493         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
61494         a multiple of 2^32 nanoseconds as no difference.
61496 2009-10-28  Jim Meyering  <meyering@redhat.com>
61498         fprintftime: wrap macro code argument in "do {...} while(0)"
61499         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
61500         cpy macro must be a statement that can be followed by a semicolon.
61501         Now that the else clause contains a comment and is hence longer
61502         than one line, I require curly braces.  That in turn requires
61503         that we wrap this code block in the standard do...while(0).
61505         fprintftime: remove stray semicolon from previous change
61506         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
61508         fprintftime: avoid a warning about ignored fwrite return value
61509         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
61510         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
61511         that is unsafe.
61512         * modules/fprintftime (Depends-on): Add ignore-value.
61514         exclude: avoid an unwarranted warning
61515         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
61517 2009-10-27  Eric Blake  <ebb9@byu.net>
61519         fseek: avoid compilation failure when fflush is replaced
61520         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
61521         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
61522         module is in use.
61523         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
61524         module is not in use; since REPLACE_FSEEK worked otherwise.
61525         (GNULIB_FTELLO): Likewise for ftell.
61526         Reported by Ian Beckwith and others.
61528 2009-10-27  Bruno Haible  <bruno@clisp.org>
61530         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
61531         Reported by Jim Meyering.
61533 2009-10-27  Jim Meyering  <jim@meyering.net>
61534             Bruno Haible  <bruno@clisp.org>
61536         Avoid warning despite dropping the return value of fwrite.
61537         * lib/unicodeio.c: Include ignore-value.h.
61538         (fwrite_success_callback): Explicitly ignore fwrite's return value.
61539         * modules/unicodeio (Depends-on): Add ignore-value.
61541 2009-10-26  Eric Blake  <ebb9@byu.net>
61543         areadlinkat: fix fallback path
61544         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
61545         pointer and zero.
61547 2009-10-22  Pádraig Brady  <P@draigBrady.com>
61549         Use a better IO block size for modern systems
61550         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
61551         * lib/md2.c: Likewise.
61552         * lib/md4.c: Likewise.
61553         * lib/md5.c: Likewise.
61554         * lib/sha1.c: Likewise.
61555         * lib/sha256.c: Likewise.
61556         * lib/sha512.c: Likewise.
61558 2009-10-22  Eric Blake  <ebb9@byu.net>
61560         tests: avoid several compiler warnings
61561         * tests/test-getcwd.c (main): Avoid buffer underflow.
61562         * tests/test-getdate.c (main): String literals are not safe with
61563         putenv, so use setenv.  Declare unused argument.
61564         * modules/getdate-tests (Depends-on): Add setenv.
61565         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
61566         problems with string literals in char *.
61567         * tests/test-hash.c (main): Avoid shadowing declaration.
61568         (insert_new): Treat string literals as char const *.
61569         * tests/test-getopt.h (test_getopt): Likewise.
61570         (getopt_loop): Alter types to minimize casting elsewhere.
61571         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
61572         (test_getopt_long_posix): Likewise.
61573         (do_getopt_long): Add wrapper to minimize casting.
61574         * tests/test-atexit.c (clear_temp_file): Use void.
61575         * tests/test-areadlink-with-size.c (main): Declare unused
61576         arguments.
61577         * tests/test-areadlink.c (main): Likewise.
61578         * tests/test-areadlinkat-with-size.c (main): Likewise.
61579         * tests/test-areadlinkat.c (main): Likewise.
61580         * tests/test-canonicalize-lgpl.c (main): Likewise.
61581         * tests/test-canonicalize.c (main): Likewise.
61582         * tests/test-dirent-safer.c (main): Likewise.
61583         * tests/test-dirname.c (main): Likewise.
61584         * tests/test-dup2.c (main): Likewise.
61585         * tests/test-fchdir.c (main): Likewise.
61586         * tests/test-fcntl-h.c (main): Likewise.
61587         * tests/test-fcntl-safer.c (main): Likewise.
61588         * tests/test-fdopendir.c (main): Likewise.
61589         * tests/test-fdutimensat.c (main): Likewise.
61590         * tests/test-fflush.c (main): Likewise.
61591         * tests/test-filenamecat.c (main): Likewise.
61592         * tests/test-filevercmp.c (main): Likewise.
61593         * tests/test-fopen-safer.c (main): Likewise.
61594         * tests/test-fopen.c (main): Likewise.
61595         * tests/test-fpending.c (main): Likewise.
61596         * tests/test-fpurge.c (main): Likewise.
61597         * tests/test-freading.c (main): Likewise.
61598         * tests/test-fstatat.c (main): Likewise.
61599         * tests/test-fsync.c (main): Likewise.
61600         * tests/test-futimens.c (main): Likewise.
61601         * tests/test-getndelim2.c (main): Likewise.
61602         * tests/test-gettimeofday.c (main): Likewise.
61603         * tests/test-getopt.c (main): Likewise.
61604         * tests/test-i-ring.c (main): Likewise.
61605         * tests/test-inttypes.c (main): Likewise.
61606         * tests/test-link.c (main): Likewise.
61607         * tests/test-lstat.c (main): Likewise.
61608         * tests/test-math.c (main): Likewise.
61609         * tests/test-md5.c (main): Likewise.
61610         * tests/test-memchr2.c (main): Likewise.
61611         * tests/test-memrchr.c (main): Likewise.
61612         * tests/test-mkdir.c (main): Likewise.
61613         * tests/test-mkdirat.c (main): Likewise.
61614         * tests/test-mkfifoat.c (main): Likewise.
61615         * tests/test-open.c (main): Likewise.
61616         * tests/test-openat-safer.c (main): Likewise.
61617         * tests/test-openat.c (main): Likewise.
61618         * tests/test-quotearg.c (main): Likewise.
61619         * tests/test-rawmemchr.c (main): Likewise.
61620         * tests/test-readlink.c (main): Likewise.
61621         * tests/test-remove.c (main): Likewise.
61622         * tests/test-rename.c (main): Likewise.
61623         * tests/test-renameat.c (main): Likewise.
61624         * tests/test-rmdir.c (main): Likewise.
61625         * tests/test-sha1.c (main): Likewise.
61626         * tests/test-signal.c (main): Likewise.
61627         * tests/test-sigaction.c (main): Likewise.
61628         * tests/test-stat.c (main): Likewise.
61629         * tests/test-stat-time.c (main): Likewise.
61630         * tests/test-stddef.c (main): Likewise.
61631         * tests/test-stdint.c (main): Likewise.
61632         * tests/test-stdio.c (main): Likewise.
61633         * tests/test-stdlib.c (main): Likewise.
61634         * tests/test-strchrnul.c (main): Likewise.
61635         * tests/test-strerror.c (main): Likewise.
61636         * tests/test-string.c (main): Likewise.
61637         * tests/test-strtod.c (main): Likewise.
61638         * tests/test-strverscmp.c (main): Likewise.
61639         * tests/test-symlink.c (main): Likewise.
61640         * tests/test-symlinkat.c (main): Likewise.
61641         * tests/test-sys_stat.c (main): Likewise.
61642         * tests/test-sys_time.c (main): Likewise.
61643         * tests/test-time.c (main): Likewise.
61644         * tests/test-unistd.c (main): Likewise.
61645         * tests/test-unlink.c (main): Likewise.
61646         * tests/test-unlinkat.c (main): Likewise.
61647         * tests/test-utimens.c (main): Likewise.
61648         * tests/test-utimensat.c (main): Likewise.
61649         * tests/test-version-etc.c (main): Likewise.
61650         * tests/test-wchar.c (main): Likewise.
61651         * tests/test-wctype.c (main): Likewise.
61652         * tests/test-xprintf-posix.c (main): Likewise.
61653         * tests/test-posixtm.c (main): Likewise.
61654         (STREQ): Delete unused macro.
61655         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
61656         shadowed variables.
61657         * tests/test-memchr.c (main): Likewise.
61659 2009-10-21  Eric Blake  <ebb9@byu.net>
61661         areadlinkat: avoid failure on older glibc
61662         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
61663         rather than mis-comparing 0 against FUNC_RESULT of char*.
61665 2009-10-21  Bruno Haible  <bruno@clisp.org>
61667         * modules/stpncpy (License): Relicense under LGPLv2+.
61668         Reported by David Lutterkort <lutter@redhat.com>.
61670 2009-10-20  Eric Blake  <ebb9@byu.net>
61672         utimensat: work around Solaris 9 bug
61673         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
61674         has trailing slash bugs.
61675         * tests/test-lutimens.h (test_lutimens): Enhance test.
61676         * tests/test-utimens.h (test_utimens): Likewise.
61677         * doc/posix-functions/utime.texi (utime): Enhance documentation.
61678         * doc/posix-functions/utimes.texi (utimes): Likewise.
61679         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
61680         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
61681         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
61682         * doc/posix-functions/futimens.texi (futimens): Likewise.
61684         fdutimensat: new module
61685         * modules/fdutimensat: New file.
61686         * lib/fdutimensat.c (fdutimensat): Likewise.
61687         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
61688         * MODULES.html.sh (File system functions): Mention module.
61689         * modules/fdutimensat-tests: New test.
61690         * tests/test-fdutimensat.c: Likewise.
61692         doc: regenerate INSTALL
61693         * doc/INSTALL: Reflect recent autoconf update.
61694         * doc/INSTALL.ISO: Likewise.
61695         * doc/INSTALL.UTF-8: Likewise.
61697 2009-10-20  Pádraig Brady  <P@draigBrady.com>
61699         acl: warn if ACL support is not detected
61700         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
61702 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
61704         * lib/nproc.h: Add extern "C" block for C++.
61706 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
61707             Bruno Haible  <bruno@clisp.org>
61709         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
61710         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
61711         * doc/posix-functions/isalpha.texi: Likewise.
61712         * doc/posix-functions/isblank.texi: Likewise.
61713         * doc/posix-functions/iscntrl.texi: Likewise.
61714         * doc/posix-functions/isdigit.texi: Likewise.
61715         * doc/posix-functions/isgraph.texi: Likewise.
61716         * doc/posix-functions/islower.texi: Likewise.
61717         * doc/posix-functions/isprint.texi: Likewise.
61718         * doc/posix-functions/ispunct.texi: Likewise.
61719         * doc/posix-functions/isspace.texi: Likewise.
61720         * doc/posix-functions/isupper.texi: Likewise.
61721         * doc/posix-functions/isxdigit.texi: Likewise.
61723 2009-10-18  Bruno Haible  <bruno@clisp.org>
61725         Tests for module 'isblank'.
61726         * modules/isblank-tests: New file.
61727         * tests/test-isblank.c: New file.
61729         New module 'isblank'.
61730         * lib/isblank.c: New file.
61731         * m4/isblank.m4: New file.
61732         * modules/isblank: New file.
61733         * doc/posix-functions/isblank.texi: Mention the new module.
61735 2009-10-18  Bruno Haible  <bruno@clisp.org>
61737         New module 'ctype'.
61738         * lib/ctype.in.h: New file.
61739         * m4/ctype.m4: New file.
61740         * modules/ctype: New file.
61741         * doc/posix-headers/ctype.texi: Mention the new module.
61743 2009-10-18  Jim Meyering  <meyering@redhat.com>
61745         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
61746         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
61747         right after its initialization, rather than farther down.
61748         Keeping these in close proximity makes it easier to ensure
61749         that each such variable is initialized.  E.g.,
61751             LIB_CLOCK_GETTIME=
61752             AC_SUBST([LIB_CLOCK_GETTIME])
61754         This change also increments these serial numbers.
61755         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
61756         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
61757         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61759 2009-10-18  Bruno Haible  <bruno@clisp.org>
61761         Don't let environment variables perturb build.
61762         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
61763         (gl_PREREQ_GETHRXTIME): ... not here.
61765 2009-10-18  Bruno Haible  <bruno@clisp.org>
61767         Avoid symlink attack in localcharset module.
61768         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
61769         (O_NOFOLLOW): Define fallback.
61770         (get_charset_aliases): Don't open the file if it is a symbolic link.
61771         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
61772         gl_FCNTL_H.
61773         (gl_FCNTL_H): Require it.
61774         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
61775         * modules/localcharset (Files): Add m4/fcntl_h.m4.
61776         Reported by Fergal Glynn <fglynn@veracode.com>.
61778 2009-10-18  Bruno Haible  <bruno@clisp.org>
61780         Implement nproc for mingw.
61781         * lib/nproc.c: Include <windows.h>
61782         (num_processors): On native Windows platforms, try GetSystemInfo.
61784 2009-10-18  Bruno Haible  <bruno@clisp.org>
61786         Implement nproc for IRIX.
61787         * lib/nproc.c: Include <sys/sysmp.h>.
61788         (num_processors): On IRIX systems, try sysmp.
61789         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
61791 2009-10-18  Bruno Haible  <bruno@clisp.org>
61793         Implement nproc for HP-UX.
61794         * lib/nproc.c: Include <sys/pstat.h>
61795         (num_processors): On HP-UX systems, try pstat_getdynamic.
61796         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
61797         pstat_getdynamic.
61799 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
61800             Bruno Haible  <bruno@clisp.org>
61802         Implement nproc for NetBSD, OpenBSD.
61803         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
61804         (ARRAY_SIZE): New macro.
61805         (num_processors): On BSD systems, try sysctl of HW_NCPU.
61806         * m4/nproc.m4: New file.
61807         * modules/nproc (Files): Add m4/nproc.m4.
61808         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
61809         (Makefile.am): Instead, augment lib_SOURCES.
61811 2009-10-18  Bruno Haible  <bruno@clisp.org>
61813         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
61814         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
61815         sys/param.h.
61817 2009-10-16  Eric Blake  <ebb9@byu.net>
61819         utimensat: new module
61820         * modules/utimensat: New file.
61821         * lib/utimensat.c (utimensat): Likewise.
61822         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
61823         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
61824         so we can work around Linux bugs.
61825         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
61826         * modules/sys_stat (Makefile.am): Substitute them.
61827         * lib/sys_stat.in.h (utimensat): Declare it.
61828         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61829         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
61830         * modules/utimensat-tests: New test.
61831         * tests/test-utimensat.c: Likewise.
61833         utimens: let lutimens work on non-symlinks
61834         * lib/utimens.c (lutimens): Fall back to utimens rather than
61835         failing with ENOSYS, when file is not a symlink.
61836         (utimens): Reduce redirection.
61837         * tests/test-lutimens.h (test_lutimens): Update test to cover
61838         non-symlinks.
61839         * tests/test-utimens.h (test_utimens): Update test to cover
61840         symlinks.
61841         * tests/test-utimens.c (main): Update caller.
61843         utimens: cache whether utimensat syscall works
61844         * lib/utimens.c (utimensat_works_really): New cache variable.
61845         (fdutimens, lutimens): Use it to avoid failing syscall.
61847         test-stat-time, test-utimens: improve portability
61848         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
61849         ext4 on alpha, and for cygwin.
61850         * tests/test-utimens-common.h: New file.
61851         (nap): Factor delays into single function.
61852         * tests/test-lutimens.h (test_lutimens): Use new header.
61853         * tests/test-futimens.h (test_futimens): Likewise.
61854         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
61855         timestamps to occur from same machine, as was done previously for
61856         test_utimens.
61857         * modules/utimens-tests (Files): Ship new file.
61858         * modules/futimens-tests (Files): Likewise.
61859         Reported in part by Jim Meyering.
61861         sys_stat: sort replacement declarations
61862         * lib/sys_stat.in.h: Sort declarations.
61863         * lib/futimens.c (futimens): Fix typo.
61865 2009-10-15  Jim Meyering  <meyering@redhat.com>
61867         don't let environment settings perturb build
61868         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
61869         could cause a configure-time and/or build-time malfunction.
61870         Typically, a configure-time function-in-library test is performed
61871         via code like this:
61873           LIB_VAR=
61874           AC_SUBST([LIB_VAR])
61875           prefix_saved_LIBS=$LIBS
61876             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
61877                        [test "$ac_cv_search_FUNC" = "none required" ||
61878                         LIB_VAR=$ac_cv_search_FUNC])
61879           LIBS=$prefix_saved_LIBS
61881         However, in each of the files affected by this change, the LIB_VAR=
61882         initialization was omitted.  Thus, when set in the environment, its
61883         value would propagate into generated Makefiles when FUNC is not found
61884         in LIB_NAME.
61885         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
61886         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
61887         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61889 2009-10-14  Eric Blake  <ebb9@byu.net>
61891         fchdir: avoid infinite recursion in mingw
61892         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
61893         recursing.
61895         test-stat-time: port to mingw
61896         * tests/test-stat-time.c (force_unlink): Return a value.
61897         (test_ctime) [W32]: Fix compilation error.
61898         (nap): Don't call usleep with too large an argument.  Use
61899         force_unlink.
61900         * doc/pastposix-functions/usleep.texi (usleep): Document the
61901         portability issue.
61903 2009-10-13  Jim Meyering  <meyering@redhat.com>
61905         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
61906         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
61907         * modules/pipe-filter-ii: Likewise.
61908         * modules/sys_socket-tests: Likewise.
61909         * modules/tsearch-tests: Likewise.
61910         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
61911         (check): Depend on it.
61913 2009-10-12  Eric Blake  <ebb9@byu.net>
61915         utimens-tests: port to NFS file systems
61916         * tests/test-utimens.h (test_utimens): Refactor utimecmp
61917         comparisons to avoid spurious failures from timestamp drift
61918         between NFS machines.
61920 2009-10-12  Eric Blake  <ebb9@byu.net>
61922         stat-time-tests: minor cleanups
61923         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
61924         * tests/test-stat-time.c (nap): Separate assignment from call.
61925         Suggested by Paolo Bonzini and Bruno Haible.
61927         sys_stat: guarantee struct timespec
61928         * lib/sys_stat.in.h (includes): Always include <time.h>
61929         * modules/sys_stat (Depends-on): Add time.
61930         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
61931         mode_t permission values.
61932         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
61933         get at subsecond timestamps.
61935 2009-10-10  Eric Blake  <ebb9@byu.net>
61937         futimens: new module
61938         * modules/futimens: New file.
61939         * lib/futimens.c (futimens): Likewise.
61940         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
61941         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
61942         we can work around Linux bugs.
61943         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
61944         * modules/sys_stat (Makefile.am): Substitute them.
61945         * lib/sys_stat.in.h (futimens): Declare it.
61946         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61947         * doc/posix-functions/futimens.texi (futimens): Likewise.
61948         * modules/futimens-tests: New test.
61949         * tests/test-futimens.c: Likewise.
61951         utimens: introduce fdutimens
61952         * lib/utimens.h (fdutimens): New prototype.
61953         * lib/utimens.c (gl_futimens): Move guts...
61954         (fdutimens): ...to new interface.
61955         * tests/test-utimens.c (do_fdutimens): Use it.
61957         utimens: add UTIME_NOW and UTIME_OMIT support
61958         * lib/utimens.c (validate_timespec, update_timespec): New helper
61959         functions.
61960         (gl_futimens, lutimens): Use them.
61961         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
61962         stdbool, sys_stat.
61963         (Link): Mention resulting library dependency.
61964         * modules/utimecmp (Link): Likewise.
61965         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
61966         (Makefile.am): Pick up library dependency.
61967         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
61968         definition.
61969         * tests/test-sys_stat.c: Test the definitions.
61970         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
61971         * NEWS: Document library dependency.
61973         utimecmp: support symlink timestamps
61974         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
61975         hashing when possible.  Use pathconf when available.
61976         (SYSCALL_RESOLUTION): Recognize tighter resolution.
61977         * modules/utimecmp (Depends-on): Add lstat.
61979         utimens: add lutimens interface
61980         * lib/utimens.c (lutimens): New function.
61981         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
61982         * lib/utimens.h (lutimens): Declare new interface.
61983         * tests/test-utimens.c (main): Enhance test.
61984         * tests/test-lutimens.h (test_lutimens): New file.
61985         * modules/utimens-tests (Files): Distribute it.
61986         (Depends-on): Add symlink.
61987         (configure.ac): Check for usleep.
61989         utimens: validate futimens usage
61990         * lib/utimens.c (gl_futimens): Require valid fd up front, using
61991         fewer syscalls on failure later on.  Avoid compiler warning on
61992         mingw.
61993         * modules/utimens (Depends-on): Add dup2.
61995         utimens: add test
61996         * modules/utimens-tests: New test.
61997         * tests/test-utimens.h: New file.
61998         * tests/test-futimens.h: Likewise.
61999         * tests/test-utimens.c: Likewise.
62001         doc: mention timestamp portability issues
62002         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
62003         instead.
62004         * doc/posix-functions/utime.texi (utime): Likewise.
62005         * doc/posix-functions/utimes.texi (utimes): Likewise.
62006         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
62007         instead.
62008         * doc/posix-functions/futimens.texi (futimens): Mention utimens
62009         module.
62010         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
62011         Mention weakness with symlink timestamps.
62012         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
62013         to utimensat/futimens instead.
62014         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
62016         test-dup2: enhance test
62017         * tests/test-dup2.c (main): Also check AT_FDCWD.
62019         test-stat-time: avoid more spurious failures
62020         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
62021         xfs; and avoid race if the two timestamps cross quantization edge.
62023         relocatable: prefer 'file system' over 'filesystem'
62024         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
62025         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
62026         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
62027         * doc/relocatable.texi (Enabling Relocatability): Likewise.
62028         * lib/relocatable.c (compute_curr_prefix): Likewise.
62030 2009-10-10  Jim Meyering  <meyering@redhat.com>
62032         stat-time-tests: check for the usleep function
62033         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
62035 2009-10-10  Bruno Haible  <bruno@clisp.org>
62037         * modules/xnanosleep: Put the Link section after the Include section.
62039 2009-10-09  Eric Blake  <ebb9@byu.net>
62041         dup2: work around FreeBSD 6.1 bug
62042         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
62043         * doc/posix-functions/dup2.texi (dup2): Document it.
62044         Reported by Nelson H. F. Beebe and Jim Meyering.
62046         test-stat-time: port to buggy NFS clients
62047         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
62048         (test_ctime): Also skip test if mtime and ctime are skewed.
62050         maint: prefer 'file system' over 'filesystem'
62051         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
62052         * doc/posix-functions/lstat.texi (lstat): Likewise.
62053         * lib/file-has-acl.c (file_has_acl): Likewise.
62054         * lib/fwriteerror.c [TEST]: Likewise.
62055         * tests/test-areadlink.h (test_areadlink): Likewise.
62056         * tests/test-areadlinkat-with-size.c (main): Likewise.
62057         * tests/test-areadlinkat.c (main): Likewise.
62058         * tests/test-canonicalize-lgpl.c (main): Likewise.
62059         * tests/test-canonicalize.c (main): Likewise.
62060         * tests/test-fstatat.c (main): Likewise.
62061         * tests/test-linkat.c (main): Likewise.
62062         * tests/test-lstat.h (test_lstat_func): Likewise.
62063         * tests/test-mkdir.h (test_mkdir): Likewise.
62064         * tests/test-readlink.h (test_readlink): Likewise.
62065         * tests/test-remove.c (main): Likewise.
62066         * tests/test-rename.h (test_rename): Likewise.
62067         * tests/test-renameat.c (main): Likewise.
62068         * tests/test-rmdir.h (test_rmdir_func): Likewise.
62069         * tests/test-symlink.h (test_symlink): Likewise.
62070         * tests/test-symlinkat.c (main): Likewise.
62071         * tests/test-unlink.h (test_unlink_func): Likewise.
62072         * tests/test-unlinkat.c (main): Likewise.
62074         maint: make realtime library usage explicit
62075         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
62076         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
62077         * modules/settime (Link): Likewise.
62078         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
62080         test-stat-time: speed up execution
62081         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
62082         warning on mingw.
62083         (nap): New helper function.
62084         (prepare_test): Use it to reduce sleep time.
62085         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
62086         execution.
62087         * modules/stat-time-tests (configure.ac): Check for usleep.
62089 2009-10-09  Jim Meyering  <meyering@redhat.com>
62091         selinux-h: always use getfilecon wrappers
62092         * lib/getfilecon.c: New file.
62093         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
62094         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
62095         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
62096         (fgetfilecon): Provide a stub.
62097         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
62098         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
62099         file unconditionally.
62100         When <selinux/selinux.h> is found, arrange to use wrappers.
62101         * modules/selinux-h (Files): Add getfilecon.c.
62102         (Makefile.am): Substitute include-next-related bits
62103         into the now-always-generated selinux/selinux.h file.
62104         * doc/glibc-functions/lgetfilecon.texi: New file.
62105         * doc/glibc-functions/fgetfilecon.texi: New file.
62106         * doc/glibc-functions/getfilecon.texi: New file.
62107         * doc/glibc-functions/getfilecon-desc.texi: New file.
62108         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
62109         which to pull in the new files.
62110         * MODULES.html.sh (Misc): Add selinux-h.
62112 2009-10-08  Jim Meyering  <meyering@redhat.com>
62114         unistd: fix comment typo
62115         * lib/unistd.in.h (euidaccess): Fix a comment typo.
62117 2009-10-08  Eric Blake  <ebb9@byu.net>
62119         areadlink: use SIZE_MAX consistently
62120         * modules/areadlink (Depends-on): Add stdint.
62121         * modules/areadlink-with-size (Depends-on): Likewise.
62122         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
62123         gives NULL; drop sys/types, since unistd gives size_t; and add
62124         stdint for SIZE_MAX.
62125         (SIZE_MAX): Rely on headers.
62126         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
62127         and add stdint.
62128         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
62129         (SIZE_MAX): Likewise.
62130         (INITIAL_BUF_SIZE): Turn into enum.
62131         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
62133 2009-10-08  Jim Meyering  <meyering@redhat.com>
62135         areadlinkat: avoid compilation failure
62136         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
62137         Fix typo in comment.
62139 2009-10-07  Eric Blake  <ebb9@byu.net>
62141         areadlinkat-with-size: new module
62142         * modules/areadlinkat-with-size: New module.
62143         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
62144         * lib/areadlink.h (areadlinkat): Declare it.
62145         * MODULES.html.sh (File system functions): Mention it.
62146         * modules/areadlinkat-with-size-tests: New test.
62147         * tests/test-areadlinkat-with-size.c: New file.
62149         xreadlinkat: new module
62150         * modules/xreadlinkat: New module.
62151         * lib/xreadlinkat.c (xreadlinkat): New file.
62152         * lib/xreadlink.h (xreadlinkat): Declare it.
62153         * MODULES.html.sh (File system functions): Mention it.
62155         areadlinkat: new module
62156         * lib/at-func.c (FUNC_FAIL): New define.
62157         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
62158         * modules/areadlinkat: New module.
62159         * lib/linkat.c (areadlinkat): Move...
62160         * lib/areadlinkat.c (areadlinkat): ...to new file.
62161         * lib/areadlink.h (areadlinkat): Declare it.
62162         * modules/linkat (Depends-on): Add areadlinkat.
62163         * MODULES.html.sh (File system functions): Mention it.
62164         * modules/areadlinkat-tests: New test.
62165         * tests/test-areadlinkat.c: New file.
62167         areadlink, areadlink-with-size: add tests
62168         * modules/areadlink-tests: New test.
62169         * modules/areadlink-with-size-tests: Likewise.
62170         * tests/test-areadlink.h: New file.
62171         * tests/test-areadlink.c: Likewise.
62172         * tests/test-areadlink-with-size.c: Likewise.
62174         maint: minor cleanups
62175         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
62176         _UNUSED_PARAMETER_ instead.
62177         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
62178         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
62179         * modules/linkat-tests (Files): Distribute test-link.h.
62181         openat, utimens: whitespace cleanup
62182         * lib/openat.c: Prefer space throughout, rather than mix of 8
62183         spaces vs. tabs.
62184         * lib/at-func.c: Likewise.
62185         * lib/utimens.c: Likewise.
62187         openat: avoid using wrong fd
62188         * lib/openat.c (openat_permissive): Reject user's fd if saving the
62189         working directory chooses same fd.
62190         * lib/at-func.c (AT_FUNC_NAME): Likewise.
62192         mkdir, mkdirat: fix cygwin 1.5.x bug
62193         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
62194         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
62195         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
62196         bug.
62197         (gl_PREREQ_MKDIR): Delete unused macro.
62198         * modules/mkdir (Files): Track file rename.
62199         (configure.ac): Update macro name.
62200         * modules/openat (Depends-on): Add mkdir.
62201         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
62203         mkdir, mkdirat: add tests
62204         * modules/mkdir-tests: New test.
62205         * tests/test-mkdir.h: New file.
62206         * tests/test-mkdir.c: Likewise.
62207         * tests/test-mkdirat.c: Likewise.
62208         * modules/openat-tests (Files): Add new files.
62209         (Makefile.am): Run new test.
62211 2009-10-06  Eric Blake  <ebb9@byu.net>
62213         doc: tweak *at function documentation
62214         * doc/posix-functions/faccessat.texi (faccessat): Mention
62215         known issue with replacement.
62216         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
62217         * doc/posix-functions/linkat.texi (linkat): Likewise.
62218         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
62219         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
62220         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
62221         * doc/posix-functions/renameat.texi (renameat): Likewise.
62222         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
62224         openat: fix GNU/Hurd bug in unlinkat
62225         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
62226         broken.
62227         * doc/posix-functions/unlink.texi (unlink): Document this.
62228         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
62230         fdopendir: fix GNU/Hurd bug
62231         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
62232         allowing non-directory fds.
62233         * lib/fdopendir.c (rpl_fdopendir): Work around it.
62234         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
62235         * modules/dirent (Makefile.am): Substitute it.
62236         * lib/dirent.in.h (fdopendir): Declare replacement.
62237         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
62238         * tests/test-fdopendir.c (main): Test something other than
62239         /dev/null, since on Hurd that behaves like a directory.
62241         test-symlink: port to GNU/Hurd
62242         * tests/test-symlink.h (test_symlink): Relax expected errno.
62244         doc: tweak more cygwin information
62245         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
62246         now compatible with glibc.
62247         * doc/posix-functions/getopt.texi (getopt): Likewise.
62249         getopt-gnu: add another test
62250         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
62251         guarantee behavior relied on by m4.
62252         * tests/test-getopt.c (main): Use it.
62253         * modules/getopt-posix-tests (Depends-on): Add setenv.
62254         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
62256         getopt: fix compilation on darwin
62257         * lib/getopt.in.h (includes): Leave breadcrumbs during system
62258         include.
62259         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
62260         Reported by Ludovic Courtès.
62262 2009-10-06  Bruno Haible  <bruno@clisp.org>
62264         * modules/size_max (Description): Discourage its use.
62265         Reported by Simon Josefsson.
62267 2009-10-06  Jim Meyering  <meyering@redhat.com>
62269         linkat: avoid compilation failure
62270         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
62272 2009-10-05  Eric Blake  <ebb9@byu.net>
62274         linkat: support Linux 2.6.17
62275         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
62276         linkat on Linux, but allow cache variable override.
62277         * lib/linkat.c (rpl_linkat): Define override.
62278         * modules/linkat (Depends-on): Add symlinkat.
62279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
62280         * modules/unistd (Makefile.am): Substitute it.
62281         * lib/unistd.in.h (linkat): Declare replacement.
62282         Reported by Pádraig Brady.
62284         quotearg: port test to systems with C.UTF-8 locale
62285         * tests/test-quotearg.c (struct result_strings): Add another
62286         member, differentiating between C.ASCII and C.UTF-8 handling.
62287         (compare_strings): Add parameter.
62288         (main): Adjust all callers.
62290         getopt: avoid clash with FreeBSD _getopt_internal
62291         * lib/getopt.in.h (_getopt_internal): Override the name.
62292         * lib/getopt_int.h (includes): Pick up any overrides.
62293         Reported by Reuben Thomas.
62295         hash: allow C89 compilation
62296         * lib/hash.c (check_tuning): Move declaration before statement.
62297         Reported by Reuben Thomas.
62299 2009-10-05  Karl Berry  <karl@gnu.org>
62301         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
62303 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
62304             Bruno Haible  <bruno@clisp.org>
62306         * lib/uname.c (uname): Use a table-driven algorithm to compute
62307         Windows NT versions.
62309 2009-10-04  Bruno Haible  <bruno@clisp.org>
62311         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
62312         program_invocation_short_name.
62313         * modules/progname (configure.ac): Test for presence of
62314         program_invocation_short_name.
62315         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
62317 2009-10-04  Bruno Haible  <bruno@clisp.org>
62319         * lib/progname.c (set_program_name): Fix comment.
62320         Reported by Jim Meyering.
62322 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
62323             Bruno Haible  <bruno@clisp.org>
62325         * lib/uname.c: Include <string.h>.
62326         (uname): Do only one call to GetVersionEx in the common case.
62328 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
62329             Bruno Haible  <bruno@clisp.org>
62331         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
62332         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
62333         (uname): Add support for Windows CE and various non-x86 CPU types.
62335 2009-10-03  Bruno Haible  <bruno@clisp.org>
62337         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
62338         invocation to tests/configure.ac.
62339         Reported by Ian Beckwith <ianb@erislabs.net>.
62341 2009-10-02  Eric Blake  <ebb9@byu.net>
62343         fchdir: avoid compiler warning
62344         * lib/fchdir.c (canonicalize_file_name)
62345         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
62347         test-open: support mingw errno values
62348         * tests/test-open.h (test_open): Relax test.
62349         * tests/test-fopen.h (test_fopen): Likewise.
62350         * tests/test-openat-safer.c (main): Likewise.
62352         open: fix opening directory on mingw
62353         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
62355         test-open: on GNU/Hurd, /dev/null is a directory
62356         * tests/test-fopen.h (main): Rename...
62357         (test_fopen): ...to this.  Use a guaranteed non-directory when
62358         confirming open behavior on trailing slash.
62359         * tests/test-openat-safer.c (main): Likewise.
62360         * tests/test-open.h (main): Likewise....
62361         (test_open): ...to this.
62362         * tests/test-fopen.c (main): Adjust caller.
62363         * tests/test-fopen-safer.c (main): Likewise.
62364         * tests/test-open.c (main): Likewise.
62365         * tests/test-fcntl-safer.c (main): Likewise.
62366         Reported by Samuel Thibault.
62368         rename, fchdir: don't ignore chdir failure
62369         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
62370         * lib/rename.c (rpl_rename) [W32]: Likewise.
62371         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
62372         an empty destination directory if source cannot be renamed,
62373         although there is still possibility for failure.
62374         * doc/posix-functions/rename.texi (rename): Document the race.
62375         Reported by Jim Meyering.
62377         maint: cleanup whitespace in recent commits
62378         * lib/rename.c (rpl_rename): Remove tabs.
62379         * tests/test-link.h (test_link): Likewise.
62380         * lib/fchdir.c (get_name): Likewise.
62381         Reported by Jim Meyering.
62383 2009-10-02  Ben Pfaff  <blp@gnu.org>
62385         relocatable-prog-wrapper: Add missing dependency on
62386         double-slash-root.
62387         * modules/relocatable-prog-wrapper: Add dependency.
62388         Reported by Ian Beckwith <ianb@erislabs.net>.
62390 2009-10-02  Eric Blake  <ebb9@byu.net>
62392         renameat: fix Solaris bugs
62393         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
62394         needed fixing.
62395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
62396         * modules/stdio (Makefile.am): Substitute it.
62397         * lib/stdio.in.h (renameat): Declare replacement.
62398         * lib/renameat.c (rpl_renameat): Implement fix.
62400         renameat: new module
62401         * modules/renameat: New file.
62402         * lib/renameat.c (renameat): Likewise.
62403         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
62404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
62405         * modules/stdio (Makefile.am): Substitute them.
62406         * lib/stdio.in.h (renameat): Declare it.
62407         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
62408         * doc/posix-functions/renameat.texi (renameat): Likewise.
62409         * modules/renameat-tests: New test.
62410         * tests/test-renameat.c: Likewise.
62412         rename: fix mingw bugs
62413         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
62414         directory overwrite bugs.
62416         rename: fix another cygwin 1.5 bug
62417         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
62418         checks.
62419         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
62420         unnecessary cygwin workarounds.  Also work around bug with moving
62421         full directory onto an empty one.
62422         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
62424         rename-dest-slash: merge into rename module
62425         * modules/rename-dest-slash (Status): Mark obsolete.
62426         (Depends-on): Add rename.
62427         (Files): Let rename do it all.
62428         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
62429         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
62430         * m4/rename-dest-slash.m4: ...so this file can be deleted.
62431         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
62432         * lib/rename.c (rpl_rename): Update comments.
62434         rename: fix cygwin 1.5.x bugs
62435         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
62436         * lib/rename.c (rpl_rename): Work around them.
62437         * modules/rename (Depends-on): Add same-inode.
62439         rename: fix Solaris 10 bug
62440         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
62441         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
62442         was the only bug.
62444         rename: fix Solaris 9 bug
62445         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
62446         on non-directory.  Avoid calling exit.
62447         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
62448         strdup.
62449         * modules/rename-tests (Depends-on): Drop lstat.
62450         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
62451         (gl_PREREQ_RENAME): Delete unused macro.
62453         rename-dest-slash: fix NetBSD bug
62454         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
62455         links.
62456         * modules/rename-dest-slash (Depends-on): Add same-inode.
62458         rename-tests: new test, exposes several platform bugs
62459         * modules/rename-tests: New file.
62460         * tests/test-rename.h: Likewise.
62461         * tests/test-rename.c: Likewise.
62462         * doc/posix-functions/rename.texi (rename): Improve documentation,
62463         including bugs that will eventually be fixed in gnulib.
62465 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
62467         * lib/uname.c: Include <stdlib.h>
62468         (uname): Assume version info is available.
62470 2009-10-02  Jim Meyering  <meyering@redhat.com>
62472         gnu-web-doc-update: correct --help output
62473         * build-aux/gnu-web-doc-update: Make --help output relevant.
62475         gnu-web-doc-update: add standard options
62476         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
62478         gnu-web-doc-update: New module.
62479         Use this script to automatically update the on-line web documentation
62480         for your GNU project at http://www.gnu.org/software/$pkg/manual/
62481         * modules/gnu-web-doc-update: New file, from coreutils.
62482         * build-aux/gnu-web-doc-update: New script.
62484 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
62486         link: LoadLibrary is not needed.
62487         * lib/link.c: Use GetModuleHandle.
62489 2009-10-01  Eric Blake  <ebb9@byu.net>
62491         getopt: bump serial number
62492         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
62493         change.
62495         tests: tighten link, rmdir, and remove tests
62496         * tests/test-link.h (includes): No need to use <config.h> here.
62497         Clean up if directory hard link was created, otherwise test for
62498         trailing '.'.
62499         * tests/test-linkat.c (main): Simplify.
62500         * tests/test-remove.c (main): Enhance test for trailing '.'.
62501         * tests/test-rmdir.h (test_rmdir_func): Likewise.
62503 2009-10-01  Jim Meyering  <meyering@redhat.com>
62505         maint.mk: requiring "make major" was annoying, for a "minor" release.
62506         What is intended is "stable", to contrast with alpha and beta,
62507         so require "make stable", not "make major".
62508         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
62509         (get_tool_versions): Likewise.
62510         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
62512 2009-09-30  Ben Pfaff  <blp@gnu.org>
62514         Fix broken build of replacement for Windows tmpfile().
62515         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
62516         flags argument added along with the 'mkostemp' module.
62518 2009-09-28  Bruno Haible  <bruno@clisp.org>
62520         Avoid identifier clash with POSIX function 'remove' defined as a macro.
62521         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
62522         to 'remove_elt'.
62523         (gl_list_remove): Update.
62524         * lib/gl_list.c (gl_list_remove): Update.
62525         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
62526         to 'remove_elt'.
62527         (gl_oset_remove): Update.
62528         * lib/gl_list.c (gl_oset_remove): Update.
62529         Reported by Eric Blake.
62531 2009-09-28  Eric Blake  <ebb9@byu.net>
62533         doc: mention yet more cygwin 1.7 status
62534         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
62535         cygwin.
62536         * doc/glibc-functions/execvpe.texi (execvpe): New file.
62537         * doc/gnulib.texi (Glibc unistd.h): Mention it.
62539         argp: fix test failure
62540         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
62541         that are not upper-case.  Pass correct range to tolower.
62543 2009-09-27  Jim Meyering  <meyering@redhat.com>
62545         test-yesno: work around sparc-dash here-document infelicity
62546         Without this change, the literal \177 byte in a here document
62547         would make dash 0.5.5.1-3 access uninitialized memory.
62548         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
62549         Instead, use a marker, "@", and filter through tr to create the desired
62550         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
62552 2009-09-27  Bruno Haible  <bruno@clisp.org>
62554         Disable untested support for new flavours of ACLs on AIX.
62555         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
62556         progress.
62557         * lib/set-mode-acl.c (qset_acl): Likewise.
62559 2008-12-07  Bruno Haible  <bruno@clisp.org>
62561         Add support for new flavours of ACLs on AIX. (Untested.)
62562         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
62563         (file_has_acl): Add support for newer AIX.
62564         * lib/set-mode-acl.c (qset_acl): Likewise.
62565         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
62566         Rainer Tammer <tammer@tammer.net>.
62568 2009-09-26  Eric Blake  <ebb9@byu.net>
62570         argp: fix compilation of getopt
62571         * lib/getopt.in.h (includes): Use different guard than glibc.
62572         Reported by Sergey Poznyakoff.
62574         doc: mention more cygwin 1.7 status
62575         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
62576         bug.
62577         * doc/posix-functions/execl.texi (execl): Likewise.
62578         * doc/posix-functions/execle.texi (execle): Likewise.
62579         * doc/posix-functions/execlp.texi (execlp): Likewise.
62580         * doc/posix-functions/execv.texi (execv): Likewise.
62581         * doc/posix-functions/execve.texi (execve): Likewise.
62582         * doc/posix-functions/execvp.texi (execvp): Likewise.
62583         * doc/glibc-functions/canonicalize_file_name.texi
62584         (canonicalize_file_name): Cygwin 1.7 now provides this.
62585         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
62586         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
62587         on AT_SYMLINK_NOFOLLOW.
62589 2009-09-24  Eric Blake  <ebb9@byu.net>
62591         test-linkat: make test more robust
62592         * tests/test-linkat.c (main): Avoid collision with EEXIST.
62594         getopt: fix inclusion guards for cygwin
62595         * modules/getopt-posix (Depends-on): Add include-next.
62596         (Makefile.am): Substitute more items in replacement header.
62597         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
62598         <getopt.h>.
62599         * lib/getopt.in.h (includes): Use split inclusion guard, and
62600         prefer <getopt.h> over include <unistd.h> when one is present.
62601         (option): Also override name of 'struct option'.
62603         same-inode: revert prior change; it is not yet ready
62604         * NEWS: Undo mention of this change.
62605         * lib/same-inode.h (same-inode.h): Undo tri-state change.
62606         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
62607         * lib/cycle-check.c (cycle_check): Likewise.
62608         * lib/same.c (same_name): Likewise.
62609         * lib/at-func2.c (at_func2): Likewise.
62611 2009-09-23  Eric Blake  <ebb9@byu.net>
62613         linkat: new module
62614         * modules/linkat: New file.
62615         * lib/at-func2.c (at_func2): Likewise.
62616         * lib/linkat.c (linkat): Likewise.
62617         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
62618         * lib/openat-priv.h (at_func2): Add declaration.
62619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
62620         * modules/unistd (Makefile.am): Substitute them.
62621         * lib/unistd.in.h (linkat): Declare it.
62622         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
62623         * doc/posix-functions/linkat.texi (linkat): Likewise.
62624         * doc/posix-functions/link.texi (link): Tweak wording.
62625         * tests/test-link.c (main): Move guts...
62626         * tests/test-link.h (test_link): ...into new file.
62627         * modules/linkat-tests: New test.
62628         * tests/test-linkat.c: Likewise.
62629         * modules/link-tests (Files): Ship new file.
62630         (Depends-on): Add stdbool.
62632         dirname: add library-safe mdir_name
62633         * lib/dirname.h (mdir_name): New prototype.
62634         * lib/dirname.c (dir_name): Move guts...
62635         (mdir_name): ...to new function that avoids xalloc_die.
62637         fchdir: another mingw fix
62638         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
62639         * lib/fchdir.c (get_name): New helper method; skips canonicalize
62640         on mingw (where it has not yet been ported), and make it optional
62641         elsewhere.
62642         (_gl_register_fd): Use it.
62644         same-inode: make SAME_INODE tri-state, to port to mingw
62645         * NEWS: Mention this change.
62646         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
62647         st_ino always being 0.
62648         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
62649         * lib/cycle-check.c (cycle_check): Likewise.
62650         * lib/same.c (same_name): Likewise.
62652         lstat: avoid mingw compilation error
62653         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
62654         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
62655         lstat ourselves.
62656         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
62657         was adequate.
62658         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
62659         the checks for lstat.
62660         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
62662         link: fix test failure on Solaris 9
62663         * lib/link.c (rpl_link): Don't assume link will catch bogus
62664         trailing slash on source.
62666         test-symlinkat: enhance test
62667         * tests/test-readlink.c (main): Move guts...
62668         * tests/test-readlink.h (test_readlink): ...into new file.
62669         * tests/test-symlink.c (main): Move guts...
62670         * tests/test-symlink.h (test_symlink): ...into new file.
62671         * tests/test-symlinkat.c (main): Use new files for further
62672         coverage.
62673         (do_symlink, do_readlink): New helper functions.
62674         * modules/symlink-tests (Files): Ship new file.
62675         (Depends-on): Add stdbool.
62676         * modules/readlink-tests (Files): Ship new file.
62677         (Depends-on): Add stdbool.
62678         * modules/symlinkat-tests (Files): Use new files.
62680 2009-09-23  Eric Blake  <ebb9@byu.net>
62682         readlink: document portability issue with symlink length
62683         * doc/posix-functions/lstat.texi (lstat): Mention that some file
62684         systems have bogus st_size on symlinks, and mention the
62685         areadlink-with-size module.
62686         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
62687         * doc/posix-functions/readlink.texi (readlink): Mention the
62688         areadlink module, and ERANGE failure.
62689         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
62690         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
62692         readlink: fix Solaris 9 bug with trailing slash
62693         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
62694         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
62695         * doc/posix-functions/readlink.texi (readlink): Document this.
62696         * modules/readlink-tests: New test.
62697         * tests/test-readlink.c: Likewise.
62699         readlink: fix cygwin 1.5.x bug with return type
62700         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
62701         * lib/unistd.in.h (readlink): Use ssize_t.
62702         * lib/readlink.c (readlink): Likewise.
62703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62704         * modules/unistd (Makefile.am): Substitute it.
62705         * lib/unistd.in.h (readlink): Declare replacement.
62706         * doc/posix-functions/readlink.texi (readlink): Document this.
62708         symlink: use throughout gnulib
62709         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
62710         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
62711         symlink is not used.
62712         * modules/symlinkat (Depends-on): Add symlink.
62713         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
62714         * modules/canonicalize-tests (Depends-on): Likewise.
62715         * modules/lstat-tests (Depends-on): Likewise.
62716         * modules/openat-tests (Depends-on): Likewise.
62717         * modules/remove-tests (Depends-on): Likewise.
62718         * modules/rmdir-tests (Depends-on): Likewise.
62719         * modules/unlink-tests (Depends-on): Likewise.
62720         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
62721         * tests/test-canonicalize.c (symlink): Likewise.
62722         * tests/test-fstatat.c (symlink): Likewise.
62723         * tests/test-lstat.c (symlink): Likewise.
62724         * tests/test-remove.c (symlink): Likewise.
62725         * tests/test-rmdir.c (symlink): Likewise.
62726         * tests/test-unlink.c (symlink): Likewise.
62727         * tests/test-unlinkat.c (symlink): Likewise.
62729         symlink: new module, for Solaris 9 bug
62730         * modules/symlink: New file.
62731         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
62732         * lib/symlink.c: Likewise.
62733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
62734         * modules/unistd (Makefile.am): Substitute them.
62735         * lib/unistd.in.h (symlink): Declare replacement.
62736         * MODULES.html.sh (File system functions): Mention it.
62737         * doc/posix-functions/symlink.texi (symlink): Likewise.
62738         * modules/symlink-tests: New test.
62739         * tests/test-symlink.c: Likewise.
62741 2009-09-23  Bruno Haible  <bruno@clisp.org>
62743         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
62744         when needed.
62745         Test case: gnulib-tool --import --with-tests atexit inttypes.
62746         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
62748 2009-09-23  Bruno Haible  <bruno@clisp.org>
62750         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
62751         subcommand, not in a subshell.
62753 2009-09-22  Eric Blake  <ebb9@byu.net>
62755         unistd: sort replacement declarations
62756         * lib/unistd.in.h: Sort declarations.
62758         open, openat: minor optimization
62759         * lib/open.c (open): If open succeeded, len is non-zero.
62760         * lib/openat.c (rpl_openat): Likewise.
62762         link-follow: ensure correct result
62763         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
62764         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
62765         distinguish between possible failures.
62767 2009-09-21  Eric Blake  <ebb9@byu.net>
62769         fts: avoid compiler warning
62770         * lib/fts.c (dirent_inode_sort_may_be_useful)
62771         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
62773 2009-09-19  Bruno Haible  <bruno@clisp.org>
62775         * lib/progreloc.c (canonicalize_file_name): New declaration.
62777 2009-09-19  Eric Blake  <ebb9@byu.net>
62779         link: fix quoting
62780         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
62782         openat: fix openat bugs on Solaris 9
62783         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
62784         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
62785         * modules/openat (Depends-on): Add open.
62786         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
62787         * modules/fcntl-h (Makefile.am): Substitute it.
62788         * lib/fcntl.in.h (openat): Declare replacement.
62789         * doc/posix-functions/openat.texi (openat): Document this.
62791         openat: move fstatat and unlinkat into correct files
62792         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
62793         compiled.
62794         * lib/openat.c (fstatat, unlinkat): Move...
62795         * lib/fstatat.c (fstatat): ...into correct files.
62796         * lib/unlinkat.c (unlinkat): Likewise.
62798         openat: fix unlinkat bugs on Solaris 9
62799         * lib/unlinkat.c (unlinkat): New file.
62800         * modules/openat (Depends-on): Add unlink.
62801         (Files): Distribute it.
62802         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
62803         trailing slash behavior is broken.
62804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62805         * modules/unistd (Makefile.am): Substitute it.
62806         * lib/unistd.in.h (unlinkat): Declare replacement.
62807         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
62809         openat: fix fstatat bugs on Solaris 9
62810         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
62811         stat.
62812         * doc/posix-functions/fstatat.texi (fstatat): Document this.
62814         test-unlinkat: enhance test, to expose Solaris 9 bug
62815         * tests/test-unlink.c (main): Factor guts...
62816         * tests/test-unlink.h (test_rmdir_func): ...into new file.
62817         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
62818         * tests/test-rmdir.c (main): Adjust caller.
62819         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
62820         (unlinker): New helper function.
62821         (rmdirat): Enhance check.
62822         * modules/rmdir-tests (Depends-on): Add stdbool.
62823         * modules/unlink-tests (Depends-on): Likewise.
62824         (Files): Add test-unlink.h.
62825         * modules/openat-tests (Files): Likewise.
62826         (Depends-on): Add unlinkdir.
62828         test-fstatat: new test, to expose Solaris 9 bugs
62829         * tests/test-stat.c (main): Factor guts...
62830         * tests/test-stat.h (test_stat_func): ...into new file.
62831         * tests/test-lstat.c (main): Factor guts...
62832         * tests/test-lstat.h (test_lstat_func): ...into new file.
62833         * tests/test-fstatat.c: New file.
62834         * modules/stat-tests (Files): Add test-stat.h.
62835         * modules/lstat-tests (Files): Add test-lstat.h.
62836         (Depends-on): Add stdbool.
62837         * modules/openat-tests (Depends-on): Add pathmax.
62838         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
62839         (Makefile.am): Run new test.
62841         remove: new module, for mingw and Solaris 9 bugs
62842         * modules/remove: New file.
62843         * lib/remove.c: Likewise.
62844         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
62845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
62846         * modules/stdio (Makefile.am): Use them.
62847         * lib/stdio.in.h (remove): Declare replacement.
62848         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
62849         * doc/posix-functions/remove.texi (remove): Likewise.
62850         * modules/remove-tests: New test.
62851         * tests/test-remove.c: Likewise.
62853         unlink: new module, for Solaris 9 bug
62854         * modules/unlink: New file.
62855         * lib/unlink.c: Likewise.
62856         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
62857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
62858         * modules/unistd (Makefile.am): Use them.
62859         * lib/unistd.in.h (stat): Declare replacement.
62860         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
62861         * doc/posix-functions/unlink.texi (unlink): Likewise.
62862         * modules/unlink-tests: New test.
62863         * tests/test-unlink.c: Likewise.
62865         lstat: fix Solaris 9 bug
62866         * lib/lstat.c (lstat): Also check for trailing slash on
62867         non-symlink, non-directories.  Use stat module to simplify logic.
62868         * doc/posix-functions/lstat.texi (lstat): Document it.
62869         * modules/lstat-tests (Depends-on): Add errno, same-inode.
62870         (configure.ac): Check for symlink.
62871         * tests/test-lstat.c (main): Add more tests.
62873         stat: add as dependency to other modules
62874         * modules/chown (Depends-on): Add stat.
62875         * modules/euidaccess (Depends-on): Likewise.
62876         * modules/fchdir (Depends-on): Likewise.
62877         * modules/isdir (Depends-on): Likewise.
62878         * modules/link (Depends-on): Likewise.
62879         * modules/lstat (Depends-on): Likewise.
62880         * modules/mkdir-p (Depends-on): Likewise.
62881         * modules/modechange (Depends-on): Likewise.
62882         * modules/open (Depends-on): Likewise.
62883         * modules/readlink (Depends-on): Likewise.
62884         * modules/same (Depends-on): Likewise.
62886         stat: fix Solaris 9 bug
62887         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
62888         slash.
62889         * lib/stat.c (rpl_stat): Work around it.
62890         * doc/posix-functions/stat.texi (stat): Update documentation.
62892         stat: new module, for mingw bug
62893         * modules/stat: New file.
62894         * lib/stat.c: Likewise.
62895         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
62896         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
62897         * modules/sys_stat (Makefile.am): Use them.
62898         * lib/sys_stat.in.h (stat): Declare replacement.
62899         * lib/openat.c (fstatat): Deal with lstat and stat being function
62900         macros.
62901         * modules/openat (Depends-on): Add inline.
62902         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
62903         * doc/posix-functions/stat.texi (stat): Likewise.
62904         * modules/stat-tests: New test.
62905         * tests/test-stat.c: Likewise.
62907 2009-09-19  Jim Meyering  <meyering@redhat.com>
62909         syntax-check: detect unnecessary inclusion of canonicalize.h
62910         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
62912 2009-09-19  Eric Blake  <ebb9@byu.net>
62914         canonicalize-lgpl: adjust clients to use correct header
62915         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
62916         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
62917         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
62918         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
62919         * lib/progreloc.c (includes): Likewise.
62921 2009-09-19  Jim Meyering  <meyering@redhat.com>
62923         test-posixtm.c: correct a comment
62924         * tests/test-posixtm.c: Correct first-line comment.
62925         Spotted by Eric Blake.
62927 2009-09-16  Jim Meyering  <meyering@redhat.com>
62929         posixtm-tests: make T const-correct; add a test case
62930         * tests/test-posixtm.c (T): Declare const.
62931         Add a test for -(2^31+1).
62932         Remove useless can-succeed-only-in-2002 test.
62934         posixtm-tests: adjust the sole failing test
62935         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
62936         expected output matches what mktime now produces.  Cross-checked via
62937         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
62939         posixtm: move #ifdef'd tests into a new module
62940         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
62941         * tests/test-posixtm.c: ... this new file.
62942         * modules/posixtm-tests: New module.
62944 2009-09-19  Eric Blake  <ebb9@byu.net>
62946         openat: simplify use of at-func.c
62947         * lib/at-func.c (includes): Include prerequisites here, to
62948         simplify requirements on client files.
62949         * lib/openat-priv.h: Add double-inclusion guard.
62950         * lib/faccessat.c (includes): Simplify.
62951         * lib/fchmodat.c (includes): Likewise.
62952         * lib/fchownat.c (includes): Likewise.
62953         * lib/mkdirat.c (includes): Likewise.
62954         * lib/mkfifoat.c (includes): Likewise.
62955         * lib/symlinkat.c (includes): Likewise.
62957         openat: allow return of fd 0
62958         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
62959         * modules/save-cwd (Depends-on): Replace fcntl-safer with
62960         unistd-safer.
62961         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
62962         <fcntl.h>; this module does not leak fds.
62963         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
62964         must be allowed to return 0, leaving openat_safer to add the
62965         safety.
62966         (openat_permissive): Avoid writing to just-opened fd 2 if
62967         restoring the current directory fails.
62968         * lib/openat-die.c (openat_restore_fail): Add comment.
62969         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
62970         (save_cwd): Guarantee safe fd, but without use of open_safer.
62971         * tests/test-openat.c: New test.
62972         * modules/openat-tests (Files, Makefile.am): Distribute and build
62973         new file.
62975         relocatable-prog-wrapper: fix build
62976         * modules/relocatable-prog-wrapper (Files): Update name of
62977         canonicalize m4 file, broken on 2009-09-17.
62978         Reported by emad hajjar <aleppos@hotmail.com>.
62980 2009-09-19  Bruno Haible  <bruno@clisp.org>
62982         * lib/safe-alloc.h: Use the standard header with GPL copyright.
62983         * lib/safe-alloc.c: Likewise.
62984         Reported by Ian Beckwith <ianb@erislabs.net>.
62986 2009-09-18  Bruno Haible  <bruno@clisp.org>
62988         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
62989         Reported by <erobles@sensacd.com.mx>.
62991 2009-09-17  Eric Blake  <ebb9@byu.net>
62993         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
62994         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
62995         slashes when checking if last component is missing.
62996         * tests/test-canonicalize.c (main): Test this.
62998         canonicalize, canonicalize-lgpl: honor // if distinct from /
62999         * modules/canonicalize (Files): Add double-slash-root.m4.
63000         * modules/canonicalize-lgpl (Files): Likewise.
63001         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
63002         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
63003         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
63004         fallback definition.
63005         (canonicalize_filename_mode): Use it to protect //.
63006         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
63007         (__realpath): Likewise.
63008         * tests/test-canonicalize.c (main): Test this.
63009         * tests/test-canonicalize-lgpl.c (main): Likewise.
63010         * modules/canonicalize-tests (Depends-on): Add same-inode.
63011         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
63013         canonicalize-lgpl: fix glibc bug with trailing slash
63014         * m4/canonicalize-lgpl.m4: Move contents...
63015         * m4/canonicalize.m4: ...here.
63016         (gl_CANONICALIZE_LGPL): Factor realpath check...
63017         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
63018         glibc 2.3.5 bug, fixed 2005-04-27.
63019         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
63020         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
63021         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
63022         * modules/canonicalize-lgpl (Files): Manage file rename.
63023         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
63024         * modules/stdlib (Makefile.am): Substitute witness.
63025         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
63026         is needed.
63027         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
63028         replacement is required.
63029         * lib/canonicalize.c (canonicalize_file_name): Likewise.
63030         * doc/glibc-functions/canonicalize_file_name.texi
63031         (canonicalize_file_name): Document this.
63032         * doc/posix-functions/realpath.texi (realpath): Likewise.
63034         canonicalize-lgpl: reject non-directory with trailing slash
63035         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
63036         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
63037         catches failures in glibc 2.3.5.
63038         * tests/test-canonicalize.c (main): Likewise.
63040         canonicalize-lgpl: use native realpath if it works
63041         * lib/canonicalize-lgpl.c (realpath): Guard with
63042         FUNC_REALPATH_WORKS.
63043         * lib/stdlib.in.h (realpath): Make declaration optional based on
63044         HAVE_REALPATH.
63045         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
63046         native realpath works.
63047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
63048         * modules/stdlib (Makefile.am): Substitute witness.
63050         canonicalize, canonicalize-lgpl: use <stdlib.h>
63051         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
63052         (Include): Mention <stdlib.h>.
63053         (configure.ac): Mention functions we provide.
63054         * modules/canonicalize (configure.ac): Likewise.
63055         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
63056         realpath if canonicalize_file_name is missing.
63057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
63058         * modules/stdlib (Makefile.am): Substitute witnesses.
63059         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
63060         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
63061         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
63062         * NEWS: Document this.
63063         * doc/glibc-functions/canonicalize_file_name.texi
63064         (canonicalize_file_name): Likewise.
63065         * doc/posix-functions/realpath.texi (realpath): Likewise.
63066         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
63068         test-canonicalize: consolidate into single C program
63069         * tests/test-canonicalize.sh: Delete; move setup into...
63070         * tests/test-canonicalize.c (main): ...the program, making it
63071         easier to run in debugger.  Add some tests.
63072         * modules/canonicalize-tests (Files): Remove unused file.
63073         (Depends-on): Add progname.
63074         (configure.ac, Makefile.am): Simplify.
63076         test-canonicalize-lgpl: consolidate into single C program
63077         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
63078         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
63079         easier to run in debugger.  Add some tests.
63080         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
63081         (configure.ac, Makefile.am): Simplify.
63083         canonicalize: avoid resolvepath
63084         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
63085         unnecessary checks.
63086         * lib/canonicalize.c (includes): Simplify.
63087         (canonicalize_file_name): Drop resolvepath implementation.
63088         * modules/canonicalize (Depends-on): Drop filenamecat.
63090         canonicalize: don't lose errno
63091         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
63092         over calls to free.
63094         canonicalize: simplify errno handling
63095         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
63096         assignment.
63098         canonicalize, canonicalize-lgpl: update module dependencies
63099         * modules/canonicalize (Depends-on): Add extensions, lstat,
63100         pathmax, stdlib.
63101         (Files): Drop pathmax.h.
63102         (configure.ac): Adjust macro name.
63103         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
63104         lstat, stdlib, sys_stat.
63105         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
63106         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
63107         extensions.
63108         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
63109         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
63110         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
63111         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
63112         declaration, if available.
63113         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
63114         we can rely on the readlink module.
63115         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
63116         (includes): Use <unistd.h> unconditionally.
63118 2009-09-17  Eric Blake  <ebb9@byu.net>
63120         maint: make Include sections of modules consistent
63121         * modules/alloca: Use only header name; no need to list #include.
63122         * modules/alloca-opt: Likewise.
63123         * modules/arpa_inet: Likewise.
63124         * modules/canon-host: Likewise.
63125         * modules/configmake: Likewise.
63126         * modules/dirent: Likewise.
63127         * modules/eealloc: Likewise.
63128         * modules/environ: Likewise.
63129         * modules/fchdir: Likewise.
63130         * modules/fcntl: Likewise.
63131         * modules/fcntl-h: Likewise.
63132         * modules/gethrxtime: Likewise.
63133         * modules/gettime: Likewise.
63134         * modules/ignore-value: Likewise.
63135         * modules/inet_ntop: Likewise.
63136         * modules/inet_pton: Likewise.
63137         * modules/inttypes: Likewise.
63138         * modules/isnand-nolibm: Likewise.
63139         * modules/isnanf-nolibm: Likewise.
63140         * modules/mbchar: Likewise.
63141         * modules/mbfile: Likewise.
63142         * modules/mbiter: Likewise.
63143         * modules/mbuiter: Likewise.
63144         * modules/netdb: Likewise.
63145         * modules/netinet_in: Likewise.
63146         * modules/nproc: Likewise.
63147         * modules/pagealign_alloc: Likewise.
63148         * modules/poll: Likewise.
63149         * modules/printf-frexp: Likewise.
63150         * modules/pthread: Likewise.
63151         * modules/putenv: Likewise.
63152         * modules/random_r: Likewise.
63153         * modules/relocatable-prog: Likewise.
63154         * modules/search: Likewise.
63155         * modules/select: Likewise.
63156         * modules/selinux-h: Likewise.
63157         * modules/settime: Likewise.
63158         * modules/signal: Likewise.
63159         * modules/size_max: Likewise.
63160         * modules/socklen: Likewise.
63161         * modules/ssize_t: Likewise.
63162         * modules/stdarg: Likewise.
63163         * modules/stdbool: Likewise.
63164         * modules/stddef: Likewise.
63165         * modules/stdint: Likewise.
63166         * modules/stdio: Likewise.
63167         * modules/stdlib: Likewise.
63168         * modules/string: Likewise.
63169         * modules/strings: Likewise.
63170         * modules/sys_file: Likewise.
63171         * modules/sys_ioctl: Likewise.
63172         * modules/sys_select: Likewise.
63173         * modules/sys_socket: Likewise.
63174         * modules/sys_stat: Likewise.
63175         * modules/sys_time: Likewise.
63176         * modules/sys_times: Likewise.
63177         * modules/sys_utsname: Likewise.
63178         * modules/sys_wait: Likewise.
63179         * modules/sysexits: Likewise.
63180         * modules/time: Likewise.
63181         * modules/times: Likewise.
63182         * modules/tmpfile: Likewise.
63183         * modules/trim: Likewise.
63184         * modules/unistd: Likewise.
63185         * modules/wchar: Likewise.
63186         * modules/wctype: Likewise.
63188 2009-09-17  Bruno Haible  <bruno@clisp.org>
63190         Make getdate.y compile on QNX and NetBSD 5 / i386.
63191         * m4/getdate.m4 (gl_GETDATE): Conditionally define
63192         TIME_T_FITS_IN_LONG_INT.
63193         * lib/getdate.y (long_time_t): New type.
63194         (relative_time): Change type of 'seconds' field to long_time_t.
63195         (get_date): Update types of local variables. Check against overflow
63196         during conversion from long_time_t to time_t.
63197         Reported by Matt Kraai <kraai@ftbfs.org>
63198         and Hasso Tepper <hasso@netbsd.org>.
63200 2009-09-17  Bruno Haible  <bruno@clisp.org>
63202         * modules/COPYING: Update copyright years.
63203         * modules/README: Likeiwse.
63204         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
63205         Reported by Ian Beckwith <ianb@erislabs.net>.
63207 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
63209         * users.txt: Update references for gnuit package.
63211 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
63213         * m4/getdelim.m4: Fix typo in copyright line.
63215 2009-09-17  Bruno Haible  <bruno@clisp.org>
63217         * lib/atoll.c: Use the standard header with GPL copyright.
63218         * lib/argz.in.h: Likewise.
63219         * lib/glob.c: Likewise.
63220         * lib/glob-libc.h: Likewise.
63221         * lib/random_r.c: Likewise.
63222         * lib/siglist.h: Likewise.
63223         * lib/strsignal.c: Likewise.
63224         Reported by Ian Beckwith <ianb@erislabs.net>.
63226 2009-09-17  Eric Blake  <ebb9@byu.net>
63228         rmdir: ensure correct dependency order
63229         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
63231 2009-09-17  Bruno Haible  <bruno@clisp.org>
63233         Disable assertion that fails on NetBSD 5 / i386.
63234         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
63235         Reported by Sam Steingold <sds@gnu.org>
63236         and Hasso Tepper <hasso@netbsd.org>.
63238 2009-09-16  Eric Blake  <ebb9@byu.net>
63240         unlinkdir: port to mingw
63241         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
63242         on which no one can unlink a directory.
63244         stdlib: sort witness names
63245         * modules/stdlib (Makefile.am): Sort replacements.
63246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
63247         * lib/stdlib.in.h: Likewise.
63249         parse-duration-tests: avoid link failure
63250         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
63251         LIBINTL.
63252         Reported by Tom G. Christensen.
63254         openat-tests: ensure unlinkat behaves like rmdir
63255         * tests/test-rmdir.c (main): Factor guts...
63256         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
63257         * modules/rmdir-tests (Files): Ship new file.
63258         * modules/openat-tests: New test.
63259         * tests/test-unlinkat.c: Likewise.
63261         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
63262         * modules/rmdir-errno (Status, Notice): Now obsolete.
63264         rmdir: work around cygwin 1.5.x and mingw bugs
63265         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
63266         * lib/rmdir.c (rmdir): Work around it.
63267         * modules/rmdir (Status, Notice): No longer obsolete.
63268         (Files): Add dos.m4.
63269         (Depends-on): Add unistd.
63270         (configure.ac): Set witnesses.
63271         (License): Relax to LGPLv2+.
63272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
63273         * modules/unistd (Makefile.am): Substitute witnesses.
63274         * lib/unistd.in.h (rmdir): Declare replacement.
63275         * doc/posix-functions/rmdir.texi (rmdir): Document this.
63276         * modules/rmdir-tests: New tests.
63277         * tests/test-rmdir.c: Likewise.
63279 2009-09-15  Eric Blake  <ebb9@byu.net>
63281         fchdir: improve use of replacement functions
63282         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
63283         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
63284         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
63285         REPLACE_CLOSEDIR.
63286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
63287         * modules/sys_stat (Makefile.am): Substitute correct witness.
63288         * modules/dirent (Makefile.am): Likewise.
63289         * modules/unistd (Makefile.am): Likewise.
63290         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
63291         * lib/unistd.in.h (dup): Likewise.
63292         * lib/sys_stat.in.h (fstat): Likewise.
63294         maint: ignore gnulib-tool temp files
63295         * .gitignore: Ignore files created during gnulib-tool --test.
63297 2009-09-13  Jim Meyering  <meyering@redhat.com>
63299         posixtm: don't reject a time that specify "60" as the number of seconds
63300         * lib/posixtm.c (posixtime): The code to reject invalid dates
63301         would also reject a time specified with the .60 suffix.
63302         But POSIX allows that, in order to accommodate leap seconds.
63303         So don't reject it.
63304         (main): Adjust tests accordingly.
63305         * modules/posixtm (Depends-on): Add stpcpy.
63307 2009-09-11  Jim Meyering  <meyering@redhat.com>
63309         announce-gen: include [$release_type] in emitted Subject:
63310         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
63311         e.g., [stable] in the emitted Subject: line.
63313 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63315         Remove obsolete macros from several modules.
63316         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
63317         obsolete Autoconf macros with their modern counterparts.
63318         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
63319         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
63320         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
63321         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
63322         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
63323         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63324         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
63325         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
63326         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
63327         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
63328         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
63329         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
63330         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
63331         * m4/sockets.m4 (gl_SOCKETS): Likewise.
63332         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
63333         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
63334         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63335         * m4/time_r.m4 (gl_TIME_R): Likewise.
63336         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
63337         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
63338         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63340         Fix copyright header in build-aux scripts.
63341         * build-aux/git-version-gen: Fix copyright header to match GPLv3
63342         recommendation.
63343         * build-aux/ncftpput-ftp: Likewise.
63344         * build-aux/update-copyright: Likewise.
63346 2009-09-09  Eric Blake  <ebb9@byu.net>
63348         test-link: allow Linux choice of errno
63349         * tests/test-link.c (main): Relax test for alternate error.
63351         strndup: fix improper m4 caching
63352         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
63353         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
63354         (gl_PREREQ_STRNDUP): Delete.
63355         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
63356         * modules/string (Makefile.am): Substitute it.
63357         * lib/string.in.h (strndup): Modernize prototype.
63359         getcwd: port to mingw
63360         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
63361         different from the POSIX assumptions made throughout the getcwd
63362         module; fortunately, the mingw getcwd does not need replacement.
63363         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
63364         * modules/getcwd-tests: New test.
63365         * tests/test-getcwd.c: Likewise.
63367         link: fix platform bugs
63368         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
63369         * lib/link.c (link): Work around them.  Fix related mingw bug.
63370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
63371         * modules/unistd (Makefile.am): Substitute it.
63372         * lib/unistd.in.h (link): Declare replacement.
63373         * doc/posix-functions/link.texi (link): Document this.
63374         * modules/link (Depends-on): Add strdup-posix, sys_stat.
63376         test-link: consolidate into single C program, test more cases
63377         * tests/test-link.sh: Delete.
63378         * tests/test-link.c: Test more error conditions.  Exposes bugs on
63379         at least Cygwin and Solaris.
63380         * modules/link-tests (Files): Remove unused file.
63381         (Depends-on): Add errno, sys_stat.
63382         (Makefile.am): Simplify.
63384 2009-09-08  Bruno Haible  <bruno@clisp.org>
63386         Work around towlower, towupper bug on mingw.
63387         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
63388         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
63389         * doc/posix-functions/towlower.texi: Mention the mingw bug.
63390         * doc/posix-functions/towupper.texi: Likewise.
63391         Reported by Eric Blake.
63393 2009-09-08  Jim Meyering  <meyering@redhat.com>
63395         build: don't try to run autoheader if we don't use it
63396         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
63397         is not used in configure.ac.
63399 2009-09-08  Eric Blake  <ebb9@byu.net>
63401         euidaccess: fix compilation error
63402         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
63404         rawmemchr: relax license
63405         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
63406         okay.
63407         Reported by Jim Meyering.
63409         mkfifoat: new module
63410         * modules/mkfifoat: New file.
63411         * lib/mkfifoat.c: Likewise.
63412         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
63413         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
63414         * modules/sys_stat (Makefile.am): Use them.
63415         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
63416         * MODULES.html.sh (File system functions): Mention module.
63417         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
63418         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
63419         * modules/mkfifoat-tests: New test.
63420         * tests/test-mkfifoat.c: Likewise.
63422         strchrnul: relax license
63423         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
63424         okay.
63425         Reported by Jim Meyering.
63427 2009-09-08  Eric Blake  <ebb9@byu.net>
63429         fstatat: fix compilation on Solaris
63430         * lib/fstatat.c (includes): Add fcntl.h.
63431         Reported by Pádraig Brady.
63433 2009-09-07  Eric Blake  <ebb9@byu.net>
63435         rename: modernize replacement
63436         * modules/rename (Depends-on): Add stdio.
63437         (configure.ac): Declare witness.
63438         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
63439         stdio take care of replacement.
63440         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63441         * modules/stdio (Makefile.am): Substitute them.
63442         * lib/stdio.in.h (rename): Declare replacement.
63443         * lib/rename.c (includes): Allow cross-compilation to non-windows
63444         machines.
63445         * doc/posix-functions/rename.texi (rename): Improve
63446         documentation.
63448         stdio: sort witness names
63449         * modules/stdio (Makefile.am): Sort replacements.
63450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
63451         * lib/stdio.in.h: Likewise.
63453         getcwd: minor cleanups
63454         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
63455         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
63457         openat: provide more convenience names
63458         * modules/faccessat (configure.ac): Add C witness.
63459         * lib/unistd.in.h (readlinkat): Fix typo.
63460         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
63461         convenience wrappers.
63462         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
63463         wrappers in syntax checks.
63465 2009-09-06  Eric Blake  <ebb9@byu.net>
63467         doc: fix comments in recent patches
63468         * lib/faccessat.c: Mention correct function.
63469         * lib/fchmodat.c: Likewise.
63470         * lib/fchownat.c: Likewise.
63471         * lib/symlinkat.c: Likewise.
63472         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
63473         constants.
63475         faccessat, symlinkat: continue cleanup of previous patch
63476         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
63477         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
63478         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
63479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
63480         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
63481         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
63482         set.
63484 2009-09-06  Bruno Haible  <bruno@clisp.org>
63486         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
63487         (fstatat): Declare if GNULIB_FSTATAT is set.
63488         (mkdirat): Declare if GNULIB_MKDIRAT is set.
63489         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
63490         (unlinkat): Declare if GNULIB_UNLINKAT is set.
63491         * modules/fcntl-h (Files): Remove m4/openat.m4.
63492         * modules/sys_stat (Files): Remove m4/openat.m4.
63493         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
63494         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
63495         * modules/unistd (Files): Remove m4/openat.m4.
63496         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
63497         GNULIB_OPENAT.
63498         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
63499         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
63500         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
63501         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
63502         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
63503         gl_OPENAT_DEFAULTS.
63504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
63505         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
63506         Don't require gl_OPENAT_DEFAULTS.
63507         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
63508         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
63509         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
63510         (gl_OPENAT_DEFAULTS): Remove macro.
63512 2009-09-06  Bruno Haible  <bruno@clisp.org>
63514         * modules/openat (configure.ac): Remove unneeded witness.
63516 2009-09-06  Bruno Haible  <bruno@clisp.org>
63518         Set errno to ENOSYS when a function is entirely unsupported.
63519         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
63520         EOPNOTSUPP.
63521         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
63522         * modules/chown (Depends-on): Remove errno.
63524 2009-09-06  Bruno Haible  <bruno@clisp.org>
63526         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
63528 2009-09-06  Bruno Haible  <bruno@clisp.org>
63530         * lib/sys_stat.in.h: Fix preprocessor command indentation.
63532 2009-09-06  Ben Pfaff  <blp@gnu.org>
63533             Bruno Haible  <bruno@clisp.org>
63535         Work around a glibc bug in strtok_r.
63536         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
63537         Undefine if UNDEFINE_STRTOK_R is set.
63538         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
63539         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63540         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
63541         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
63542         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
63543         UNDEFINE_STRTOK_R.
63544         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
63546 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
63548         exclude: minor fix
63549         * lib/exclude.c: Include wctype.h
63551 2009-09-06  Akim Demaille  <demaille@gostai.com>
63553         bootstrap: improve error message
63554         * build-aux/bootstrap (find_tool): Upon failure, report the list
63555         of candidates.
63556         Honor the initial value of the envvar.
63558 2009-09-05  Eric Blake  <ebb9@byu.net>
63560         symlinkat: new module
63561         * modules/symlinkat: New file.
63562         * lib/symlinkat.c: Likewise.
63563         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
63564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
63565         * modules/unistd (Makefile.am): Use them.
63566         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
63567         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
63568         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
63569         * MODULES.html.sh (File system functions): Mention module.
63570         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
63571         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63572         * modules/symlinkat-tests: New test.
63573         * tests/test-symlinkat.c: Likewise.
63575         test-openat-safer: add more checks
63576         * tests/test-openat-safer.c (main): Check more code paths.
63578 2009-09-05  Jim Meyering  <meyering@redhat.com>
63580         syntax-check: detect unnecessary inclusion of openat.h
63581         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
63583 2009-09-05  Bruno Haible  <bruno@clisp.org>
63585         Support towlower, towupper.
63586         * doc/posix-functions/towlower.texi: Mention module wctype.
63587         * doc/posix-functions/towupper.texi: Likewise.
63588         * lib/wctype.in.h (towlower, towupper): New functions.
63589         * tests/test-wctype.c: Include stdio.h, stdlib.h.
63590         (ASSERT): New macro.
63591         (e): New variable.
63592         (main): Test also towlower, towupper. Test WEOF argument.
63593         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
63595 2009-09-05  Bruno Haible  <bruno@clisp.org>
63597         Fix conversion behaviour when the input is invalid.
63598         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
63599         mark occurring in first pass of indirect conversion.
63600         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
63601         input.
63602         Found by clang's static analyzer.
63604 2009-09-05  Bruno Haible  <bruno@clisp.org>
63606         * tests/test-striconveh.c (main): Test indirect conversion on platforms
63607         where direct conversion is possible.
63609 2009-09-04  Eric Blake  <ebb9@byu.net>
63611         openat: fail with ENOENT on empty name
63612         * lib/openat-proc.c (openat_proc_name): Special-case the empty
63613         buffer.
63615         link-follow: fix logic bug in prior patch
63616         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
63617         reversed sense of yes and no in prior patch.  Avoid confusing
63618         compilation failure with desired semantics.
63620         link-follow: accommodate mingw and cross-compilation
63621         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
63622         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
63623         cross-compilation results to -1, to make linkat easier to
63624         implement when cross-compiling.  Trivially support mingw.
63625         * modules/link-follow (configure.ac): Call new name.
63626         * NEWS: Mention this.
63628 2009-09-03  Eric Blake  <ebb9@byu.net>
63630         faccessat: compile replacement
63631         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
63632         needed.
63634         fts: fix compilation error
63635         * lib/fts.c (includes): Re-add "openat.h", for
63636         openat_needs_fchdir.
63638         faccessat: new module
63639         * modules/faccessat: New file.
63640         * lib/faccessat.c: Likewise.
63641         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
63642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63643         * modules/unistd (Makefile.am): Use it.
63644         * lib/unistd.in.h (faccessat): Declare it.
63645         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
63646         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
63647         * MODULES.html.sh (File system functions): Mention it.
63648         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
63649         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
63651         euidaccess: prefer POSIX over non-standard implementation
63652         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
63653         * lib/euidaccess.c (euidaccess): Use it if available.
63655         openat: make template easier to use
63656         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
63657         AT_FUNC_F2 to be undefined.
63658         (VALIDATE_FLAG): New macro; use it to reject bad flags.
63659         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
63660         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
63661         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
63662         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
63663         Likewise.
63664         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
63665         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
63666         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
63667         Likewise.
63669         openat: declare in POSIX headers
63670         * NEWS: Mention this.
63671         * modules/openat (configure.ac): Declare witnesses.
63672         (Depends-on): Add fcntl-h, sys_stat, unistd.
63673         (Include): Mention correct headers.
63674         * modules/fcntl-h (Depends-on): Add link-warning.
63675         (Files): Add openat.m4.
63676         (Makefile.am): Substitute witnesses.
63677         * modules/sys_stat (Files, Makefile.am): Likewise.
63678         * modules/unistd (Files, Makefile.am): Likewise.
63679         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
63680         (gl_OPENAT_DEFAULTS): New macro.
63681         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
63682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
63683         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
63684         (SYS_STAT_H): Remove unused variable.
63685         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
63686         * lib/fcntl--.h (includes): Remove unneeded header.
63687         * lib/openat-safer.c (includes): Likewise.
63688         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
63689         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
63690         appropriate headers.
63691         (__OPENAT_PREFIX): Delete.
63692         * lib/fcntl.in.h (openat): Provide declaration.
63693         (AT_FDCWD): Fix Solaris bug.
63694         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
63695         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
63696         * lib/fchmodat.c (includes):  Adjust to find declaration.
63697         * lib/fchownat.c (includes): Likewise.
63698         * lib/mkdirat.c (includes): Likewise.
63699         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
63700         still visible.
63702 2009-09-02  Eric Blake  <ebb9@byu.net>
63704         errno: use consistently
63705         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
63706         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
63707         * lib/canonicalize.c (ELOOP): Likewise.
63708         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
63709         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
63710         * lib/lchown.c (EOPNOTSUPP): Likewise.
63711         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
63712         * lib/savewd.c (ESTALE): Likewise.
63713         * lib/settime.c (ENOSYS): Likewise.
63714         * lib/utimens.c (ENOSYS): Likewise.
63715         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
63716         * lib/chdir-safer.c (ELOOP): Likewise.
63717         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
63718         * modules/c-stack (Depends-on): Add errno.
63719         * modules/canonicalize (Depends-on): Likewise.
63720         * modules/chdir-safer (Depends-on): Likewise.
63721         * modules/fdopendir (Depends-on): Likewise.
63722         * modules/inet_ntop (Depends-on): Likewise.
63723         * modules/inet_pton (Depends-on): Likewise.
63724         * modules/lchown (Depends-on): Likewise.
63725         * modules/openat (Depends-on): Likewise.
63726         * modules/savewd (Depends-on): Likewise.
63727         * modules/settime (Depends-on): Likewise.
63728         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
63730         fts: avoid leaking fds
63731         * modules/fts (Depends-on): Add cloexec.
63732         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
63733         flag.
63735         fts: make directory fds more robust
63736         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
63737         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
63739         backupfile, chdir-long, fts, savedir: make safer
63740         * lib/backupfile.c (includes): Use "dirent--.h", since
63741         numbered_backup can write to stderr during readdir.
63742         * lib/savedir.c (includes): Likewise.
63743         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
63744         emulation can write to stderr on failure.
63745         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
63746         * lib/getcwd.c: Document why opendir_safer is unused.
63747         * lib/glob.c: Likewise.
63748         * lib/scandir.c: Likewise.
63749         * lib/openat-proc.c: Likewise, for open_safer.
63750         * modules/backupfile (Depends-on): Add dirent-safer.
63751         * modules/savedir (Depends-on): Likewise.
63752         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
63753         * modules/chdir-long (Depends-on): Add openat-safer.
63755         openat-safer: new module
63756         * modules/openat-safer: New file.
63757         * lib/openat-safer.c: Likewise.
63758         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
63759         * lib/fcntl-safer.h (openat_safer): Declare.
63760         * lib/fcntl--.h (openat): Override.
63761         * MODULES.html.sh (File descriptor based I/O): Mention it.
63762         * lib/openat.h: Add double-inclusion guards.
63763         * lib/openat.c (includes): Only include "fcntl-safer.h", not
63764         "fcntl--.h", so we can implement openat.
63765         * modules/openat-safer-tests: New test.
63766         * tests/test-openat-safer.c: New file.
63768         dirent-safer: new module
63769         * modules/dirent-safer: New file.
63770         * lib/dirent--.h: Likewise.
63771         * lib/dirent-safer.h: Likewise.
63772         * lib/opendir-safer.c: Likewise.
63773         * m4/dirent-safer.m4: Likewise.
63774         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
63775         * modules/dirent-safer-tests: New test.
63776         * tests/test-dirent-safer.c: New file.
63777         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
63779         fdopendir: optimize on mingw
63780         * lib/unistd.in.h (_gl_directory_name): New prototype.
63781         * lib/fchdir.c (_gl_directory_name): Implement it.
63782         (fchdir): Use it to simplify implementation.
63783         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
63784         fchdir, when available, to avoid calling [f]chdir().
63786         fdopendir: split into its own module
63787         * lib/openat.c (fdopendir): Move...
63788         * lib/fdopendir.c: ...into new file.
63789         * modules/fdopendir: New module.
63790         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
63791         * modules/openat (Depends-on): Add fdopendir.
63792         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
63793         fdopendir here.
63794         * modules/savedir (Depends-on): Only need fdopendir, not full
63795         openat.
63796         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
63797         * lib/openat.h (fdopendir): Drop prototype.
63798         * lib/dirent.in.h (fdopendir): Provide prototype.
63799         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
63800         * modules/dirent (Makefile.am): Substitute them.
63801         * MODULES.html.sh (File system functions): Mention it.
63802         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
63803         * modules/fdopendir-tests: New file.
63804         * tests/test-fdopendir.c: Likewise.
63806         fchdir: use more consistent macro convention
63807         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
63808         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
63809         REPLACE_FCHDIR, rather than relying on config.h macros.
63810         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
63811         inside a single make-time REPLACE_FCHDIR block, rather than using
63812         the config.h FCHDIR_REPLACEMENT.
63813         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
63814         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
63815         Manage fstat replacement.
63816         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
63817         REPLACE_FCHDIR.
63818         * modules/sys_stat (Files): Add m4/unistd_h.m4.
63819         (Makefile.am): Substitute REPLACE_FCHDIR.
63820         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
63821         FCHDIR_REPLACEMENT.
63822         * lib/dup-safer.c (dup_safer): Likewise.
63823         * lib/dup2.c (rpl_dup2): Likewise.
63824         * lib/dup3.c (rpl_dup3): Likewise.
63825         * lib/open.c (rpl_open): Likewise.
63827         fchdir: simplify error handling, and support dup3
63828         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
63829         stdbool, malloc-posix, realloc-posix.
63830         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
63831         (ensure_dirs_slot): Return false on allocation failure.
63832         (rpl_dup2): Delete.
63833         (_gl_register_dup): New function.
63834         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
63835         (_gl_register_fd): Close fd on allocation failure.
63836         * lib/fcntl.in.h (_gl_register_fd): Update signature.
63837         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
63838         prototype.
63839         (rpl_dup2_fchdir): Delete prototype.
63840         * lib/open.c (open): Update caller.
63841         * lib/dup2.c (dup2): Track fchdir metadata.
63842         * lib/dup3.c (dup3): Likewise.
63843         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
63844         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
63846 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63848         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
63849         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
63850         don't pass arguments to AC_OUTPUT.
63852 2009-09-02  Bruno Haible  <bruno@clisp.org>
63854         * modules/mkdtemp (License): Relicense under LGPLv2+.
63855         Reported by Paolo Bonzini.
63857 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63859         Replace uses of obsolete autoconf macros in Jim's modules.
63860         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
63861         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
63862         can evoke a warning from autoconf when run with -Wobsolete
63863         enabled.  They were declared obsolete for good reasons (see
63864         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
63865         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
63866         should not continue using the deprecated macros.
63867         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
63868         obsolete Autoconf macros with modern counterparts.
63869         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63870         * m4/dos.m4 (gl_AC_DOS): Likewise.
63871         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
63872         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
63873         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
63874         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
63875         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
63876         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
63877         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
63878         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
63879         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63880         Likewise.
63881         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
63882         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
63883         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
63884         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
63885         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
63886         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
63888 2009-09-01  Eric Blake  <ebb9@byu.net>
63890         fchdir: fix off-by-one bug in previous patch
63891         * lib/fchdir.c (rpl_fstat): Use correct bounds.
63892         (_gl_unregister_fd): Delete useless if.
63894 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
63896         maint.mk: sort the list of syntax-check rules
63897         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
63898         easier to get a sense of progress when the rules are run sequentially
63899         and take a long time.
63901 2009-09-01  Simon Josefsson  <simon@josefsson.org>
63903         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
63904         * modules/netinet_in: Likewise.
63905         * modules/sys_file: Likewise.
63906         * modules/sys_ioctl: Likewise.
63907         * modules/sys_select: Likewise.
63908         * modules/sys_socket: Likewise.
63909         * modules/sys_stat: Likewise.
63910         * modules/sys_time: Likewise.
63911         * modules/sys_times: Likewise.
63912         * modules/sys_utsname: Likewise.
63913         * modules/sys_wait: Likewise.
63915 2009-09-01  Jim Meyering  <meyering@redhat.com>
63917         fts: help ensure that return values are not ignored
63918         * lib/fts_.h (__GNUC_PREREQ): Define.
63919         (__attribute_warn_unused_result__): Define.
63920         (fts_children, fts_close, fts_open, fts_read): Declare with
63921         __attribute_warn_unused_result__.
63923         fts: fts_close now fails also when closing a dir file descriptor fails
63924         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
63925         and propagate to caller, along with errno.
63927         announce-gen: correct formatting in --help output
63928         * build-aux/announce-gen (usage): Move the one-line description in
63929         --help output "up", to where it belongs, just after Usage:.
63931 2009-08-31  Eric Blake  <ebb9@byu.net>
63933         fchdir: port to mingw
63934         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
63935         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
63936         opened, then use a substitute.
63937         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
63938         replacement.
63939         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
63940         (_gl_register_fd): No need to check stat if open already filters
63941         all directories.
63942         (fchdir): Fix error condition to match POSIX.
63943         * modules/fchdir (Depends-on): Add sys_stat.
63944         * doc/posix-functions/open.texi (open): Document the limitation.
63945         * modules/fchdir-tests: New file.
63946         * tests/test-fchdir.c: Likewise.
63948         canonicalize: allow cross-testing from cygwin to mingw
63949         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
63950         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
63951         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
63952         Likewise.
63953         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
63954         target does not support symlinks.
63955         * tests/test-canonicalize-lgpl.sh: Likewise.
63957         chown: avoid compilation warning on mingw
63958         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
63959         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
63960         mingw.
63961         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
63962         * modules/chown (Depends-on): Add errno.
63964 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
63966         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
63967         command.
63969 2009-08-31  Jim Meyering  <meyering@redhat.com>
63971         canonicalize: remove useless initialization
63972         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
63973         initialization of local, "end".
63975 2009-08-30  Bruno Haible  <bruno@clisp.org>
63977         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
63978         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
63979         ENOSYS.
63981 2009-08-30  Bruno Haible  <bruno@clisp.org>
63983         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
63984         /usr/xpg4/bin/tr when it exists.
63985         * tests/test-pipe-filter-gi1.sh: Likewise.
63987 2009-08-30  Bruno Haible  <bruno@clisp.org>
63989         Work around deficient /usr/bin/id program on Solaris.
63990         * tests/test-file-has-acl.sh (ID): New variable.
63991         * tests/test-set-mode-acl.sh (ID): Likewise.
63992         * tests/test-copy-acl.sh (ID): Likewise.
63993         * tests/test-copy-file.sh (ID): Likewise.
63995 2009-08-30  Bruno Haible  <bruno@clisp.org>
63997         New module 'xstriconveh'.
63998         * lib/xstriconveh.h: New file.
63999         * lib/xstriconveh.c: New file.
64000         * modules/xstriconveh: New file.
64002 2009-08-30  Bruno Haible  <bruno@clisp.org>
64004         Make it easier to use mem_cd_iconveh.
64005         * lib/striconveh.h (iconveh_t): New type.
64006         (iconveh_open, iconveh_close): New declarations.
64007         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
64008         with a single 'const iconveh_t *' argument.
64009         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
64010         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
64011         with a single 'const iconveh_t *' argument.
64012         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
64013         * tests/test-striconveh.c (main): Update.
64014         * NEWS: Mention the change.
64016 2009-08-30  Bruno Haible  <bruno@clisp.org>
64018         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
64019         problem.
64021 2009-08-30  Bruno Haible  <bruno@clisp.org>
64023         Work around iconv_open problem on Solaris.
64024         * lib/iconv_open-solaris.gperf: New file.
64025         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
64026         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
64027         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
64028         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
64029         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
64030         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
64032 2009-08-29  Jim Meyering  <meyering@redhat.com>
64034         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
64035         * top/maint.mk (cvs-check): Remove target; it was just an alias
64036         to the better-named vc-diff-check.
64037         (maintainer-distcheck): Remove rule.  It was used only from
64038         the (alpha/beta/major) target, and all of its commands but one
64039         were coreutils-specific.
64040         (vc-dist): Remove rule.
64041         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
64042         Run vc-diff-check, not vc-dist.
64043         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
64045 2009-08-27  Bruno Haible  <bruno@clisp.org>
64047         * tests/test-bitrotate.c (main): Remove test that uses a shift count
64048         of 0.
64050 2009-08-27  Bruno Haible  <bruno@clisp.org>
64052         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
64053         compilers.
64054         * doc/func.texi: Document the SunPRO C bug.
64056 2009-08-27  Bruno Haible  <bruno@clisp.org>
64058         Fix link error on Solaris.
64059         * tests/test-parse-duration.c (xstrdup): Remove function.
64061 2009-08-26  Pádraig Brady  <P@draigbrady.com>
64063         ignore-value: handle pointer types, too
64064         * lib/ignore-value.h (__attribute__): Remove definition.
64065         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
64066         of a more concise and more-often effective "(void) i" statement.
64067         (ignore_ptr): New function to suppress warnings from functions that
64068         return pointers, and to make it explicit that one function doesn't
64069         handle all cases.
64071 2009-08-25  Bruno Haible  <bruno@clisp.org>
64073         dup2: work around a Linux bug.
64074         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
64075         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
64076         * doc/posix-functions/dup2.texi: Mention the Linux bug.
64077         Reported by Simon Josefsson.
64079 2009-08-25  Jim Meyering  <meyering@redhat.com>
64081         libguestfs uses gnulib
64082         * users.txt: Add libguestfs.
64084 2009-08-24  Eric Blake  <ebb9@byu.net>
64086         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
64087         * lib/pipe2.c (includes): Add binary-io.h.
64088         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
64090 2009-08-24  Bruno Haible  <bruno@clisp.org>
64092         Tolerate declared but missing accept4 syscall.
64093         * lib/accept4.c (accept4): Invoke original accept4 function first, if
64094         available.
64095         * lib/sys_socket.in.h (accept4): If the function is already present,
64096         override it.
64097         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
64098         * modules/accept4 (Makefile.am): Compile accept4.c always.
64099         Reported by Paolo Bonzini and Eric Blake.
64101 2009-08-23  Bruno Haible  <bruno@clisp.org>
64103         New module 'accept4'.
64104         * lib/sys_socket.in.h (accept4): New declaration.
64105         * lib/accept4.c: New file.
64106         * m4/accept4.m4: New file.
64107         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
64108         GNULIB_ACCEPT4, HAVE_ACCEPT4.
64109         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
64110         HAVE_ACCEPT4.
64111         * modules/accept4: New file.
64112         * doc/glibc-functions/accept4.texi: Mention the new module.
64114 2009-08-24  Jim Meyering  <meyering@redhat.com>
64116         progname: also set global program_invocation_name, when possible
64117         Before this change, a libtool-enabled program that calls glibc's
64118         error function would report the program name as
64119         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
64120         * modules/progname (configure.ac): Check for a declaration of
64121         program_invocation_name.
64122         * lib/progname.c:  Include <errno.h>.
64123         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
64124         Set program_invocation_name.
64126 2009-08-23  Bruno Haible  <bruno@clisp.org>
64128         * lib/dup3.c: Include <string.h>.
64130 2009-08-23  Bruno Haible  <bruno@clisp.org>
64132         * lib/dup3.c (dup3): Test only once whether the system actually exists.
64133         * lib/pipe2.c (pipe2): Likewise.
64134         Suggested by Eric Blake.
64136 2009-08-23  Bruno Haible  <bruno@clisp.org>
64138         Tolerate declared but missing dup3 syscall.
64139         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
64140         * lib/unistd.in.h (dup3): If the function is already present,
64141         override it.
64142         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
64143         * modules/dup3 (Makefile.am): Compile dup3.c always.
64144         Reported by Paolo Bonzini.
64146 2009-08-23  Bruno Haible  <bruno@clisp.org>
64148         Tolerate declared but missing pipe2 syscall.
64149         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
64150         available.
64151         * lib/unistd.in.h (pipe2): If the function is already present,
64152         override it.
64153         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
64154         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
64155         Reported by Paolo Bonzini.
64157 2009-08-23  Bruno Haible  <bruno@clisp.org>
64159         * lib/pipe2.c (pipe2): Move #ifs inside function.
64161 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
64163         quotearg: document limitations of quote_these_too
64164         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
64165         those limitations are created.
64166         * lib/quotearg.h (set_char_quoting): Document that digits and
64167         letters that are special after backslash are not permitted.
64168         (quotearg_char): Cross-reference set_char_quoting documentation.
64170 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
64172         quotearg: implement custom_quoting_style
64173         * lib/quotearg.c: (struct quoting_options): Add left_quote and
64174         right_quote fields.
64175         (set_custom_quoting): New public function.
64176         (quotearg_buffer_restyled): Add left_quote and right_quote
64177         arguments, handle them very much like locale quoting, and update
64178         all uses.
64179         (quotearg_n_custom): New public function.
64180         (quotearg_n_custom_mem): New public function.
64181         (quotearg_custom): New public function.
64182         (quotearg_custom_mem): New public function.
64183         * lib/quotearg.h: Prototype and document new public functions.
64184         (enum quoting_style): For escape_quoting_style and
64185         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
64186         ignored even though they're otherwise like c_quoting_style.
64187         Add custom_quoting_style member and document with comparison to
64188         clocale_quoting_style.
64189         * tests/test-quotearg.c (custom_quotes): New array.
64190         (custom_results): New array.
64191         (main): Extend to test custom quoting.
64193 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
64195         quotearg: fix right quote escaping when it's in quote_these_too
64196         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
64197         quote, be sure to prepend only one backslash.
64198         * tests/test-quotearg.c (use_quote_double_quotes): New function.
64199         (main): Test it.
64201 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
64203         quotearg-tests: test escaping of embedded locale quotes
64204         * tests/test-quotearg.c (struct result_strings): Add member for
64205         new input.
64206         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
64207         (inputs): Add new input.
64208         (results_g): Add expected results.
64209         (flag_results): Likewise.
64210         (locale_results): Likewise.
64211         (compare_strings): Check those.
64213 2009-08-23  Bruno Haible  <bruno@clisp.org>
64215         Tests for module 'dup3'.
64216         * modules/dup3-tests: New file.
64217         * tests/test-dup3.c: New file.
64219         New module 'dup3'.
64220         * lib/unistd.in.h (dup3): New declaration.
64221         * lib/dup3.c: New file.
64222         * m4/dup3.m4: New file.
64223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
64224         HAVE_DUP3.
64225         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
64226         * modules/dup3: New file.
64227         * doc/glibc-functions/dup3.texi: Mention the new module.
64229 2009-08-23  Bruno Haible  <bruno@clisp.org>
64231         Tweak the dup2 test.
64232         * tests/test-dup2.c (main): Create the test file empty. Verify that an
64233         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
64234         the test file is still empty. Fix argument order of lseek.
64236 2009-08-23  Bruno Haible  <bruno@clisp.org>
64238         Avoid test link errors when the modules getopt-gnu, gettext are used.
64239         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
64240         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64242 2009-08-23  Bruno Haible  <bruno@clisp.org>
64244         Fix getdtablesize() on mingw.
64245         * lib/getdtablesize.c (getdtablesize): Implement differently.
64246         * lib/unistd.in.h (getdtablesize): Improve comment.
64248 2009-08-23  Bruno Haible  <bruno@clisp.org>
64250         New module 'mkostemp'.
64251         Based on Ulrich Drepper's 2007-08-10 change in glibc.
64252         * lib/stdlib.in.h (mksotemp): New declaration.
64253         * lib/mkostemp.c: New file, from glibc with modifications.
64254         * lib/tempname.h (GT_FILE): Remove outdated comment.
64255         (gen_tempname): Add flags argument.
64256         * lib/tempname.c (__GT_BIGFILE): Remove macro.
64257         (__GT_FILE): Map to 1.
64258         (small_open, large_open): Remove macros.
64259         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
64260         * lib/mkstemp.c (mkstemp): Update.
64261         * lib/mkdtemp.c (mkdtemp): Likewise.
64262         * m4/mkostemp.m4: New file.
64263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
64264         HAVE_MKOSTEMP.
64265         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
64266         HAVE_MKOSTEMP.
64267         * modules/mkostemp: New file, based on modules/mkstemp.
64268         * doc/glibc-functions/mkostemp.texi: Mention the new module.
64269         * NEWS: Mention the change.
64271 2009-08-23  Bruno Haible  <bruno@clisp.org>
64273         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
64274         Reported by Eric Blake.
64276 2009-08-23  Bruno Haible  <bruno@clisp.org>
64278         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
64279         Reported by Eric Blake.
64281 2009-08-23  Bruno Haible  <bruno@clisp.org>
64283         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
64284         * modules/pipe2 (Depends-on): Likewise.
64286 2009-08-23  Eric Blake  <ebb9@byu.net>
64288         fcntl-h: add O_TTY_INIT support
64289         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
64290         * tests/test-fcntl-h.c (o): Test it.
64291         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
64293         fcntl-h: rename from fcntl, in preparation for fcntl(2)
64294         * modules/fcntl: Move <fcntl.h> header replacement...
64295         * modules/fcntl-h: ...to new name, so as not to collide with
64296         like-named function.
64297         * tests/test-fcntl.c: Rename...
64298         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
64299         * modules/fcntl-tests: Rename...
64300         * modules/fcntl-h-tests: ...to this.  Update test file name.
64301         * modules/chdir-long (Depends-on): Update clients.
64302         * modules/chdir-safer (Depends-on): Likewise.
64303         * modules/fcntl-safer (Depends-on): Likewise.
64304         * modules/fts (Depends-on): Likewise.
64305         * modules/mkancesdirs (Depends-on): Likewise.
64306         * modules/mkdir-p (Depends-on): Likewise.
64307         * modules/open (Depends-on): Likewise.
64308         * modules/savewd (Depends-on): Likewise.
64309         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
64310         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
64312 2009-08-22  Bruno Haible  <bruno@clisp.org>
64314         * modules/binary-io (License): Relicense under LGPL.
64315         * modules/pipe2 (License): Likewise.
64317 2009-08-22  Bruno Haible  <bruno@clisp.org>
64319         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
64320         return value.
64321         * lib/pipe-filter-gi.c (filter_init): Likewise.
64322         Reported by Eric Blake.
64324 2009-08-22  Bruno Haible  <bruno@clisp.org>
64326         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
64327         * modules/pipe (Depends-on): Add pipe2.
64329 2009-08-22  Bruno Haible  <bruno@clisp.org>
64331         Tests for module 'pipe2'.
64332         * modules/pipe2-tests: New file.
64333         * tests/test-pipe2.c: New file.
64335         New module 'pipe2'.
64336         * lib/unistd.in.h (pipe2): New declaration.
64337         * lib/pipe2.c: New file.
64338         * m4/pipe2.m4: New file.
64339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
64340         HAVE_PIPE2.
64341         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
64342         * modules/pipe2: New file.
64343         * doc/glibc-functions/pipe2.texi: Mention the new module.
64345 2009-08-22  Bruno Haible  <bruno@clisp.org>
64347         Reference some new glibc functions.
64348         * doc/glibc-functions/accept4.texi: New file.
64349         * doc/glibc-functions/dup3.texi: New file.
64350         * doc/glibc-functions/mkostemp.texi: New file.
64351         * doc/glibc-functions/pipe2.texi: New file.
64352         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
64353         (Glibc sys/socket.h): Refer to accept4.
64354         (Glibc unistd.h): Refer to dup3, pipe2.
64355         Reported by Eric Blake.
64357 2009-08-22  Jim Meyering  <meyering@redhat.com>
64358             Bruno Haible  <bruno@clisp.org>
64360         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
64361         This makes it so packages using automake-1.11's silent-rules option
64362         can print e.g., a single "GEN    configmake.h" line, rather than
64363         the 30+ statements that perform the job.  If you want to see the
64364         actual commands, you can still run "make V=1".
64365         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
64366         so that make output is abbreviated when those variables are defined
64367         appropriately.
64368         * modules/argz: Likewise.
64369         * modules/arpa_inet: Likewise.
64370         * modules/byteswap: Likewise.
64371         * modules/configmake: Likewise.
64372         * modules/dirent: Likewise.
64373         * modules/errno: Likewise.
64374         * modules/fcntl: Likewise.
64375         * modules/float: Likewise.
64376         * modules/fnmatch: Likewise.
64377         * modules/getopt-posix: Likewise.
64378         * modules/glob: Likewise.
64379         * modules/iconv_open: Likewise.
64380         * modules/inttypes: Likewise.
64381         * modules/localcharset: Likewise.
64382         * modules/locale: Likewise.
64383         * modules/math: Likewise.
64384         * modules/netdb: Likewise.
64385         * modules/netinet_in: Likewise.
64386         * modules/poll: Likewise.
64387         * modules/posix_spawnp-tests: Likewise.
64388         * modules/sched: Likewise.
64389         * modules/search: Likewise.
64390         * modules/selinux-h: Likewise.
64391         * modules/signal: Likewise.
64392         * modules/spawn: Likewise.
64393         * modules/stdarg: Likewise.
64394         * modules/stdbool: Likewise.
64395         * modules/stddef: Likewise.
64396         * modules/stdint: Likewise.
64397         * modules/stdio: Likewise.
64398         * modules/stdlib: Likewise.
64399         * modules/string: Likewise.
64400         * modules/strings: Likewise.
64401         * modules/sys_file: Likewise.
64402         * modules/sys_ioctl: Likewise.
64403         * modules/sys_select: Likewise.
64404         * modules/sys_socket: Likewise.
64405         * modules/sys_stat: Likewise.
64406         * modules/sys_time: Likewise.
64407         * modules/sys_times: Likewise.
64408         * modules/sys_utsname: Likewise.
64409         * modules/sys_wait: Likewise.
64410         * modules/sysexits: Likewise.
64411         * modules/time: Likewise.
64412         * modules/unistd: Likewise.
64413         * modules/wchar: Likewise.
64414         * modules/wctype: Likewise.
64416 2009-08-22  Jim Meyering  <meyering@redhat.com>
64418         announce-gen: detect write failure
64419         * build-aux/announce-gen: Add Coda at end.
64420         Remove equivalent-but-more-verbose block at top.
64422 2009-08-19  Akim Demaille  <demaille@gostai.com>
64424         bootstrap: --help to stdout.
64425         * bootstrap (usage): Don't send --help to stderr.
64426         Use a here doc instead of a long string.
64428 2009-08-21  Eric Blake  <ebb9@byu.net>
64430         test-popen-safer: split from test-popen
64431         * tests/test-popen.c (main): Move...
64432         * tests/test-popen.h: ...into new file.
64433         * tests/test-popen-safer2.c: New file.
64434         * modules/popen-tests (Files): Add test-popen.h.
64435         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
64436         Suggested by Bruno Haible.
64438         test-fcntl-safer: split from test-open
64439         * tests/test-open.c (main): Move...
64440         * tests/test-open.h: ...into new file.
64441         * tests/test-fcntl-safer.c: New file.
64442         * modules/open-tests (Files): Add test-open.h.
64443         * modules/fcntl-safer-tests: New file.
64444         Suggested by Bruno Haible.
64446         test-fopen-safer: split from test-fopen
64447         * tests/test-fopen.c (main): Move...
64448         * tests/test-fopen.h: ...into new file.
64449         * tests/test-fopen-safer.c: New file.
64450         * modules/fopen-tests (Files): Add test-fopen.h.
64451         * modules/fopen-safer-tests: New file.
64452         Suggested by Bruno Haible.
64454 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
64456         popen-safer: test O_CLOEXEC at run-time.
64457         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
64459 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
64461         fcntl: move more flags to the header
64462         * lib/cloexec.c: Do not define FD_CLOEXEC here.
64463         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
64464         * lib/fcntl.in.h: Do both things here.
64466 2009-08-21  Jim Meyering  <meyering@redhat.com>
64468         consistently remove $@-t before redirecting to it
64469         * modules/argz: Remove $@-t and $@ before redirecting to the former.
64470         * modules/alloca-opt: Likewise.
64471         * modules/byteswap: Likewise.
64472         * modules/fnmatch: Likewise.
64473         * modules/getopt-posix: Likewise.
64474         * modules/glob: Likewise.
64475         * modules/poll: Likewise.
64476         * modules/posix_spawnp-tests: Likewise.
64477         * modules/sys_socket: Likewise.
64478         * modules/sysexits: Likewise.
64480 2009-08-21  Eric Blake  <ebb9@byu.net>
64482         popen: simplify access to original popen
64483         * lib/popen.c (rpl_popen): No need to worry about popen being a
64484         macro.
64485         Reported by Bruno Haible.
64487 2009-08-20  Eric Blake  <ebb9@byu.net>
64489         build: avoid some compiler warnings
64490         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
64491         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
64492         type.
64493         (new_exclude_segment, excluded_file_pattern_p)
64494         (excluded_file_name_p): Reduce scope.
64495         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
64496         old-style declaration.
64498 2009-08-20  Simon Josefsson  <simon@josefsson.org>
64500         * tests/test-exclude1.sh: Handle Windows EOL.
64501         * tests/test-exclude2.sh: Likewise.
64502         * tests/test-exclude3.sh: Likewise.
64503         * tests/test-exclude4.sh: Likewise.
64504         * tests/test-exclude5.sh: Likewise.
64505         * tests/test-exclude6.sh: Likewise.
64506         * tests/test-exclude7.sh: Likewise.
64508 2009-08-19  Akim Demaille  <demaille@gostai.com>
64510         bootstrap: find sha1sum when named gsha1sum.
64511         * bootstrap (find_tool): New.
64512         ($SHA1SUM): New.
64513         Use it.
64515 2009-08-20  Jim Meyering  <meyering@redhat.com>
64517         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
64518         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
64519         expression that converts "." in a file name to "\." in the resulting
64520         regexp.  Start with a dummy statement, so that prior shell variable
64521         definitions are expanded portably.  Reported by Simon Josefsson.
64523 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
64525         Fix polling for writeability of a screen buffer.
64526         * lib/poll.c: Distinguish input and screen buffers for the
64527         Win32 implementation.
64528         * lib/select.c: Likewise.
64530 2009-08-19  Eric Blake  <ebb9@byu.net>
64532         popen-safer: prevent popen from clobbering std descriptors
64533         * modules/popen-safer: New file.
64534         * lib/popen-safer.c: Likewise.
64535         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
64536         * lib/stdio--.h (popen): Provide override.
64537         * lib/stdio-safer.h (popen_safer): Provide declaration.
64538         * tests/test-popen.c (includes): Partially test this.
64539         * modules/popen-safer-tests: New file, for more tests.
64540         * tests/test-popen-safer.c: Likewise.
64541         * MODULES.html.sh (file stream based Input/Output): Mention it.
64543         tests: test some of the *-safer modules
64544         * modules/fopen-safer (Depends-on): Add fopen.
64545         * modules/fcntl-safer (Depends-on): Add fcntl.
64546         * modules/stdlib-safer (Depends-on): Add stdlib.
64547         (configure.ac): Set indicator.
64548         * modules/unistd-safer (configure.ac): Likewise.
64549         * modules/tmpfile-safer (configure.ac): Likewise.
64550         (Depends-on): Add tmpfile.
64551         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
64552         active.
64553         * tests/test-fopen.c (includes): Test safer versions when they are
64554         in use.
64555         * tests/test-open.c (includes): Likewise.
64557         popen: fix cygwin 1.5 bug when stdin closed
64558         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
64559         * modules/popen: New file.
64560         * modules/popen-tests: Likewise.
64561         * tests/test-popen.c: Likewise.
64562         * m4/popen.m4: Likewise.
64563         * lib/popen.c: Likewise.
64564         * lib/stdio.in.h (popen): New declaration.
64565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
64566         * modules/stdio (Makefile.am): Likewise.
64567         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
64569 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
64571         maint.mk: give full control over update-copyright exclusions
64572         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
64573         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
64574         (update-copyright): Don't force inclusion of top-level
64575         ChangeLog.  Don't force exclusion of all COPYING files, but make
64576         them the default exclusion instead.
64578 2009-08-16  Bruno Haible  <bruno@clisp.org>
64580         Fix test failures on Solaris 10.
64581         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
64582         tests when Solaris iconv() is used.
64583         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
64584         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
64585         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
64586         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
64587         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
64589 2009-08-16  Bruno Haible  <bruno@clisp.org>
64591         Fix test failures on Solaris 10.
64592         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
64593         'tr' program and pass it as first argument.
64594         * tests/test-pipe-filter-gi1.sh: Likewise.
64595         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
64596         program as first argument.
64597         * tests/test-pipe-filter-gi1.c (main): Likewise.
64599 2009-08-16  Eric Blake  <ebb9@byu.net>
64601         fpurge: fix previous commits
64602         * modules/fpurge (Makefile.am): Make replacement conditional,
64603         partially reverting 2007-04-29 change; missed in previous
64604         attempt.
64605         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
64606         is missing.
64608 2009-08-16  Bruno Haible  <bruno@clisp.org>
64610         Clarify fpurge's effect on the file position.
64611         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
64612         * tests/test-fpurge.c (main): Make a second pass for checking the file
64613         position.
64615 2009-08-16  Bruno Haible  <bruno@clisp.org>
64617         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
64618         declaration of fpurge is missing.
64619         * tests/test-fpurge.c (main): Check that the file has not more contents
64620         than expected. Close the file before removing it.
64622 2009-08-15  Eric Blake  <ebb9@byu.net>
64624         fpurge: don't wrap working cygwin implementation
64625         * lib/fpurge.c (fpurge): Fix comment typo.
64626         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
64627         1.7 to avoid replacement.
64628         * tests/test-fpurge.c (main): Enhance test.
64630 2009-08-15  Eric Blake  <ebb9@byu.net>
64631         and Jim Meyering  <meyering@redhat.com>
64633         test-update-copyright: skip if perl is insufficient
64634         * tests/test-update-copyright.sh: Failure to run maintainer tool
64635         should not cause testsuite failure on cygwin 1.5.
64637 2009-08-14  Eric Blake  <ebb9@byu.net>
64639         doc: mention more functions added in cygwin 1.7.0
64640         * doc/posix-headers/limits.texi (limits.h): Update for recent
64641         cygwin additions.
64642         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
64643         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
64644         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
64645         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
64646         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
64648 2009-08-14  Eric Blake  <ebb9@byu.net>
64650         maint.mk: simplify update-copyright rule
64651         * top/maint.mk (update-copyright-local): Delete, and document how
64652         to do it in cfg.mk instead.
64653         (update-copyright-exclude-regexp): Delete, and document how to do
64654         it in .x-update-copyright instead.
64655         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
64656         exclude ChangeLog.
64658 2009-08-14  Bruno Haible  <bruno@clisp.org>
64660         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
64662 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
64664         maint.mk: support update-copyright-env
64665         * top/maint.mk (update-copyright-env): Define place-holder.
64666         (update-copyright): Expand $(update-copyright-env) before
64667         invoking update-copyright.
64669 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
64671         update-copyright: implement forced reformatting
64672         * build-aux/update-copyright: Implement and document
64673         UPDATE_COPYRIGHT_FORCE.
64674         * tests/test-update-copyright.sh: Test it.
64676 2009-08-14  Eric Blake  <ebb9@byu.net>
64677         and Bruno Haible  <bruno@clisp.org>
64679         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
64680         * tests/test-locale.c: Revert previous patch related to NULL.
64681         * tests/test-stdio.c: Likewise.
64682         * tests/test-stdlib.c: Likewise.
64683         * tests/test-string.c: Likewise.
64684         * tests/test-unistd.c: Likewise.
64685         * modules/time-tests (Depends-on): Add verify.
64686         * modules/wchar-tests (Depends-on): Likewise.
64687         * tests/test-time.c: Test for NULL compliance.
64688         * tests/test-wchar.c: Likewise.
64689         * modules/locale (Depends-on): Add stddef.
64690         * modules/stdio (Depends-on): Likewise.
64691         * modules/stdlib (Depends-on): Likewise.
64692         * modules/string (Depends-on): Likewise.
64693         * modules/time (Depends-on): Likewise.
64694         * modules/unistd (Depends-on): Likewise.
64695         * modules/wchar (Depends-on): Likewise.
64696         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
64697         * lib/stdlib.in.h (includes): Likewise.
64698         * lib/string.in.h (includes): Likewise.
64699         * lib/time.in.h (includes): Likewise.
64700         * lib/unistd.in.h (includes): Likewise.
64701         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
64702         replaced.
64703         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64704         * m4/stddef_h.m4: New file.
64705         * modules/stddef: Likewise.
64706         * lib/stddef.in.h: Likewise.
64707         * modules/stddef-tests: Likewise.
64708         * tests/test-stddef.c: Likewise.
64709         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
64710         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
64711         * doc/posix-headers/locale.texi (locale.h): Likewise.
64712         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
64713         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
64714         * doc/posix-headers/string.texi (string.h): Likewise.
64715         * doc/posix-headers/time.texi (time.h): Likewise.
64716         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
64717         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
64719 2009-08-14  Eric Blake  <ebb9@byu.net>
64721         doc: improve git diff of texinfo files
64722         * .gitattributes: Add rule for *.texi files, with hint on how to
64723         use it.
64724         Copied from m4, and based on a report by Bruno Haible.
64726 2009-08-14  Bruno Haible  <bruno@clisp.org>
64728         Disable multithread support by default on Cygwin 1.5.x for real.
64729         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
64731 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
64733         update-copyright: much ado about intervals
64734         * build-aux/update-copyright: Implement and document
64735         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
64736         of copyright year intervals.
64737         Also, document UPDATE_COPYRIGHT_YEAR.
64738         * tests/test-update-copyright.sh: Test it.
64740         update-copyright: convert 2-digit to 4-digit years
64741         * build-aux/update-copyright: Implement and document.
64742         * tests/test-update-copyright.sh: Update.
64744 2009-08-14  Jim Meyering  <meyering@redhat.com>
64746         test-exclude: avoid coreutils "make check" failure
64747         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
64748         just as in test-argmatch.c.
64750 2009-08-13  Eric Blake  <ebb9@byu.net>
64752         test-dup2: fix bad assumption
64753         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
64754         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
64756         test-version-etc: fix CRLF portability issue
64757         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
64758         recognize \r.
64759         * tests/test-argp-version-etc-1.sh: Likewise.
64761         getopt: update client modules
64762         * modules/argp (Depends-on): Use getopt-gnu.
64763         * modules/git-merge-changelog (Depends-on): Likewise.
64764         * modules/long-options (Depends-on): Likewise.
64765         * modules/xstrtol (Depends-on): Likewise.
64767 2009-08-13  Simon Josefsson  <simon@josefsson.org>
64769         * tests/test-version-etc.sh: Don't fail on different
64770         project/version.  Don't fail on CRLF differences.  Rewrite to use
64771         multiple -e instead of multiple sed forks, suggested by Eric Blake
64772         <ebb9@byu.net>.
64773         * tests/test-argp-version-etc-1.sh: Likewise.
64775 2009-08-13  Simon Josefsson  <simon@josefsson.org>
64777         * tests/test-version-etc.sh: Don't fail on different
64778         project/version.
64780 2009-08-12  Bruno Haible  <bruno@clisp.org>
64782         Tests for modules 'getopt-posix', 'getopt-gnu'.
64783         * modules/getopt-posix-tests: New file.
64784         * tests/test-getopt.c: New file.
64785         * tests/test-getopt.h: New file.
64786         * tests/test-getopt_long.h: New file.
64788         New modules 'getopt-posix', 'getopt-gnu'.
64789         * modules/getopt-gnu: New file, renamed from modules/getopt.
64790         * modules/getopt-posix: New file.
64791         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
64792         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
64793         (gl_GETOPT): Remove macro.
64794         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
64795         Disable the test against BSD systems that declare optreset. Test
64796         against mingw bug. Test against lack of support of optional arguments
64797         on many platforms.
64798         * doc/glibc-headers/getopt.texi: Update module name and list of
64799         relevant platforms.
64800         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
64801         'getopt-gnu' and more portability problems.
64802         * NEWS: Mention the changes.
64804 2009-08-12  Bruno Haible  <bruno@clisp.org>
64806         Ensure that optarg etc. get declared by <unistd.h>.
64807         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
64808         AC_USE_SYSTEM_EXTENSIONS.
64809         * modules/getopt (Depends-on): Add 'extensions'.
64811 2009-08-12  Bruno Haible  <bruno@clisp.org>
64813         Avoid test link errors.
64814         * modules/pipe-filter-ii-tests (Makefile.am): Define
64815         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
64816         * modules/pipe-filter-gi-tests (Makefile.am): Define
64817         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
64818         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64820 2009-08-12  Bruno Haible  <bruno@clisp.org>
64822         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
64823         gl_GETOPT_SUBSTITUTE before.
64824         (gl_GETOPT): Use it.
64825         * m4/argp.m4 (gl_ARGP): Update.
64826         Reported by Sergey Poznyakoff.
64828         * m4/getopt.m4: Reorder macros.
64829         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
64830         (gl_GETOPT_SUBSTITUTE): Remove macro.
64832 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64834         Minor improvement in gitlog-to-changelog
64836         * build-aux/gitlog-to-changelog: New option `--format' makes
64837         output format string configurable.
64839 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64841         Optimize exclude: use hash tables for non-wildcard patterns.
64843         * lib/exclude.c: Include hash.h and mbuiter.h
64844         (struct exclude_pattern, exclude_segment): New data types.
64845         (struct exclude): Rewrite.
64846         (fnmatch_pattern_has_wildcards): New function.
64847         (new_exclude_segment, free_exclude_segment): New functions.
64848         (excluded_file_pattern_p, excluded_file_name_p): New functions.
64849         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
64850         * lib/exclude.h (is_fnmatch_pattern): New prototype.
64851         * modules/exclude: Depend on hash and mbuiter.
64853         * modules/exclude-tests: New file.
64854         * tests/test-exclude.c: New file.
64855         * tests/test-exclude1.sh: New file.
64856         * tests/test-exclude2.sh: New file.
64857         * tests/test-exclude3.sh: New file.
64858         * tests/test-exclude4.sh: New file.
64859         * tests/test-exclude5.sh: New file.
64860         * tests/test-exclude6.sh: New file.
64861         * tests/test-exclude7.sh: New file.
64863 2009-08-12  Bruno Haible  <bruno@clisp.org>
64865         Ensure that getopt() gets declared by <unistd.h>.
64866         * lib/unistd.in.h: Conditionally include getopt.h.
64867         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
64868         Set GNULIB_UNISTD_H_GETOPT.
64869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
64870         GNULIB_UNISTD_H_GETOPT.
64871         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
64873 2009-08-12  Bruno Haible  <bruno@clisp.org>
64875         Clarify logic.
64876         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
64877         gl_replace_getopt instead of GETOPT_H.
64879 2009-08-12  Bruno Haible  <bruno@clisp.org>
64881         * m4/getopt.m4: Add comments.
64883 2009-08-12  Bruno Haible  <bruno@clisp.org>
64885         Disable multithread support by default on Cygwin 1.5.x.
64886         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
64887         set gl_use_threads=no if not specified otherwise.
64889 2009-08-11  Bruno Haible  <bruno@clisp.org>
64891         Avoid compilation error on NetBSD 5.0.
64892         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
64893         * tests/test-stdio.c: Likewise.
64894         * tests/test-stdlib.c: Likewise.
64895         * tests/test-string.c: Likewise.
64896         * tests/test-unistd.c: Likewise.
64897         Reported by Greg Troxel <gdt@ir.bbn.com>
64898         at <https://savannah.gnu.org/support/?106973>.
64900 2009-08-11  Bruno Haible  <bruno@clisp.org>
64902         * modules/dup2-tests (Depends-on): Remove close.
64904         Undo 2009-07-19 commit.
64905         * modules/acl-tests (Depends-on): Remove close.
64906         * modules/binary-io-tests (Depends-on): Likewise.
64907         * modules/closein-tests (Depends-on): Likewise.
64908         * modules/flock-tests (Depends-on): Likewise.
64909         * modules/fsync-tests (Depends-on): Likewise.
64910         * modules/lseek-tests (Depends-on): Likewise.
64911         * modules/pipe-tests (Depends-on): Likewise.
64912         * modules/posix_spawn-tests (Depends-on): Likewise.
64913         * modules/posix_spawnp-tests (Depends-on): Likewise.
64914         * modules/stat-time-tests (Depends-on): Likewise.
64915         * modules/yesno-tests (Depends-on): Likewise.
64917 2009-08-10  Bruno Haible  <bruno@clisp.org>
64919         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
64921 2009-08-10  Bruno Haible  <bruno@clisp.org>
64923         Fix a gcc warning.
64924         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
64926 2009-08-10  Bruno Haible  <bruno@clisp.org>
64928         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
64929         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
64930         not only the first time.
64931         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
64932         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
64933         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
64934         is 1, not only the first time.
64936 2009-08-10  Bruno Haible  <bruno@clisp.org>
64938         Make it possible to use module 'gethostname' without module 'close'.
64939         * lib/unistd.in.h (close): Evoke a link error only if
64940         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
64941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
64942         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
64943         * modules/unistd (Makefile.am): Substitute
64944         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
64945         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
64946         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
64947         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
64948         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
64949         * modules/sys_ioctl (Makefile.am): Substitute
64950         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
64951         * modules/socket (configure.ac): On native Windows, set
64952         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
64953         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
64954         Reported by Sam Steingold <sds@gnu.org>.
64956 2009-08-10  Bruno Haible  <bruno@clisp.org>
64958         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
64959         * modules/ioctl (configure.ac): Likewise.
64961 2009-08-10  Bruno Haible  <bruno@clisp.org>
64963         Avoid collision between gnulib wrapper and libintl wrapper.
64964         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
64965         already defined in intl/printf.c.
64966         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
64967         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
64969 2009-08-09  Bruno Haible  <bruno@clisp.org>
64971         Make <sys/select.h> really self-contained, also on Solaris 10.
64972         * lib/sys_select.in.h: Include <string.h>.
64973         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
64974         Solaris 10 problem.
64975         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
64976         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
64977         Reported by Jim Meyering.
64979 2009-08-09  Bruno Haible  <bruno@clisp.org>
64981         Avoid warnings from 'aclocal' that are due to a use of macro name
64982         AM_XGETTEXT_OPTION that is not defined in automake.
64983         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
64984         automake.
64985         * modules/error (configure.ac): Likewise.
64986         * modules/propername (configure.ac): Likewise.
64987         * modules/vasprintf (configure.ac): Likewise.
64988         * modules/verror (configure.ac): Likewise.
64989         * modules/xprintf (configure.ac): Likewise.
64990         * modules/xvasprintf (configure.ac): Likewise.
64992 2009-08-08  Bruno Haible  <bruno@clisp.org>
64994         Avoid compilation error in C++ mode.
64995         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
64996         Reported by Sam Steingold <sds@gnu.org>.
64998 2009-08-08  Bruno Haible  <bruno@clisp.org>
65000         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
65001         for the various Unix platforms.
65002         * doc/posix-headers/limits.texi: Update platforms list regarding
65003         HOST_NAME_MAX.
65004         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65006 2009-08-07  Jim Meyering  <meyering@redhat.com>
65008         selinux-at: fix typo in a comment
65009         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
65010         Spotted by Paolo Bonzini.
65012         selinux-at: remove redundant m4 code, add documentation
65013         * modules/selinux-at (configure.ac): Remove redundant code.
65014         LIB_SELINUX is already set via the dependent module, selinux-h.
65015         (Include): Add quotes around selinux-at.h.
65016         * lib/selinux-at.h: Add documentation.
65017         Reported by Bruno Haible in
65018         http://marc.info/?l=gnulib-bug&m=124958988300749
65020 2009-08-07  Bruno Haible  <bruno@clisp.org>
65022         Avoid link error on MacOS X 10.3 and 10.4.
65023         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
65024         on non-ELF systems.
65025         * lib/argp-pv.c (argp_program_version): Likewise.
65026         Reported by Simon Josefsson.
65028 2009-08-07  Simon Josefsson  <simon@josefsson.org>
65030         * tests/test-version-etc.sh: Use $EXEEXT.
65032 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
65034         update-copyright: update documentation to point to maint.mk
65035         * build-aux/update-copyright: Here.
65037 2009-08-06  Jim Meyering  <meyering@redhat.com>
65039         maint.mk: support update-copyright-local
65040         * top/maint.mk (update-copyright-local): Define place-holder.
65041         (update-copyright): Depend on $(update-copyright-local).
65043 2009-08-06  Jim Meyering  <meyering@redhat.com>
65045         selinux-at: new module
65046         Initially written for coreutils, this module will soon be
65047         used by findutils, too.
65048         * MODULES.html.sh [Misc]: Add selinux-at.
65049         * lib/selinux-at.h: New file, from coreutils.
65050         * lib/selinux-at.c: Likewise.
65051         * modules/selinux-at: Likewise.
65052         (License): Change from LGPL to GPL, since it depends
65053         on the GPL'd openat module.
65055         doc: update README
65056         * README: Remove references to cogito.
65057         Remove cvs-repo-updating instructions from 2007.
65058         Don't imply that CVS is better if you have limited disk space.
65060 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
65062         update-copyright: support C-style comments
65063         * build-aux/update-copyright: Implement and document.
65064         * tests/test-update-copyright.sh: Test.
65066 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
65068         update-copyright: support omitted "(C)"
65069         * build-aux/update-copyright: Implement and document.  Also,
65070         allow variable whitespace before "(C)".
65071         * tests/test-update-copyright.sh: Test.
65073 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
65075         update-copyright: don't trip on non-FSF copyright statements
65076         * build-aux/update-copyright: Fix so that the first correctly
65077         formatted FSF copyright statement is recognized no matter what
65078         appears before it.  Update documentation.
65079         * tests/test-update-copyright.sh: Test that.
65081 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
65083         update-copyright: clean up code a little
65084         * build-aux/update-copyright: Append "_re" to the name of any
65085         variable holding a regular expression.
65086         Replace "old" and "new" with "stmt" in variable names.
65087         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
65088         handled correctly.
65089         Format code more consistently.
65091 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
65093         update-copyright-tests: improve portability
65094         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
65095         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
65097 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
65099         update-copyright: support @copyright{} and &copy;
65100         * build-aux/update-copyright: Implement and document.
65101         * tests/test-update-copyright.sh: Test.
65103 2009-08-04  Jim Meyering  <meyering@redhat.com>
65105         update-copyright-tests: correctly test EOL=\r\n handling
65106         * tests/test-update-copyright.sh: Put \r at the end of some lines
65107         for the dos-eol tests.  Based on a patch by Joel E. Denny.
65109         maint.mk: make update-copyright exclusion list more configurable
65110         * top/maint.mk (update-copyright): Default to excluding COPYING,
65111         but allow an override, in case someone does want to update that file.
65113         maint.mk: don't update copyright date in COPYING
65114         * top/maint.mk (update-copyright): Exclude COPYING.
65116         maint.mk: add a copyright-updating rule
65117         * top/maint.mk (update-copyright): New rule.
65118         Derived from coreutils/Makefile.am.
65120         update-copyright: rename some variables
65121         * build-aux/update-copyright: Rename a few variables for clarity.
65122         Tweak syntax.  List Joel E. Denny as coauthor.
65124 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
65126         update-copyright: fix bug for 2-digit last year and add tests
65127         * build-aux/update-copyright: Fix bug.
65128         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
65129         specified.
65130         * modules/update-copyright-tests: New
65131         * tests/test-update-copyright.sh: New.
65133 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
65135         update-copyright: handle leading tabs in line prefix
65136         * build-aux/update-copyright: Count leading tabs as 8 spaces
65137         when computing margin.  This helps with the formatting of
65138         ChangeLogs, for example.
65139         Fix documentation a little.
65141 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
65143         update-copyright: support EOL=\r\n
65144         * build-aux/update-copyright: Implement that.
65146 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
65148         update-copyright: automatically format copyright statements
65149         * build-aux/update-copyright: Implement that.
65150         Also, be a little more predictable and safer by always failing
65151         when the full copyright format is not perfectly recognized as an
65152         unbroken whole.  Discussed at
65153         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
65154         Rewrite documentation.
65156 2009-08-03  Bruno Haible  <bruno@clisp.org>
65158         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
65160 2009-08-02  Bruno Haible  <bruno@clisp.org>
65162         Tests for module 'uname'.
65163         * modules/uname-tests: New file.
65164         * tests/test-uname.c: New file.
65166         New module 'uname'.
65167         * lib/uname.c: New file.
65168         * m4/uname.m4: New file.
65169         * modules/uname: New file.
65170         * doc/posix-functions/uname.texi: Mention the new module.
65172 2009-08-02  Bruno Haible  <bruno@clisp.org>
65174         Tests for module 'sys_utsname'.
65175         * modules/sys_utsname-tests: New file.
65176         * tests/test-sys_utsname.c: New file.
65178         New module 'sys_utsname'.
65179         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
65180         * m4/sys_utsname_h.m4: New file.
65181         * modules/sys_utsname: New file.
65182         * doc/posix-headers/sys_utsname.texi: Mention the new module.
65184 2009-08-02  Bruno Haible  <bruno@clisp.org>
65186         Implicitly initialize the sockets library.
65187         * lib/gethostname.c: Include sockets.h.
65188         (rpl_gethostname): Invoke gl_sockets_startup.
65189         * lib/socket.c: Include sockets.h.
65190         (rpl_socket): Invoke gl_sockets_startup.
65191         * modules/gethostname (Depends-on): Add sockets.
65192         * modules/socket (Depends-on): Likewise.
65193         * tests/test-poll.c: Don't include sockets.h.
65194         (main): Don't invoke gl_sockets_startup.
65195         * tests/test-select.c: Don't include sockets.h.
65196         (main): Don't invoke gl_sockets_startup.
65198 2009-08-02  Bruno Haible  <bruno@clisp.org>
65200         Allow multiple calls to gl_sockets_startup.
65201         * lib/sockets.c (initialized_sockets_version): New variable.
65202         (gl_sockets_startup): Do nothing if already called for this or a higher
65203         version.
65204         (gl_sockets_cleanup): Reset initialized_sockets_version.
65206 2009-08-03  Simon Josefsson  <simon@josefsson.org>
65208         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
65209         different project/version.
65211 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
65212             Bruno Haible  <bruno@clisp.org>
65214         Tests for module 'pipe-filter-gi'.
65215         * modules/pipe-filter-gi-tests: New file.
65216         * tests/test-pipe-filter-gi1.sh: New file.
65217         * tests/test-pipe-filter-gi1.c: New file.
65218         * tests/test-pipe-filter-gi2.sh: New file.
65219         * tests/test-pipe-filter-gi2-main.c: New file.
65220         * tests/test-pipe-filter-gi2-child.c: New file.
65222         New module 'pipe-filter-gi'.
65223         * lib/pipe-filter-gi.c: New file.
65224         * modules/pipe-filter-gi: New file.
65226 2009-08-02  Bruno Haible  <bruno@clisp.org>
65227             Paolo Bonzini  <bonzini@gnu.org>
65229         Tests for module 'pipe-filter-ii'.
65230         * modules/pipe-filter-ii-tests: New file.
65231         * tests/test-pipe-filter-ii1.sh: New file.
65232         * tests/test-pipe-filter-ii1.c: New file.
65233         * tests/test-pipe-filter-ii2.sh: New file.
65234         * tests/test-pipe-filter-ii2-main.c: New file.
65235         * tests/test-pipe-filter-ii2-child.c: New file.
65237         New module 'pipe-filter-ii'.
65238         * lib/pipe-filter.h: New file.
65239         * lib/pipe-filter-ii.c: New file.
65240         * lib/pipe-filter-aux.h: New file.
65241         * modules/pipe-filter-ii: New file.
65243 2009-08-02  Simon Josefsson  <simon@josefsson.org>
65245         * lib/gc-libgcrypt.c: Change copyright to FSF.
65246         * lib/gc-gnulib.c: Likewise.
65248 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
65250         * lib/gethostname.c: Include limits.h.
65252 2009-08-02  Simon Josefsson  <simon@josefsson.org>
65253             Bruno Haible  <bruno@clisp.org>
65255         Ensure HOST_NAME_MAX as part of the gethostname module.
65256         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
65257         define also HOST_NAME_MAX.
65258         * tests/test-gethostname.c: Include <limits.h>.
65259         (main): Check also HOST_NAME_MAX.
65260         * doc/posix-headers/limits.texi: Document the mingw problem.
65262 2009-08-02  Bruno Haible  <bruno@clisp.org>
65264         * lib/gethostname.c (gethostname): Fix handling of large len argument.
65265         Add comments.
65267 2009-03-31  Simon Josefsson  <simon@josefsson.org>
65269         * lib/gethostname.c: Add Windows wrapper.
65270         * m4/gethostname.m4: Look for gethostname in -lws2_32.
65271         * modules/gethostname: Depend on sys_socket & errno, for also
65272         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
65273         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
65275 2009-07-31  Jim Meyering  <meyering@redhat.com>
65277         getloadavg: fix symbol name in comment
65278         * lib/getloadavg.c: Correct a typo I introduced when adding
65279         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
65280         Matt Kraai spotted the problem.
65282 2009-07-29  Matt Kraai  <mkraai@beckman.com>
65284         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
65285         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
65286         code also if ! defined N_NAME_POINTER.
65287         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
65288         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
65289         but the n_name member is a 12-byte array.
65291 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
65293         update-copyright: generalize comment handling
65294         * build-aux/update-copyright: Handle copyright statements
65295         within more comment styles.
65296         Document usage.
65297         Report any file with an external copyright holder or parse failure.
65299 2009-07-29  Jim Meyering  <meyering@redhat.com>
65301         mktime: correct setting of REPLACE_MKTIME
65302         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
65304         update-copyright: new module
65305         * modules/update-copyright: New file.
65306         * build-aux/update-copyright: New file.
65307         * MODULES.html.sh (maint+release support): Add update-copyright.
65309 2009-07-27  Bruno Haible  <bruno@clisp.org>
65311         Fix compilation error when <ctime> is used and mktime is replaced.
65312         * lib/time.in.h (mktime): New declaration.
65313         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
65314         REPLACE_MKTIME instead of defining mktime in config.h.
65315         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
65316         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
65317         Reported by Ross McFarland <rwmcfa1@neces.com>.
65319 2009-07-27  Bruno Haible  <bruno@clisp.org>
65321         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
65322         Reported by Matt Kraai <mkraai@beckman.com>.
65324 2009-07-25  Jim Meyering  <meyering@redhat.com>
65326         maint.mk: avoid warnings about missing files
65327         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
65328         diagnostic when .prev-version does not exist.
65329         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
65330         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
65331         nonexistent cfg.mk.
65332         Suggestions from Simon Josefsson.
65334 2009-07-25  Bruno Haible  <bruno@clisp.org>
65336         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
65337         defined as macros. Needed on QNX 6.4.1.
65338         Reported by Matt Kraai <mkraai@beckman.com>.
65340 2009-07-23  Jim Meyering  <meyering@redhat.com>
65342         maint.mk: invoke "make dist" with a working value of XZ_OPT
65343         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
65345 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
65347         Make fseeko.c compile on QNX.
65348         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
65350 2009-07-22  Peter Simons  <simons@cryp.to>
65352         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
65353         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
65354         * lib/md4.h: Likewise.
65355         * lib/md5.h: Likewise.
65356         * lib/sha1.h: Likewise.
65357         * lib/sha256.h: Likewise.
65358         * lib/sha512.h: Likewise.
65360         tests-sha1: don't assign literal string to 'char *' variable
65361         * tests/test-sha1.c (main): Declare locals with "const" to match
65362         attributes of the right hand side.
65364 2009-07-21  Eric Blake  <ebb9@byu.net>
65366         dup2: fix more mingw problems
65367         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
65368         fd to itself.
65369         * doc/posix-functions/dup2.texi (dup2): Document the bug.
65370         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
65371         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
65372         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
65373         care of mingw bugs.
65375 2009-07-21  Jim Meyering  <meyering@redhat.com>
65377         vc-list-files: avoid failure when /bin/sh is dash
65378         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
65379         On some Debian based systems, /bin/sh is a symlink to dash, and running
65380         this command would omit the "/" following each 'tests' prefix:
65381           dash -x build-aux/vc-list-files -C . tests
65382         That is because bash and dash work differently:
65383           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
65384           bash ok
65385           dash odd
65387 2009-07-21  Eric Blake  <ebb9@byu.net>
65389         dup2-tests: test previous patch
65390         * modules/dup2-tests: New file.
65391         * tests/test-dup2.c: Likewise.
65392         * tests/test-open.c (main): Avoid unspecified behavior.
65393         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
65394         test.
65396         dup2: work around mingw and cygwin 1.5 bug
65397         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
65398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
65399         * modules/unistd (Makefile.am): Substitute it.
65400         * lib/unistd.in.h (dup2): Declare the replacement.
65401         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
65402         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
65403         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
65404         * modules/execute (Depends-on): Add dup2.
65405         * modules/fseterr (Depends-on): Likewise.
65406         * modules/pipe (Depends-on): Likewise.
65407         * modules/posix_spawn-internal (Depends-on): Likewise.
65409 2009-07-21  Bruno Haible  <bruno@clisp.org>
65411         * modules/.gitattributes: New file.
65413 2009-07-20  Bruno Haible  <bruno@clisp.org>
65415         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
65416         (main): Use it.
65418 2009-07-20  Eric Blake  <ebb9@byu.net>
65420         test-pipe: make a bit more robust.
65421         * tests/test-pipe.c (myerr): Allow error messages regardless of
65422         what we do to stderr.
65423         (test_pipe): Rearrange to avoid deadlock.
65424         (child_main): Try a larger read, to ensure we avoided deadlock.
65425         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
65426         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
65427         if misused.
65429 2009-07-19  Jim Meyering  <meyering@redhat.com>
65431         fts: avoid false-positive cycle-detection
65432         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
65433         for each new command line argument.
65435 2009-07-19  Bruno Haible  <bruno@clisp.org>
65437         Fix build error on mingw with the modules sys_select and unistd.
65438         * modules/acl-tests (Depends-on): Add close.
65439         * modules/binary-io-tests (Depends-on): Likewise.
65440         * modules/closein-tests (Depends-on): Likewise.
65441         * modules/flock-tests (Depends-on): Likewise.
65442         * modules/fsync-tests (Depends-on): Likewise.
65443         * modules/lseek-tests (Depends-on): Likewise.
65444         * modules/pipe-tests (Depends-on): Likewise.
65445         * modules/posix_spawn-tests (Depends-on): Likewise.
65446         * modules/posix_spawnp-tests (Depends-on): Likewise.
65447         * modules/stat-time-tests (Depends-on): Likewise.
65448         * modules/yesno-tests (Depends-on): Likewise.
65450 2009-07-19  Bruno Haible  <bruno@clisp.org>
65452         Unify conditionals.
65453         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
65454         macros, not at the compiler macros.
65455         * lib/pipe.c: Likewise.
65456         * lib/execute.c: Likewise.
65457         * lib/spawni.c: Likewise.
65459 2009-07-19  Bruno Haible  <bruno@clisp.org>
65461         Fix handling of closed stdin/stdout/stderr on mingw.
65462         * lib/w32spawn.h: Include unistd.h.
65463         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
65464         file descriptor with O_NOINHERIT flag.
65465         (fd_safer_noinherit): New function, based on fd-safer.c.
65466         (dup_safer_noinherit): New function, based on dup-safer.c.
65467         (undup_safer_noinherit): New function.
65468         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
65469         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
65470         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
65471         instead of fd_safer.
65472         * tests/test-pipe.c: Include <windows.h>.
65473         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
65474         result.
65476         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
65477         from main.
65478         (test_pipe): Pass an extra argument for disambiguation.
65479         (main): Invoke parent_main or child_main.
65481         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
65482         consistently.
65484 2009-07-18  Eric Blake  <ebb9@byu.net>
65486         test-pipe: fix mingw build
65487         * tests/test-pipe.c (main): Avoid fcntl on mingw.
65489 2009-07-18  Bruno Haible  <bruno@clisp.org>
65491         * modules/pipe-tests (Makefile.am): Fix typo.
65493 2009-07-18  Eric Blake  <ebb9@byu.net>
65495         error: fix mingw build
65496         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
65497         Reported by Bruno Haible.
65499         error: avoid undefined use of stdout
65500         * lib/error.c (error, error_at_line): Check that fd 1 is open
65501         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
65502         is handling faults and the close_stdout module wants to report the
65503         detection of closed stdout as an error.
65505 2009-07-17  Eric Blake  <ebb9@byu.net>
65507         pipe: be robust in face of closed fds
65508         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
65509         should cause child to misbehave.
65510         * modules/pipe-tests: New module.
65511         * tests/test-pipe.c: New file.
65512         * tests/test-pipe.sh: New file.
65513         Reported by Akim Demaille.
65515 2009-07-14  Bruno Haible  <bruno@clisp.org>
65517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
65518         Reported by anonymous kc.
65520 2009-07-07  Jim Meyering  <meyering@redhat.com>
65522         maint.mk: don't look for translatable strings in *.m4 or *.mk
65523         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
65524         when searching for translatable strings.
65526 2009-07-05  Jim Meyering  <meyering@redhat.com>
65528         remove superfluous parentheses in STREQ definition
65529         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
65530         * lib/getugroups.c (STREQ): Likewise.
65531         * lib/fnmatch.c (STREQ): Likewise.
65532         Spotted by Bruno Haible.
65534 2009-07-04  Jim Meyering  <meyering@redhat.com>
65536         argv-iter: new module
65537         * MODULES.html.sh: Add argv-iter.
65538         * lib/argv-iter.c, lib/argv-iter.h: New files.
65539         * modules/argv-iter: New file.
65540         * modules/argv-iter-tests: New file.
65541         * tests/test-argv-iter.c: Test it.
65543 2009-07-04  Bruno Haible  <bruno@clisp.org>
65545         Fix assertion.
65546         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
65547         contains more exact copies of a given entry than file2, leave the extra
65548         copies unpaired rather than aborting.
65549         Reported by Eric Blake.
65551 2009-07-02  Bruno Haible  <bruno@clisp.org>
65553         Speedup git-merge-changelog for git cherry-pick.
65554         * lib/git-merge-changelog.c (struct entries_mapping): New type.
65555         (entries_mapping_get): New function, extracted from compute_mapping.
65556         (entries_mapping_reverse_get): New function.
65557         (compute_mapping): Add a 'full' argument. Return the result in a
65558         'struct entries_mapping'.
65559         (main): Update. Access the mappings through entries_mapping_get.
65560         Reported by Eric Blake.
65562 2009-07-02  Bruno Haible  <bruno@clisp.org>
65564         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
65565         best_i.
65567 2009-07-02  Bruno Haible  <bruno@clisp.org>
65569         Speed up approximate search for matching ChangeLog entries.
65570         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
65571         argument. Call fstrcmp_bounded instead of fstrcmp.
65572         (compute_mapping, try_split_merged_entry, main): Update callers.
65574 2009-07-02  Bruno Haible  <bruno@clisp.org>
65576         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
65578 2009-06-30  Bruno Haible  <bruno@clisp.org>
65580         Reduce the number of uc_is_cased calls.
65581         * lib/unicase.h (casing_suffix_context_t): Add
65582         'first_char_except_ignorable' field.
65583         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
65584         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
65585         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
65586         Update initializer.
65587         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
65588         case-ignorable characters.
65589         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
65590         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
65591         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
65592         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
65593         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
65595 2009-06-30  Bruno Haible  <bruno@clisp.org>
65597         Tests for module 'unicase/ignorable'.
65598         * modules/unicase/ignorable-tests: New file.
65599         * tests/unicase/test-ignorable.c: New file, generated by
65600         gen-uni-tables.
65602         Tests for module 'unicase/cased'.
65603         * modules/unicase/cased-tests: New file.
65604         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
65605         * tests/unicase/test-predicate-part1.h: New file, derived from
65606         tests/unictype/test-predicate-part1.h.
65607         * tests/unicase/test-predicate-part2.h: New file, same as
65608         tests/unictype/test-predicate-part2.h.
65610         Fix evaluation of "Before C" condition of FINAL_SIGMA.
65611         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
65612         (output_casing_properties): New function.
65613         (main): Call it.
65614         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
65615         * lib/unicase/cased.c: Include unictype/bitmap.h.
65616         (uc_is_cased): Define through a bitmap lookup.
65617         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
65618         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
65619         (uc_is_case_ignorable): Define through a bitmap lookup.
65620         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
65621         lib/unictype/bitmap.h.
65622         (Depends-on): Add inline. Clean up.
65623         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
65624         lib/unictype/bitmap.h.
65625         (Depends-on): Add inline. Clean up.
65626         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
65627         recognition.
65628         * tests/unicase/test-u16-tolower.c (main): Likewise.
65629         * tests/unicase/test-u32-tolower.c (main): Likewise.
65631 2009-06-30  Bruno Haible  <bruno@clisp.org>
65633         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
65634         * lib/unicase/u16-casemap.c: Likewise.
65635         * lib/unicase/u32-casemap.c: Likewise.
65637 2009-06-29  Bruno Haible  <bruno@clisp.org>
65639         Define u32_casefold as a wrapper around u32_ct_casefold.
65640         * lib/unicase/u32-casefold.c: Update.
65641         * modules/unicase/u32-casefold (Depends-on): Add
65642         unicase/u32-ct-casefold, unicase/empty-prefix-context,
65643         unicase/empty-suffix-context. Clean up.
65645         Define u16_casefold as a wrapper around u16_ct_casefold.
65646         * lib/unicase/u16-casefold.c: Update.
65647         * modules/unicase/u16-casefold (Depends-on): Add
65648         unicase/u16-ct-casefold, unicase/empty-prefix-context,
65649         unicase/empty-suffix-context. Clean up.
65651         Define u8_casefold as a wrapper around u8_ct_casefold.
65652         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
65653         * lib/unicase/u8-casefold.c: Update.
65654         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
65655         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
65657         Define u32_totitle as a wrapper around u32_ct_totitle.
65658         * lib/unicase/u32-totitle.c: Update.
65659         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
65660         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
65662         Define u16_totitle as a wrapper around u16_ct_totitle.
65663         * lib/unicase/u16-totitle.c: Update.
65664         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
65665         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
65667         Define u8_totitle as a wrapper around u8_ct_totitle.
65668         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
65669         functions.
65670         (FUNC): Delegate to U_CT_TOTITLE.
65671         * lib/unicase/u8-totitle.c: Update.
65672         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
65673         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
65675         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
65676         invocation.
65677         * modules/unicase/u32-tolower (Depends-on): Add
65678         unicase/empty-prefix-context, unicase/empty-suffix-context.
65680         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
65681         invocation.
65682         * modules/unicase/u16-tolower (Depends-on): Add
65683         unicase/empty-prefix-context, unicase/empty-suffix-context.
65685         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
65686         * modules/unicase/u8-tolower (Depends-on): Add
65687         unicase/empty-prefix-context, unicase/empty-suffix-context.
65689         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
65690         invocation.
65691         * modules/unicase/u32-toupper (Depends-on): Add
65692         unicase/empty-prefix-context, unicase/empty-suffix-context.
65694         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
65695         invocation.
65696         * modules/unicase/u16-toupper (Depends-on): Add
65697         unicase/empty-prefix-context, unicase/empty-suffix-context.
65699         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
65700         * modules/unicase/u8-toupper (Depends-on): Add
65701         unicase/empty-prefix-context, unicase/empty-suffix-context.
65703         New module 'unicase/u32-ct-casefold'.
65704         * lib/unicase/u32-ct-casefold.c: New file.
65705         * modules/unicase/u32-ct-casefold: New file.
65707         New module 'unicase/u16-ct-casefold'.
65708         * lib/unicase/u16-ct-casefold.c: New file.
65709         * modules/unicase/u16-ct-casefold: New file.
65711         New module 'unicase/u8-ct-casefold'.
65712         * lib/unicase/u8-ct-casefold.c: New file.
65713         * lib/unicase/u-ct-casefold.h: New file, derived from
65714         lib/unicase/u-casefold.h.
65715         * modules/unicase/u8-ct-casefold: New file.
65717         New module 'unicase/u32-ct-totitle'.
65718         * lib/unicase/u32-ct-totitle.c: New file.
65719         * modules/unicase/u32-ct-totitle: New file.
65721         New module 'unicase/u16-ct-totitle'.
65722         * lib/unicase/u16-ct-totitle.c: New file.
65723         * modules/unicase/u16-ct-totitle: New file.
65725         New module 'unicase/u8-ct-totitle'.
65726         * lib/unicase/u8-ct-totitle.c: New file.
65727         * lib/unicase/u-ct-totitle.h: New file, derived from
65728         lib/unicase/u-totitle.h.
65729         * modules/unicase/u8-ct-totitle: New file.
65731         New module 'unicase/u32-ct-tolower'.
65732         * lib/unicase/u32-ct-tolower.c: New file.
65733         * modules/unicase/u32-ct-tolower: New file.
65735         New module 'unicase/u16-ct-tolower'.
65736         * lib/unicase/u16-ct-tolower.c: New file.
65737         * modules/unicase/u16-ct-tolower: New file.
65739         New module 'unicase/u8-ct-tolower'.
65740         * lib/unicase/u8-ct-tolower.c: New file.
65741         * modules/unicase/u8-ct-tolower: New file.
65743         New module 'unicase/u32-ct-toupper'.
65744         * lib/unicase/u32-ct-toupper.c: New file.
65745         * modules/unicase/u32-ct-toupper: New file.
65747         New module 'unicase/u16-ct-toupper'.
65748         * lib/unicase/u16-ct-toupper.c: New file.
65749         * modules/unicase/u16-ct-toupper: New file.
65751         New module 'unicase/u8-ct-toupper'.
65752         * lib/unicase/u8-ct-toupper.c: New file.
65753         * modules/unicase/u8-ct-toupper: New file.
65755         Add context arguments to u*_casemap functions.
65756         * lib/unicase/unicasemap.h: Include unicase.h.
65757         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
65758         suffix_context arguments.
65759         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
65760         functions.
65761         (FUNC): Add prefix_context and suffix_context arguments. Use
65762         uc_is_cased and uc_is_case_ignorable.
65763         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
65764         * lib/unicase/u16-casemap.c: Likewise.
65765         * lib/unicase/u32-casemap.c: Likewise.
65766         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
65767         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
65768         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
65769         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
65770         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
65771         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
65773         New module 'unicase/u32-suffix-context'.
65774         * lib/unicase/u32-suffix-context.c: New file.
65775         * modules/unicase/u32-suffix-context: New file.
65777         New module 'unicase/u16-suffix-context'.
65778         * lib/unicase/u16-suffix-context.c: New file.
65779         * modules/unicase/u16-suffix-context: New file.
65781         New module 'unicase/u8-suffix-context'.
65782         * lib/unicase/u8-suffix-context.c: New file.
65783         * lib/unicase/u-suffix-context.h: New file.
65784         * modules/unicase/u8-suffix-context: New file.
65786         New module 'unicase/empty-suffix-context'.
65787         * lib/unicase/empty-suffix-context.c: New file.
65788         * modules/unicase/empty-suffix-context: New file.
65790         New module 'unicase/u32-prefix-context'.
65791         * lib/unicase/u32-prefix-context.c: New file.
65792         * modules/unicase/u32-prefix-context: New file.
65794         New module 'unicase/u16-prefix-context'.
65795         * lib/unicase/u16-prefix-context.c: New file.
65796         * modules/unicase/u16-prefix-context: New file.
65798         New module 'unicase/u8-prefix-context'.
65799         * lib/unicase/u8-prefix-context.c: New file.
65800         * lib/unicase/u-prefix-context.h: New file.
65801         * lib/unicase/context.h: New file.
65802         * modules/unicase/u8-prefix-context: New file.
65804         New module 'unicase/empty-prefix-context'.
65805         * lib/unicase/empty-prefix-context.c: New file.
65806         * modules/unicase/empty-prefix-context: New file.
65808         New module 'unicase/ignorable'.
65809         * lib/unicase/ignorable.c: New file.
65810         * modules/unicase/ignorable: New file.
65812         New module 'unicase/cased'.
65813         * lib/unicase/caseprop.h: New file.
65814         * lib/unicase/cased.c: New file.
65815         * modules/unicase/cased: New file.
65817         New functions for case mapping of substrings.
65818         * lib/unicase.h (casing_prefix_context_t): New type.
65819         (unicase_empty_prefix_context): New variable.
65820         (u8_casing_prefix_context, u16_casing_prefix_context,
65821         u32_casing_prefix_context, u8_casing_prefixes_context,
65822         u16_casing_prefixes_context, u32_casing_prefixes_context): New
65823         declarations.
65824         (casing_suffix_context_t): New type.
65825         (unicase_empty_suffix_context): New variable.
65826         (u8_casing_suffix_context, u16_casing_suffix_context,
65827         u32_casing_suffix_context, u8_casing_suffixes_context,
65828         u16_casing_suffixes_context, u32_casing_suffixes_context,
65829         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
65830         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
65831         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
65832         declarations.
65834 2009-06-28  Jim Meyering  <meyering@redhat.com>
65836         boostrap: indent only with spaces
65837         * build-aux/bootstrap: Indent only with spaces, never TABs.
65839         bootstrap: split long lines
65840         * build-aux/bootstrap: Keep line length < 80.
65842         bootstrap: sync from coreutils
65843         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
65844         just as autoreconf does.  Verify a list of prerequisite
65845         package-name,version-number pairs if defined in bootstrap.conf.
65846         Refer to README-prereq, if prerequisites are not satisfied.
65848 2009-06-27  Eric Blake  <ebb9@byu.net>
65850         tests: add test for bogus NULL definition
65851         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
65852         * tests/test-stdlib.c: Likewise.
65853         * tests/test-string.c: Likewise.
65854         * tests/test-locale.c: Likewise.
65855         * tests/test-unistd.c: Likewise.
65856         * modules/stdio-tests (Depends-on): Add verify.
65857         * modules/stdlib-tests (Depends-on): Likewise.
65858         * modules/string-tests (Depends-on): Likewise.
65859         * modules/locale-tests (Depends-on): Likewise.
65860         * modules/unistd-tests (Depends-on): Likewise.
65862 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
65864         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
65865         self-explaining comment.
65866         * m4/selinux-selinux-h: Update serial.
65867         (gl_LIBSELINUX): New macro, adding a warning for missing development
65868         packages to code extracted from...
65869         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
65870         Add warning for missing development packages here, too.
65872 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
65874         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
65876 2009-06-25  Eric Blake  <ebb9@byu.net>
65878         version-etc: fix regression
65879         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
65880         gcc.
65881         (version_etc): Use it, to catch bugs with trailing NULL.
65882         * lib/version-etc.c (version_etc_arn): Delete unused argument.
65883         (version_etc_va): Fix logic bug.
65884         * modules/version-etc-tests: Add test.
65885         * tests/test-version-etc.c: New file.
65886         * tests/test-version-etc.sh: Likewise.
65888 2009-06-25  Sam Steingold  <sds@gnu.org>
65890         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
65891         mbtowc declaration.
65893 2009-06-25  Eric Blake  <ebb9@byu.net>
65895         fpurge: migrate into <stdio.h>
65896         * lib/fpurge.h: Delete...
65897         * lib/stdio.in.h (fpurge): ...and declare here, instead.
65898         * lib/fpurge.c (fpurge): Change declaring header.
65899         * modules/fpurge (Files): Drop deleted file.
65900         (Depends-on): Add stdio.
65901         (configure.ac): Set witness.
65902         * modules/stdio (Makefile.am): Support fpurge macros.
65903         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65904         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
65905         * lib/fflush.c: Update client.
65906         * tests/test-fpurge.c: Likewise.
65907         * NEWS: Mention the change.
65909 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65911         * lib/argp-version-etc.c (program_authors): Add const
65912         qualifier.
65913         * lib/version-etc.c: Fix typos in the comments.
65914         * modules/argp-version-etc: Depends on version-etc.
65916 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65918         argp-version-etc: new module.
65920         * lib/argp-version-etc.c: New file.
65921         * lib/argp-version-etc.h: New file.
65922         * modules/argp-version-etc: New file.
65923         * modules/argp-version-etc-tests: New file.
65924         * tests/test-argp-version-etc.c: New test.
65925         * tests/test-argp-version-etc-1.sh: New test.
65927 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65929         Provide additional interfaces and documentation for version-etc
65930         module.
65932         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
65933         interfaces.
65934         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
65935         prototypes.
65937 2009-06-24  Bruno Haible  <bruno@clisp.org>
65939         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
65940         HAVE_LIB${NAME} macro.
65941         Reported by Sam Steingold <sds@gnu.org>.
65943 2009-06-23  Simon Josefsson  <simon@josefsson.org>
65945         * modules/hash-tests (test_hash_LDADD): Link to libintl when
65946         needed.
65948 2009-06-21  Bruno Haible  <bruno@clisp.org>
65950         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
65951         work.
65952         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
65953         together with LIB${NAME}, LTLIB${NAME}.
65954         Reported by Sam Steingold <sds@gnu.org>.
65956 2009-06-20  Jim Meyering  <meyering@redhat.com>
65958         tests: make sc_require_test_exit_idiom more generic
65959         * top/maint.mk (Exit_witness_file): New overridable variable.
65960         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
65961         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
65963 2009-06-19  Jim Meyering  <meyering@redhat.com>
65965         hash: reverse order of src/dst parameters in an internal interface
65966         * lib/hash.c (transfer_entries): Reverse order of parameters to
65967         put DST before SRC.  Adjust callers.
65969         tests: test-hash: avoid wholesale duplication
65970         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
65971         Instead, use a loop and add a single conditional.
65973         tests: test-hash: allow seed selection via a command line argument
65974         * tests/test-hash.c (get_seed): New function.
65975         (main): Use it.
65977 2009-06-19  Eric Blake  <ebb9@byu.net>
65979         hash: avoid memory leak on allocation failure
65980         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
65981         failure.  Factor repeated algorithm...
65982         (transfer_entries): ...into new helper routine.
65983         (hash_delete): React to hash_rehash return value.
65985         hash: reduce memory pressure in hash_rehash no-op case
65986         * lib/hash.c (next_prime): Avoid overflow.
65987         (hash_initialize): Factor bucket size computation...
65988         (compute_bucket_size): ...into new helper function.
65989         (hash_rehash): Use new function and open coding to reduce memory
65990         pressure, and avoid a memory leak in USE_OBSTACK code.
65991         Reported by Jim Meyering.
65993 2009-06-18  Eric Blake  <ebb9@byu.net>
65995         hash: make rotation more obvious
65996         * modules/hash (Depends-on): Add bitrotate and stdint.
65997         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
65998         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
65999         (SIZE_MAX): Rely on headers for definition.
66000         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
66001         (raw_hasher): Use rotr_sz.
66002         Suggested by Jim Meyering.
66004         hash: fix memory leak in last patch
66005         * lib/hash.c (hash_rehash): Avoid memory leak.
66007         hash: avoid no-op rehashing
66008         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
66010         hash: provide default callback functions
66011         * lib/hash.c (raw_hasher, raw_comparator): New functions.
66012         (hash_initialize): Use them as defaults.
66013         * tests/test-hash.c (main): Test this.
66015         hash: minor optimization
66016         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
66017         when possible.
66018         (hash_initialize): Document this promise.
66019         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
66020         * tests/test-hash.c (hash_compare_strings): Test this.
66022 2009-06-18  Bruno Haible  <bruno@clisp.org>
66024         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
66025         going to be replaced anyway.
66027 2009-06-18  Bruno Haible  <bruno@clisp.org>
66029         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
66030         in one place.
66031         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
66032         be replaced anyway.
66034 2009-06-18  Eric Blake  <ebb9@byu.net>
66036         hash: check for resize before insertion
66037         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
66038         threshold before insertion, so that a pathological hash_rehash
66039         that fills every bucket can still trigger another rehash.
66041 2009-06-18  Jim Meyering  <meyering@redhat.com>
66043         hash-tests: add a loop around the small tests
66044         * tests/test-hash.c (main): Repeat small tests with selected
66045         small initial table sizes.
66047 2009-06-17  Eric Blake  <ebb9@byu.net>
66049         hash: minor cleanups
66050         * lib/hash.h (hash_entry): Make opaque, by moving...
66051         * lib/hash.c (hash_entry): ...here.
66052         (hash_insert): Clarify restrictions on what can be inserted.
66053         (hash_get_next): Clarify when it is safe to remove an element
66054         during traversal.
66055         (check_tuning): Skip verification when tuning is known safe.
66056         (hash_initialize): Clarify restrictions on tuning.
66058 2009-06-17  Jim Meyering  <jim@meyering.net>
66059         and Eric Blake  <ebb9@byu.net>
66061         hash-tests: new module
66062         * modules/hash-tests: New file.
66063         * tests/test-hash.c: New file.
66065 2009-06-17  Eric Blake  <ebb9@byu.net>
66067         strstr-simple: document new module
66068         * MODULES.html.sh: Document new module.
66070         strstr, strcasestr: replace on platforms with broken memchr
66071         * modules/strstr: Split into...
66072         * modules/strstr-simple: ...new module that does not care about
66073         performance, but does care about glibc bug.
66074         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
66075         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
66076         if platform memchr is broken, per Debian bug 521737.
66077         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
66078         memchr.
66079         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
66080         * doc/posix-functions/strstr.texi (strstr): Document the fix.
66081         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
66082         * modules/mountlist (Depends-on): Add strstr-simple.
66083         * modules/gen-uni-tables (Depends-on): Likewise.
66084         * modules/argz (Depends-on): Add strstr.
66086 2009-06-17  Bruno Haible  <bruno@clisp.org>
66088         * modules/posix_spawn-internal (Depends-on): Add errno.
66090 2009-06-17  Bruno Haible  <bruno@clisp.org>
66092         Define missing ESTALE on Interix 3.5.
66093         * lib/errno.in.h (ESTALE): Assign a value if missing.
66094         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
66095         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
66096         missing.
66097         * doc/posix-headers/errno.texi: Mention the Interix bug.
66098         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
66100 2009-06-15  Eric Blake  <ebb9@byu.net>
66102         memchr, memchr2: add valgrind exception
66103         * lib/memchr.valgrind: New file.
66104         * lib/memchr2.valgrind: New file.
66105         * modules/memchr (Files): Distribute valgrind file.
66106         * modules/memchr2 (Files): Likewise.
66108         docs: memchr is no longer obsolete
66109         * MODULES.html.sh: Move memchr from obsolete to string.h section.
66110         * lib/string.in.h (memchr): Simplify logic.
66112 2009-06-14  Jim Meyering  <meyering@redhat.com>
66114         link-follow: fix the "checking..." message to not mention trailing slash
66115         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
66116         never considered trailing slashes.
66118 2009-06-14  Bruno Haible  <bruno@clisp.org>
66120         * m4/memchr.m4: Mention also the bug on IA-64.
66121         * doc/posix-functions/memchr.texi: Likewise.
66123 2009-06-12  Eric Blake  <ebb9@byu.net>
66125         memchr: detect broken x86_64 and alpha implementations
66126         * modules/memchr-tests (Depends-on): Move mmap detection...
66127         * modules/memchr (Depends-on): ...here.
66128         (configure.ac): Set indicator.
66129         * lib/string.in.h (memchr): Declare replacement.
66130         * modules/string (Makefile.am): Trigger replacement.
66131         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
66132         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
66133         bugs.
66134         * doc/posix-functions/memchr.texi (memchr): Document the bug.
66135         * modules/getpagesize (License): Relax license.
66137 2009-06-11  Bruno Haible  <bruno@clisp.org>
66139         * lib/idpriv.h: Add more references.
66141 2009-06-08  Bruno Haible  <bruno@clisp.org>
66143         Tests for module 'idpriv-droptemp'.
66144         * modules/idpriv-droptemp-tests: New file.
66145         * tests/test-idpriv-droptemp.sh: New file.
66146         * tests/test-idpriv-droptemp.su.sh: New file.
66147         * tests/test-idpriv-droptemp.c: New file.
66149         New module 'idpriv-droptemp'.
66150         * lib/idpriv-droptemp.c: New file.
66151         * modules/idpriv-droptemp: New file.
66153 2009-06-08  Bruno Haible  <bruno@clisp.org>
66155         Tests for module 'idpriv-drop'.
66156         * modules/idpriv-drop-tests: New file.
66157         * tests/test-idpriv-drop.sh: New file.
66158         * tests/test-idpriv-drop.su.sh: New file.
66159         * tests/test-idpriv-drop.c: New file.
66161         New module 'idpriv-drop'.
66162         * lib/idpriv.h: New file.
66163         * lib-idpriv-drop.c: New file.
66164         * m4/idpriv.m4: New file.
66165         * modules/idpriv-drop: New file.
66167 2009-06-08  Bruno Haible  <bruno@clisp.org>
66169         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
66170         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
66171         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
66172         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
66173         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
66174         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
66175         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
66177 2009-06-08  Eric Blake  <ebb9@byu.net>
66179         test-strstr: use memory fence, when possible
66180         * tests/test-strstr.c (main): Use memory fence, in order to be
66181         more likely to trigger Debian bug 521737.
66182         * modules/strstr-tests (Files): Pull in additional files.
66184         memchr: no longer obsolete, for wider field testing
66185         * modules/memchr (Status, Notice): Delete, this module is no
66186         longer obsolete.
66187         * modules/vasnprintf (Depends-on): Add memchr.
66189 2009-06-07  Jim Meyering  <meyering@redhat.com>
66191         hash: declare some functions with the warn_unused_result attribute
66192         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
66194 2009-06-07  Bruno Haible  <bruno@clisp.org>
66196         * tests/test-alignof.c: Don't test int64_t if it does not exist.
66197         Reported by Eric Blake.
66199 2009-06-06  Eric Blake  <ebb9@byu.net>
66201         test-alignof: fix typo with long double
66202         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
66203         compiler error.
66205 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
66207         Escape non-texinfo { and }s.
66208         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
66209         markup error.
66211 2009-06-04  Jim Meyering  <meyering@redhat.com>
66213         gitlog-to-changelog: don't infloop on an empty commit log
66214         * build-aux/gitlog-to-changelog: Warn about an empty log message.
66215         Reported by Boris Petersen <transacid@centerim.org>.
66217 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
66219         version-etc: extend for packagers
66220         Add three new configure options, intended for packagers:
66221           --with-packager="packager name"
66222           --with-packager-version="packager-specific version"
66223           --with-packager-bug-reports="packager bug reporting"
66224         An example with coreutils:
66225           $ ./configure \
66226             --with-packager=Gentoo \
66227             --with-packager-bug-report=http://bugs.gentoo.org/ \
66228             --with-packager-version="patchset 1.6"
66229           $ ./src/ls --version | head -n2
66230           ls (GNU coreutils) 7.1-dirty
66231           Packaged by Gentoo (patchset 1.6)
66232         Note that the bug reporting info via --help doesn't show up because
66233         coreutils uses its own custom emit_bug_reporting_address() implementation
66234         in src/system.h.  If it didn't, it'd look like:
66235           $ ./src/ls --help | tail -n4
66236           Report bugs to <bug-coreutils@gnu.org>.
66237           Report Gentoo bugs to <http://bugs.gentoo.org/>.
66238           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
66239           General help using GNU software: <http://www.gnu.org/gethelp/>.
66240         * lib/version-etc.c: Print new information, if provided.
66241         * m4/version-etc.m4: New file.
66242         * modules/version-etc (Files): Add m4/version-etc.m4.
66243         (configure.ac): Add gl_VERSION_ETC.
66245 2009-05-31  Bruno Haible  <bruno@clisp.org>
66247         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
66248         and 'int64_t'.
66249         * modules/alignof-tests (Dependencies): Add stdint.
66250         Reported by Eric Blake.
66252 2009-05-31  Bruno Haible  <bruno@clisp.org>
66254         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
66255         restriction due to compiler bugs.
66256         Reported by Eric Blake.
66258 2009-05-31  Simon Josefsson  <simon@josefsson.org>
66259             Bruno Haible  <bruno@clisp.org>
66261         Fix test-alignof failure.
66262         * lib/alignof.h (alignof_slot): New macro.
66263         (alignof_type): New macro, with the same semantics as the previous
66264         'alignof'.
66265         (alignof): Alias to alignof_slot.
66266         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
66267         check that the results are usable as constant expressions.
66269 2009-05-31  Bruno Haible  <bruno@clisp.org>
66271         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
66272         * tests/test-memchr.c (main): Check that memchr does not read past the
66273         first occurrence of the byte.
66274         * tests/test-strstr.c (main): Update comment.
66275         Suggested by Eric Blake.
66277 2009-05-30  Bruno Haible  <bruno@clisp.org>
66279         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
66280         detail how to use dumpbin.
66281         Reported by David Byron <dbyron@dbyron.com>.
66283 2009-06-02  Simon Josefsson  <simon@josefsson.org>
66285         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
66287 2009-06-02  Simon Josefsson  <simon@josefsson.org>
66289         * m4/manywarnings.m4: Add GCC 4.4 warnings.
66291 2009-05-28  Bruno Haible  <bruno@clisp.org>
66293         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
66294         build-aux/ files.
66296 2009-05-28  Simon Josefsson  <simon@josefsson.org>
66298         * gnulib-tool (func_import): Transform license on build-aux/ files too.
66300 2009-05-27  Simon Josefsson  <simon@josefsson.org>
66302         * gnulib-tool (sed_transform_main_lib_file)
66303         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
66304         regexps.
66306 2009-05-26  Simon Josefsson  <simon@josefsson.org>
66308         * tests/test-strstr.c: Add another self-test.
66309         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
66310         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
66312 2009-05-23  Bruno Haible  <bruno@clisp.org>
66314         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
66315         change.
66317 2009-05-21  Bruno Haible  <bruno@clisp.org>
66319         Simplify use of mode_t varargs.
66320         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
66321         uses 'mode_t' or 'int'.
66322         * lib/openat.c (openat): Likewise.
66323         * lib/open-safer.c (open_safer): Likewise.
66324         * m4/mode_t.m4: New file.
66325         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
66326         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
66327         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
66328         * modules/open (Files): Add m4/mode_t.m4.
66329         * modules/openat (Files): Likewise.
66330         * modules/fcntl-safer (Files): Likewise.
66331         Suggested by Eric Blake.
66333 2009-05-21  Pádraig Brady  <P@draigbrady.com>
66335         * doc/glibc-functions/fallocate.texi: New file.
66336         * doc/gnulib.texi: Include it.
66338 2009-05-21  Eric Blake  <ebb9@byu.net>
66339             Bruno Haible  <bruno@clisp.org>
66341         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
66342         invocations.
66343         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
66345 2009-05-21  Eric Blake  <ebb9@byu.net>
66346             Bruno Haible  <bruno@clisp.org>
66348         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
66349         include_next. Fix of 2008-11-20 commit.
66350         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
66351         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
66352         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
66353         NEXT_MATH_H.
66354         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
66355         instead of NEXT_MATH_H.
66357 2009-05-21  Bruno Haible  <bruno@clisp.org>
66359         Avoid redefinition warnings for SIZE_MAX.
66360         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
66361         Reported by Simon Josefsson.
66363 2009-05-21  Bruno Haible  <bruno@clisp.org>
66365         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
66366         AC_CACHE_VAL.
66368 2009-05-20  Bruno Haible  <bruno@clisp.org>
66370         Make zeroptr.h work on mingw.
66371         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
66372         mprotect.
66373         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
66374         * modules/memchr2-tests (configure.ac): Likewise.
66375         * modules/memcmp-tests (configure.ac): Likewise.
66376         * modules/memmem-tests (configure.ac): Likewise.
66377         * modules/memrchr-tests (configure.ac): Likewise.
66378         Reported by Simon Josefsson.
66380 2009-05-20  Simon Josefsson  <simon@josefsson.org>
66382         * tests/test-glob.c: Include string.h for strcmp prototype.
66384 2009-05-20  Simon Josefsson  <simon@josefsson.org>
66386         * modules/getdelim (Depends-on): Add explicit stdint, although it
66387         was implicitly already pulled in via realloc-posix.
66388         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
66390 2009-05-20  Simon Josefsson  <simon@josefsson.org>
66392         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
66393         G. Christensen" <tgc@jupiterrise.com>.
66394         * m4/sys_socket_h.m4: Check for sa_family_t.
66395         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
66396         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
66397         * tests/test-sys_socket.c: Check that sa_family_t works.
66399 2009-05-18  Eric Blake  <ebb9@byu.net>
66401         maint.mk: allow gnulib_dir in VPATH build
66402         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
66404 2009-05-15  Jim Meyering  <meyering@redhat.com>
66406         maint.mk: Give gnulib_dir a default definition.
66407         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
66408         Thus, most packages no longer need to specify this variable in cfg.mk
66410 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
66412         rename.m4: fix typos that would make non-mingw cross-configure fail
66413         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
66415 2009-05-13  Eric Blake  <ebb9@byu.net>
66417         mmap-anon: avoid out-of-order autoconf expansion
66418         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
66419         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
66420         * modules/memchr-tests (Depends-on): Add extensions.
66421         * modules/memchr2-tests (Depends-on): Add extensions.
66422         * modules/memcmp-tests (Depends-on): Add extensions.
66423         * modules/memmem-tests (Depends-on): Add extensions.
66424         * modules/memrchr-tests (Depends-on): Add extensions.
66426 2009-05-13  Bruno Haible  <bruno@clisp.org>
66428         Make some tests ISO C 99 compliant.
66429         * tests/zerosize-ptr.h: New file.
66430         * tests/test-memchr.c: Include zerosize-ptr.h.
66431         (main): Use a zero-size object pointer instead of NULL.
66432         * tests/test-memchr2.c: Include zerosize-ptr.h.
66433         (main): Use a zero-size object pointer instead of NULL.
66434         * tests/test-memcmp.c: Include zerosize-ptr.h.
66435         (main): Use a zero-size object pointer instead of NULL.
66436         * tests/test-memmem.c: Include zerosize-ptr.h.
66437         (main): Use a zero-size object pointer instead of NULL.
66438         * tests/test-memrchr.c: Include zerosize-ptr.h.
66439         (main): Use a zero-size object pointer instead of NULL.
66440         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
66441         m4/mmap-anon.m4.
66442         (Depends-on): Add getpagesize.
66443         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
66444         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
66445         m4/mmap-anon.m4.
66446         (Depends-on): Add getpagesize.
66447         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
66448         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
66449         m4/mmap-anon.m4.
66450         (Depends-on): Add getpagesize.
66451         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
66452         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
66453         m4/mmap-anon.m4.
66454         (Depends-on): Add getpagesize.
66455         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
66456         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
66457         m4/mmap-anon.m4.
66458         (Depends-on): Add getpagesize.
66459         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
66461 2009-05-12  Bruno Haible  <bruno@clisp.org>
66463         Tests for module 'alignof'.
66464         * modules/alignof-tests: New file.
66465         * tests/test-alignof.c: New file.
66467 2009-05-12  Bruno Haible  <bruno@clisp.org>
66469         Fix alignof macro.
66470         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
66471         vendor compilers that are always correct.
66473 2009-05-12  Bruno Haible  <bruno@clisp.org>
66475         Make the MAP_ANONYMOUS detection work on HP-UX 11.
66476         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
66477         not whether its fully works.
66479 2009-05-12  Bruno Haible  <bruno@clisp.org>
66481         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
66483 2009-05-12  Jim Meyering  <meyering@redhat.com>
66485         * top/maint.mk: Adjust backslash alignment.
66487 2009-05-11  Simon Josefsson  <simon@josefsson.org>
66489         * top/maint.mk: Make $(srcdir)/build-aux configurable.
66491 2009-05-11  Eric Blake  <ebb9@byu.net>
66493         argp: avoid undefined behavior
66494         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
66495         macros.
66497 2009-05-08  Simon Josefsson  <simon@josefsson.org>
66499         * tests/test-vc-list-files-git.sh: Do git config of user.email and
66500         user.name to prevent git commit from complaining.
66502 2009-05-10  Bruno Haible  <bruno@clisp.org>
66504         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
66505         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
66506         it rewrites every file name only once.
66507         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
66509 2009-05-08  Bruno Haible  <bruno@clisp.org>
66511         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
66512         instead of 'max'.
66514 2009-05-08  Simon Josefsson  <simon@josefsson.org>
66516         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
66517         sockaddr_storage test.
66519 2009-05-07  Simon Josefsson  <simon@josefsson.org>
66521         * modules/sys_socket (Makefile.am): Substitute
66522         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
66523         * m4/sys_socket_h.m4: Check for sockaddr_storage.
66524         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
66525         * tests/test-sys_socket.c: Check sockaddr_storage.
66527 2009-05-08  Bruno Haible  <bruno@clisp.org>
66529         New module 'alignof'.
66530         * lib/alignof.h: New file.
66531         * modules/alignof: New file.
66533 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
66534             Bruno Haible  <bruno@clisp.org>
66536         Fix test-file-has-acl on FreeBSD.
66537         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
66538         mask is implicitly added.
66539         * tests/test-file-has-acl.c: Include <signal.h>.
66540         (main): Terminate the test after 5 seconds.
66541         * modules/acl-tests (configure.ac): Check for alarm function.
66543 2009-05-04  Bruno Haible  <bruno@clisp.org>
66545         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
66546         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
66547         * modules/errno (configure.ac): Drop AC_REQUIRE.
66548         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
66549         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
66551 2009-05-04  Simon Josefsson  <simon@josefsson.org>
66553         * modules/glob-tests: New module.
66554         * tests/test-glob.c: Add.
66556 2009-05-04  Simon Josefsson  <simon@josefsson.org>
66558         * modules/fnmatch-tests: New module.
66559         * tests/test-fnmatch.c: Add.
66561 2009-05-04  Eric Blake  <ebb9@byu.net>
66563         maint: make the new no-submodule-changes rule VPATH-safe
66564         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
66566 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
66567             Bruno Haible  <bruno@clisp.org>
66569         acl: Fix infinite loop on FreeBSD.
66570         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
66571         of return value from acl_get_entry.
66572         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
66573         Likewise.
66575 2009-05-03  Bruno Haible  <bruno@clisp.org>
66577         * lib/acl-internal.h (acl_entries): Clarify return value.
66578         * lib/acl_entries.c (acl_entries): Likewise.
66580 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
66582         Bug fix in acl module.
66583         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
66585 2009-05-03  Bruno Haible  <bruno@clisp.org>
66587         Create gperf-generated file in the source dir, not in the build dir.
66588         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
66589         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
66590         * modules/unicase/locale-language (unicase/locale-languages.h):
66591         Likewise.
66592         * modules/unicase/special-casing (unicase/special-casing-table.h):
66593         Likewise.
66594         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
66595         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
66596         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
66597         Reported by Ralf Wildenhues.
66599 2009-05-03  Bruno Haible  <bruno@clisp.org>
66601         * modules/fnmatch (Description, configure.ac): Taken from
66602         fnmatch-posix.
66603         * modules/fnmatch-posix: Turn into a symbolic reference to the
66604         'fnmatch' module, and deprecate.
66605         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
66607 2009-05-03  Bruno Haible  <bruno@clisp.org>
66609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
66610         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
66611         Reported by Ralf Wildenhues.
66613 2009-05-04  Simon Josefsson  <simon@josefsson.org>
66615         * m4/fnmatch.m4: Fix fnmatch re-define.
66617 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
66619         priv-set: new module and tests; adapt write-any-file
66620         * lib/priv-set.c: New file.
66621         * lib/priv-set.h: New file.
66622         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
66623         * lib/write-any-file.c: Simplify by using priv-set module.
66624         * m4/priv-set.m4: New file.
66625         * modules/priv-set: New file.
66626         * modules/unlinkdir: Add dependency on priv-set module.
66627         * modules/write-any-file: Likewise.
66629         Tests for module 'priv-set'.
66630         * modules/priv-set-tests: New file.
66631         * tests/test-priv-set.c: New file.
66633 2009-05-03  Jim Meyering  <meyering@redhat.com>
66634             Bruno Haible  <bruno@clisp.org>
66636         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
66637         use the converted UTF-8 variant of the name instead.
66639 2009-05-03  Jim Meyering  <meyering@redhat.com>
66641         tests: tighten some getdate tests
66642         * tests/test-getdate.c (main): Tighten tests: require equality,
66643         not just greater than.  Set TZ envvar to UTC0.
66645 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
66647         getdate: correctly interpret "next monday" when run on a Monday
66648         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
66649         that e.g., "next tues" (when run on a tuesday) results in a date
66650         that is one week in the future, and not today's date.
66651         I.e., add a week when the wday is the same as the current one.
66652         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
66653         and earlier by Martin Bernreuther and Jan Minář.
66654         * tests/test-getdate.c (main): Check that "next DAY" is always in
66655         the future and that "last DAY" is always in the past.
66657 2009-05-02  Jim Meyering  <meyering@redhat.com>
66659         build: ensure that a release build fails when a submodule is unclean
66660         * top/maint.mk (no-submodule-changes): New rule.
66661         (alpha beta major): Depend on it.
66663 2009-05-02  Bruno Haible  <bruno@clisp.org>
66665         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
66666         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
66667         shell variable gl_fnmatch_required to detect which variant is
66668         requested.
66669         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
66670         gl_FUNC_FNMATCH_POSIX.
66671         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
66672         exclude fnmatch-posix.
66674 2009-05-02  Bruno Haible  <bruno@clisp.org>
66676         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
66677         * modules/mbsrtowcs (License): Change to LGPLv2+.
66678         * modules/strnlen1 (License): Likewise.
66679         Reported by Simon Josefsson.
66681 2009-05-02  Bruno Haible  <bruno@clisp.org>
66683         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
66684         "cross".
66685         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
66686         gnulib-tool was called with option --source-base=lib.
66688 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66690         Use automake *-local hooks without commands, for extensibility.
66691         * modules/localcharset (Makefile.am): Rename install-exec-local
66692         rule to install-exec-localcharset, and make it a prerequisite of
66693         install-exec-local.  Likewise, rename the uninstall-local rule to
66694         uninstall-localcharset, and make it a prerequisite of the former.
66696 2009-05-01  Bruno Haible  <bruno@clisp.org>
66698         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
66699         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
66700         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
66701         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
66702         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
66703         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
66704         m4/locale-zh.m4, m4/codeset.m4.
66706         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
66707         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
66708         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
66709         m4/locale-zh.m4.
66711         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
66712         REPLACE_WCRTOMB if mbstate_t must be replaced.
66713         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
66714         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
66716 2009-05-01  Bruno Haible  <bruno@clisp.org>
66718         Avoid compiler warnings when redefining macros defined by <libintl.h>.
66719         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
66720         dngettext, dcngettext, textdomain, bindtextdomain,
66721         bind_textdomain_codeset): Undefine before redefining.
66723 2009-04-30  Bruno Haible  <bruno@clisp.org>
66725         Fix bug introduced on 2009-04-25.
66726         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
66727         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
66728         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
66729         is defined.
66730         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
66731         is defined.
66732         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
66733         is defined.
66734         Reported by Elbert_Pol <elbert.pol@gmail.com>.
66736 2009-04-28  Bruno Haible  <bruno@clisp.org>
66738         Comment tweaks.
66739         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
66740         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
66741         * lib/unicase.h (u*_casexfrm): Likewise.
66742         Reported by Paolo Bonzini.
66744 2009-04-28  Bruno Haible  <bruno@clisp.org>
66746         Fix a compilation error.
66747         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
66748         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
66749         Reported by Jim Meyering.
66751 2009-04-27  Bruno Haible  <bruno@clisp.org>
66753         New module 'libunistring'.
66754         * modules/libunistring: New file.
66755         * m4/libunistring.m4: New file.
66756         * MODULES.html.sh (Unicode string functions): Add it.
66758 2009-04-27  Eric Blake  <ebb9@byu.net>
66760         maint.mk: allow package-specific header to provide <config.h>
66761         * top/maint.mk (sc_require_config_h): New variable.
66762         (sc_require_config_h, sc_require_config_h_first): Use it.
66764 2009-04-27  Simon Josefsson  <simon@josefsson.org>
66766         * top/maint.mk (sc_avoid_if_before_free): Except
66767         useless-if-before-free script.
66769 2009-04-27  Eric Blake  <ebb9@byu.net>
66771         maintainer-makefile: depend on all required helper scripts
66772         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
66773         useless-if-before-free.
66774         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
66775         version, rather than assuming gnulib checkout is available.
66776         Reported by Simen Josefsson.
66778 2009-04-26  Bruno Haible  <bruno@clisp.org>
66780         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
66781         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
66782         "../" or "..".
66784 2009-04-26  Bruno Haible  <bruno@clisp.org>
66786         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
66787         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
66788         AC_LIB_HAVE_LINKFLAGS.
66790 2009-04-26  Bruno Haible  <bruno@clisp.org>
66792         Simplify calling convention of u*_conv_from_encoding.
66793         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
66794         u32_conv_from_encoding): Expect a resultbuf argument and return the
66795         result directly as a pointer.
66796         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
66797         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
66798         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
66799         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
66800         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
66801         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
66802         Update.
66803         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
66804         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
66805         * lib/vasnprintf.c (VASNPRINTF): Update.
66806         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
66807         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
66808         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
66809         * NEWS: Mention the change.
66811 2009-04-26  Bruno Haible  <bruno@clisp.org>
66813         Simplify calling convention of u*_conv_to_encoding.
66814         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
66815         u32_conv_to_encoding): Expect a resultbuf argument and return the
66816         result directly as a pointer.
66817         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
66818         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
66819         freeing scaled_offsets if mem_iconveha failed.
66820         * lib/unicase/u-casexfrm.h (FUNC): Update.
66821         * lib/uninorm/u-normxfrm.h (FUNC): Update.
66822         * lib/vasnprintf.c (VASNPRINTF): Update.
66823         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
66824         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
66825         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
66826         * NEWS: Mention the change.
66828 2009-04-26  Bruno Haible  <bruno@clisp.org>
66830         Avoid test failures on AIX and OSF/1.
66831         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
66832         malloc(0).
66833         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
66834         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
66835         Likewise.
66836         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
66837         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
66838         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
66839         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
66840         * doc/posix-functions/malloc.texi: Document the portability problem
66841         related to malloc(0).
66843 2009-04-26  Bruno Haible  <bruno@clisp.org>
66845         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
66846         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
66847         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
66849 2009-04-25  Bruno Haible  <bruno@clisp.org>
66851         Avoid link error when creating a namespace clean library.
66852         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
66853         as macro with arguments if already defined as an alias.
66854         * lib/signbitf.c (gl_signbitf): Don't undefine.
66855         * lib/signbitd.c (gl_signbitd): Don't undefine.
66856         * lib/signbitl.c (gl_signbitl): Don't undefine.
66858 2009-04-25  Jim Meyering  <meyering@redhat.com>
66860         vc-list-files: fix another quoting bug
66861         * build-aux/vc-list-files: Avoid sed backslash expansion
66862         of pathological directory names.
66864 2009-04-25  Eric Blake  <ebb9@byu.net>
66866         vc-list-files: fix shell quoting error
66867         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
66868         timestamp.
66870 2009-04-25  Jim Meyering  <meyering@redhat.com>
66872         vc-list-files: restore lost functionality with subdir argument
66873         * build-aux/vc-list-files: When given a non-"." sub-directory
66874         argument, substitute the $dir/ prefix back onto each resulting name.
66875         Otherwise, coreutils' root_tests check would fail.
66877 2009-04-24  Eric Blake  <ebb9@byu.net>
66879         vc-list-files: ignore git symlinks
66880         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
66881         than ls-files, to ignore git symlinks.
66883         maint.mk: import improvements from m4
66884         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
66885         (move_if_change): Delete unused macro.
66886         (news-date-check, vc-diff-check): Support VPATH builds.
66887         (announcement): Likewise.  Split --bootstrap-tools list...
66888         (boostrap-tools): ...into separate list, which can be overridden
66889         in cfg.mk.
66890         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
66891         requiring dependency on useless-if-before-free module.
66892         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
66893         Support VPATH builds.
66895 2009-04-24  Jim Meyering  <meyering@redhat.com>
66897         maint.mk: remove coreutils-specific rules and variables
66898         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
66899         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
66900         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
66902         maint.mk: remove obsolete rule
66903         * top/maint.mk (rel-check): Remove rule.
66904         (WGET, WGETFLAGS): Remove now-unused variables.
66906 2009-04-24  Simon Josefsson  <simon@josefsson.org>
66908         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
66909         consistency.
66911         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
66912         '$(PATH_SEPARATOR)' instead of ':'.
66914 2009-04-24  Simon Josefsson  <simon@josefsson.org>
66916         * lib/getopt1.c (main): Use 'const' for static array.
66918 2009-04-24  Simon Josefsson  <simon@josefsson.org>
66920         * top/maint.mk: Sync with coreutils.
66921         * NEWS: Explain incompatibilities.
66923 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66924             Bruno Haible  <bruno@clisp.org>
66926         Fix cross-compilation results.
66927         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
66928         statement, as third argument of AC_TRY_RUN.
66929         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
66930         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
66931         Likewise.
66932         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
66933         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
66934         Likewise.
66935         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
66936         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
66937         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
66939 2009-04-20  Bruno Haible  <bruno@clisp.org>
66941         Avoid test failure on mingw.
66942         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
66944 2009-04-20  Bruno Haible  <bruno@clisp.org>
66946         Avoid compilation error on mingw.
66947         * modules/localename-tests (Depends-on): Add locale.
66949 2009-04-19  Bruno Haible  <bruno@clisp.org>
66951         Support for building a shared library on Windows platforms.
66952         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
66953         (main): Test the presence of UNINORM_NFC here.
66954         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
66955         (main): Test the presence of UNINORM_NFD here.
66956         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
66957         (main): Test the presence of UNINORM_NFKC here.
66958         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
66959         (main): Test the presence of UNINORM_NFKD here.
66961 2009-04-19  Bruno Haible  <bruno@clisp.org>
66963         Avoid a compiler warning.
66964         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
66965         Change type of variable 'sequence'.
66967 2009-04-19  Bruno Haible  <bruno@clisp.org>
66969         * modules/configmake (Makefile.am): When the contents of configmake.h
66970         does not change, arrange to preserve its modification time.
66972 2009-04-17  Simon Josefsson  <simon@josefsson.org>
66974         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
66975         gettext domain.
66977 2009-04-16  Jim Meyering  <meyering@redhat.com>
66979         useless-if-before-free: improve conversion code
66980         * build-aux/useless-if-before-free: Adjust code-in-comment to match
66981         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
66983 2009-04-14  Bruno Haible  <bruno@clisp.org>
66985         * modules/fcntl (Depends-on): Add extensions.
66986         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
66988 2009-04-12  Ben Pfaff  <blp@gnu.org>
66990         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
66991         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
66993 2009-03-20  Ben Pfaff  <blp@gnu.org>
66995         Make rename replace existing destinations on Windows.
66996         * m4/rename.m4: Add test for Mingw.
66997         * lib/rename.c: Add rename replacement that uses MoveFileEx with
66998         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
66999         * doc/posix-functions/rename.texi: Document.
67001 2009-04-10  Bruno Haible  <bruno@clisp.org>
67003         New include file "iconveh.h".
67004         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
67005         * lib/striconveh.h: Include it.
67006         (enum iconv_ilseq_handler): Remove definition.
67007         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
67008         striconveh.h.
67009         * lib/striconveha.c: Include striconveh.h.
67010         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
67011         * modules/striconveh (Files): Add lib/iconveh.h.
67012         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
67013         lib/striconveh.h.
67015 2009-04-10  Bruno Haible  <bruno@clisp.org>
67017         * lib/uniconv.h: Update comment.
67019 2009-04-10  Bruno Haible  <bruno@clisp.org>
67021         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
67022         always.
67023         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67024         * lib/unistr/u16-mbtouc-aux.c: Likewise.
67025         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
67026         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
67027         "unistring-notinline.h", so that the function gets defined always.
67028         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67029         * lib/unistr/u8-uctomb.c: Likewise.
67030         * lib/unistr/u16-mbtouc.c: Likewise.
67031         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
67032         * lib/unistr/u16-uctomb.c: Likewise.
67033         * lib/unistr/u32-mbtouc.c: Likewise.
67034         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
67035         * lib/unistr/u32-uctomb.c: Likewise.
67037 2009-04-10  Bruno Haible  <bruno@clisp.org>
67039         Mark 'utime' obsolete.
67040         * modules/utime (Status, Notice): New sections.
67041         Suggested by Jim Meyering.
67043         Fix cross-compile guess for utime test.
67044         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
67045         autoconf.
67046         * doc/posix-functions/utime.texi: Give more precisions.
67047         Reported by Jan <ipif@ymail.com>.
67049 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
67051         filevercmp: correct today's change
67052         * lib/filevercmp.c: Also handle coreutils' test inputs.
67053         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
67055         Fix regression in 'filevercmp' module. Thanks Sven Joachim
67056         for reporting it.
67057         * lib/filevercmp.c: Special handle for "", "." and "..".
67058         * tests/test-filevercmp.c: Enlarge the set suite.
67060 2009-04-07  Jim Meyering  <meyering@redhat.com>
67062         useless-if-before-free: show how to remove braced useless free, too
67063         * build-aux/useless-if-before-free: still only in a comment, though.
67065 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
67067         maint.mk: import changes to syntax-check macros from coreutils
67068         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
67069         Use them in the relevant macros.
67071 2009-04-06  Bruno Haible  <bruno@clisp.org>
67073         Fix unportable use of bit-fields.
67074         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
67075         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
67076         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
67078 2009-04-06  Bruno Haible  <bruno@clisp.org>
67080         Avoid test failures on AIX and OSF/1.
67081         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
67082         that malloc(0) = NULL.
67083         * tests/unicase/test-u8-tolower.c (check): Likewise.
67084         * tests/unicase/test-u8-totitle.c (check): Likewise.
67085         * tests/unicase/test-u8-toupper.c (check): Likewise.
67086         * tests/unicase/test-u16-casefold.c (check): Likewise.
67087         * tests/unicase/test-u16-tolower.c (check): Likewise.
67088         * tests/unicase/test-u16-totitle.c (check): Likewise.
67089         * tests/unicase/test-u16-toupper.c (check): Likewise.
67090         * tests/unicase/test-u32-casefold.c (check): Likewise.
67091         * tests/unicase/test-u32-tolower.c (check): Likewise.
67092         * tests/unicase/test-u32-totitle.c (check): Likewise.
67093         * tests/unicase/test-u32-toupper.c (check): Likewise.
67094         * tests/uninorm/test-u8-nfc.c (check): Likewise.
67095         * tests/uninorm/test-u8-nfd.c (check): Likewise.
67096         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
67097         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
67098         * tests/uninorm/test-u16-nfc.c (check): Likewise.
67099         * tests/uninorm/test-u16-nfd.c (check): Likewise.
67100         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
67101         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
67102         * tests/uninorm/test-u32-nfc.c (check): Likewise.
67103         * tests/uninorm/test-u32-nfd.c (check): Likewise.
67104         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
67105         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
67107 2009-04-05  Bruno Haible  <bruno@clisp.org>
67109         Work around an autoconf limitation.
67110         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
67111         comment line if it would be longer than 3 KB.
67113 2009-04-05  Bruno Haible  <bruno@clisp.org>
67115         Avoid test failure with libiconv-1.13.
67116         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
67117         of the expected test results.
67119 2009-04-05  Bruno Haible  <bruno@clisp.org>
67121         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
67122         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
67123         that it should be installed.
67125 2009-04-05  Bruno Haible  <bruno@clisp.org>
67127         * gnulib-tool: New option --copy-file.
67128         (func_usage): Document it.
67129         (func_dest_tmpfilename): Moved out of func_import.
67130         (func_add_file, func_update_file): New functions, extracted from
67131         func_import.
67132         (func_import): Update.
67134 2009-04-05  Karl Berry  <karl@gnu.org>
67136         * README: prominently mention gnulib-tool.
67137         Rearrange sections so getting the code is near the top.
67139 2009-04-05  Bruno Haible  <bruno@clisp.org>
67141         * lib/unicase.h: Mention u*_cmp2.
67142         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
67143         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
67144         * lib/unicase/ulc-casecmp.c: Likewise.
67145         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
67146         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
67147         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
67148         unistr/u8-cmp.
67149         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
67150         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
67151         unistr/u16-cmp.
67152         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
67153         unistr/u32-cmp.
67155         * lib/uninorm.h: Mention u*_cmp2.
67156         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
67157         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
67158         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
67159         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
67160         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
67161         unistr/u8-cmp.
67162         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
67163         unistr/u16-cmp.
67164         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
67165         unistr/u32-cmp.
67167         New module 'unistr/u32-cmp2'.
67168         * lib/unistr/u32-cmp2.c: New file.
67169         * modules/unistr/u32-cmp2: New file.
67171         New module 'unistr/u16-cmp2'.
67172         * lib/unistr/u16-cmp2.c: New file.
67173         * modules/unistr/u16-cmp2: New file.
67175         New module 'unistr/u8-cmp2'.
67176         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
67177         * lib/unistr/u8-cmp2.c: New file.
67178         * lib/unistr/u-cmp2.h: New file.
67179         * modules/unistr/u8-cmp2: New file.
67181 2009-04-05  Bruno Haible  <bruno@clisp.org>
67183         * lib/unictype.h (uc_property_is_valid): New macro.
67184         * tests/unictype/test-pr_byname.c (main): Use it.
67186         * lib/unistr.h: Doc fixes.
67187         * lib/uniconv.h: Doc fixes.
67188         * lib/unictype.h: Doc fixes.
67190 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
67192         Port coreutils 7.2 to Solaris 8.
67194         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
67195         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
67196         for Solaris 8.  This is a bit of a hack, as it means it's the
67197         caller's responsibility to add -lnsl if needed, but most likely it
67198         won't be needed since only getaddrinfo uses this and getaddrinfo
67199         isn't needed on Solaris 8.
67201         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
67202         problem to Solaris 8 encountered with coreutils 7.2, which
67203         resulted in a message "fnmatch.c:292: warning: passing argument 4
67204         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
67205         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
67207 2009-04-03  Simon Josefsson  <simon@josefsson.org>
67209         * m4/ld-version-script.m4: Add FIXME comment.
67211 2009-04-02  Simon Josefsson  <simon@josefsson.org>
67213         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
67214         SOVERSION variable.
67216 2009-04-02  Bruno Haible  <bruno@clisp.org>
67218         * Makefile (info, html, dvi, pdf): Combine the rules.
67219         Suggested by Jim Meyering.
67221 2009-04-01  Bruno Haible  <bruno@clisp.org>
67223         * Makefile (info, html, dvi, pdf): New targets.
67224         Reported by Reuben Thomas <rrt@sc3d.org>.
67226 2009-04-01  Bruno Haible  <bruno@clisp.org>
67228         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
67229         can be put into PATH.
67230         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
67232 2009-04-01  Bruno Haible  <bruno@clisp.org>
67234         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
67236 2009-04-01  Bruno Haible  <bruno@clisp.org>
67238         Rename module 'visibility'.
67239         * modules/lib-symbol-visibility: Renamed from modules/visibility.
67240         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
67241         * doc/gnulib.texi: Update.
67242         * MODULES.html.sh (Misc): Update.
67243         * NEWS: Mention the change.
67245 2009-04-01  Simon Josefsson  <simon@josefsson.org>
67247         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
67248         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
67249         Eric Blake <ebb9@byu.net> for review.
67250         * MODULES.html.sh: Add lib-msvc-compat.
67251         * doc/gnulib.texi: Link to new section.
67252         * m4/ld-output-def.m4: New file.
67253         * doc/ld-output-def.texi: New file.
67255 2009-04-01  Simon Josefsson  <simon@josefsson.org>
67257         Rename ld-version-script to lib-symbol-versions.  Suggested by
67258         Bruno Haible <bruno@clisp.org>.
67259         * modules/ld-version-script: Renamed to lib-symbol-versions.
67260         * doc/ld-version-script.texi: Fix module name.
67261         * MODULES.html.sh: Add lib-symbol-versions.
67263 2009-03-31  Simon Josefsson  <simon@josefsson.org>
67265         * modules/u64-tests: New file.
67266         * tests/test-u64.c: New file.
67268 2009-03-04  Simon Josefsson  <simon@josefsson.org>
67270         * MODULES.html.sh: Mention u64.
67271         * modules/u64: New module.
67272         * modules/crypto/sha512: Depend on u64 module instead of providing
67273         u64.h.
67275 2009-03-27  Eric Blake  <ebb9@byu.net>
67277         test-strerror: make debugging EAI_SYSTEM easier
67278         * modules/getaddrinfo-tests (Depends-on): Add strerror.
67279         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
67280         failure was EAI_SYSTEM.
67282 2009-03-25  Bruno Haible  <bruno@clisp.org>
67284         Fix a problem with --enable-relocatable on Solaris 7.
67285         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
67286         since 2008-02-24.
67288 2009-03-25  Eric Blake  <ebb9@byu.net>
67290         test-sockets: avoid gcc warning
67291         * tests/test-sockets.c (main): Silence compiler warning.
67293 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
67295         New modules nproc, pthread, contributed by Glen Lenker.
67297         * MODULES.html.sh: Add pthread, nproc.
67298         * lib/nproc.c: New file.
67299         * lib/nproc.h: New file.
67300         * lib/pthread.in.h: New file.
67301         * m4/pthread.m4: New file.
67302         * modules/nproc: New file.
67303         * modules/pthread: New file.
67305 2009-03-24  Simon Josefsson  <simon@josefsson.org>
67307         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
67308         New variable.
67310 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
67312         filevercmp: handle simple~ and numbered.~3~ backup suffixes
67313         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
67314         * tests/test-filevercmp.c: Add tests for backup suffixes.
67316 2009-03-24  Simon Josefsson  <simon@josefsson.org>
67318         * modules/stdlib (Depends-on): Add stdint, needed when defining
67319         struct random_data on, for example, HP-UX 10.20.  Reported by
67320         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67322 2009-03-24  Simon Josefsson  <simon@josefsson.org>
67324         * lib/readline.c (readline): Call fflush on stdout after printing
67325         prompt.
67327 2009-03-20  Bruno Haible  <bruno@clisp.org>
67329         Remove dependency from 'close' module to -lws2_32 on native Windows.
67330         * lib/close-hook.h: New file.
67331         * lib/close-hook.c: New file.
67332         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
67333         w32sock.h.
67334         (_gl_close_fd_maybe_socket): Remove function.
67335         (rpl_close): Invoke execute_all_close_hooks instead of
67336         _gl_close_fd_maybe_socket.
67337         * lib/sockets.c: Include close-hook.h, w32sock.h.
67338         (close_fd_maybe_socket): New function, essentially from lib/close.c.
67339         (close_sockets_hook): New variable.
67340         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
67341         (gl_sockets_cleanup): Unregister it.
67342         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
67343         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
67344         * modules/close-hook: New file.
67345         * modules/close (Files): Remove lib/w32sock.h.
67346         (Depends-on): Add close-hook.
67347         (Link): Remove section.
67348         * modules/sockets (Files): Add lib/w32sock.h.
67349         (Depends-on): Add close-hook.
67350         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
67351         invocation.
67352         * NEWS: Mention that LIB_CLOSE is gone.
67354 2009-03-23  Eric Blake  <ebb9@byu.net>
67356         signal-tests: test previous patch
67357         * tests/test-signal.c: New file.
67358         * modules/signal-tests: Likewise.
67360         signal.h: always support 'volatile sig_atomic_t'
67361         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
67362         (gl_SIGNAL_H_DEFAULTS): Add a default.
67363         * modules/signal (Makefile.am): Substitute if needed.
67364         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
67365         users can blindly add volatile.
67366         * doc/posix-headers/signal.texi (signal.h): Document it.
67367         Reported by Matthew Woehlke.
67369 2009-03-23  Jim Meyering  <meyering@redhat.com>
67371         pathmax: PATH_MAX: use pathconf only when available
67372         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
67373         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
67374         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
67375         This avoids a link failure in a PSP cross-compilation environment
67376         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
67378         * lib/vasnprintf.c (divide): Fix typo in comment.
67380 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67382         * gnulib-tool (func_filter_filelist): Fix comment.
67384 2009-03-20  Bruno Haible  <bruno@clisp.org>
67386         Make sockets.h self-contained.
67387         * lib/sockets.c: Include sockets.h first.
67388         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
67390 2009-03-19  Eric Blake  <ebb9@byu.net>
67392         doc: mention more functions added in cygwin 1.7.0
67393         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
67394         addition.
67395         * doc/posix-functions/log2f.texi: Likewise.
67397 2009-03-19  Jim Meyering  <meyering@redhat.com>
67399         fsusage: avoid syntax error due to statement-before-declaration
67400         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
67401         after all declarations.  Reported by Matthew Woehlke in
67402         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
67404 2009-03-18  Eric Blake  <ebb9@byu.net>
67406         build-aux/compile: sync from automake
67407         * build-aux/compile: New file, from automake.
67408         * config/srclist.txt: Mention build-aux/compile.
67410 2009-03-17  Bruno Haible  <bruno@clisp.org>
67412         * lib/git-merge-changelog.c: Fix typo in comment.
67413         Reported by Reuben Thomas <rrt@sc3d.org>.
67415 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
67417         * m4/regex.m4: update and improve help for
67418         --without-included-regex.
67420 2009-03-17  Simon Josefsson  <simon@josefsson.org>
67422         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
67423         failure on missing include files.
67425 2009-03-17  Eric Blake  <ebb9@byu.net>
67427         doc: mention more functions added in cygwin 1.7.0
67428         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
67429         addition.
67430         * doc/posix-functions/fwscanf.texi: Likewise.
67431         * doc/posix-functions/swprintf.texi: Likewise.
67432         * doc/posix-functions/swscanf.texi: Likewise.
67433         * doc/posix-functions/vfwprintf.texi: Likewise.
67434         * doc/posix-functions/vfwscanf.texi: Likewise.
67435         * doc/posix-functions/vswprintf.texi: Likewise.
67436         * doc/posix-functions/vswscanf.texi: Likewise.
67437         * doc/posix-functions/vwprintf.texi: Likewise.
67438         * doc/posix-functions/vwscanf.texi: Likewise.
67439         * doc/posix-functions/wcscasecmp.texi: Likewise.
67440         * doc/posix-functions/wcsdup.texi: Likewise.
67441         * doc/posix-functions/wcsftime.texi: Likewise.
67442         * doc/posix-functions/wcsncasecmp.texi: Likewise.
67443         * doc/posix-functions/wprintf.texi: Likewise.
67444         * doc/posix-functions/wscanf.texi: Likewise.
67445         * doc/glibc-functions/gethostbyname2.texi: Likewise.
67447 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67449         maint.mk: really add $(AM_MAKEFLAGS)
67450         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
67451         was inadvertently omitted in the last commit.
67452         Spotted by Bruno Haible.
67454         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
67455         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
67456         $(AM_MAKEFLAGS)' rather than plain `make'.
67458         gnulib-tool: execute $MAKE not make
67459         * gnulib-tool: Default $MAKE to 'make'.
67460         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
67461         than make.  Initialize $MAKE in the do-autobuild script.
67463         gnulib-tool: use $MAKE not make in generated files
67464         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
67465         make, in generated files.  Initialize $MAKE in the do-autobuild
67466         script.
67468         * top/GNUmakefile (_have-git-version-gen): Fix typo.
67470         GNUmakefile: disable parallelism only for multiple, recursive targets
67471         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
67472         additions in the Makefile.
67473         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
67474         by Automake.
67475         (.NOTPARALLEL): Only disable parallel builds if multiple targets
67476         are listed on the command line and at least one of them is
67477         listed in $(ALL_RECURSIVE_TARGETS).
67479 2009-03-14  Bruno Haible  <bruno@clisp.org>
67481         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
67482         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
67483         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
67484         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
67485         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
67486         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
67487         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
67488         unistr/u8-uctomb.
67489         * modules/unistr/u8-strchr (Depends-on): Likewise.
67490         * modules/unistr/u8-strrchr (Depends-on): Likewise.
67491         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
67492         unistr/u16-uctomb.
67493         * modules/unistr/u16-strchr (Depends-on): Likewise.
67494         * modules/unistr/u16-strrchr (Depends-on): Likewise.
67496 2009-03-12  Bruno Haible  <bruno@clisp.org>
67498         Work around select() bug on Interix 3.5.
67499         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
67500         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
67501         * m4/select.m4: New file.
67502         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
67503         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
67504         * modules/select (Files): Add m4/select.m4.
67505         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
67506         * modules/nanosleep (Depends-on): Add select.
67507         * modules/poll (Depends-on): Likewise.
67508         * doc/posix-functions/select.texi: Mention the Interix bug.
67509         Reported by Markus Duft <mduft@gentoo.org>.
67511         * lib/select.c: Renamed from lib/winsock-select.c.
67512         * modules/select (Files): Add lib/select.c, remove
67513         lib/winsock-select.c.
67514         (configure.ac): Update.
67516 2009-03-12  Jim Meyering  <meyering@redhat.com>
67518         avoid gcc warnings about unused macro definitions
67519         * lib/readtokens.c (STREQ): Remove unused definition.
67520         * lib/xmalloc.c (SIZE_MAX): Likewise.
67521         * lib/openat-die.c (N_): Likewise.
67522         * lib/mountlist.c (SIZE_MAX): Remove definition.
67523         Instead, include <stdint.h>.
67524         * lib/readutmp.c: Likewise.
67525         * modules/readutmp (Depends-on): Add stdint.
67526         * modules/mountlist (Depends-on): Add stdint.
67527         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
67529 2009-03-10  Bruno Haible  <bruno@clisp.org>
67531         Tests for module 'mbmemcasecoll'.
67532         * modules/mbmemcasecoll-tests: New file.
67533         * tests/test-mbmemcasecoll1.sh: New file.
67534         * tests/test-mbmemcasecoll2.sh: New file.
67535         * tests/test-mbmemcasecoll3.sh: New file.
67536         * tests/test-mbmemcasecoll.c: New file.
67538         New module 'mbmemcasecoll'.
67539         * lib/mbmemcasecoll.h: New file.
67540         * lib/mbmemcasecoll.c: New file.
67541         * modules/mbmemcasecoll: New file.
67543         * tests/test-mbmemcasecmp.h: New file, extracted from
67544         tests/test-mbmemcasecmp.c.
67545         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
67546         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
67547         (main): Update.
67548         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
67550 2009-03-09  Bruno Haible  <bruno@clisp.org>
67552         Tests for module 'mbmemcasecmp'.
67553         * modules/mbmemcasecmp-tests: New file.
67554         * tests/test-mbmemcasecmp1.sh: New file.
67555         * tests/test-mbmemcasecmp2.sh: New file.
67556         * tests/test-mbmemcasecmp3.sh: New file.
67557         * tests/test-mbmemcasecmp.c: New file.
67559         New module 'mbmemcasecmp'.
67560         * lib/mbmemcasecmp.h: New file.
67561         * lib/mbmemcasecmp.c: New file.
67562         * modules/mbmemcasecmp: New file.
67564 2009-03-09  Bruno Haible  <bruno@clisp.org>
67566         Tests for module 'unicase/ulc-casecoll'.
67567         * modules/unicase/ulc-casecoll-tests: New file.
67568         * tests/unicase/test-ulc-casecoll1.sh: New file.
67569         * tests/unicase/test-ulc-casecoll2.sh: New file.
67570         * tests/unicase/test-ulc-casecoll.c: New file.
67572         New module 'unicase/ulc-casecoll'.
67573         * lib/unicase.h (ulc_casecoll): New declaration.
67574         * lib/unicase/ulc-casecoll.c: New file.
67575         * modules/unicase/ulc-casecoll: New file.
67577         New module 'unicase/ulc-casexfrm'.
67578         * lib/unicase.h (ulc_casexfrm): New declaration.
67579         * lib/unicase/ulc-casexfrm.c: New file.
67580         * modules/unicase/ulc-casexfrm: New file.
67582 2009-03-09  Bruno Haible  <bruno@clisp.org>
67584         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
67585         invocations.
67587         * m4/mbscasecmp.m4: Remove file.
67588         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
67589         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
67591         * m4/mbscasestr.m4: Remove file.
67592         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
67593         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
67595         * m4/mbschr.m4: Remove file.
67596         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
67597         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
67599         * m4/mbscspn.m4: Remove file.
67600         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
67601         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
67603         * m4/mbslen.m4: Remove file.
67604         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
67605         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
67607         * m4/mbsncasecmp.m4: Remove file.
67608         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
67609         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
67611         * m4/mbsnlen.m4: Remove file.
67612         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
67613         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
67615         * m4/mbspbrk.m4: Remove file.
67616         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
67617         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
67619         * m4/mbspcasecmp.m4: Remove file.
67620         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
67621         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
67623         * m4/mbsrchr.m4: Remove file.
67624         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
67625         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
67627         * m4/mbssep.m4: Remove file.
67628         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
67629         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
67631         * m4/mbsspn.m4: Remove file.
67632         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
67633         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
67635         * m4/mbsstr.m4: Remove file.
67636         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
67637         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
67639         * m4/mbstok_r.m4: Remove file.
67640         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
67641         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
67643         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
67645         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
67646         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
67648         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
67650 2009-03-08  Bruno Haible  <bruno@clisp.org>
67652         Tests for module 'unicase/ulc-casecmp'.
67653         * modules/unicase/ulc-casecmp-tests: New file.
67654         * tests/unicase/test-ulc-casecmp1.sh: New file.
67655         * tests/unicase/test-ulc-casecmp2.sh: New file.
67656         * tests/unicase/test-ulc-casecmp.c: New file.
67658         New module 'unicase/ulc-casecmp'.
67659         * lib/unicase.h (ulc_casecmp): New declaration.
67660         * lib/unicase/ulc-casecmp.c: New file.
67661         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
67662         'const SRC_UNIT *'.
67663         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
67664         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
67665         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
67666         * modules/unicase/ulc-casecmp: New file.
67668         Tests for module 'unicase/u32-is-cased'.
67669         * modules/unicase/u32-is-cased-tests: New file.
67670         * tests/unicase/test-u32-is-cased.c: New file.
67672         Tests for module 'unicase/u16-is-cased'.
67673         * modules/unicase/u16-is-cased-tests: New file.
67674         * tests/unicase/test-u16-is-cased.c: New file.
67676         Tests for module 'unicase/u8-is-cased'.
67677         * modules/unicase/u8-is-cased-tests: New file.
67678         * tests/unicase/test-u8-is-cased.c: New file.
67679         * tests/unicase/test-is-cased.h: New file.
67681         New module 'unicase/u32-is-cased'.
67682         * lib/unicase/u32-is-cased.c: New file.
67683         * modules/unicase/u32-is-cased: New file.
67685         New module 'unicase/u16-is-cased'.
67686         * lib/unicase/u16-is-cased.c: New file.
67687         * modules/unicase/u16-is-cased: New file.
67689         New module 'unicase/u8-is-cased'.
67690         * lib/unicase/u8-is-cased.c: New file.
67691         * lib/unicase/u-is-cased.h: New file.
67692         * modules/unicase/u8-is-cased: New file.
67694         Tests for module 'unicase/u32-is-casefolded'.
67695         * modules/unicase/u32-is-casefolded-tests: New file.
67696         * tests/unicase/test-u32-is-casefolded.c: New file.
67698         Tests for module 'unicase/u16-is-casefolded'.
67699         * modules/unicase/u16-is-casefolded-tests: New file.
67700         * tests/unicase/test-u16-is-casefolded.c: New file.
67702         Tests for module 'unicase/u8-is-casefolded'.
67703         * modules/unicase/u8-is-casefolded-tests: New file.
67704         * tests/unicase/test-u8-is-casefolded.c: New file.
67705         * tests/unicase/test-is-casefolded.h: New file.
67707         New module 'unicase/u32-is-casefolded'.
67708         * lib/unicase/u32-is-casefolded.c: New file.
67709         * modules/unicase/u32-is-casefolded: New file.
67711         New module 'unicase/u16-is-casefolded'.
67712         * lib/unicase/u16-is-casefolded.c: New file.
67713         * modules/unicase/u16-is-casefolded: New file.
67715         New module 'unicase/u8-is-casefolded'.
67716         * lib/unicase/u8-is-casefolded.c: New file.
67717         * modules/unicase/u8-is-casefolded: New file.
67719         Tests for module 'unicase/u32-is-titlecase'.
67720         * modules/unicase/u32-is-titlecase-tests: New file.
67721         * tests/unicase/test-u32-is-titlecase.c: New file.
67723         Tests for module 'unicase/u16-is-titlecase'.
67724         * modules/unicase/u16-is-titlecase-tests: New file.
67725         * tests/unicase/test-u16-is-titlecase.c: New file.
67727         Tests for module 'unicase/u8-is-titlecase'.
67728         * modules/unicase/u8-is-titlecase-tests: New file.
67729         * tests/unicase/test-u8-is-titlecase.c: New file.
67730         * tests/unicase/test-is-titlecase.h: New file.
67732         New module 'unicase/u32-is-titlecase'.
67733         * lib/unicase/u32-is-titlecase.c: New file.
67734         * modules/unicase/u32-is-titlecase: New file.
67736         New module 'unicase/u16-is-titlecase'.
67737         * lib/unicase/u16-is-titlecase.c: New file.
67738         * modules/unicase/u16-is-titlecase: New file.
67740         New module 'unicase/u8-is-titlecase'.
67741         * lib/unicase/u8-is-titlecase.c: New file.
67742         * modules/unicase/u8-is-titlecase: New file.
67744         Tests for module 'unicase/u32-is-lowercase'.
67745         * modules/unicase/u32-is-lowercase-tests: New file.
67746         * tests/unicase/test-u32-is-lowercase.c: New file.
67748         Tests for module 'unicase/u16-is-lowercase'.
67749         * modules/unicase/u16-is-lowercase-tests: New file.
67750         * tests/unicase/test-u16-is-lowercase.c: New file.
67752         Tests for module 'unicase/u8-is-lowercase'.
67753         * modules/unicase/u8-is-lowercase-tests: New file.
67754         * tests/unicase/test-u8-is-lowercase.c: New file.
67755         * tests/unicase/test-is-lowercase.h: New file.
67757         New module 'unicase/u32-is-lowercase'.
67758         * lib/unicase/u32-is-lowercase.c: New file.
67759         * modules/unicase/u32-is-lowercase: New file.
67761         New module 'unicase/u16-is-lowercase'.
67762         * lib/unicase/u16-is-lowercase.c: New file.
67763         * modules/unicase/u16-is-lowercase: New file.
67765         New module 'unicase/u8-is-lowercase'.
67766         * lib/unicase/u8-is-lowercase.c: New file.
67767         * modules/unicase/u8-is-lowercase: New file.
67769         Tests for module 'unicase/u32-is-uppercase'.
67770         * modules/unicase/u32-is-uppercase-tests: New file.
67771         * tests/unicase/test-u32-is-uppercase.c: New file.
67773         Tests for module 'unicase/u16-is-uppercase'.
67774         * modules/unicase/u16-is-uppercase-tests: New file.
67775         * tests/unicase/test-u16-is-uppercase.c: New file.
67777         Tests for module 'unicase/u8-is-uppercase'.
67778         * modules/unicase/u8-is-uppercase-tests: New file.
67779         * tests/unicase/test-u8-is-uppercase.c: New file.
67780         * tests/unicase/test-is-uppercase.h: New file.
67782         New module 'unicase/u32-is-uppercase'.
67783         * lib/unicase/u32-is-uppercase.c: New file.
67784         * modules/unicase/u32-is-uppercase: New file.
67786         New module 'unicase/u16-is-uppercase'.
67787         * lib/unicase/u16-is-uppercase.c: New file.
67788         * modules/unicase/u16-is-uppercase: New file.
67790         New module 'unicase/u8-is-uppercase'.
67791         * lib/unicase/u8-is-uppercase.c: New file.
67792         * modules/unicase/u8-is-uppercase: New file.
67794         New module 'unicase/u32-is-invariant'.
67795         * lib/unicase/u32-is-invariant.c: New file.
67796         * modules/unicase/u32-is-invariant: New file.
67798         New module 'unicase/u16-is-invariant'.
67799         * lib/unicase/u16-is-invariant.c: New file.
67800         * modules/unicase/u16-is-invariant: New file.
67802         New module 'unicase/u8-is-invariant'.
67803         * lib/unicase/u8-is-invariant.c: New file.
67804         * lib/unicase/invariant.h: New file.
67805         * lib/unicase/u-is-invariant.h: New file.
67806         * modules/unicase/u8-is-invariant: New file.
67808         Tests for module 'unicase/u32-casecoll'.
67809         * modules/unicase/u32-casecoll-tests: New file.
67810         * tests/unicase/test-u32-casecoll.c: New file.
67812         Tests for module 'unicase/u16-casecoll'.
67813         * modules/unicase/u16-casecoll-tests: New file.
67814         * tests/unicase/test-u16-casecoll.c: New file.
67816         Tests for module 'unicase/u8-casecoll'.
67817         * modules/unicase/u8-casecoll-tests: New file.
67818         * tests/unicase/test-u8-casecoll.c: New file.
67820         New module 'unicase/u32-casecoll'.
67821         * lib/unicase/u32-casecoll.c: New file.
67822         * modules/unicase/u32-casecoll: New file.
67824         New module 'unicase/u16-casecoll'.
67825         * lib/unicase/u16-casecoll.c: New file.
67826         * modules/unicase/u16-casecoll: New file.
67828         New module 'unicase/u8-casecoll'.
67829         * lib/unicase/u8-casecoll.c: New file.
67830         * lib/unicase/u-casecoll.h: New file.
67831         * modules/unicase/u8-casecoll: New file.
67833         New module 'unicase/u32-casexfrm'.
67834         * lib/unicase/u32-casexfrm.c: New file.
67835         * modules/unicase/u32-casexfrm: New file.
67837         New module 'unicase/u16-casexfrm'.
67838         * lib/unicase/u16-casexfrm.c: New file.
67839         * modules/unicase/u16-casexfrm: New file.
67841         New module 'unicase/u8-casexfrm'.
67842         * lib/unicase/u8-casexfrm.c: New file.
67843         * lib/unicase/u-casexfrm.h: New file.
67844         * modules/unicase/u8-casexfrm: New file.
67846         Tests for module 'unicase/u32-casecmp'.
67847         * modules/unicase/u32-casecmp-tests: New file.
67848         * tests/unicase/test-u32-casecmp.c: New file.
67850         Tests for module 'unicase/u16-casecmp'.
67851         * modules/unicase/u16-casecmp-tests: New file.
67852         * tests/unicase/test-u16-casecmp.c: New file.
67854         Tests for module 'unicase/u8-casecmp'.
67855         * modules/unicase/u8-casecmp-tests: New file.
67856         * tests/unicase/test-u8-casecmp.c: New file.
67857         * tests/unicase/test-casecmp.h: New file.
67859         New module 'unicase/u32-casecmp'.
67860         * lib/unicase/u32-casecmp.c: New file.
67861         * modules/unicase/u32-casecmp: New file.
67863         New module 'unicase/u16-casecmp'.
67864         * lib/unicase/u16-casecmp.c: New file.
67865         * modules/unicase/u16-casecmp: New file.
67867         New module 'unicase/u8-casecmp'.
67868         * lib/unicase/u8-casecmp.c: New file.
67869         * lib/unicase/u-casecmp.h: New file.
67870         * modules/unicase/u8-casecmp: New file.
67872         Tests for module 'unicase/u32-casefold'.
67873         * modules/unicase/u32-casefold-tests: New file.
67874         * tests/unicase/test-u32-casefold.c: New file.
67876         Tests for module 'unicase/u16-casefold'.
67877         * modules/unicase/u16-casefold-tests: New file.
67878         * tests/unicase/test-u16-casefold.c: New file.
67880         Tests for module 'unicase/u8-casefold'.
67881         * modules/unicase/u8-casefold-tests: New file.
67882         * tests/unicase/test-u8-casefold.c: New file.
67884         New module 'unicase/u32-casefold'.
67885         * lib/unicase/u32-casefold.c: New file.
67886         * modules/unicase/u32-casefold: New file.
67888         New module 'unicase/u16-casefold'.
67889         * lib/unicase/u16-casefold.c: New file.
67890         * modules/unicase/u16-casefold: New file.
67892         New module 'unicase/u8-casefold'.
67893         * lib/unicase/u8-casefold.c: New file.
67894         * lib/unicase/u-casefold.h: New file.
67895         * modules/unicase/u8-casefold: New file.
67897         New module 'unicase/tocasefold'.
67898         * lib/unicase/casefold.h: New file.
67899         * lib/unicase/tocasefold.c: New file.
67900         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
67901         * modules/unicase/tocasefold: New file.
67903         Tests for module 'unicase/u32-totitle'.
67904         * modules/unicase/u32-totitle-tests: New file.
67905         * tests/unicase/test-u32-totitle.c: New file.
67907         Tests for module 'unicase/u16-totitle'.
67908         * modules/unicase/u16-totitle-tests: New file.
67909         * tests/unicase/test-u16-totitle.c: New file.
67911         Tests for module 'unicase/u8-totitle'.
67912         * modules/unicase/u8-totitle-tests: New file.
67913         * tests/unicase/test-u8-totitle.c: New file.
67915         New module 'unicase/u32-totitle'.
67916         * lib/unicase/u32-totitle.c: New file.
67917         * modules/unicase/u32-totitle: New file.
67919         New module 'unicase/u16-totitle'.
67920         * lib/unicase/u16-totitle.c: New file.
67921         * modules/unicase/u16-totitle: New file.
67923         New module 'unicase/u8-totitle'.
67924         * lib/unicase/u8-totitle.c: New file.
67925         * lib/unicase/u-totitle.h: New file.
67926         * modules/unicase/u8-totitle: New file.
67928         Tests for module 'unicase/u32-tolower'.
67929         * modules/unicase/u32-tolower-tests: New file.
67930         * tests/unicase/test-u32-tolower.c: New file.
67932         Tests for module 'unicase/u16-tolower'.
67933         * modules/unicase/u16-tolower-tests: New file.
67934         * tests/unicase/test-u16-tolower.c: New file.
67936         Tests for module 'unicase/u8-tolower'.
67937         * modules/unicase/u8-tolower-tests: New file.
67938         * tests/unicase/test-u8-tolower.c: New file.
67940         New module 'unicase/u32-tolower'.
67941         * lib/unicase/u32-tolower.c: New file.
67942         * modules/unicase/u32-tolower: New file.
67944         New module 'unicase/u16-tolower'.
67945         * lib/unicase/u16-tolower.c: New file.
67946         * modules/unicase/u16-tolower: New file.
67948         New module 'unicase/u8-tolower'.
67949         * lib/unicase/u8-tolower.c: New file.
67950         * modules/unicase/u8-tolower: New file.
67952         Tests for module 'unicase/u32-toupper'.
67953         * modules/unicase/u32-toupper-tests: New file.
67954         * tests/unicase/test-u32-toupper.c: New file.
67956         Tests for module 'unicase/u16-toupper'.
67957         * modules/unicase/u16-toupper-tests: New file.
67958         * tests/unicase/test-u16-toupper.c: New file.
67960         Tests for module 'unicase/u8-toupper'.
67961         * modules/unicase/u8-toupper-tests: New file.
67962         * tests/unicase/test-u8-toupper.c: New file.
67964         New module 'unicase/u32-toupper'.
67965         * lib/unicase/u32-toupper.c: New file.
67966         * modules/unicase/u32-toupper: New file.
67968         New module 'unicase/u16-toupper'.
67969         * lib/unicase/u16-toupper.c: New file.
67970         * modules/unicase/u16-toupper: New file.
67972         New module 'unicase/u8-toupper'.
67973         * lib/unicase/u8-toupper.c: New file.
67974         * modules/unicase/u8-toupper: New file.
67976         New module 'unicase/u32-casemap'.
67977         * lib/unicase/u32-casemap.c: New file.
67978         * modules/unicase/u32-casemap: New file.
67980         New module 'unicase/u16-casemap'.
67981         * lib/unicase/u16-casemap.c: New file.
67982         * modules/unicase/u16-casemap: New file.
67984         New module 'unicase/u8-casemap'.
67985         * lib/unicase/unicasemap.h: New file.
67986         * lib/unicase/u8-casemap.c: New file.
67987         * lib/unicase/u-casemap.h: New file.
67988         * modules/unicase/u8-casemap: New file.
67990         New module 'unicase/special-casing'.
67991         * lib/unicase/special-casing.h: New file.
67992         * lib/unicase/special-casing.c: New file.
67993         * lib/unicase/special-casing-table.gperf: New file, generated by
67994         gen-uni-tables.c.
67995         * modules/unicase/special-casing: New file.
67997         Tests for module 'unicase/locale-language'.
67998         * modules/unicase/locale-language-tests: New file.
67999         * tests/unicase/test-locale-language.sh: New file.
68000         * tests/unicase/test-locale-language.c: New file.
68002         New module 'unicase/locale-language'.
68003         * lib/unicase/locale-language.c: New file.
68004         * lib/unicase/locale-languages.gperf: New file.
68005         * modules/unicase/locale-language: New file.
68007         Generate more tables for case conversion and case folding.
68008         * lib/gen-uni-tables.c (SCC_*): New enum items.
68009         (struct special_casing_rule): New type.
68010         (casing_rules, num_casing_rules, allocated_casing_rules): New
68011         variables.
68012         (add_casing_rule, fill_casing_rules): New functions.
68013         (struct casefold_rule): New type.
68014         (casefolding_rules, num_casefolding_rules,
68015         allocated_casefolding_rules): New variables.
68016         (fill_casefolding_rules): New function.
68017         (unicode_casefold): New variable.
68018         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
68019         sort_casing_rules, output_casing_rules): New functions.
68020         (main): Accept to more arguments: SpecialCasing.txt and
68021         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
68022         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
68023         Output mapping for casefolding.
68025         * lib/unicase.h: Include stdbool.h, uninorm.h.
68026         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
68027         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
68028         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
68029         arguments.
68030         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
68031         resultp arguments.
68032         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
68033         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
68034         resultp arguments.
68035         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
68036         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
68037         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
68038         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
68039         declarations.
68040         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
68042 2009-03-08  Bruno Haible  <bruno@clisp.org>
68044         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
68045         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
68046         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
68047         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
68049 2009-03-07  Bruno Haible  <bruno@clisp.org>
68051         Adjust u*_normcmp, u*_normcoll API.
68052         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
68053         u16_normcoll, u32_normcoll): Change failure conventions.
68054         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
68055         errno and return -1.
68056         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
68058 2009-03-07  Bruno Haible  <bruno@clisp.org>
68060         Tests for module 'uninorm/u32-normcoll'.
68061         * modules/uninorm/u32-normcoll-tests: New file.
68062         * tests/uninorm/test-u32-normcoll.c: New file.
68064         Tests for module 'uninorm/u16-normcoll'.
68065         * modules/uninorm/u16-normcoll-tests: New file.
68066         * tests/uninorm/test-u16-normcoll.c: New file.
68068         Tests for module 'uninorm/u8-normcoll'.
68069         * modules/uninorm/u8-normcoll-tests: New file.
68070         * tests/uninorm/test-u8-normcoll.c: New file.
68072 2009-03-07  Bruno Haible  <bruno@clisp.org>
68074         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
68075         tests/uninorm/test-u32-normcmp.c.
68076         * tests/uninorm/test-u32-normcmp.c: Include it.
68077         (test_nonascii): New function, extracted from main. Add some more
68078         tests.
68079         (main): Invoke test_ascii and test_nonascii.
68080         * modules/uninorm/u32-normcmp-tests (Files): Add
68081         tests/uninorm/test-u32-normcmp.h.
68082         (Depends-on): Remove uninorm/u32-normcmp.
68084         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
68085         tests/uninorm/test-u16-normcmp.c.
68086         * tests/uninorm/test-u16-normcmp.c: Include it.
68087         (test_nonascii): New function, extracted from main. Add some more
68088         tests.
68089         (main): Invoke test_ascii and test_nonascii.
68090         * modules/uninorm/u16-normcmp-tests (Files): Add
68091         tests/uninorm/test-u16-normcmp.h.
68092         (Depends-on): Remove uninorm/u16-normcmp.
68094         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
68095         tests/uninorm/test-u8-normcmp.c.
68096         * tests/uninorm/test-u8-normcmp.c: Include it.
68097         (test_nonascii): New function, extracted from main. Add some more
68098         tests.
68099         (main): Invoke test_ascii and test_nonascii.
68100         * modules/uninorm/u8-normcmp-tests (Files): Add
68101         tests/uninorm/test-u8-normcmp.h.
68102         (Depends-on): Remove uninorm/u8-normcmp.
68104 2009-03-07  Bruno Haible  <bruno@clisp.org>
68106         New module 'uninorm/u32-normcoll'.
68107         * lib/uninorm/u32-normcoll.c: New file.
68108         * modules/uninorm/u32-normcoll: New file.
68110         New module 'uninorm/u16-normcoll'.
68111         * lib/uninorm/u16-normcoll.c: New file.
68112         * modules/uninorm/u16-normcoll: New file.
68114         New module 'uninorm/u8-normcoll'.
68115         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
68116         declarations.
68117         * lib/uninorm/u8-normcoll.c: New file.
68118         * lib/uninorm/u-normcoll.h: New file.
68119         * modules/uninorm/u8-normcoll: New file.
68121         New module 'uninorm/u32-normxfrm'.
68122         * lib/uninorm/u32-normxfrm.c: New file.
68123         * modules/uninorm/u32-normxfrm: New file.
68125         New module 'uninorm/u16-normxfrm'.
68126         * lib/uninorm/u16-normxfrm.c: New file.
68127         * modules/uninorm/u16-normxfrm: New file.
68129         New module 'uninorm/u8-normxfrm'.
68130         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
68131         declarations.
68132         * lib/uninorm/u8-normxfrm.c: New file.
68133         * lib/uninorm/u-normxfrm.h: New file.
68134         * modules/uninorm/u8-normxfrm: New file.
68136 2009-03-07  Bruno Haible  <bruno@clisp.org>
68138         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
68139         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
68140         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
68142 2009-03-07  Bruno Haible  <bruno@clisp.org>
68144         New module 'memxfrm'.
68145         * lib/memxfrm.h: New file.
68146         * lib/memxfrm.c: New file.
68147         * modules/memxfrm: New file.
68149 2009-03-07  Bruno Haible  <bruno@clisp.org>
68151         New module 'memcmp2'.
68152         * lib/memcmp2.h: New file.
68153         * lib/memcmp2.c: New file.
68154         * modules/memcmp2: New file.
68156 2009-03-07  Bruno Haible  <bruno@clisp.org>
68158         Tests for module 'uninorm/decomposing-form'.
68159         * modules/uninorm/decomposing-form-tests: New file.
68160         * tests/uninorm/test-decomposing-form.c: New file.
68162         New module 'uninorm/decomposing-form'.
68163         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
68164         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
68165         Add 'decomposing_variant' field.
68166         * lib/uninorm/decomposing-form.c: New file.
68167         * lib/uninorm/nfc.c (uninorm_nfc): Update.
68168         * lib/uninorm/nfd.c (uninorm_nfd): Update.
68169         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
68170         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
68171         * modules/uninorm/decomposing-form: New file.
68172         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
68173         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
68175 2009-03-07  Bruno Haible  <bruno@clisp.org>
68177         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
68178         strings.
68180 2009-03-06  Bruno Haible  <bruno@clisp.org>
68182         Tests for module 'uninorm/u32-normcmp'.
68183         * tests/uninorm/test-u32-normcmp.c: New file.
68184         * modules/uninorm/u32-normcmp-tests: New file.
68186         Tests for module 'uninorm/u16-normcmp'.
68187         * tests/uninorm/test-u16-normcmp.c: New file.
68188         * modules/uninorm/u16-normcmp-tests: New file.
68190         Tests for module 'uninorm/u8-normcmp'.
68191         * tests/uninorm/test-u8-normcmp.c: New file.
68192         * modules/uninorm/u8-normcmp-tests: New file.
68194         New module 'uninorm/u32-normcmp'.
68195         * lib/uninorm/u32-normcmp.c: New file.
68196         * modules/uninorm/u32-normcmp: New file.
68198         New module 'uninorm/u16-normcmp'.
68199         * lib/uninorm/u16-normcmp.c: New file.
68200         * modules/uninorm/u16-normcmp: New file.
68202         New module 'uninorm/u8-normcmp'.
68203         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
68204         declarations.
68205         * lib/uninorm/u8-normcmp.c: New file.
68206         * lib/uninorm/u-normcmp.h: New file.
68207         * modules/uninorm/u8-normcmp: New file.
68209 2009-03-06  Bruno Haible  <bruno@clisp.org>
68211         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
68212         Reported by Eric Blake.
68214 2009-03-06  Eric Blake  <ebb9@byu.net>
68215             Bruno Haible  <bruno@clisp.org>
68217         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
68218         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
68219         condition.
68220         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
68221         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
68222         condition.
68223         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
68225 2009-03-06  Eric Blake  <ebb9@byu.net>
68227         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
68228         to avoid compiler warnings.
68229         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
68231 2009-03-05  Bruno Haible  <bruno@clisp.org>
68233         * tests/test-ftell.c (main): Disable test beyond end of file on
68234         FreeMiNT.
68235         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
68237 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
68239         * lib/filevercmp.c: Move hidden files up in ordering.
68240         * tests/test-filevercmp.c: Add tests for hidden files.
68242 2009-03-04  Bruno Haible  <bruno@clisp.org>
68244         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
68245         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
68246         AM_CFLAGS.
68247         Reported by Simon Josefsson.
68249 2009-03-03  Bruno Haible  <bruno@clisp.org>
68251         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
68252         Reported by Simon Josefsson.
68254         * doc/ld-version-script.texi: Update node reference.
68256 2009-03-03  Bruno Haible  <bruno@clisp.org>
68258         * modules/visibility (License): Change to 'unlimited'.
68259         Suggested by Simon Josefsson.
68261 2009-03-03  Jim Meyering  <meyering@redhat.com>
68263         unlinkdir: cannot_unlink_dir may modify process state
68264         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
68265         it's neither thread-safe nor appropriate for use in a library.
68267 2009-03-03  Eric Blake  <ebb9@byu.net>
68269         test-closein: silence test under Darwin
68270         * tests/test-closein.sh: Ignore stderr from cat, since we don't
68271         care if it dies from EPIPE or EBADF.
68273 2009-03-03  Bruno Haible  <bruno@clisp.org>
68275         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
68276         earlier.
68277         * doc/visibility.texi: Fix @node and @section.
68279 2009-03-03  Simon Josefsson  <simon@josefsson.org>
68281         * doc/gnulib.texi: Link to sections for ld version script and
68282         visibility.
68283         * doc/visibility.texi: Add @node and @section.
68284         * modules/ld-version-script: New module.
68285         * m4/ld-version-script.m4: New file.
68286         * doc/ld-version-script.texi: New file.
68288 2009-03-02  David Lutterkort  <lutter@redhat.com>
68290         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
68291         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
68293 2009-03-02  Bruno Haible  <bruno@clisp.org>
68295         * doc/visibility.texi: Mention libtool's -export-symbols option.
68297 2009-03-02  Jim Meyering  <meyering@redhat.com>
68299         announce-gen: new option: --no-print-checksums
68300         * build-aux/announce-gen (usage): Describe it.
68301         (print_checksums): Print a newline here, not in the [*] footnote.
68302         (main): Honor it.
68304 2009-03-01  Bruno Haible  <bruno@clisp.org>
68306         Use socklen_t in the native Windows replacements prototypes.
68307         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
68308         instead of 'int'.
68309         * lib/getsockopt.c (rpl_getsockopt): Likewise.
68310         * lib/setsockopt.c (rpl_setsockopt): Likewise.
68311         * modules/getsockopt (Depends-on): Add socklen.
68312         * modules/setsockopt (Depends-on): Add socklen.
68314 2009-03-01  Bruno Haible  <bruno@clisp.org>
68316         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
68317         least 4.2.
68319 2009-03-01  Eric Blake  <ebb9@byu.net>
68320             Bruno Haible  <bruno@clisp.org>
68322         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
68323         error messages.
68324         * lib/wait-process.c (wait_subprocess): Omit error message about
68325         deadly signal sent to the child of termsigp != NULL.
68327 2009-03-01  Eric Blake  <ebb9@byu.net>
68329         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
68331 2009-03-01  Bruno Haible  <bruno@clisp.org>
68333         Avoid a gcc warning.
68334         * tests/test-sched.c (b): Make global.
68335         Reported by Eric Blake.
68337 2009-01-19  Martin Lambers  <marlam@marlam.de>
68339         Provide POSIX semantics for socket timeout options on W32.
68340         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
68341         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
68342         * modules/setsockopt: Depend on sys_time module for struct timeval.
68343         * modules/getsockopt: Depend on sys_time module for struct timeval.
68345 2009-03-01  Simon Josefsson  <simon@josefsson.org>
68347         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
68348         __USE_GNU, for consistency with netdb.in.h.
68349         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
68351 2009-03-01  Bruno Haible  <bruno@clisp.org>
68353         More support for FreeMiNT.
68354         * lib/fseeko.c (rpl_fseeko): Complete last commit.
68355         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
68357 2009-03-01  Bruno Haible  <bruno@clisp.org>
68359         More support for FreeMiNT.
68360         * lib/fpurge.c (fpurge): Correct last commit.
68361         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
68363 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68365         Fix unportable awk script in vc-list-files.
68366         * build-aux/vc-list-files: In the replacement awk script, use
68367         substr with a second argument of 1, not zero.
68368         Report by Simon Josefsson.
68370 2009-02-28  Bruno Haible  <bruno@clisp.org>
68372         More support for FreeMiNT.
68373         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
68374         to FreeMiNT today.
68375         * lib/fwriting.c (fwriting): Likewise.
68376         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
68378 2009-02-28  Bruno Haible  <bruno@clisp.org>
68380         * tests/test-freadseek.c (main): Disable test beyond end of file on
68381         FreeMiNT.
68382         * tests/test-ftello.c (main): Likewise.
68383         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
68385 2009-02-28  Bruno Haible  <bruno@clisp.org>
68387         Add tentative support for FreeMiNT.
68388         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
68389         * lib/fpurge.c (fpurge): Likewise.
68390         * lib/freadable.c (freadable): Likewise.
68391         * lib/freading.c (freading): Likewise.
68392         * lib/freadptr.c (freadptr): Likewise.
68393         * lib/freadseek.c (freadptrinc): Likewise.
68394         * lib/fseeko.c (rpl_fseeko): Likewise.
68395         * lib/fseterr.c (fseterr): Likewise.
68396         * lib/fwritable.c (fwritable): Likewise.
68397         * lib/fwriting.c (fwriting): Likewise.
68398         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
68399         Hourihane.
68400         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
68402 2009-02-28  Bruno Haible  <bruno@clisp.org>
68404         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
68405         SIGCHLD.
68406         Reported by Jim Meyering.
68408 2009-02-28  Bruno Haible  <bruno@clisp.org>
68410         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
68411         Mention the results of these tests on various platforms.
68412         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
68413         order.
68414         * doc/posix-functions/printf.texi: Likewise.
68415         * doc/posix-functions/snprintf.texi: Likewise.
68416         * doc/posix-functions/sprintf.texi: Likewise.
68417         * doc/posix-functions/vfprintf.texi: Likewise.
68418         * doc/posix-functions/vprintf.texi: Likewise.
68419         * doc/posix-functions/vsnprintf.texi: Likewise.
68420         * doc/posix-functions/vsprintf.texi: Likewise.
68421         * doc/glibc-functions/obstack_printf.texi: Likewise.
68422         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
68424 2009-02-28  Bruno Haible  <bruno@clisp.org>
68426         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
68427         Reported by Loïc Minier <lool@dooz.org>.
68429 2009-02-27  Bruno Haible  <bruno@clisp.org>
68431         * gnulib-tool (func_import): Make the sed expression used to create the
68432         sed script for updating the .gitignore file POSIX compliant.
68433         Reported by Eric Blake.
68435 2009-02-27  Bruno Haible  <bruno@clisp.org>
68437         * gnulib-tool (sed): Don't alias as "sed --posix".
68438         Reported by Eric Blake.
68440 2009-02-27  Bruno Haible  <bruno@clisp.org>
68442         Avoid test link errors.
68443         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
68444         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
68445         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
68446         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
68447         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
68449 2009-02-27  Bruno Haible  <bruno@clisp.org>
68451         Avoid spurious "(cached)" in configure output.
68452         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
68453         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
68454         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
68455         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
68456         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
68457         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
68458         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
68459         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
68460         Reported by Eric Blake.
68462 2009-02-27  Eric Blake  <ebb9@byu.net>
68464         printf: fix regression in previous patch
68465         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
68467 2009-02-27  Bruno Haible  <bruno@clisp.org>
68469         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
68470         value.
68471         * lib/stdint.in.h: Likewise.
68472         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
68474 2009-02-27  Eric Blake  <ebb9@byu.net>
68476         doc: mention more functions added in cygwin 1.7.0
68477         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
68478         addition.
68479         * doc/posix-functions/open_wmemstream.texi: Likewise.
68480         * doc/posix-functions/wcsnlen.texi: Likewise.
68481         * doc/posix-functions/wcsnrtombs.texi: Likewise.
68482         * doc/posix-functions/wcstod.texi: Likewise.
68483         * doc/posix-functions/wcstof.texi: Likewise.
68484         * doc/posix-functions/wcstoimax.texi: Likewise.
68485         * doc/posix-functions/wcstok.texi: Likewise.
68486         * doc/posix-functions/wcstoumax.texi: Likewise.
68488         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
68489         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
68490         * doc/posix-functions/fprintf.texi: Update.
68491         * doc/posix-functions/printf.texi: Update.
68492         * doc/posix-functions/snprintf.texi: Update.
68493         * doc/posix-functions/sprintf.texi: Update.
68494         * doc/posix-functions/vfprintf.texi: Update.
68495         * doc/posix-functions/vprintf.texi: Update.
68496         * doc/posix-functions/vsnprintf.texi: Update.
68497         * doc/posix-functions/vsprintf.texi: Update.
68498         * doc/glibc-functions/obstack_printf.texi: Update.
68499         * doc/glibc-functions/obstack_vprintf.texi: Update.
68501 2009-02-26  Eric Blake  <ebb9@byu.net>
68503         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
68504         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
68505         compilation bug by using runtime conversion.
68506         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
68507         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
68508         * modules/ceill-tests (Files): Use nan.h.
68509         * modules/floorl-tests (Files): Likewise.
68510         * modules/frexpl-tests (Files): Likewise.
68511         * modules/isnanl-tests (Files): Likewise.
68512         * modules/ldexpl-tests (Files): Likewise.
68513         * modules/roundl-tests (Files): Likewise.
68514         * modules/truncl-tests (Files): Likewise.
68515         * tests/test-ceill.c (main): Use a working NaN.
68516         * tests/test-floorl.c (main): Likewise.
68517         * tests/test-frexpl.c (main): Likewise.
68518         * tests/test-isnan.c (test_long_double): Likewise.
68519         * tests/test-isnanl.h (main): Likewise.
68520         * tests/test-ldexpl.h (main): Likewise.
68521         * tests/test-roundl.h (main): Likewise.
68522         * tests/test-truncl.h (main): Likewise.
68523         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
68525 2009-02-26  Eric Blake  <ebb9@byu.net>
68526             Bruno Haible  <bruno@clisp.org>
68528         Work around a *printf bug with %ls on Solaris.
68529         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
68530         precision is specified, sprintf stops converting the wide string
68531         argument when the number of bytes that have been produced by this
68532         conversion equals or exceeds the precision.
68533         * doc/posix-functions/fprintf.texi: Update.
68534         * doc/posix-functions/printf.texi: Update.
68535         * doc/posix-functions/snprintf.texi: Update.
68536         * doc/posix-functions/sprintf.texi: Update.
68537         * doc/posix-functions/vfprintf.texi: Update.
68538         * doc/posix-functions/vprintf.texi: Update.
68539         * doc/posix-functions/vsnprintf.texi: Update.
68540         * doc/posix-functions/vsprintf.texi: Update.
68541         * doc/glibc-functions/obstack_printf.texi: Update.
68542         * doc/glibc-functions/obstack_vprintf.texi: Update.
68544 2009-02-26  Eric Blake  <ebb9@byu.net>
68546         stdlib: favor compiler check of random.h
68547         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
68548         to avoid an ObjC random.h installed by Swarm.
68550 2009-02-26  Bruno Haible  <bruno@clisp.org>
68552         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
68553         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
68554         Reported by Gary V. Vaughan <gary@gnu.org>.
68556 2009-02-26  Bruno Haible  <bruno@clisp.org>
68558         Fix *printf behaviour regarding the %ls directive.
68559         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
68560         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
68561         NEED_PRINTF_DIRECTIVE_LS.
68562         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
68563         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
68564         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68565         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
68566         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
68567         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
68568         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
68569         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68570         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68571         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68572         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68573         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
68574         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68575         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68576         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68577         * doc/posix-functions/fprintf.texi: Update.
68578         * doc/posix-functions/printf.texi: Update.
68579         * doc/posix-functions/snprintf.texi: Update.
68580         * doc/posix-functions/sprintf.texi: Update.
68581         * doc/posix-functions/vfprintf.texi: Update.
68582         * doc/posix-functions/vprintf.texi: Update.
68583         * doc/posix-functions/vsnprintf.texi: Update.
68584         * doc/posix-functions/vsprintf.texi: Update.
68585         * doc/glibc-functions/obstack_printf.texi: Update.
68586         * doc/glibc-functions/obstack_vprintf.texi: Update.
68587         Reported by Eric Blake.
68589 2009-02-25  Bruno Haible  <bruno@clisp.org>
68591         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
68592         with known value.
68593         Reported by Gary V. Vaughan <gary@gnu.org>.
68595 2009-02-25  Bruno Haible  <bruno@clisp.org>
68597         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
68598         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
68599         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
68600         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
68601         Reported by Gary V. Vaughan <gary@gnu.org>.
68603 2009-02-25  Bruno Haible  <bruno@clisp.org>
68605         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
68606         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
68607         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
68608         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
68609         Reported by Gary V. Vaughan <gary@gnu.org>.
68611 2009-02-25  Eric Blake  <ebb9@byu.net>
68613         tests: skip fseek/ftell tests if ungetc is broken
68614         * m4/ungetc.m4: New file.
68615         * modules/fseek-tests: Split test, so ungetc dependency is
68616         separate from rest of test.
68617         * modules/fseeko-tests: Likewise.
68618         * modules/ftell-tests: Likewise.
68619         * modules/ftello-tests: Likewise.
68620         * tests/test-fseek.c (main): Isolate ungetc dependency.
68621         * tests/test-fseeko.c (main): Likewise.
68622         * tests/test-ftell.c (main): Likewise.
68623         * tests/test-ftello.c (main): Likewise.
68624         * tests/test-fseek2.sh: New file.
68625         * tests/test-fseeko2.sh: Likewise.
68626         * tests/test-ftell2.sh: Likewise.
68627         * tests/test-ftello2.sh: Likewise.
68629 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
68631         test-getaddrinfo: fix usage of skip return code 77
68632         * tests/test-gettaddrinfo.c: Return skip code 77 only
68633         for first occurrence of skip (4x77 is not 77)
68635 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
68637         strtod: avoid C99 decl-after-statement
68638         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
68640 2009-02-24  Eric Blake  <ebb9@byu.net>
68642         strtod: detect HP-UX 11.31 bug
68643         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
68644         Reported by Gary V. Vaughan.
68646 2009-02-23  Bruno Haible  <bruno@clisp.org>
68648         Fix invalid read past end of memory block.
68649         * lib/vasnprintf.c (DCHAR_SET): Define.
68650         (local_wcslen): Define only when needed.
68651         (local_strnlen, local_wcsnlen): New functions.
68652         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
68653         directives that involve a conversion ourselves.
68654         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
68655         wcsnlen, mbrtowc, wcrtomb.
68656         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
68657         * tests/test-vasprintf-posix.c (test_function): Likewise.
68658         * tests/test-snprintf-posix.h (test_function): Likewise.
68659         * tests/test-sprintf-posix.h (test_function): Likewise.
68660         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68662 2009-02-22  Bruno Haible  <bruno@clisp.org>
68664         Implement new clarified decomposition of Hangul syllables.
68665         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
68666         of type LTV, return only a pairwise decomposition.
68667         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
68668         Likewise.
68669         * tests/uninorm/test-decomposition.c (main): Updated expected result.
68670         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
68671         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
68673 2009-02-22  Bruno Haible  <bruno@clisp.org>
68675         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
68676         zero-length results and shrink excess allocated memory.
68677         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
68678         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
68679         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
68680         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
68681         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
68682         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
68683         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
68684         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
68685         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
68686         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
68687         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
68688         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
68690 2009-02-21  Bruno Haible  <bruno@clisp.org>
68692         * doc/gnulib.texi: Include safe-alloc.texi earlier.
68693         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
68694         spaces after a period. Put a space between a macro name and its
68695         argument list. Trivial rewordings.
68696         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
68697         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
68698         (main): Return 0 explicitly.
68700 2009-02-21  Bruno Haible  <bruno@clisp.org>
68702         Tests for module 'uninorm/filter'.
68703         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
68704         * modules/uninorm/filter-tests: New file.
68706         New module 'uninorm/filter'.
68707         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
68708         uninorm_filter_flush, uninorm_filter_free): New declarations.
68709         * lib/uninorm/uninorm-filter.c: New file.
68710         * modules/uninorm/filter: New file.
68712 2009-02-21  Bruno Haible  <bruno@clisp.org>
68714         Tests for module 'uninorm/nfkc'.
68715         * tests/uninorm/test-nfkc.c: New file.
68716         * tests/uninorm/test-u8-nfkc.c: New file.
68717         * tests/uninorm/test-u16-nfkc.c: New file.
68718         * tests/uninorm/test-u32-nfkc.c: New file.
68719         * tests/uninorm/test-u32-nfkc-big.sh: New file.
68720         * tests/uninorm/test-u32-nfkc-big.c: New file.
68721         * modules/uninorm/nfkc-tests: New file.
68723         New module 'uninorm/nfkc'.
68724         * lib/uninorm/nfkc.c: New file.
68725         * modules/uninorm/nfkc: New file.
68727         Tests for module 'uninorm/nfkd'.
68728         * tests/uninorm/test-nfkd.c: New file.
68729         * tests/uninorm/test-u8-nfkd.c: New file.
68730         * tests/uninorm/test-u16-nfkd.c: New file.
68731         * tests/uninorm/test-u32-nfkd.c: New file.
68732         * tests/uninorm/test-u32-nfkd-big.sh: New file.
68733         * tests/uninorm/test-u32-nfkd-big.c: New file.
68734         * modules/uninorm/nfkd-tests: New file.
68736         New module 'uninorm/nfkd'.
68737         * lib/uninorm/nfkd.c: New file.
68738         * modules/uninorm/nfkd: New file.
68740         Tests for module 'uninorm/nfc'.
68741         * tests/uninorm/test-nfc.c: New file.
68742         * tests/uninorm/test-u8-nfc.c: New file.
68743         * tests/uninorm/test-u16-nfc.c: New file.
68744         * tests/uninorm/test-u32-nfc.c: New file.
68745         * tests/uninorm/test-u32-nfc-big.sh: New file.
68746         * tests/uninorm/test-u32-nfc-big.c: New file.
68747         * modules/uninorm/nfc-tests: New file.
68749         New module 'uninorm/nfc'.
68750         * lib/uninorm/nfc.c: New file.
68751         * modules/uninorm/nfc: New file.
68753         Tests for module 'uninorm/nfd'.
68754         * tests/uninorm/test-nfd.c: New file.
68755         * tests/uninorm/test-u8-nfd.c: New file.
68756         * tests/uninorm/test-u16-nfd.c: New file.
68757         * tests/uninorm/test-u32-nfd.c: New file.
68758         * tests/uninorm/test-u32-nfd-big.sh: New file.
68759         * tests/uninorm/test-u32-nfd-big.c: New file.
68760         * tests/uninorm/test-u32-normalize-big.h: New file.
68761         * tests/uninorm/test-u32-normalize-big.c: New file.
68762         * tests/uninorm/NormalizationTest.txt: New file, created from
68763         Unicode 5.1.0 NormalizationTest.txt.
68764         * modules/uninorm/nfd-tests: New file.
68766         New module 'uninorm/nfd'.
68767         * lib/uninorm/nfd.c: New file.
68768         * modules/uninorm/nfd: New file.
68770         New module 'uninorm/u32-normalize'.
68771         * lib/uninorm/u32-normalize.c: New file.
68772         * modules/uninorm/u32-normalize: New file.
68774         New module 'uninorm/u16-normalize'.
68775         * lib/uninorm/u16-normalize.c: New file.
68776         * modules/uninorm/u16-normalize: New file.
68778         New module 'uninorm/u8-normalize'.
68779         * lib/uninorm/u8-normalize.c: New file.
68780         * lib/uninorm/normalize-internal.h: New file.
68781         * lib/uninorm/u-normalize-internal.h: New file.
68782         * modules/uninorm/u8-normalize: New file.
68784         New module 'uninorm/decompose-internal'.
68785         * lib/uninorm/decompose-internal.c: New file.
68786         * modules/uninorm/decompose-internal: New file.
68788         Tests for module 'uninorm/composition'.
68789         * tests/uninorm/test-composition.c: New file.
68790         * modules/uninorm/composition-tests: New file.
68792         New module 'uninorm/composition'.
68793         * lib/uninorm/composition.c: New file.
68794         * lib/uninorm/composition-table.gperf: New file, generated by
68795         gen-uni-tables.
68796         * modules/uninorm/composition: New file.
68798         Tests for module 'uninorm/compat-decomposition'.
68799         * tests/uninorm/test-compat-decomposition.c: New file.
68800         * modules/uninorm/compat-decomposition-tests: New file.
68802         New module 'uninorm/compat-decomposition'.
68803         * lib/uninorm/decompose-internal.h: New file.
68804         * lib/uninorm/compat-decomposition.c: New file.
68805         * modules/uninorm/compat-decomposition: New file.
68807         Tests for module 'uninorm/canonical-decomposition'.
68808         * tests/uninorm/test-canonical-decomposition.c: New file.
68809         * modules/uninorm/canonical-decomposition-tests: New file.
68811         New module 'uninorm/canonical-decomposition'.
68812         * lib/uninorm/canonical-decomposition.c: New file.
68813         * modules/uninorm/canonical-decomposition: New file.
68815         Tests for module 'uninorm/decomposition'.
68816         * tests/uninorm/test-decomposition.c: New file.
68817         * modules/uninorm/decomposition-tests: New file.
68819         New module 'uninorm/decomposition'.
68820         * lib/uninorm/decomposition.c: New file.
68821         * modules/uninorm/decomposition: New file.
68823         New module 'uninorm/decomposition-table'.
68824         * lib/uninorm/decomposition-table.h: New file.
68825         * lib/uninorm/decomposition-table.c: New file.
68826         * lib/uninorm/decomposition-table1.h: New file, generated by
68827         gen-uni-tables.
68828         * lib/uninorm/decomposition-table2.h: New file, generated by
68829         gen-uni-tables.
68830         * modules/uninorm/decomposition-table: New file.
68832         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
68833         (UC_DECOMP_*): New enumeration items.
68834         (get_decomposition): New function.
68835         (struct decomp_table): New type.
68836         (output_decomposition, output_decomposition_tables): New functions.
68837         (unicode_composition_exclusions): New variable.
68838         (fill_composition_exclusions, debug_output_composition_tables): New
68839         functions.
68840         (main): Accept one more argument. Invoke fill_composition_exclusions.
68841         Output decomposition and composition tables.
68843         New module 'uninorm/base'.
68844         * lib/uninorm.h: New file.
68845         * lib/unictype.h: Update comment.
68846         * modules/uninorm/base: New file.
68848 2009-02-21  David Lutterkort  <lutter@redhat.com>
68850         Tests for module 'safe-alloc'.
68851         * tests/test-safe-alloc.c: New file.
68852         * modules/safe-alloc-tests: New file.
68854         New module 'safe-alloc'.
68855         * lib/safe-alloc.h: New file.
68856         * lib/safe-alloc.c: New file.
68857         * m4/safe-alloc.m4: New file.
68858         * modules/safe-alloc: New file.
68859         * doc/safe-alloc.texi: New file.
68860         * doc/gnulib.texi: Include it.
68861         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
68862         safe-alloc.
68864 2009-02-18  Bruno Haible  <bruno@clisp.org>
68866         Fix link error on non-glibc systems.
68867         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
68868         variable.
68869         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
68871 2009-02-18  Jim Meyering  <meyering@redhat.com>
68873         fts: avoid used-uninitialized error due to recent change
68874         * lib/fts.c (fts_read): Guard uses of the new member,
68875         parent->fts_n_dirs_remaining, since it's not relevant for
68876         the parent of a directory specified on the command-line.
68878 2009-02-17  James Youngman  <jay@gnu.org>
68879             Bruno Haible  <bruno@clisp.org>
68881         * m4/include_next.m4: Reformulate comment.
68883 2009-02-16  Jim Meyering  <meyering@redhat.com>
68885         fts: add #if guards so that the fts_lgpl module still builds
68886         * lib/fts.c: Guard just-added hash-table-using parts with
68887         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
68888         Reported by Simon Josefsson.
68890 2009-02-15  Bruno Haible  <bruno@clisp.org>
68892         * modules/array-mergesort-tests: New file.
68893         * tests/test-array-mergesort.c: New file.
68895         New module 'array-mergesort'.
68896         * modules/array-mergesort: New file.
68897         * lib/array-mergesort.h: New file.
68899 2009-02-15  Bruno Haible  <bruno@clisp.org>
68901         Fix 2009-02-07 commit.
68902         * lib/gen-uni-tables.c (output_predicate, output_category,
68903         output_combclass, output_bidi_category, output_decimal_digit,
68904         output_digit, output_numeric, output_mirror, output_scripts,
68905         output_ident_category, output_simple_mapping): Fix format directives.
68906         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
68908 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
68910         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
68911         fixes are available from IBM.
68913 2009-02-13  Jim Meyering  <meyering@redhat.com>
68915         fts: arrange not to stat non-directories in more cases
68916         This makes GNU find (when it doesn't need to stat each file)
68917         *much* more efficient at traversing reiserfs file systems.
68918         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
68919         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
68920         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
68921         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
68922         (leaf_optimization_applies): New function.
68923         (LCO_hash, LCO_compare): New helper functions.
68924         (link_count_optimize_ok): New function.
68925         (fts_stat): Initialize new member (if dir).
68926         (fts_read): Decrement parent's fts_n_dirs_remaining count if
68927         we've just stat'ed a directory.  Skip the stat call when possible.
68928         ---
68929         Note this AFS-related exchange:
68930         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
68931         and note find's pioctl call in find/fstype.c.
68932         But that is necessary only if you want to enable the
68933         optimization for AFS, and for now, I don't.
68935         fts: move a function definition "up" (no semantic change)
68936         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
68937         "up" to precede upcoming use of a related function.
68939 2009-02-11  Jim Meyering  <meyering@redhat.com>
68941         fts: correct internal computation of nlinks (optimization-related)
68942         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
68943         whether the current entry is a directory, so don't test it.
68945 2009-02-10  Bruno Haible  <bruno@clisp.org>
68947         Tests for module 'uniwbrk/ulc-wordbreaks'.
68948         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
68949         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
68950         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
68952         Tests for module 'uniwbrk/u32-wordbreaks'.
68953         * modules/uniwbrk/u32-wordbreaks-tests: New file.
68954         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
68956         Tests for module 'uniwbrk/u16-wordbreaks'.
68957         * modules/uniwbrk/u16-wordbreaks-tests: New file.
68958         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
68960         Tests for module 'uniwbrk/u8-wordbreaks'.
68961         * modules/uniwbrk/u8-wordbreaks-tests: New file.
68962         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
68964 2009-02-10  Bruno Haible  <bruno@clisp.org>
68966         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
68967         property.
68968         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
68969         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
68970         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
68972 2009-02-10  Simon Josefsson  <simon@josefsson.org>
68974         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
68975         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
68977 2009-02-10  Bruno Haible  <bruno@clisp.org>
68979         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
68980         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
68981         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
68982         * lib/unilbrk/u8-possible-linebreaks.c: Update.
68983         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
68984         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
68986 2009-02-09  Simon Josefsson  <simon@josefsson.org>
68988         * lib/sockets.h (gl_fd_to_handle): New function.
68990         * tests/test-sockets.c: Call gl_fd_to_handle.
68992 2009-02-09  Bruno Haible  <bruno@clisp.org>
68994         * doc/havelib.texi: Document the conventions on bi-arch systems.
68996 2009-02-08  Bruno Haible  <bruno@clisp.org>
68998         Document the AC_LIB_LINKFLAGS macro.
68999         * doc/havelib.texi: New file, mostly written on 2005-05-24.
69000         * doc/gnulib.texi: Include it.
69002 2009-02-08  Bruno Haible  <bruno@clisp.org>
69004         Fix wrong order of sections, compared to TOC.
69005         * doc/gnulib.texi: Include relocatable-maint.texi after the
69006         "Regular expressions" node, not before.
69008 2009-02-08  Bruno Haible  <bruno@clisp.org>
69010         Tests for module 'unicase/totitle'.
69011         * modules/unicase/totitle-tests: New file.
69013         Tests for module 'unicase/tolower'.
69014         * modules/unicase/tolower-tests: New file.
69016         Tests for module 'unicase/toupper'.
69017         * modules/unicase/toupper-tests: New file.
69018         * tests/unicase/test-mapping-part1.h: New file.
69019         * tests/unicase/test-mapping-part2.h: New file.
69021         New module 'unicase/totitle'.
69022         * modules/unicase/totitle: New file.
69023         * lib/unicase/totitle.c: New file.
69025         New module 'unicase/tolower'.
69026         * modules/unicase/tolower: New file.
69027         * lib/unicase/tolower.c: New file.
69029         New module 'unicase/toupper'.
69030         * modules/unicase/toupper: New file.
69031         * lib/unicase/toupper.c: New file.
69032         * lib/unicase/simple-mapping.h: New file.
69034         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
69035         (mapping_table): New structure.
69036         (output_simple_mapping): New function.
69037         (main): Invoke output_simple_mapping_test and output_simple_mapping.
69038         * modules/gen-uni-tables (Description): Update.
69039         * lib/unicase/toupper.h: New file, automatically generated by
69040         gen-uni-tables.
69041         * lib/unicase/tolower.h: New file, automatically generated by
69042         gen-uni-tables.
69043         * lib/unicase/totitle.h: New file, automatically generated by
69044         gen-uni-tables.
69045         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
69046         gen-uni-tables.
69047         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
69048         gen-uni-tables.
69049         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
69050         gen-uni-tables.
69052         New module 'unicase/base'.
69053         * modules/unicase/base: New file.
69054         * lib/unicase.h: New file.
69056 2009-02-08  Bruno Haible  <bruno@clisp.org>
69058         New module 'uniwbrk/ulc-wordbreaks'.
69059         * modules/uniwbrk/ulc-wordbreaks: New file.
69060         * lib/uniwbrk/ulc-wordbreaks.c: New file.
69062         New module 'uniwbrk/u32-wordbreaks'.
69063         * modules/uniwbrk/u32-wordbreaks: New file.
69064         * lib/uniwbrk/u32-wordbreaks.c: New file.
69066         New module 'uniwbrk/u16-wordbreaks'.
69067         * modules/uniwbrk/u16-wordbreaks: New file.
69068         * lib/uniwbrk/u16-wordbreaks.c: New file.
69070         New module 'uniwbrk/u8-wordbreaks'.
69071         * modules/uniwbrk/u8-wordbreaks: New file.
69072         * lib/uniwbrk/u8-wordbreaks.c: New file.
69073         * lib/uniwbrk/u-wordbreaks.h: New file.
69075         New module 'uniwbrk/table'.
69076         * modules/uniwbrk/table: New file.
69077         * lib/uniwbrk/wbrktable.h: New file.
69078         * lib/uniwbrk/wbrktable.c: New file.
69080         New module 'uniwbrk/wordbreak-property'.
69081         * modules/uniwbrk/wordbreak-property: New file.
69082         * lib/uniwbrk/wordbreak-property.c: New file.
69084         * lib/gen-uni-tables.c (WBP_*): New enum items.
69085         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
69086         (unicode_org_wbp): New variable.
69087         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
69088         New functions.
69089         (wbp_table): New structure.
69090         (output_wbp, output_wbrk_tables): New functions.
69091         (main): Accept additional argument. Invoke fill_org_wbp,
69092         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
69093         output_wbrk_tables.
69094         * modules/gen-uni-tables (Description): Update.
69095         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
69096         gen-uni-tables.
69098         New module 'uniwbrk/base'.
69099         * modules/uniwbrk/base: New file.
69100         * lib/uniwbrk.h: New file.
69102 2009-02-08  Bruno Haible  <bruno@clisp.org>
69104         Update to Unicode 5.1.0.
69105         * lib/gen-uni-tables.c (is_property_alphabetic): Include
69106         U+2185..U+2188.
69107         (is_property_default_ignorable_code_point): Don't include characters
69108         of category Cc or Cs and not-a-characters.
69109         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
69110         U+0D79, U+109E, U+109F, U+A60C.
69111         * lib/unictype/bidi_of.h: Regenerated.
69112         * lib/unictype/blocks.h: Regenerated.
69113         * lib/unictype/categ_C.h: Regenerated.
69114         * lib/unictype/categ_Cf.h: Regenerated.
69115         * lib/unictype/categ_Cn.h: Regenerated.
69116         * lib/unictype/categ_L.h: Regenerated.
69117         * lib/unictype/categ_Ll.h: Regenerated.
69118         * lib/unictype/categ_Lm.h: Regenerated.
69119         * lib/unictype/categ_Lo.h: Regenerated.
69120         * lib/unictype/categ_Lu.h: Regenerated.
69121         * lib/unictype/categ_M.h: Regenerated.
69122         * lib/unictype/categ_Mc.h: Regenerated.
69123         * lib/unictype/categ_Me.h: Regenerated.
69124         * lib/unictype/categ_Mn.h: Regenerated.
69125         * lib/unictype/categ_N.h: Regenerated.
69126         * lib/unictype/categ_Nd.h: Regenerated.
69127         * lib/unictype/categ_Nl.h: Regenerated.
69128         * lib/unictype/categ_No.h: Regenerated.
69129         * lib/unictype/categ_P.h: Regenerated.
69130         * lib/unictype/categ_Pd.h: Regenerated.
69131         * lib/unictype/categ_Pe.h: Regenerated.
69132         * lib/unictype/categ_Pf.h: Regenerated.
69133         * lib/unictype/categ_Pi.h: Regenerated.
69134         * lib/unictype/categ_Po.h: Regenerated.
69135         * lib/unictype/categ_Ps.h: Regenerated.
69136         * lib/unictype/categ_S.h: Regenerated.
69137         * lib/unictype/categ_Sk.h: Regenerated.
69138         * lib/unictype/categ_Sm.h: Regenerated.
69139         * lib/unictype/categ_So.h: Regenerated.
69140         * lib/unictype/categ_of.h: Regenerated.
69141         * lib/unictype/combining.h: Regenerated.
69142         * lib/unictype/ctype_alnum.h: Regenerated.
69143         * lib/unictype/ctype_alpha.h: Regenerated.
69144         * lib/unictype/ctype_graph.h: Regenerated.
69145         * lib/unictype/ctype_lower.h: Regenerated.
69146         * lib/unictype/ctype_print.h: Regenerated.
69147         * lib/unictype/ctype_punct.h: Regenerated.
69148         * lib/unictype/ctype_upper.h: Regenerated.
69149         * lib/unictype/decdigit.h: Regenerated.
69150         * lib/unictype/digit.h: Regenerated.
69151         * lib/unictype/mirror.h: Regenerated.
69152         * lib/unictype/numeric.h: Regenerated.
69153         * lib/unictype/pr_alphabetic.h: Regenerated.
69154         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
69155         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
69156         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
69157         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
69158         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
69159         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
69160         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
69161         * lib/unictype/pr_combining.h: Regenerated.
69162         * lib/unictype/pr_dash.h: Regenerated.
69163         * lib/unictype/pr_decimal_digit.h: Regenerated.
69164         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
69165         * lib/unictype/pr_deprecated.h: Regenerated.
69166         * lib/unictype/pr_diacritic.h: Regenerated.
69167         * lib/unictype/pr_extender.h: Regenerated.
69168         * lib/unictype/pr_format_control.h: Regenerated.
69169         * lib/unictype/pr_grapheme_base.h: Regenerated.
69170         * lib/unictype/pr_grapheme_extend.h: Regenerated.
69171         * lib/unictype/pr_grapheme_link.h: Regenerated.
69172         * lib/unictype/pr_id_continue.h: Regenerated.
69173         * lib/unictype/pr_id_start.h: Regenerated.
69174         * lib/unictype/pr_ideographic.h: Regenerated.
69175         * lib/unictype/pr_ignorable_control.h: Regenerated.
69176         * lib/unictype/pr_lowercase.h: Regenerated.
69177         * lib/unictype/pr_math.h: Regenerated.
69178         * lib/unictype/pr_numeric.h: Regenerated.
69179         * lib/unictype/pr_other_alphabetic.h: Regenerated.
69180         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
69181         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
69182         * lib/unictype/pr_other_id_continue.h: Regenerated.
69183         * lib/unictype/pr_other_lowercase.h: Regenerated.
69184         * lib/unictype/pr_other_math.h: Regenerated.
69185         * lib/unictype/pr_punctuation.h: Regenerated.
69186         * lib/unictype/pr_sentence_terminal.h: Regenerated.
69187         * lib/unictype/pr_soft_dotted.h: Regenerated.
69188         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
69189         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
69190         * lib/unictype/pr_unified_ideograph.h: Regenerated.
69191         * lib/unictype/pr_uppercase.h: Regenerated.
69192         * lib/unictype/pr_xid_continue.h: Regenerated.
69193         * lib/unictype/pr_xid_start.h: Regenerated.
69194         * lib/unictype/pr_zero_width.h: Regenerated.
69195         * lib/unictype/scripts.h: Regenerated.
69196         * lib/unictype/scripts_byname.gperf: Regenerated.
69197         * lib/unictype/sy_java_ident.h: Regenerated.
69198         * lib/unilbrk/lbrkprop1.h: Regenerated.
69199         * lib/unilbrk/lbrkprop2.h: Regenerated.
69200         * tests/unictype/test-categ_C.c: Regenerated.
69201         * tests/unictype/test-categ_Cf.c: Regenerated.
69202         * tests/unictype/test-categ_Cn.c: Regenerated.
69203         * tests/unictype/test-categ_L.c: Regenerated.
69204         * tests/unictype/test-categ_Ll.c: Regenerated.
69205         * tests/unictype/test-categ_Lm.c: Regenerated.
69206         * tests/unictype/test-categ_Lo.c: Regenerated.
69207         * tests/unictype/test-categ_Lu.c: Regenerated.
69208         * tests/unictype/test-categ_M.c: Regenerated.
69209         * tests/unictype/test-categ_Mc.c: Regenerated.
69210         * tests/unictype/test-categ_Me.c: Regenerated.
69211         * tests/unictype/test-categ_Mn.c: Regenerated.
69212         * tests/unictype/test-categ_N.c: Regenerated.
69213         * tests/unictype/test-categ_Nd.c: Regenerated.
69214         * tests/unictype/test-categ_Nl.c: Regenerated.
69215         * tests/unictype/test-categ_No.c: Regenerated.
69216         * tests/unictype/test-categ_P.c: Regenerated.
69217         * tests/unictype/test-categ_Pd.c: Regenerated.
69218         * tests/unictype/test-categ_Pe.c: Regenerated.
69219         * tests/unictype/test-categ_Pf.c: Regenerated.
69220         * tests/unictype/test-categ_Pi.c: Regenerated.
69221         * tests/unictype/test-categ_Po.c: Regenerated.
69222         * tests/unictype/test-categ_Ps.c: Regenerated.
69223         * tests/unictype/test-categ_S.c: Regenerated.
69224         * tests/unictype/test-categ_Sk.c: Regenerated.
69225         * tests/unictype/test-categ_Sm.c: Regenerated.
69226         * tests/unictype/test-categ_So.c: Regenerated.
69227         * tests/unictype/test-ctype_alnum.c: Regenerated.
69228         * tests/unictype/test-ctype_alpha.c: Regenerated.
69229         * tests/unictype/test-ctype_graph.c: Regenerated.
69230         * tests/unictype/test-ctype_lower.c: Regenerated.
69231         * tests/unictype/test-ctype_print.c: Regenerated.
69232         * tests/unictype/test-ctype_punct.c: Regenerated.
69233         * tests/unictype/test-ctype_upper.c: Regenerated.
69234         * tests/unictype/test-decdigit.h: Regenerated.
69235         * tests/unictype/test-digit.h: Regenerated.
69236         * tests/unictype/test-numeric.h: Regenerated.
69237         * tests/unictype/test-pr_alphabetic.c: Regenerated.
69238         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
69239         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
69240         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
69241         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
69242         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
69243         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
69244         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
69245         * tests/unictype/test-pr_combining.c: Regenerated.
69246         * tests/unictype/test-pr_dash.c: Regenerated.
69247         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
69248         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
69249         * tests/unictype/test-pr_deprecated.c: Regenerated.
69250         * tests/unictype/test-pr_diacritic.c: Regenerated.
69251         * tests/unictype/test-pr_extender.c: Regenerated.
69252         * tests/unictype/test-pr_format_control.c: Regenerated.
69253         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
69254         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
69255         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
69256         * tests/unictype/test-pr_id_continue.c: Regenerated.
69257         * tests/unictype/test-pr_id_start.c: Regenerated.
69258         * tests/unictype/test-pr_ideographic.c: Regenerated.
69259         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
69260         * tests/unictype/test-pr_lowercase.c: Regenerated.
69261         * tests/unictype/test-pr_math.c: Regenerated.
69262         * tests/unictype/test-pr_numeric.c: Regenerated.
69263         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
69264         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
69265         Regenerated.
69266         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
69267         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
69268         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
69269         * tests/unictype/test-pr_other_math.c: Regenerated.
69270         * tests/unictype/test-pr_punctuation.c: Regenerated.
69271         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
69272         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
69273         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
69274         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
69275         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
69276         * tests/unictype/test-pr_uppercase.c: Regenerated.
69277         * tests/unictype/test-pr_xid_continue.c: Regenerated.
69278         * tests/unictype/test-pr_xid_start.c: Regenerated.
69279         * tests/unictype/test-pr_zero_width.c: Regenerated.
69281         Update to Unicode 5.1.0.
69282         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
69283         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
69284         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
69285         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
69286         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
69287         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
69288         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
69289         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
69290         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
69291         (nonspacing_table_ind): Update.
69292         * tests/uniwidth/test-uc_width2.sh: Update expected result.
69294         Update to Unicode 5.1.0.
69295         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
69296         code transform.
69297         * lib/uniname/uniname.c (unicode_character_name,
69298         unicode_name_character): Add the range 0x1Fxxx to the code transform.
69299         * lib/uniname/uninames.h: Regenerated.
69300         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
69302 2009-02-07  Bruno Haible  <bruno@clisp.org>
69304         Merge gen-ctype and gen-lbrk into a single program.
69305         * lib/gen-uni-tables.c: New file, incorporating
69306         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
69307         Add directory prefixes to the names of the generated files.
69308         * lib/unictype/gen-ctype.c: Remove file.
69309         * lib/unilbrk/gen-lbrk.c: Remove file.
69310         * modules/gen-uni-tables: New file.
69311         * modules/unictype/gen-ctype: Remove file.
69312         * modules/unilbrk/gen-lbrk: Remove file.
69314 2009-02-07  Bruno Haible  <bruno@clisp.org>
69316         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
69318         New module 'unistr/u32-strcoll'.
69319         * modules/unistr/u32-strcoll: New file.
69320         * lib/unistr/u32-strcoll.c: New file.
69322         New module 'unistr/u16-strcoll'.
69323         * modules/unistr/u16-strcoll: New file.
69324         * lib/unistr/u16-strcoll.c: New file.
69326         New module 'unistr/u8-strcoll'.
69327         * modules/unistr/u8-strcoll: New file.
69328         * lib/unistr/u8-strcoll.c: New file.
69329         * lib/unistr/u-strcoll.h: New file.
69331 2009-02-07  Bruno Haible  <bruno@clisp.org>
69333         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
69334         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
69335         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
69336         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
69337         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
69338         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
69340 2009-02-07  Bruno Haible  <bruno@clisp.org>
69342         Make 64-bit clean.
69343         * lib/unictype/gen-ctype.c (output_predicate, output_category,
69344         output_combclass, output_bidi_category, output_decimal_digit,
69345         output_digit, output_numeric, output_mirror, output_scripts,
69346         output_ident_category): Use proper width specifier in format strings.
69348 2009-02-07  Bruno Haible  <bruno@clisp.org>
69350         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
69351         failure behaviour.
69353 2009-02-07  Jim Meyering  <meyering@redhat.com>
69355         regex: avoid compilation failure with upcoming gcc-4.4
69356         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
69357         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
69358         "... error: integer overflow in preprocessor expression".
69360 2009-02-05  Ben Pfaff  <blp@gnu.org>
69362         Fix link errors on Windows when close module is used.
69363         * modules/close: Add $(LIB_CLOSE) to Link section.
69364         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
69365         $(LIB_CLOSE) on Windows.
69367 2009-02-05  Jim Meyering  <meyering@redhat.com>
69369         still avoid unused-parameter warnings, but do it cleanly
69370         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
69371         (get_fs_usage): Cast to void instead.
69372         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
69373         (dev_from_mount_options, read_file_system_list): Cast to void.
69374         Prompted by Bruno Haible.
69376 2009-02-04  Jim Meyering  <meyering@redhat.com>
69378         fsusage.c: correct copyright year
69379         * lib/fsusage.c: Reflect year in which the change is pushed into
69381         avoid misc. warnings
69382         * lib/fsusage.c (UNUSED_PARAM): Define.
69383         (get_fs_usage): Mark parameter "disk" as unused.
69384         * lib/getugroups.c (getgrent): Use "void" in prototype.
69385         * lib/mountlist.c: Mark unused parameters.
69386         (read_file_system_list): Declare a local with "const".
69387         * lib/nanosleep.c (getnow): Declare static.
69388         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
69390         dirfd: set errno upon failure
69391         * lib/dirfd.c: Include <errno.h>.
69392         Set errno to ENOTSUP when returning -1.
69393         * modules/dirfd (Depends-on): Add errno.
69394         Suggested by John Kodis <kodis@comcast.net>.
69396 2009-02-01  Bruno Haible  <bruno@clisp.org>
69398         Don't assume sizeof (long) >= sizeof (void *).
69399         * lib/memcmp.c: Include stdint.h.
69400         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
69401         srcp2 to 'const byte *'.
69402         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
69403         types to uintptr_t.
69404         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
69405         * modules/memcmp (Depends-on): Add stdint.
69406         Reported by Ozkan Sezer <sezeroz@gmail.com>.
69408 2009-01-30  Eric Blake  <ebb9@byu.net>
69410         fix more require-before-expand issues
69411         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
69412         expand, AC_PROG_AWK.
69413         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
69415 2009-01-28  Eric Blake  <ebb9@byu.net>
69417         version-etc: use consistent URL formatting
69418         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
69419         Improve formatting.  Use fputs for string without %.
69421 2009-01-28  Jim Meyering  <meyering@redhat.com>
69423         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
69424         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
69425         "underquoted definition of NAME" from autoconf-2.59.
69427 2009-01-28  Bruno Haible  <bruno@clisp.org>
69429         * doc/gnulib.texi: Add "Obsolete modules" to index.
69431 2009-01-28  Jim Meyering  <meyering@redhat.com>
69433         useless-if-before-free: recognize more variants
69434         * build-aux/useless-if-before-free: Also recognize e.g.,
69435         if (NULL != p) free (p);
69437 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
69439         test-getaddrinfo: skip (don't fail) this test when there's no network
69440         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
69441         on the presumption that it means you lack network access.
69443 2009-01-26  Jim Meyering  <meyering@redhat.com>
69445         fflush: avoid warnings on modern systems
69446         * lib/fflush.c (rpl_fflush): Move declarations of locals,
69447         pos and result, into scopes where they're used.
69449 2009-01-26  Eric Blake  <ebb9@byu.net>
69451         Silence warning reintroduced by recent extensions patch.
69452         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
69453         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
69454         autoconf.
69456         Backport improved autoconf semantics of AC_DEFUN_ONCE.
69457         * m4/00gnulib.m4: New file.
69458         * gnulib-tool (func_get_filelist): Always use it.
69459         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
69460         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
69462 2009-01-25  Bruno Haible  <bruno@clisp.org>
69464         Make test-quotearg work on MacOS X and AIX.
69465         * tests/test-quotearg.sh: New file.
69466         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
69467         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
69468         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
69469         include <libintl.h>.
69470         (fake_locale): Remove variable.
69471         (gettext, dgettext, dcgettext): Remove functions.
69472         (main): Instead of setting a fake locale, set a real locale. Call
69473         textdomain and bindtextdomain.
69474         * modules/quotearg-tests (Files): Add the new files.
69475         (Depends-on): Add gettext, setenv, unsetenv.
69476         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
69477         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
69478         Augment TESTS_ENVIRONMENT.
69480 2009-01-25  Bruno Haible  <bruno@clisp.org>
69482         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
69483         fr_FR.ISO8859-1 locale on MacOS X.
69484         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
69485         ja_JP.eucJP locale on MacOS X.
69486         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
69487         zh_CN.GB18030 locale on MacOS X.
69489 2009-01-25  Bruno Haible  <bruno@clisp.org>
69491         Avoid link errors on MacOS X 10.3.
69492         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
69493         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
69495 2009-01-25  Bruno Haible  <bruno@clisp.org>
69497         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
69498         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
69499         * modules/pipe (Files): Remove m4/posix_spawn.m4.
69500         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
69501         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
69502         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
69503         posix_spawnattr_init, posix_spawnattr_setsigmask,
69504         posix_spawnattr_setflags, posix_spawnattr_destroy.
69506         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
69507         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
69508         * modules/execute (Files): Remove m4/posix_spawn.m4.
69509         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
69510         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
69511         posix_spawnattr_init, posix_spawnattr_setsigmask,
69512         posix_spawnattr_setflags, posix_spawnattr_destroy.
69514 2009-01-25  Bruno Haible  <bruno@clisp.org>
69516         * lib/glthread/threadlib.c: Include <stdlib.h>.
69518 2009-01-25  Bruno Haible  <bruno@clisp.org>
69520         * lib/glthread/threadlib.c (dummy): New declaration.
69522 2009-01-25  Bruno Haible  <bruno@clisp.org>
69524         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
69525         multibyte characters also for the GB18030 encoding. Don't crash when
69526         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
69528 2009-01-25  Bruno Haible  <bruno@clisp.org>
69530         Avoid redefining 'struct random_data' on OSF/1 5.1.
69531         * lib/stdlib.in.h: Include <random.h> if it exists.
69532         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
69533         HAVE_RANDOM_H. Include <random.h> when testing whether
69534         'struct random_data' exists.
69535         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
69537 2009-01-25  Bruno Haible  <bruno@clisp.org>
69539         Don't install charset.alias on MacOS X >= 10.3.
69540         * lib/localcharset.c (DARWIN7): New macro.
69541         (get_charset_aliases): Hardcode the result for Darwin7.
69542         * modules/localcharset (install-exec-local): Don't install
69543         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
69545 2009-01-25  Bruno Haible  <bruno@clisp.org>
69547         Don't install charset.alias on mingw and Cygwin.
69548         * modules/localcharset (install-exec-local): Don't install
69549         charset.alias on mingw and Cygwin, if the file does not yet exist.
69550         The result for these platforms is hardcoded in localcharset.c.
69552 2009-01-25  Bruno Haible  <bruno@clisp.org>
69554         Make it possible again to use AC_GNU_SOURCE together with gnulib.
69555         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
69556         before requiring AC_USE_SYSTEM_EXTENSIONS.
69558 2009-01-25  Jim Meyering  <meyering@redhat.com>
69560         c-strtod: avoid warnings
69561         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
69562         "assignment discards qualifiers from pointer target type" warnings.
69564 2009-01-24  Bruno Haible  <bruno@clisp.org>
69566         Add support for non-UTF-8 locales on MacOS X.
69567         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
69568         canonical encodings. For Darwin 7 and newer, don't map traditional
69569         encodings to UTF-8.
69570         Reported by Vincent Lefevre <vincent@vinc17.org>
69571         at <http://savannah.gnu.org/bugs/?25235>.
69573 2009-01-24  Bruno Haible  <bruno@clisp.org>
69575         * doc/gnulib.texi (Obsolete modules): New section.
69576         Reported by Mike Frysinger <vapier@gentoo.org>.
69578 2009-01-24  Bruno Haible  <bruno@clisp.org>
69580         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
69581         (%.dvi): New rule.
69583 2009-01-24  Bruno Haible  <bruno@clisp.org>
69585         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
69586         Reported by Eric Blake.
69588 2009-01-24  Bruno Haible  <bruno@clisp.org>
69590         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
69591         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
69592         Reported by Gary V. Vaughan <gary@gnu.org>.
69594 2009-01-24  Bruno Haible  <bruno@clisp.org>
69596         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
69598 2009-01-23  Bruno Haible  <bruno@clisp.org>
69600         Make c-strtod, c-strtold usable in libraries.
69601         * lib/c-strtod.c: Include string.h instead of xalloc.h.
69602         (C_STRTOD): Call strdup instead of xstrdup.
69603         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
69604         * modules/c-strtold (Depends-on): Likewise.
69605         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
69606         * NEWS: Mention the change.
69607         Reported by Michael Gold <mgold@ncf.ca>.
69609 2009-01-23  Jim Meyering  <meyering@redhat.com>
69611         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
69612         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
69613         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
69615 2009-01-23  Simon Josefsson  <simon@josefsson.org>
69617         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
69618         GNU CoreUtils.
69619         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
69620         * modules/version-etc (Description): Update.
69622 2009-01-22  Bruno Haible  <bruno@clisp.org>
69624         Cache the C locale object.
69625         * lib/c-strtod.c (c_locale_cache): New variable.
69626         (c_locale): New function.
69627         (C_STRTOD): Use it, and don't call freelocale.
69628         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
69629         Suggested by Paolo Bonzini.
69631 2009-01-21  Bruno Haible  <bruno@clisp.org>
69633         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
69634         conditions other than overflow.
69636 2009-01-21  Bruno Haible  <bruno@clisp.org>
69638         * lib/c-strtod.c: Include errno.h.
69639         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
69640         value from STRTOD_L and STRTOD.
69642 2009-01-21  Bruno Haible  <bruno@clisp.org>
69643         and Jim Meyering  <meyering@redhat.com>
69645         nanosleep: skip configure test (fail it) for apple universal builds
69646         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
69647         universal builds, assume that nanosleep does not work.
69648         * modules/nanosleep (Depends-on): Add multiarch.
69650         mktime: skip configure test (fail it) for apple universal builds
69651         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
69652         universal builds, assume that mktime does not work.
69653         * modules/mktime (Depends-on): Add multiarch.
69655 2009-01-21  Eric Blake  <ebb9@byu.net>
69657         multiarch: avoid expand-before-require warning
69658         * modules/multiarch (configure.ac): Require, rather than expand,
69659         gl_MULTIARCH.
69660         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
69661         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
69662         enforce that all clients require it.  Partial reversion of
69663         2008-12-29 patch.
69665         error: avoid expand-before-require warning
69666         * modules/errno (configure.ac): Require, rather than expand,
69667         gl_HEADER_ERRNO_H.
69668         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
69669         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
69670         enforce that all clients require it.
69672         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
69673         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
69674         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
69675         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
69677 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
69679         Revert:
69680         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
69682         regex: do not depend on obsolete modules.
69683         * modules/regex: Remove memcmp and memmove.
69685 2009-01-20  Bruno Haible  <bruno@clisp.org>
69687         Make the 'link' module link on Windows NT 4.
69688         * lib/link.c (_WIN32_WINNT): Don't define.
69689         (CreateHardLinkFuncType): New type.
69690         (CreateHardLinkFunc, initialized): New variables.
69691         (initialize): New function.
69692         (link): Invoke CreateHardLink indirectly through the function pointer.
69694 2009-01-20  Bruno Haible  <bruno@clisp.org>
69696         Fix compilation failure on mingw.
69697         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
69699 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
69701         * doc/c-strtod.texi: Mention a couple of restrictions.
69703 2009-01-20  Jim Meyering  <meyering@redhat.com>
69705         gettimeofday: move more declarations out of functions
69706         * lib/gettimeofday.c: Move extern declarations of tzset and
69707         gmtime out of containing functions.  Prompted by Bruno Haible.
69709 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
69711         regex: do not depend on obsolete modules.
69712         * modules/regex: Remove memcmp and memmove.
69714 2009-01-19  Bruno Haible  <bruno@clisp.org>
69716         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
69717         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
69718         gl_BIGENDIAN, not AC_C_BIGENDIAN.
69719         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
69720         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
69722 2009-01-19  Bruno Haible  <bruno@clisp.org>
69724         * tests/test-link.c: Include <errno.h>.
69725         (main): Exit with code 77 when a hard link cannot be created due to
69726         the file system.
69727         * tests/test-link.sh: Skip test when a hard link cannot be created due
69728         to the file system.
69729         Suggested by Eric Blake.
69731 2009-01-19  Martin Lambers  <marlam@marlam.de>
69733         * modules/link-tests: New file.
69734         * tests/test-link.sh: New file.
69735         * tests/test-link.c: New file.
69737 2009-01-19  Eric Blake  <ebb9@byu.net>
69739         doc: mention another function added in cygwin 1.7.0
69740         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
69741         Another new function in cygwin 1.7.
69743 2009-01-19  Bruno Haible  <bruno@clisp.org>
69745         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
69746         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
69747         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
69748         gl_BIGENDIAN, not AC_C_BIGENDIAN.
69749         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
69750         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
69751         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
69752         * m4/md4.m4 (gl_MD4): Likewise.
69753         * m4/md5.m4 (gl_MD5): Likewise.
69754         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
69755         * m4/sha1.m4 (gl_SHA1): Likewise.
69756         * m4/sha256.m4 (gl_SHA256): Likewise.
69757         * m4/sha512.m4 (gl_SHA512): Likewise.
69759 2009-01-19  Bruno Haible  <bruno@clisp.org>
69761         * modules/uniname/uniname-tests (Depends-on): Add progname.
69762         * tests/uniname/test-uninames.c: Include progname.h.
69763         (main): Call set_program_name.
69765         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
69766         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
69767         (main): Call set_program_name.
69769         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
69770         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
69771         (main): Call set_program_name.
69773         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
69774         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
69775         (main): Call set_program_name.
69777         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
69778         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
69779         (main): Call set_program_name.
69781         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
69782         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
69783         (main): Call set_program_name.
69785         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
69786         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
69787         (main): Call set_program_name.
69789         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
69790         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
69791         (main): Call set_program_name.
69793         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
69794         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
69795         (main): Call set_program_name.
69797 2009-01-19  Eric Blake  <ebb9@byu.net>
69799         test-unistd: test previous patch
69800         * tests/test-unistd.c: Test *_FILENO macros.
69802         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
69803         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
69804         Guarantee a definition.
69805         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
69806         * modules/unistd-safer (Depends-on): Add dependency on unistd.
69807         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
69808         * lib/dup-safer.c (STDERR_FILENO): Likewise.
69809         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
69810         Likewise.
69811         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
69812         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
69813         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
69814         Likewise.
69815         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
69816         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
69817         (STDERR_FILENO): Likewise.
69818         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
69819         (STDERR_FILENO): Likewise.
69820         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
69821         (STDERR_FILENO): Likewise.
69822         Reported by Elbert Pol.
69824 2009-01-19  Eric Blake  <ebb9@byu.net>
69826         doc: mention more functions added in cygwin 1.7.0
69827         * doc/posix-functions/abort.texi (abort): Update wording related
69828         to cygwin.
69829         * doc/posix-functions/daylight.texi (daylight): Likewise.
69830         * doc/posix-functions/optarg.texi (optarg): Likewise.
69831         * doc/posix-functions/optarg.texi (opterr): Likewise.
69832         * doc/posix-functions/optarg.texi (optind): Likewise.
69833         * doc/posix-functions/optarg.texi (optopt): Likewise.
69834         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
69835         worked in 1.5.x, and was withdrawn in 1.7.
69836         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
69837         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
69838         cygwin versions.
69839         * doc/posix-functions/perror.texi (perror): Likewise.
69840         * doc/posix-functions/printf.texi (printf): Likewise.
69841         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
69842         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
69843         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
69844         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
69845         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
69846         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
69847         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
69848         Likewise.
69849         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
69850         Likewise.
69851         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
69852         this function.
69853         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
69854         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
69855         Likewise.
69856         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
69857         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
69858         * doc/posix-functions/confstr.texi (confstr): Likewise.
69859         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
69860         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
69861         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
69862         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
69863         * doc/posix-functions/fputws.texi (fputws): Likewise.
69864         * doc/posix-functions/fwide.texi (fwide): Likewise.
69865         * doc/posix-functions/getwc.texi (getwc): Likewise.
69866         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
69867         * doc/posix-functions/putwc.texi (putwc): Likewise.
69868         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
69869         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
69870         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
69871         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
69872         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
69873         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
69874         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
69875         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
69876         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
69877         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
69878         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
69880 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
69882         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
69883         * lib/ioctl.c: Include <sys/ioctl.h>.
69885 2009-01-19  Simon Josefsson  <simon@josefsson.org>
69887         * modules/getdate-tests (Depends-on): Add progname.
69888         * tests/test-getdate.c: Use progname module, to avoid link errors
69889         on non-glibc systems.
69891 2009-01-18  Simon Josefsson  <simon@josefsson.org>
69893         * modules/filenamecat-tests (Depends-on): Add progname.
69894         * modules/fstrcmp-tests (Depends-on): Likewise.
69896         * tests/test-filenamecat.c: Use progname module, to avoid link
69897         errors on non-glibc systems.
69898         * tests/test-fstrcmp.c: Likewise.
69900 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
69902         gettimeofday: avoid warning: nested extern declaration of 'localtime'
69903         * lib/gettimeofday.c: Move extern declaration out of function.
69905 2009-01-18  Bruno Haible  <bruno@clisp.org>
69907         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
69908         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
69909         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
69911 2009-01-18  Bruno Haible  <bruno@clisp.org>
69913         * lib/strftime.c (MEMPCPY): Remove unused macro.
69914         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
69916 2009-01-18  Martin Lambers  <marlam@marlam.de>
69918         New module 'link'.
69919         * lib/unistd.in.h (link): New declaration.
69920         * lib/link.c: New file.
69921         * m4/link.m4: New file.
69922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
69923         HAVE_LINK.
69924         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
69925         * modules/link: New file.
69926         * doc/posix-functions/link.texi: Mention the new module.
69928 2009-01-18  Bruno Haible  <bruno@clisp.org>
69930         * tests/test-avltree_list.c (main): Call set_program_name.
69931         * tests/test-avltree_oset.c (main): Likewise.
69932         * tests/test-obstack-printf.c: Include progname.h.
69933         (main): Call set_program_name.
69934         * tests/test-quotearg.c: Include progname.h.
69935         (main): Call set_program_name.
69936         * tests/test-xmemdup0.c: Include progname.h.
69937         (main): Call set_program_name.
69939 2009-01-18  Bruno Haible  <bruno@clisp.org>
69941         New module 'alphasort'.
69942         * lib/dirent.in.h (alphasort): New declaration.
69943         * lib/alphasort.c: New file, from glibc with modifications.
69944         * m4/alphasort.m4: New file.
69945         * modules/alphasort: New file.
69946         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
69947         HAVE_ALPHASORT.
69948         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
69949         HAVE_ALPHASORT.
69950         * doc/posix-functions/alphasort.texi: Mention the new module and the
69951         portability problems.
69953 2009-01-18  Bruno Haible  <bruno@clisp.org>
69955         New module 'scandir'.
69956         * lib/dirent.in.h (scandir): New declaration.
69957         * lib/scandir.c: New file, from glibc with modifications.
69958         * m4/scandir.m4: New file.
69959         * modules/scandir: New file.
69960         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
69961         HAVE_SCANDIR.
69962         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
69963         HAVE_SCANDIR.
69964         * doc/posix-functions/scandir.texi: Mention the new module and the
69965         portability problems.
69967 2009-01-17  Bruno Haible  <bruno@clisp.org>
69969         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
69970         Update documentation.
69971         (func_remove_suffix): Escape all dots in the suffix. Update
69972         documentation.
69973         (func_filter_filelist): Update documentation.
69974         Reported by Ralf Wildenhues.
69976 2009-01-17  Bruno Haible  <bruno@clisp.org>
69978         * modules/dprintf-posix-tests: New file.
69979         * tests/test-dprintf-posix.sh: New file.
69980         * tests/test-dprintf-posix.c: New file.
69982         New modules 'dprintf', 'dprintf-posix'.
69983         * lib/stdio.in.h (dprintf): New declaration.
69984         * lib/dprintf.c: New file.
69985         * m4/dprintf.m4: New file.
69986         * m4/dprintf-posix.m4: New file.
69987         * modules/dprintf: New file.
69988         * modules/dprintf-posix: New file.
69989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
69990         HAVE_DPRINTF, REPLACE_DPRINTF.
69991         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
69992         HAVE_DPRINTF, REPLACE_DPRINTF.
69993         * doc/posix-functions/dprintf.texi: Mention the new modules.
69995 2009-01-17  Bruno Haible  <bruno@clisp.org>
69997         * modules/vdprintf-posix-tests: New file.
69998         * tests/test-vdprintf-posix.sh: New file.
69999         * tests/test-vdprintf-posix.c: New file.
70001         New modules 'vdprintf', 'vdprintf-posix'.
70002         * lib/stdio.in.h (vdprintf): New declaration.
70003         * lib/vdprintf.c: New file.
70004         * m4/vdprintf.m4: New file.
70005         * m4/vdprintf-posix.m4: New file.
70006         * modules/vdprintf: New file.
70007         * modules/vdprintf-posix: New file.
70008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
70009         HAVE_VDPRINTF, REPLACE_VDPRINTF.
70010         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
70011         HAVE_VDPRINTF, REPLACE_VDPRINTF.
70012         * doc/posix-functions/vdprintf.texi: Mention the new modules.
70014 2009-01-17  Bruno Haible  <bruno@clisp.org>
70016         Fix replacement of fopen on mingw.
70017         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
70018         mingw.
70020 2009-01-17  Bruno Haible  <bruno@clisp.org>
70022         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
70023         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
70025 2009-01-17  Bruno Haible  <bruno@clisp.org>
70027         Avoid test-fflush2.sh failure on mingw.
70028         * tests/test-fflush2.c: Include binary-io.h.
70029         (main): Put standard input into binary mode.
70030         * modules/fflush-tests (Depends-on): Add binary-io.
70032 2009-01-17  Bruno Haible  <bruno@clisp.org>
70034         * lib/wchar.in.h: In another particular situation, include only the
70035         system's <wchar.h> file.
70036         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
70037         Reported by Albert Chin-A-Young <china@thewrittenword.com>
70038         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
70040 2009-01-17  Bruno Haible  <bruno@clisp.org>
70042         Support for stripping executables in --enable-relocatable.
70043         * build-aux/install-reloc: Expect one more argument, or an environment
70044         variable RELOC_STRIP_PROG. If set, strip the destination program and
70045         its wrapper.
70046         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
70047         RELOC_STRIP_PROG.
70048         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
70049         to set RELOCATABLE_STRIP.
70050         * NEWS: Mention the new Makefile requirement.
70052 2009-01-17  Bruno Haible  <bruno@clisp.org>
70054         * build-aux/install-reloc: Remove debugging information left over by
70055         C compiler on MacOS X.
70057 2009-01-17  Bruno Haible  <bruno@clisp.org>
70059         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
70060         * lib/progreloc.c (find_executable): Fix type of pointer passed to
70061         _NSGetExecutablePath.
70063 2009-01-16  Jim Meyering  <meyering@redhat.com>
70065         strerror: avoid warnings about discarding "const"
70066         * lib/strerror.c (rpl_strerror): Instead of returning a const
70067         string from each and every "case", use a variable, and add a single
70068         cast after the switch.
70070 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
70072         * lib/arpa_inet.in.h: Add extern "C" block for C++.
70074 2009-01-16  Bruno Haible  <bruno@clisp.org>
70076         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
70077         array initializer syntax that also works in C++ mode.
70078         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70080 2009-01-16  Jim Meyering  <meyering@redhat.com>
70082         poll: suppress a warning
70083         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
70084         to ignore "...unsigned expression < 0 is always false" warnings.
70086 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
70088         poll: remove declarations of unused variables
70089         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
70090         sockbuf and optlen.
70092 2009-01-15  Bruno Haible  <bruno@clisp.org>
70094         Make fflush-after-ungetc POSIX compliant on BSD systems.
70095         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
70096         (clear_ungetc_buffer): Implement also for other systems.
70097         (rpl_fflush): On glibc systems, invoke
70098         clear_ungetc_buffer_preserving_position. Otherwise, invoke
70099         clear_ungetc_buffer after fetching the stream's position, not before.
70101 2009-01-15  Bruno Haible  <bruno@clisp.org>
70103         Make fflush-after-ungetc POSIX compliant on glibc systems.
70104         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
70105         after ungetc.
70106         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
70107         (rpl_fflush): On glibc systems, simply call the system's fflush
70108         function after clearing the ungetc buffer.
70109         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
70110         Instead, lseek only to the end of file, then use the system's fseeko
70111         for the rest. On glibc systems, reset the EOF indicator bit.
70113 2009-01-15  Jim Meyering  <meyering@redhat.com>
70115         openmp.m4: revert quote-adding change, for portability to older autoconf
70116         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
70117         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
70118         Simon Josefsson noticed the problem when using autoconf-2.61.
70120 2009-01-15  Bruno Haible  <bruno@clisp.org>
70122         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
70123         * tests/test-fflush2.c (ASSERT): Always fail.
70124         (main): Add two tests for fflush() after ungetc(), taking into account
70125         the Austin Group's clarification.
70126         Suggested by Eric Blake.
70128 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
70130         mktime.m4: remove K&R-style function prototypes
70131         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
70132         for the Sun C++ compiler.
70134 2009-01-14  Bruno Haible  <bruno@clisp.org>
70136         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
70137         while including <wchar.h>.
70138         * lib/wchar.in.h: In two particular situations on HP-UX, include only
70139         the system's <wchar.h> file.
70140         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70142 2009-01-14  Bruno Haible  <bruno@clisp.org>
70144         * m4/csharp.m4: Don't mention gettext on the serial number line.
70145         * m4/csharpexec.m4: Likewise.
70146         * m4/eaccess.m4: Likewise.
70147         * m4/javaexec.m4: Likewise.
70148         * m4/sig_atomic_t.m4: Likewise.
70149         * m4/tmpdir.m4: Likewise.
70150         * m4/intldir.m4: Bump gettext version.
70151         * m4/lib-ld.m4: Likewise.
70153 2009-01-14  Bruno Haible  <bruno@clisp.org>
70155         * lib/progname.c (set_program_name): Add more comments.
70156         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
70158 2009-01-14  Simon Josefsson  <simon@josefsson.org>
70160         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
70161         were sys/stat.h does not define it.
70163 2009-01-14  Jim Meyering  <meyering@redhat.com>
70165         many *.m4 files: improve m4 quoting
70166         99% of this change was performed by running the following commands:
70167         git ls-files | grep '\.m4$' | xargs perl -pi \
70168           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
70169           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
70170           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
70171           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
70172         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
70173         The remainder were to add Copyright dates, increment serial numbers,
70174         undo some changes in comments, exclude m4/intl.m4, and add quotes
70175         around the "1" in ",1" where the unusual spacing prohibited the
70176         above regexps from doing the job.  For more details, see
70177         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
70178         * m4/acl.m4: Modified.
70179         * m4/afs.m4: Likewise.
70180         * m4/alloca.m4: Likewise.
70181         * m4/argp.m4: Likewise.
70182         * m4/argz.m4: Likewise.
70183         * m4/atexit.m4: Likewise.
70184         * m4/bison-i18n.m4: Likewise.
70185         * m4/bison.m4: Likewise.
70186         * m4/byteswap.m4: Likewise.
70187         * m4/c-stack.m4: Likewise.
70188         * m4/c-strtod.m4: Likewise.
70189         * m4/calloc.m4: Likewise.
70190         * m4/canonicalize-lgpl.m4: Likewise.
70191         * m4/chown.m4: Likewise.
70192         * m4/clock_time.m4: Likewise.
70193         * m4/codeset.m4: Likewise.
70194         * m4/copy-file.m4: Likewise.
70195         * m4/csharp.m4: Likewise.
70196         * m4/csharpcomp.m4: Likewise.
70197         * m4/csharpexec.m4: Likewise.
70198         * m4/d-ino.m4: Likewise.
70199         * m4/d-type.m4: Likewise.
70200         * m4/dirfd.m4: Likewise.
70201         * m4/double-slash-root.m4: Likewise.
70202         * m4/eaccess.m4: Likewise.
70203         * m4/eealloc.m4: Likewise.
70204         * m4/environ.m4: Likewise.
70205         * m4/errno_h.m4: Likewise.
70206         * m4/euidaccess.m4: Likewise.
70207         * m4/execute.m4: Likewise.
70208         * m4/fatal-signal.m4: Likewise.
70209         * m4/fchdir.m4: Likewise.
70210         * m4/fcntl_h.m4: Likewise.
70211         * m4/fileblocks.m4: Likewise.
70212         * m4/filenamecat.m4: Likewise.
70213         * m4/findprog.m4: Likewise.
70214         * m4/flexmember.m4: Likewise.
70215         * m4/fnmatch.m4: Likewise.
70216         * m4/fopen.m4: Likewise.
70217         * m4/fpending.m4: Likewise.
70218         * m4/fprintf-posix.m4: Likewise.
70219         * m4/free.m4: Likewise.
70220         * m4/frexp.m4: Likewise.
70221         * m4/frexpl.m4: Likewise.
70222         * m4/fsusage.m4: Likewise.
70223         * m4/ftruncate.m4: Likewise.
70224         * m4/gc-camellia.m4: Likewise.
70225         * m4/gc-random.m4: Likewise.
70226         * m4/gc.m4: Likewise.
70227         * m4/getaddrinfo.m4: Likewise.
70228         * m4/getcwd-abort-bug.m4: Likewise.
70229         * m4/getcwd-path-max.m4: Likewise.
70230         * m4/getdate.m4: Likewise.
70231         * m4/getdomainname.m4: Likewise.
70232         * m4/getgroups.m4: Likewise.
70233         * m4/gethostname.m4: Likewise.
70234         * m4/gethrxtime.m4: Likewise.
70235         * m4/getline.m4: Likewise.
70236         * m4/getloadavg.m4: Likewise.
70237         * m4/getndelim2.m4: Likewise.
70238         * m4/getpass.m4: Likewise.
70239         * m4/gettext.m4: Likewise.
70240         * m4/gettime.m4: Likewise.
70241         * m4/gettimeofday.m4: Likewise.
70242         * m4/gnulib-common.m4: Likewise.
70243         * m4/group-member.m4: Likewise.
70244         * m4/host-os.m4: Likewise.
70245         * m4/iconv.m4: Likewise.
70246         * m4/iconv_open.m4: Likewise.
70247         * m4/inet_ntop.m4: Likewise.
70248         * m4/inet_pton.m4: Likewise.
70249         * m4/inline.m4: Likewise.
70250         * m4/intldir.m4: Likewise.
70251         * m4/intlmacosx.m4: Likewise.
70252         * m4/intmax.m4: Likewise.
70253         * m4/intmax_t.m4: Likewise.
70254         * m4/inttypes.m4: Likewise.
70255         * m4/inttypes_h.m4: Likewise.
70256         * m4/inttypes-pri.m4: Likewise.
70257         * m4/isapipe.m4: Likewise.
70258         * m4/isnand.m4: Likewise.
70259         * m4/isnanf.m4: Likewise.
70260         * m4/isnanl.m4: Likewise.
70261         * m4/javacomp.m4: Likewise.
70262         * m4/javaexec.m4: Likewise.
70263         * m4/jm-winsz1.m4: Likewise.
70264         * m4/jm-winsz2.m4: Likewise.
70265         * m4/lchown.m4: Likewise.
70266         * m4/lcmessage.m4: Likewise.
70267         * m4/ldexpl.m4: Likewise.
70268         * m4/lib-ld.m4: Likewise.
70269         * m4/lib-link.m4: Likewise.
70270         * m4/libsigsegv.m4: Likewise.
70271         * m4/link-follow.m4: Likewise.
70272         * m4/localcharset.m4: Likewise.
70273         * m4/locale-fr.m4: Likewise.
70274         * m4/locale-ja.m4: Likewise.
70275         * m4/locale-tr.m4: Likewise.
70276         * m4/locale-zh.m4: Likewise.
70277         * m4/lock.m4: Likewise.
70278         * m4/longlong.m4: Likewise.
70279         * m4/ls-mntd-fs.m4: Likewise.
70280         * m4/lstat.m4: Likewise.
70281         * m4/malloc.m4: Likewise.
70282         * m4/mathl.m4: Likewise.
70283         * m4/mbrtowc.m4: Likewise.
70284         * m4/mbstate_t.m4: Likewise.
70285         * m4/mbswidth.m4: Likewise.
70286         * m4/memchr.m4: Likewise.
70287         * m4/memcmp.m4: Likewise.
70288         * m4/memcpy.m4: Likewise.
70289         * m4/memmem.m4: Likewise.
70290         * m4/memmove.m4: Likewise.
70291         * m4/mempcpy.m4: Likewise.
70292         * m4/memrchr.m4: Likewise.
70293         * m4/memset.m4: Likewise.
70294         * m4/minmax.m4: Likewise.
70295         * m4/mkdir-slash.m4: Likewise.
70296         * m4/mkdtemp.m4: Likewise.
70297         * m4/mktime.m4: Likewise.
70298         * m4/mmap-anon.m4: Likewise.
70299         * m4/mountlist.m4: Likewise.
70300         * m4/nanosleep.m4: Likewise.
70301         * m4/nls.m4: Likewise.
70302         * m4/nocrash.m4: Likewise.
70303         * m4/open.m4: Likewise.
70304         * m4/openat.m4: Likewise.
70305         * m4/openmp.m4: Likewise.
70306         * m4/pathmax.m4: Likewise.
70307         * m4/perl.m4: Likewise.
70308         * m4/physmem.m4: Likewise.
70309         * m4/pipe.m4: Likewise.
70310         * m4/po.m4: Likewise.
70311         * m4/poll.m4: Likewise.
70312         * m4/posixtm.m4: Likewise.
70313         * m4/posixver.m4: Likewise.
70314         * m4/printf-frexp.m4: Likewise.
70315         * m4/printf-frexpl.m4: Likewise.
70316         * m4/printf-posix.m4: Likewise.
70317         * m4/printf-posix-rpl.m4: Likewise.
70318         * m4/printf.m4: Likewise.
70319         * m4/progtest.m4: Likewise.
70320         * m4/putenv.m4: Likewise.
70321         * m4/readline.m4: Likewise.
70322         * m4/readlink.m4: Likewise.
70323         * m4/readutmp.m4: Likewise.
70324         * m4/realloc.m4: Likewise.
70325         * m4/regex.m4: Likewise.
70326         * m4/relocatable.m4: Likewise.
70327         * m4/relocatable-lib.m4: Likewise.
70328         * m4/rename-dest-slash.m4: Likewise.
70329         * m4/rename.m4: Likewise.
70330         * m4/rmdir-errno.m4: Likewise.
70331         * m4/rmdir.m4: Likewise.
70332         * m4/roundf.m4: Likewise.
70333         * m4/roundl.m4: Likewise.
70334         * m4/rpmatch.m4: Likewise.
70335         * m4/save-cwd.m4: Likewise.
70336         * m4/selinux-selinux-h.m4: Likewise.
70337         * m4/setenv.m4: Likewise.
70338         * m4/settime.m4: Likewise.
70339         * m4/sig2str.m4: Likewise.
70340         * m4/sig_atomic_t.m4: Likewise.
70341         * m4/signalblocking.m4: Likewise.
70342         * m4/signbit.m4: Likewise.
70343         * m4/sigpipe.m4: Likewise.
70344         * m4/sockets.m4: Likewise.
70345         * m4/sockpfaf.m4: Likewise.
70346         * m4/st_dm_mode.m4: Likewise.
70347         * m4/stat-time.m4: Likewise.
70348         * m4/stdbool.m4: Likewise.
70349         * m4/stdint.m4: Likewise.
70350         * m4/stdint_h.m4: Likewise.
70351         * m4/stpcpy.m4: Likewise.
70352         * m4/stpncpy.m4: Likewise.
70353         * m4/strcase.m4: Likewise.
70354         * m4/strchrnul.m4: Likewise.
70355         * m4/strcspn.m4: Likewise.
70356         * m4/strdup.m4: Likewise.
70357         * m4/strftime.m4: Likewise.
70358         * m4/strndup.m4: Likewise.
70359         * m4/strnlen.m4: Likewise.
70360         * m4/strpbrk.m4: Likewise.
70361         * m4/strptime.m4: Likewise.
70362         * m4/strsep.m4: Likewise.
70363         * m4/strtod.m4: Likewise.
70364         * m4/strtoimax.m4: Likewise.
70365         * m4/strtok_r.m4: Likewise.
70366         * m4/strtol.m4: Likewise.
70367         * m4/strtoll.m4: Likewise.
70368         * m4/strtoul.m4: Likewise.
70369         * m4/strtoull.m4: Likewise.
70370         * m4/strtoumax.m4: Likewise.
70371         * m4/strverscmp.m4: Likewise.
70372         * m4/threadlib.m4: Likewise.
70373         * m4/timegm.m4: Likewise.
70374         * m4/tm_gmtoff.m4: Likewise.
70375         * m4/tmpdir.m4: Likewise.
70376         * m4/tmpfile.m4: Likewise.
70377         * m4/tzset.m4: Likewise.
70378         * m4/uintmax_t.m4: Likewise.
70379         * m4/unlinkdir.m4: Likewise.
70380         * m4/unlocked-io.m4: Likewise.
70381         * m4/uptime.m4: Likewise.
70382         * m4/userspec.m4: Likewise.
70383         * m4/utimbuf.m4: Likewise.
70384         * m4/utime.m4: Likewise.
70385         * m4/utimes-null.m4: Likewise.
70386         * m4/utimes.m4: Likewise.
70387         * m4/vararrays.m4: Likewise.
70388         * m4/vasnprintf.m4: Likewise.
70389         * m4/vfprintf-posix.m4: Likewise.
70390         * m4/vprintf-posix.m4: Likewise.
70391         * m4/wait-process.m4: Likewise.
70392         * m4/wchar_t.m4: Likewise.
70393         * m4/wint_t.m4: Likewise.
70394         * m4/write-any-file.m4: Likewise.
70395         * m4/yield.m4: Likewise.
70397 2009-01-13  Bruno Haible  <bruno@clisp.org>
70399         Avoid test-copy-file.sh failures when ACL support insufficient.
70400         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
70401         TESTS_ENVIRONMENT.
70402         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
70403         Reported by Jim Meyering.
70405 2009-01-13  Bruno Haible  <bruno@clisp.org>
70407         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
70408         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
70409         * modules/unistdio/u8-printf-parse (Files): Likewise.
70410         * modules/unistdio/u32-printf-parse (Files): Likewise.
70411         * modules/unistdio/ulc-printf-parse (Files): Likewise.
70413 2009-01-13  Simon Josefsson  <simon@josefsson.org>
70415         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
70416         and m4/inttypes_h.m4 too.
70418 2009-01-12  Eric Blake  <ebb9@byu.net>
70420         tests: IRIX 6.2 cc can't compile -0.0 into .data
70421         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
70422         rather than at compile-time.
70423         * tests/test-floorl.c (minus_zero): Likewise.
70424         * tests/test-frexpl.c (minus_zero): Likewise.
70425         * tests/test-isnan.c (minus_zerol): Likewise.
70426         * tests/test-isnanl.h (minus_zero): Likewise.
70427         * tests/test-ldexpl.c (minus_zero): Likewise.
70428         * tests/test-roundl.c (minus_zero): Likewise.
70429         * tests/test-signbit.c (minus_zerol): Likewise.
70430         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
70431         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
70432         * tests/test-truncl.c (minus_zero): Likewise.
70433         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
70434         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
70435         Reported by Tom G. Christensen and Nelson H. F. Beebe.
70437 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
70439         regex: fix glibc bug 9697
70440         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
70441         handling.
70443 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
70445         regex: fix glibc bug 697
70446         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
70447         being NULL also if there are no backreferences.
70449 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
70451         regex: merge glibc changes
70452         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
70453         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
70454         re_string_skip_chars, re_string_reconstruct): Likewise.
70455         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
70457 2009-01-07  Jim Meyering  <meyering@redhat.com>
70459         poll: filter through cppi
70460         * lib/poll.c: Indent cpp directives to reflect nesting.
70462 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
70464         poll: don't return uninitialized
70465         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
70467 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
70469         avoid compile failure on AIX 6.1
70470         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
70471         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
70473 2009-01-04  Jim Meyering  <meyering@redhat.com>
70475         remove duplicate inclusion of <stdio.h>
70476         * tests/test-fprintf-posix.c: Likewise.
70477         * tests/test-printf-posix.c: Likewise.
70478         * tests/test-snprintf-posix.c: Likewise.
70479         * tests/test-sprintf-posix.c: Likewise.
70480         * tests/test-vasprintf-posix.c: Likewise.
70481         * tests/test-vfprintf-posix.c: Likewise.
70482         * tests/test-vprintf-posix.c: Likewise.
70483         * tests/test-vsnprintf-posix.c: Likewise.
70484         * tests/test-vsprintf-posix.c: Likewise.
70486 2009-01-03  Jim Meyering  <meyering@redhat.com>
70488         gnulib-tool: fix sed-based filtering
70489         * gnulib-tool (func_filter_filelist): Remove extra backslash
70490         in sed_fff_filter definition.
70492 2009-01-02  Jim Meyering  <meyering@redhat.com>
70494         strftime: avoid compilation failure on Solaris 2.6
70495         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
70496         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
70497         Don't #define mbrlen or mbsinit, since now they're guaranteed to
70498         be available.  Reported by Tom G. Christensen.  Details in
70499         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
70501 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70502             Bruno Haible  <bruno@clisp.org>
70504         Speed up gnulib-tool by doing more string processing through shell
70505         built-ins.
70506         * gnulib-tool (fast_func_append): New variable.
70507         (func_remove_prefix, func_remove_suffix): New functions.
70508         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
70509         (func_filter_filelist): New function.
70510         (func_get_dependencies): Use func_remove_suffix instead of sed.
70511         (func_get_automake_snippet): Use func_filter_filelist instead of a
70512         subshell and sed invocation.
70514 2009-01-01  Bruno Haible  <bruno@clisp.org>
70516         Fix a security bug.
70517         * gnulib-tool (func_import, import, update): Don't allow the characters
70518         '"', '$', '`', '\' in macro arguments that become part of commands that
70519         are evaluated.
70521 2009-01-01  Bruno Haible  <bruno@clisp.org>
70523         * gnulib-tool (func_reset_sigpipe): Add more comments.
70525 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70527         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
70528         func_emit_tests_Makefile_am, func_import): Abort loops early if we
70529         already know the answer.
70531 2009-01-01  Jim Meyering  <meyering@redhat.com>
70533         * lib/version-etc.c (version_etc_va): Update copyright year.
70535 2008-12-30  Bruno Haible  <bruno@clisp.org>
70537         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
70538         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
70539         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
70541 2008-12-29  Eric Blake  <ebb9@byu.net>
70543         multiarch: avoid autoconf AC_REQUIRE bug
70544         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
70545         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
70546         2.63 and older.
70547         Reported by Bruno Haible, and analyzed in
70548         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
70550 2008-12-29  Bruno Haible  <bruno@clisp.org>
70552         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
70553         files in subdirectories correctly.
70554         Reported by Ralf Wildenhues.
70556 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70558         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
70559         rather than 'join FILE -', for Solaris join.
70561 2008-12-29  Bruno Haible  <bruno@clisp.org>
70563         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
70564         quoting.
70565         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
70566         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
70567         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
70568         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
70569         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
70570         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
70571         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
70572         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
70573         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70574         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
70575         * m4/nls.m4 (AM_NLS): Likewise.
70576         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
70577         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
70578         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
70579         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
70580         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
70581         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
70582         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
70583         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
70584         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
70585         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70586         * m4/xsize.m4 (gl_XSIZE): Likewise.
70587         Suggested by Jim Meyering.
70589 2008-11-17  Bruce Korb  <bkorb@gnu.org>
70591         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
70592         * lib/parse-duration.c: use a switch instead of cascading if's.
70594 2008-12-29  Eric Blake  <ebb9@byu.net>
70596         wchar.h: supply WEOF on Irix 5.3
70597         * lib/wchar.in.h (wint_t): Also supply WEOF.
70598         * lib/wctype.in.h (wint_t): Likewise.
70599         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
70600         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
70601         Reported by Tom G. Christensen.
70603 2008-12-26  Bruno Haible  <bruno@clisp.org>
70605         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
70606         i486, i586, i686.
70608 2008-12-26  Bruno Haible  <bruno@clisp.org>
70610         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
70612 2008-12-26  Bruno Haible  <bruno@clisp.org>
70614         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
70615         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
70616         not __STDC_CONSTANT_MACROS.
70617         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
70619 2008-12-25  Bruno Haible  <bruno@clisp.org>
70621         Add support for universal builds to vasnprintf.
70622         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
70623         universal builds, guess no.
70624         * modules/vasnprintf-posix (Depends-on): Add multiarch.
70625         * modules/vasprintf-posix (Depends-on): Likewise.
70626         * modules/fprintf-posix (Depends-on): Likewise.
70627         * modules/vfprintf-posix (Depends-on): Likewise.
70628         * modules/snprintf-posix (Depends-on): Likewise.
70629         * modules/vsnprintf-posix (Depends-on): Likewise.
70630         * modules/sprintf-posix (Depends-on): Likewise.
70631         * modules/vsprintf-posix (Depends-on): Likewise.
70632         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
70633         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
70634         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
70635         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
70636         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
70637         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
70638         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
70640         Add support for universal builds to <inttypes.h>.
70641         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
70642         _SCNu64_PREFIX): In Apple
70643         universal builds, define directly, using _LP64.
70644         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
70645         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
70646         * modules/inttypes (Depends-on): Add multiarch.
70647         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
70649         Add support for universal builds to <stdint.h>.
70650         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
70651         universal builds, define directly, using _LP64.
70652         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
70653         Apple universal builds, don't test for the size and suffix of ptrdiff_t
70654         and size_t.
70655         * modules/stdint (Depends-on): Add multiarch.
70656         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
70658         New module 'multiarch'.
70659         * modules/multiarch: New file.
70660         * m4/multiarch.m4: New file.
70662 2008-12-25  Bruno Haible  <bruno@clisp.org>
70664         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
70666 2008-12-25  Bruno Haible  <bruno@clisp.org>
70668         * modules/btowc (License): Relicense under LGPLv2+.
70669         * modules/mbsinit (License): Likewise.
70670         * modules/mbrtowc (License): Likewise.
70671         * modules/wcrtomb (License): Likewise.
70672         * modules/streq (License): Likewise.
70673         Reported by David Lutterkort <lutter@redhat.com>.
70675 2008-12-23  Bruno Haible  <bruno@clisp.org>
70677         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
70679 2008-12-23  Bruno Haible  <bruno@clisp.org>
70681         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
70682         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
70683         GETADDRINFO_LIB, not in LIBS.
70684         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
70685         * modules/canon-host (Link): Likewise.
70686         * NEWS: Mention the change.
70687         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
70688         GETADDRINFO_LIB.
70690 2008-12-22  Bruno Haible  <bruno@clisp.org>
70692         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
70693         * doc/posix-functions/iswalpha_l.texi: Likewise.
70694         * doc/posix-functions/iswblank_l.texi: Likewise.
70695         * doc/posix-functions/iswcntrl_l.texi: Likewise.
70696         * doc/posix-functions/iswctype_l.texi: Likewise.
70697         * doc/posix-functions/iswdigit_l.texi: Likewise.
70698         * doc/posix-functions/iswgraph_l.texi: Likewise.
70699         * doc/posix-functions/iswlower_l.texi: Likewise.
70700         * doc/posix-functions/iswprint_l.texi: Likewise.
70701         * doc/posix-functions/iswpunct_l.texi: Likewise.
70702         * doc/posix-functions/iswspace_l.texi: Likewise.
70703         * doc/posix-functions/iswupper_l.texi: Likewise.
70704         * doc/posix-functions/iswxdigit_l.texi: Likewise.
70705         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
70706         * doc/posix-functions/open_wmemstream.texi: Likewise.
70707         * doc/posix-functions/swscanf.texi: Likewise.
70708         * doc/posix-functions/towctrans_l.texi: Likewise.
70709         * doc/posix-functions/towlower.texi: Likewise.
70710         * doc/posix-functions/towlower_l.texi: Likewise.
70711         * doc/posix-functions/towupper.texi: Likewise.
70712         * doc/posix-functions/towupper_l.texi: Likewise.
70713         * doc/posix-functions/vfwprintf.texi: Likewise.
70714         * doc/posix-functions/vfwscanf.texi: Likewise.
70715         * doc/posix-functions/vswscanf.texi: Likewise.
70716         * doc/posix-functions/vwprintf.texi: Likewise.
70717         * doc/posix-functions/vwscanf.texi: Likewise.
70718         * doc/posix-functions/wcpcpy.texi: Likewise.
70719         * doc/posix-functions/wcpncpy.texi: Likewise.
70720         * doc/posix-functions/wcscasecmp.texi: Likewise.
70721         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
70722         * doc/posix-functions/wcscoll_l.texi: Likewise.
70723         * doc/posix-functions/wcsdup.texi: Likewise.
70724         * doc/posix-functions/wcsncasecmp.texi: Likewise.
70725         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
70726         * doc/posix-functions/wcsnlen.texi: Likewise.
70727         * doc/posix-functions/wcsnrtombs.texi: Likewise.
70728         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
70729         * doc/posix-functions/wctrans_l.texi: Likewise.
70730         * doc/posix-functions/wctype_l.texi: Likewise.
70731         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
70732         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
70733         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
70734         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
70735         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
70736         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
70737         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
70738         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
70739         * doc/glibc-functions/wcschrnul.texi: Likewise.
70740         * doc/glibc-functions/wcsftime_l.texi: Likewise.
70741         * doc/glibc-functions/wcstod_l.texi: Likewise.
70742         * doc/glibc-functions/wcstof_l.texi: Likewise.
70743         * doc/glibc-functions/wcstol_l.texi: Likewise.
70744         * doc/glibc-functions/wcstold_l.texi: Likewise.
70745         * doc/glibc-functions/wcstoll_l.texi: Likewise.
70746         * doc/glibc-functions/wcstoq.texi: Likewise.
70747         * doc/glibc-functions/wcstoul_l.texi: Likewise.
70748         * doc/glibc-functions/wcstoull_l.texi: Likewise.
70749         * doc/glibc-functions/wcstouq.texi: Likewise.
70750         * doc/glibc-functions/wmempcpy.texi: Likewise.
70752 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
70753             Eric Blake  <ebb9@byu.net>
70754             Paolo Bonzini  <bonzini@gnu.org>
70755             Bruno Haible  <bruno@clisp.org>
70757         Make c-stack work on Haiku.
70758         * lib/c-stack.c (SA_ONSTACK): Define fallback.
70759         (c_stack_action): Use SA_ONSTACK flag.
70761 2008-12-22  Bruno Haible  <bruno@clisp.org>
70763         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
70765 2008-12-22  Bruno Haible  <bruno@clisp.org>
70767         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
70768         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
70769         being overridden.
70770         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
70771         New macros.
70772         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
70773         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
70774         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
70775         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
70777 2008-12-22  Bruno Haible  <bruno@clisp.org>
70779         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
70780         from test code.
70782 2008-12-22  Eric Blake  <ebb9@byu.net>
70784         Avoid gcc warnings on cygwin.
70785         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
70786         Avoid unused variable.
70787         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
70788         Likewise.
70790 2008-12-22  Bruno Haible  <bruno@clisp.org>
70792         Remove HAVE_MBRTOWC conditionals.
70793         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
70794         (mbscasecmp): Assume mbrtowc function.
70795         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
70796         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
70797         * lib/mbschr.c: Include mbuiter.h unconditionally.
70798         (mbschr): Assume mbrtowc function.
70799         * lib/mbscspn.c: Include mbuiter.h unconditionally.
70800         (mbscspn): Assume mbrtowc function.
70801         * lib/mbslen.c: Include mbuiter.h unconditionally.
70802         (mbslen): Assume mbrtowc function.
70803         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
70804         (mbsncasecmp): Assume mbrtowc function.
70805         * lib/mbsnlen.c: Include mbiter.h unconditionally.
70806         (mbsnlen): Assume mbrtowc function.
70807         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
70808         (mbspbrk): Assume mbrtowc function.
70809         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
70810         (mbspcasecmp): Assume mbrtowc function.
70811         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
70812         (mbsrchr): Assume mbrtowc function.
70813         * lib/mbssep.c: Include mbuiter.h unconditionally.
70814         (mbssep): Assume mbrtowc function.
70815         * lib/mbsspn.c: Include mbuiter.h unconditionally.
70816         (mbsspn): Assume mbrtowc function.
70817         * lib/mbsstr.c: Include mbuiter.h unconditionally.
70818         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
70819         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
70820         (mbstok_r): Assume mbrtowc function.
70821         * lib/propername.c: Include mbuiter.h unconditionally.
70822         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
70823         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
70824         (trim2): Assume mbrtowc function.
70825         * lib/mbswidth.c (mbsinit): Remove fallback definition.
70826         (mbsnwidth): Assume mbrtowc function.
70827         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
70828         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
70829         fallback definitions.
70830         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
70832 2008-12-22  Bruno Haible  <bruno@clisp.org>
70834         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
70836 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
70838         * modules/regex: Request emulations for the mb*/wc* functions we need.
70839         * m4/regex.m4: Don't look for those functions here.
70840         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
70842 2008-12-22  Bruno Haible  <bruno@clisp.org>
70844         * modules/fnmatch (Depends-on): Remove duplicated dependency.
70846 2008-12-21  Bruno Haible  <bruno@clisp.org>
70848         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
70849         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
70850         (Include): Remove conditionalization.
70851         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
70852         (Include): Remove conditionalization.
70853         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
70854         (Include): Remove conditionalization.
70855         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
70856         * m4/mbfile.m4 (gl_MBFILE): Likewise.
70857         * NEWS: Mention the change.
70858         Reported by Alan Hourihane <alanh@fairlite.co.uk>
70859         via Sergey Poznyakoff <gray@gnu.org.ua>.
70861 2008-12-21  Bruno Haible  <bruno@clisp.org>
70863         * MODULES.html.sh (Extended multibyte and wide character utilities
70864         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
70865         wcrtomb, wcsrtombs.
70866         (Support for systems lacking POSIX:2008): Add accept, bind, close,
70867         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
70868         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
70869         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
70871 2008-12-21  Bruno Haible  <bruno@clisp.org>
70873         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
70875 2008-12-21  Bruno Haible  <bruno@clisp.org>
70877         * modules/wcsnrtombs-tests: New file.
70878         * tests/test-wcsnrtombs1.sh: New file.
70879         * tests/test-wcsnrtombs2.sh: New file.
70880         * tests/test-wcsnrtombs3.sh: New file.
70881         * tests/test-wcsnrtombs4.sh: New file.
70882         * tests/test-wcsnrtombs.c: New file.
70884         New module 'wcsnrtombs'.
70885         * lib/wchar.in.h (wcsnrtombs): New declaration.
70886         * lib/wcsnrtombs.c: New file.
70887         * lib/wcsrtombs-state.c: New file.
70888         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
70889         (internal_state): Remove variable.
70890         * m4/wcsnrtombs.m4: New file.
70891         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
70892         compilation units.
70893         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
70894         HAVE_WCSNRTOMBS.
70895         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
70896         HAVE_WCSNRTOMBS.
70897         * modules/wcsnrtombs: New file.
70898         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
70899         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
70901 2008-12-21  Bruno Haible  <bruno@clisp.org>
70903         * modules/wcsrtombs-tests: New file.
70904         * tests/test-wcsrtombs1.sh: New file.
70905         * tests/test-wcsrtombs2.sh: New file.
70906         * tests/test-wcsrtombs3.sh: New file.
70907         * tests/test-wcsrtombs4.sh: New file.
70908         * tests/test-wcsrtombs.c: New file.
70910         New module 'wcsrtombs'.
70911         * lib/wchar.in.h (wcsrtombs): New declaration.
70912         * lib/wcsrtombs.c: New file.
70913         * m4/wcsrtombs.m4: New file.
70914         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
70915         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
70916         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
70917         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
70918         * modules/wcsrtombs: New file.
70919         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
70920         bugs.
70922 2008-12-21  Bruno Haible  <bruno@clisp.org>
70924         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
70925         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
70926         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
70927         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
70928         if not correct.
70929         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
70930         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
70931         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
70932         m4/locale-zh.m4, m4/codeset.m4.
70933         * doc/posix-functions/wcrtomb.texi: Document the bug.
70935 2008-12-21  Bruno Haible  <bruno@clisp.org>
70937         Work around a btowc() bug on IRIX 6.5.
70938         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
70939         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
70940         REPLACE_WTOBC if not.
70941         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
70942         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
70943         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
70945 2008-12-21  Bruno Haible  <bruno@clisp.org>
70947         * modules/wcrtomb-tests: New file.
70948         * tests/test-wcrtomb.sh: New file.
70949         * tests/test-wcrtomb.c: New file.
70951         New module 'wcrtomb'.
70952         * lib/wchar.in.h (wcrtomb): New declaration.
70953         * lib/wcrtomb.c: New file.
70954         * m4/wcrtomb.m4: New file.
70955         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
70956         HAVE_WCRTOMB.
70957         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
70958         HAVE_WCRTOMB.
70959         * modules/wcrtomb: New file.
70960         * doc/posix-functions/wcrtomb.texi: Mention the new module.
70962 2008-12-21  Bruno Haible  <bruno@clisp.org>
70964         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
70965         * modules/mbsrtowcs (Files): Likewise.
70966         * modules/wctob (Files): Likewise.
70967         * modules/c-strcase-tests (Files): Likewise.
70968         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
70969         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
70970         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
70971         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
70972         * modules/vasnprintf-posix-tests (Files): Likewise.
70974 2008-12-21  William Pursell  <bill.pursell@gmail.com>
70976         gitlog-to-changelog: pass all command-line arguments to git-log
70977         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
70978         it is sometimes convenient to filter the commits in various ways.
70979         gitlog-to-changelog only allows --since to specify a start date,
70980         but git-log itself supports many other filtering mechanisms.
70981         At the moment, I want to filter by branch name.  Rather than
70982         adding a --branch option to gitlog-to-changelog, it seems more
70983         flexible to simply pass all options directly to git-log and let
70984         git do the work.  Notice that this effectively makes --since a
70985         redundant option for gitlog-to-changelog, but removing it would
70986         require current usage to change since calls would then require
70987         an additional '--'.
70989 2008-12-21  Bruno Haible  <bruno@clisp.org>
70991         * modules/mbsnrtowcs-tests: New file.
70992         * tests/test-mbsnrtowcs1.sh: New file.
70993         * tests/test-mbsnrtowcs2.sh: New file.
70994         * tests/test-mbsnrtowcs3.sh: New file.
70995         * tests/test-mbsnrtowcs4.sh: New file.
70996         * tests/test-mbsnrtowcs.c: New file.
70998         New module 'mbsnrtowcs'.
70999         * lib/wchar.in.h (mbsnrtowcs): New declaration.
71000         * lib/mbsnrtowcs.c: New file.
71001         * lib/mbsrtowcs-state.c: New file.
71002         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
71003         (internal_state): Remove variable.
71004         * m4/mbsnrtowcs.m4: New file.
71005         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
71006         compilation units.
71007         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
71008         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
71009         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
71010         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
71011         * modules/mbsnrtowcs: New file.
71012         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
71013         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
71014         portability problem.
71016 2008-12-21  Bruno Haible  <bruno@clisp.org>
71018         Work around mbsrtowcs bug.
71019         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
71020         (gl_FUNC_MBSRTOWCS): Invoke it.
71021         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
71022         m4/locale-zh.m4.
71023         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
71025 2008-12-21  Bruno Haible  <bruno@clisp.org>
71027         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
71029 2008-12-21  Bruno Haible  <bruno@clisp.org>
71031         Update doc for AIX.
71032         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
71033         16-bit wchar_t type.
71034         * doc/posix-functions/btowc.texi: Likewise.
71035         * doc/posix-functions/fgetwc.texi: Likewise.
71036         * doc/posix-functions/fgetws.texi: Likewise.
71037         * doc/posix-functions/fputwc.texi: Likewise.
71038         * doc/posix-functions/fputws.texi: Likewise.
71039         * doc/posix-functions/fwide.texi: Likewise.
71040         * doc/posix-functions/fwprintf.texi: Likewise.
71041         * doc/posix-functions/fwscanf.texi: Likewise.
71042         * doc/posix-functions/getwchar.texi: Likewise.
71043         * doc/posix-functions/getwc.texi: Likewise.
71044         * doc/posix-functions/iswalnum.texi: Likewise.
71045         * doc/posix-functions/iswalpha.texi: Likewise.
71046         * doc/posix-functions/iswblank.texi: Likewise.
71047         * doc/posix-functions/iswcntrl.texi: Likewise.
71048         * doc/posix-functions/iswctype.texi: Likewise.
71049         * doc/posix-functions/iswdigit.texi: Likewise.
71050         * doc/posix-functions/iswgraph.texi: Likewise.
71051         * doc/posix-functions/iswlower.texi: Likewise.
71052         * doc/posix-functions/iswprint.texi: Likewise.
71053         * doc/posix-functions/iswpunct.texi: Likewise.
71054         * doc/posix-functions/iswspace.texi: Likewise.
71055         * doc/posix-functions/iswupper.texi: Likewise.
71056         * doc/posix-functions/iswxdigit.texi: Likewise.
71057         * doc/posix-functions/mbrtowc.texi: Likewise.
71058         * doc/posix-functions/mbsrtowcs.texi: Likewise.
71059         * doc/posix-functions/mbstowcs.texi: Likewise.
71060         * doc/posix-functions/mbtowc.texi: Likewise.
71061         * doc/posix-functions/putwchar.texi: Likewise.
71062         * doc/posix-functions/putwc.texi: Likewise.
71063         * doc/posix-functions/swprintf.texi: Likewise.
71064         * doc/posix-functions/tolower.texi: Likewise.
71065         * doc/posix-functions/toupper.texi: Likewise.
71066         * doc/posix-functions/towctrans.texi: Likewise.
71067         * doc/posix-functions/ungetwc.texi: Likewise.
71068         * doc/posix-functions/vswprintf.texi: Likewise.
71069         * doc/posix-functions/wcrtomb.texi: Likewise.
71070         * doc/posix-functions/wcscat.texi: Likewise.
71071         * doc/posix-functions/wcschr.texi: Likewise.
71072         * doc/posix-functions/wcscmp.texi: Likewise.
71073         * doc/posix-functions/wcscoll.texi: Likewise.
71074         * doc/posix-functions/wcscpy.texi: Likewise.
71075         * doc/posix-functions/wcscspn.texi: Likewise.
71076         * doc/posix-functions/wcsftime.texi: Likewise.
71077         * doc/posix-functions/wcslen.texi: Likewise.
71078         * doc/posix-functions/wcsncat.texi: Likewise.
71079         * doc/posix-functions/wcsncmp.texi: Likewise.
71080         * doc/posix-functions/wcsncpy.texi: Likewise.
71081         * doc/posix-functions/wcspbrk.texi: Likewise.
71082         * doc/posix-functions/wcsrchr.texi: Likewise.
71083         * doc/posix-functions/wcsrtombs.texi: Likewise.
71084         * doc/posix-functions/wcsspn.texi: Likewise.
71085         * doc/posix-functions/wcsstr.texi: Likewise.
71086         * doc/posix-functions/wcstod.texi: Likewise.
71087         * doc/posix-functions/wcstof.texi: Likewise.
71088         * doc/posix-functions/wcstoimax.texi: Likewise.
71089         * doc/posix-functions/wcstok.texi: Likewise.
71090         * doc/posix-functions/wcstold.texi: Likewise.
71091         * doc/posix-functions/wcstoll.texi: Likewise.
71092         * doc/posix-functions/wcstol.texi: Likewise.
71093         * doc/posix-functions/wcstombs.texi: Likewise.
71094         * doc/posix-functions/wcstoull.texi: Likewise.
71095         * doc/posix-functions/wcstoul.texi: Likewise.
71096         * doc/posix-functions/wcstoumax.texi: Likewise.
71097         * doc/posix-functions/wcswidth.texi: Likewise.
71098         * doc/posix-functions/wcsxfrm.texi: Likewise.
71099         * doc/posix-functions/wctob.texi: Likewise.
71100         * doc/posix-functions/wctomb.texi: Likewise.
71101         * doc/posix-functions/wctrans.texi: Likewise.
71102         * doc/posix-functions/wctype.texi: Likewise.
71103         * doc/posix-functions/wcwidth.texi: Likewise.
71104         * doc/posix-functions/wmemchr.texi: Likewise.
71105         * doc/posix-functions/wmemcmp.texi: Likewise.
71106         * doc/posix-functions/wmemcpy.texi: Likewise.
71107         * doc/posix-functions/wmemmove.texi: Likewise.
71108         * doc/posix-functions/wmemset.texi: Likewise.
71109         * doc/posix-functions/wprintf.texi: Likewise.
71110         * doc/posix-functions/wscanf.texi: Likewise.
71112 2008-12-21  Bruno Haible  <bruno@clisp.org>
71114         Update doc for HP-UX 11.11.
71115         * doc/posix-functions/btowc.texi: Clarify that the function is missing
71116         in HP-UX version 11.00, not in all versions of HP-UX 11.
71117         * doc/posix-functions/fwide.texi: Likewise.
71118         * doc/posix-functions/fwprintf.texi: Likewise.
71119         * doc/posix-functions/fwscanf.texi: Likewise.
71120         * doc/posix-functions/inet_ntop.texi: Likewise.
71121         * doc/posix-functions/inet_pton.texi: Likewise.
71122         * doc/posix-functions/mbrlen.texi: Likewise.
71123         * doc/posix-functions/mbrtowc.texi: Likewise.
71124         * doc/posix-functions/mbsinit.texi: Likewise.
71125         * doc/posix-functions/mbsrtowcs.texi: Likewise.
71126         * doc/posix-functions/swprintf.texi: Likewise.
71127         * doc/posix-functions/swscanf.texi: Likewise.
71128         * doc/posix-functions/towctrans.texi: Likewise.
71129         * doc/posix-functions/vfwprintf.texi: Likewise.
71130         * doc/posix-functions/vswprintf.texi: Likewise.
71131         * doc/posix-functions/vwprintf.texi: Likewise.
71132         * doc/posix-functions/wcrtomb.texi: Likewise.
71133         * doc/posix-functions/wcsrtombs.texi: Likewise.
71134         * doc/posix-functions/wcsstr.texi: Likewise.
71135         * doc/posix-functions/wctob.texi: Likewise.
71136         * doc/posix-functions/wctrans.texi: Likewise.
71137         * doc/posix-functions/wmemchr.texi: Likewise.
71138         * doc/posix-functions/wmemcmp.texi: Likewise.
71139         * doc/posix-functions/wmemcpy.texi: Likewise.
71140         * doc/posix-functions/wmemmove.texi: Likewise.
71141         * doc/posix-functions/wmemset.texi: Likewise.
71142         * doc/posix-functions/wprintf.texi: Likewise.
71143         * doc/posix-functions/wscanf.texi: Likewise.
71145 2008-12-21  Bruno Haible  <bruno@clisp.org>
71147         Work around a portability problem.
71148         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
71149         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
71151 2008-12-20  Bruno Haible  <bruno@clisp.org>
71153         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
71154         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
71155         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
71156         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
71157         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
71159         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
71160         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
71161         set.
71162         (GNULIB_defined_mbstate_t): New macro.
71163         (mbsinit): Redefine if REPLACE_MBSINIT is set.
71164         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
71165         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
71166         reuses the system's mbrtowc function but works around the bugs.
71167         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
71168         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
71169         macros.
71170         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
71171         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
71172         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
71173         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
71174         REPLACE_MBSINIT if mbsinit needs to be overridden.
71175         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
71176         REPLACE_MBSINIT, REPLACE_MBRTOWC.
71177         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
71178         REPLACE_MBSINIT, REPLACE_MBRTOWC.
71179         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
71180         m4/locale-zh.m4.
71181         (Depends): Add mbsinit.
71182         * modules/mbsinit (Depends): Add mbrtowc.
71183         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
71185 2008-12-20  Bruno Haible  <bruno@clisp.org>
71187         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
71188         so that there are no conversion errors on AIX.
71189         * tests/test-mbsrtowcs.c (main): LIkewise.
71191 2008-12-20  Bruno Haible  <bruno@clisp.org>
71193         Work around wctob bug on Solaris <= 9.
71194         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
71195         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
71196         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
71197         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
71198         * modules/wctob (Files): Add m4/locale-fr.m4.
71199         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
71201 2008-12-20  Bruno Haible  <bruno@clisp.org>
71203         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
71204         /dev/null.
71205         * tests/test-select-in.sh: Likewise.
71206         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
71208 2008-12-20  Bruno Haible  <bruno@clisp.org>
71210         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
71211         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
71212         Cygwin 1.5.x.
71214 2008-12-20  Bruno Haible  <bruno@clisp.org>
71216         Ensure mbstate_t is defined on HP-UX 11.11.
71217         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
71218         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
71219         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
71220         AC_USE_SYSTEM_EXTENSIONS.
71221         * modules/fnmatch (Depends-on): Add extensions.
71222         * modules/mbrlen (Depends-on): Likewise.
71223         * modules/mbrtowc (Depends-on): Likewise.
71224         * modules/mbsinit (Depends-on): Likewise.
71225         * modules/mbsrtowcs (Depends-on): Likewise.
71226         * modules/mbswidth (Depends-on): Likewise.
71227         * modules/quotearg (Depends-on): Likewise.
71228         * modules/strftime (Depends-on): Likewise.
71230 2008-12-20  Bruno Haible  <bruno@clisp.org>
71232         Ensure wctob is declared on IRIX 6.5.
71233         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
71234         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
71235         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
71236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
71237         of HAVE_WCTOB.
71238         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
71239         HAVE_WCTOB.
71240         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
71242 2008-12-19  Bruno Haible  <bruno@clisp.org>
71244         * modules/mbsrtowcs-tests: New file.
71245         * tests/test-mbsrtowcs1.sh: New file.
71246         * tests/test-mbsrtowcs2.sh: New file.
71247         * tests/test-mbsrtowcs3.sh: New file.
71248         * tests/test-mbsrtowcs4.sh: New file.
71249         * tests/test-mbsrtowcs.c: New file.
71251         New module 'mbsrtowcs'.
71252         * lib/wchar.in.h (mbsrtowcs): New declaration.
71253         * lib/mbsrtowcs.c: New file.
71254         * m4/mbsrtowcs.m4: New file.
71255         * modules/mbsrtowcs: New file.
71256         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
71257         HAVE_MBSRTOWCS.
71258         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
71259         HAVE_MBSRTOWCS.
71260         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
71262 2008-12-19  Bruno Haible  <bruno@clisp.org>
71264         New module 'mbrlen'.
71265         * lib/wchar.in.h (mbrlen): New declaration.
71266         * lib/mbrlen.c: New file.
71267         * m4/mbrlen.m4: New file.
71268         * modules/mbrlen: New file.
71269         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
71270         HAVE_MBRLEN.
71271         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
71272         HAVE_MBRLEN.
71273         * doc/posix-functions/mbrlen.texi: Document the new module.
71275 2008-12-19  Bruno Haible  <bruno@clisp.org>
71277         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
71278         * modules/mbrtowc (Depends-on): Add verify.
71279         Suggested by Paul Eggert.
71281 2008-12-18  Bruno Haible  <bruno@clisp.org>
71283         * modules/mbsinit-tests: New file.
71284         * tests/test-mbsinit.sh: New file.
71285         * tests/test-mbsinit.c: New file.
71287 2008-12-18  Bruno Haible  <bruno@clisp.org>
71289         * modules/mbrtowc-tests: New file.
71290         * tests/test-mbrtowc1.sh: New file.
71291         * tests/test-mbrtowc2.sh: New file.
71292         * tests/test-mbrtowc3.sh: New file.
71293         * tests/test-mbrtowc4.sh: New file.
71294         * tests/test-mbrtowc.c: New file.
71296         New module 'mbrtowc'.
71297         * lib/wchar.in.h (mbstate_t): Override when the system does not have
71298         mbsinit and mbrtowc.
71299         (mbrtowc): New declaration.
71300         * lib/mbrtowc.c: New file.
71301         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
71302         * modules/mbrtowc: New file.
71303         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
71304         HAVE_MBRTOWC.
71305         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
71306         HAVE_MBRTOWC.
71307         * doc/posix-functions/mbrtowc.texi: Document the new module.
71309 2008-12-18  Bruno Haible  <bruno@clisp.org>
71311         New module 'wctob'.
71312         * lib/wchar.in.h (wctob): New declaration.
71313         * lib/wctob.c: New file.
71314         * m4/wctob.m4: New file.
71315         * modules/wctob: New file.
71316         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
71317         HAVE_WCTOB.
71318         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
71319         * doc/posix-functions/wctob.texi: Document the new module.
71321 2008-12-18  Bruno Haible  <bruno@clisp.org>
71323         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
71324         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
71326 2008-12-18  Simon Josefsson  <simon@josefsson.org>
71328         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
71329         G. Christensen" <tgc@jupiterrise.com>.
71331         * lib/flock.c: Need to include errno.h.  Reported by "Tom
71332         G. Christensen" <tgc@jupiterrise.com>.
71334         * lib/flock.c: Need to include string.h.  Reported by "Tom
71335         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
71336         <ebb9@byu.net>.
71338 2008-12-18  Bruno Haible  <bruno@clisp.org>
71340         * m4/locale-ja.m4: New file, from GNU gettext.
71342 2008-12-17  Bruno Haible  <bruno@clisp.org>
71344         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
71345         Suggested by Eric Blake.
71347 2008-12-17  Bruno Haible  <bruno@clisp.org>
71349         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
71351 2008-12-17  Bruno Haible  <bruno@clisp.org>
71353         * lib/mbsinit.c: Include verify.h. Verify an assumption.
71354         * modules/mbsinit (Depends-on): Add verify.
71355         Suggested by Paul Eggert.
71357 2008-12-17  Bruno Haible  <bruno@clisp.org>
71359         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
71360         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
71361         gl_FUNC_MBRTOWC.
71362         * m4/mbiter.m4 (gl_MBITER): LIkewise.
71363         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
71364         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
71365         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
71366         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
71367         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
71368         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
71369         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
71370         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
71371         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
71372         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
71373         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
71374         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
71375         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
71376         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
71377         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71378         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
71379         * modules/trim (configure.ac): Likewise.
71381 2008-12-17  Bruno Haible  <bruno@clisp.org>
71383         * modules/btowc-tests: New file.
71384         * tests/test-btowc1.sh: New file.
71385         * tests/test-btowc2.sh: New file.
71386         * tests/test-btowc.c: New file.
71388         New module 'btowc'.
71389         * lib/wchar.in.h (btowc): New declaration.
71390         * lib/btowc.c: New file.
71391         * m4/btowc.m4: New file.
71392         * modules/btowc: New file.
71393         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
71394         HAVE_BTOWC.
71395         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
71396         * doc/posix-functions/btowc.texi: Document the new module.
71398 2008-12-17  Bruno Haible  <bruno@clisp.org>
71400         New module 'mbsinit'.
71401         * lib/wchar.in.h (mbsinit): New declaration.
71402         * lib/mbsinit.c: New file.
71403         * m4/mbsinit.m4: New file.
71404         * modules/mbsinit: New file.
71405         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
71406         HAVE_MBSINIT.
71407         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
71408         HAVE_MBSINIT.
71409         * doc/posix-functions/mbsinit.texi: Document the new module.
71411 2008-12-16  Bruno Haible  <bruno@clisp.org>
71413         * lib/unistd.in.h: Add comment.
71414         * tests/test-environ.c: Don't include <stdlib.h>.
71416 2008-12-16  Bruno Haible  <bruno@clisp.org>
71418         * lib/parse-duration.h (parse_duration): Document return value
71419         convention.
71420         * lib/parse-duration.c: Include specification header first. Add
71421         comments.
71422         (_): Remove macro.
71423         (parse_year_month_day, parse_hour_minute_second): Move side effects
71424         outside of strchr call.
71425         (parse_non_iso8601): Move side effects outside of isspace call.
71426         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
71427         call.
71429 2008-12-16  Bruno Haible  <bruno@clisp.org>
71431         * tests/test-parse-duration.sh: Produce no output when the test
71432         succeeds.
71434 2008-12-16  Bruno Haible  <bruno@clisp.org>
71436         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
71437         expressions.
71439 2008-12-15  Bruno Haible  <bruno@clisp.org>
71441         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
71442         * doc/glibc-functions/flistxattr.texi: Likewise.
71443         * doc/glibc-functions/fopencookie.texi: Likewise.
71444         * doc/glibc-functions/fremovexattr.texi: Likewise.
71445         * doc/glibc-functions/fsetxattr.texi: Likewise.
71446         * doc/glibc-functions/getxattr.texi: Likewise.
71447         * doc/glibc-functions/lgetxattr.texi: Likewise.
71448         * doc/glibc-functions/listxattr.texi: Likewise.
71449         * doc/glibc-functions/llistxattr.texi: Likewise.
71450         * doc/glibc-functions/lremovexattr.texi: Likewise.
71451         * doc/glibc-functions/lsetxattr.texi: Likewise.
71452         * doc/glibc-functions/removexattr.texi: Likewise.
71453         * doc/glibc-functions/setxattr.texi: Likewise.
71454         * doc/posix-functions/open_memstream.texi: Likewise.
71456 2008-12-15  Eric Blake  <ebb9@byu.net>
71458         Update doc for cygwin 1.7.
71459         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
71460         functions.
71461         * doc/posix-functions/fchmodat.texi: Likewise.
71462         * doc/posix-functions/fchownat.texi: Likewise.
71463         * doc/posix-functions/fdopendir.texi: Likewise.
71464         * doc/posix-functions/fmemopen.texi: Likewise.
71465         * doc/posix-functions/freeaddrinfo.texi: Likewise.
71466         * doc/posix-functions/fstatat.texi: Likewise.
71467         * doc/posix-functions/futimens.texi: Likewise.
71468         * doc/posix-functions/gai_strerror.texi: Likewise.
71469         * doc/posix-functions/getaddrinfo.texi: Likewise.
71470         * doc/posix-functions/getnameinfo.texi: Likewise.
71471         * doc/posix-functions/if_freenameindex.texi: Likewise.
71472         * doc/posix-functions/if_indextoname.texi: Likewise.
71473         * doc/posix-functions/if_nameindex.texi: Likewise.
71474         * doc/posix-functions/if_nametoindex.texi: Likewise.
71475         * doc/posix-functions/insque.texi: Likewise.
71476         * doc/posix-functions/linkat.texi: Likewise.
71477         * doc/posix-functions/llrint.texi: Likewise.
71478         * doc/posix-functions/llrintf.texi: Likewise.
71479         * doc/posix-functions/llrintl.texi: Likewise.
71480         * doc/posix-functions/lockf.texi: Likewise.
71481         * doc/posix-functions/lrintl.texi: Likewise.
71482         * doc/posix-functions/mkdirat.texi: Likewise.
71483         * doc/posix-functions/mkfifoat.texi: Likewise.
71484         * doc/posix-functions/mknodat.texi: Likewise.
71485         * doc/posix-functions/mq_close.texi: Likewise.
71486         * doc/posix-functions/mq_getattr.texi: Likewise.
71487         * doc/posix-functions/mq_notify.texi: Likewise.
71488         * doc/posix-functions/mq_open.texi: Likewise.
71489         * doc/posix-functions/mq_receive.texi: Likewise.
71490         * doc/posix-functions/mq_send.texi: Likewise.
71491         * doc/posix-functions/mq_setattr.texi: Likewise.
71492         * doc/posix-functions/mq_timedreceive.texi: Likewise.
71493         * doc/posix-functions/mq_timedsend.texi: Likewise.
71494         * doc/posix-functions/mq_unlink.texi: Likewise.
71495         * doc/posix-functions/open_memstream.texi: Likewise.
71496         * doc/posix-functions/openat.texi: Likewise.
71497         * doc/posix-functions/posix_fadvise.texi: Likewise.
71498         * doc/posix-functions/posix_fallocate.texi: Likewise.
71499         * doc/posix-functions/posix_madvise.texi: Likewise.
71500         * doc/posix-functions/posix_memalign.texi: Likewise.
71501         * doc/posix-functions/posix_openpt.texi: Likewise.
71502         * doc/posix-functions/readlinkat.texi: Likewise.
71503         * doc/posix-functions/remque.texi: Likewise.
71504         * doc/posix-functions/renameat.texi: Likewise.
71505         * doc/posix-functions/rintl.texi: Likewise.
71506         * doc/posix-functions/sem_unlink.texi: Likewise.
71507         * doc/posix-functions/shm_open.texi: Likewise.
71508         * doc/posix-functions/shm_unlink.texi: Likewise.
71509         * doc/posix-functions/signgam.texi: Likewise.
71510         * doc/posix-functions/sigset.texi: Likewise.
71511         * doc/posix-functions/stpcpy.texi: Likewise.
71512         * doc/posix-functions/stpncpy.texi: Likewise.
71513         * doc/posix-functions/strerror.texi: Likewise.
71514         * doc/posix-functions/strtod.texi: Likewise.
71515         * doc/posix-functions/symlinkat.texi: Likewise.
71516         * doc/posix-functions/unlinkat.texi: Likewise.
71517         * doc/posix-functions/utimensat.texi: Likewise.
71518         * doc/glibc-functions/bindresvport.texi: Likewise.
71519         * doc/glibc-functions/dn_expand.texi: Likewise.
71520         * doc/glibc-functions/exp10.texi: Likewise.
71521         * doc/glibc-functions/exp10f.texi: Likewise.
71522         * doc/glibc-functions/fgetxattr.texi: Likewise.
71523         * doc/glibc-functions/flistxattr.texi: Likewise.
71524         * doc/glibc-functions/fopencookie.texi: Likewise.
71525         * doc/glibc-functions/freeifaddrs.texi: Likewise.
71526         * doc/glibc-functions/fremovexattr.texi: Likewise.
71527         * doc/glibc-functions/fsetxattr.texi: Likewise.
71528         * doc/glibc-functions/getifaddrs.texi: Likewise.
71529         * doc/glibc-functions/getxattr.texi: Likewise.
71530         * doc/glibc-functions/lgetxattr.texi: Likewise.
71531         * doc/glibc-functions/listxattr.texi: Likewise.
71532         * doc/glibc-functions/llistxattr.texi: Likewise.
71533         * doc/glibc-functions/lremovexattr.texi: Likewise.
71534         * doc/glibc-functions/lsetxattr.texi: Likewise.
71535         * doc/glibc-functions/pow10.texi: Likewise.
71536         * doc/glibc-functions/pow10f.texi: Likewise.
71537         * doc/glibc-functions/rcmd_af.texi: Likewise.
71538         * doc/glibc-functions/removexattr.texi: Likewise.
71539         * doc/glibc-functions/res_init.texi: Likewise.
71540         * doc/glibc-functions/res_mkquery.texi: Likewise.
71541         * doc/glibc-functions/res_query.texi: Likewise.
71542         * doc/glibc-functions/res_querydomain.texi: Likewise.
71543         * doc/glibc-functions/res_send.texi: Likewise.
71544         * doc/glibc-functions/rresvport_af.texi: Likewise.
71545         * doc/glibc-functions/setxattr.texi: Likewise.
71546         * doc/glibc-functions/strcasestr.texi: Likewise.
71548 2008-12-15  Bruno Haible  <bruno@clisp.org>
71550         Fix compilation error on OSF/1 4.0.
71551         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
71552         <sys/time.h>, simply delegate to the system header.
71553         Reported by Daniel Richard G. <oss@teragram.com>.
71555 2008-12-15  Bruno Haible  <bruno@clisp.org>
71557         * doc/posix-functions/openat.texi: Mention the 'openat' module.
71558         * doc/posix-functions/fchmodat.texi: Likewise.
71559         * doc/posix-functions/fchownat.texi: Likewise.
71560         * doc/posix-functions/fdopendir.texi: Likewise.
71561         * doc/posix-functions/fstatat.texi: Likewise.
71562         * doc/posix-functions/mkdirat.texi: Likewise.
71563         * doc/posix-functions/unlinkat.texi: Likewise.
71565 2008-12-14  Bruno Haible  <bruno@clisp.org>
71567         Update doc for POSIX:2008.
71568         * doc/posix-functions/faccessat.texi: New file.
71569         * doc/posix-functions/fchmodat.texi: New file.
71570         * doc/posix-functions/fchownat.texi: New file.
71571         * doc/posix-functions/fdopendir.texi: New file.
71572         * doc/posix-functions/fstatat.texi: New file.
71573         * doc/posix-functions/futimens.texi: New file.
71574         * doc/posix-functions/linkat.texi: New file.
71575         * doc/posix-functions/mkdirat.texi: New file.
71576         * doc/posix-functions/mkfifoat.texi: New file.
71577         * doc/posix-functions/mknodat.texi: New file.
71578         * doc/posix-functions/open_wmemstream.texi: New file.
71579         * doc/posix-functions/openat.texi: New file.
71580         * doc/posix-functions/psiginfo.texi: New file.
71581         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
71582         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
71583         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
71584         * doc/posix-functions/readlinkat.texi: New file.
71585         * doc/posix-functions/renameat.texi: New file.
71586         * doc/posix-functions/strerror_l.texi: New file.
71587         * doc/posix-functions/symlinkat.texi: New file.
71588         * doc/posix-functions/unlinkat.texi: New file.
71589         * doc/posix-functions/utimensat.texi: New file.
71590         * doc/gnulib.texi (Function Substitutes): Add these subsections.
71592 2008-12-14  Bruno Haible  <bruno@clisp.org>
71594         Update doc for POSIX:2008.
71595         * doc/posix-functions/alphasort.texi: Renamed from
71596         doc/glibc-functions/alphasort.texi.
71597         * doc/posix-functions/dirfd.texi: Renamed from
71598         doc/glibc-functions/dirfd.texi.
71599         * doc/posix-functions/dprintf.texi: Renamed from
71600         doc/glibc-functions/dprintf.texi.
71601         * doc/posix-functions/duplocale.texi: Renamed from
71602         doc/glibc-functions/duplocale.texi.
71603         * doc/posix-functions/fexecve.texi: Renamed from
71604         doc/glibc-functions/fexecve.texi.
71605         * doc/posix-functions/fmemopen.texi: Renamed from
71606         doc/glibc-functions/fmemopen.texi.
71607         * doc/posix-functions/freelocale.texi: Renamed from
71608         doc/glibc-functions/freelocale.texi.
71609         * doc/posix-functions/getdate_err.texi: Renamed from
71610         doc/glibc-functions/getdate_err.texi.
71611         * doc/posix-functions/isalnum_l.texi: Renamed from
71612         doc/glibc-functions/isalnum_l.texi.
71613         * doc/posix-functions/isalpha_l.texi: Renamed from
71614         doc/glibc-functions/isalpha_l.texi.
71615         * doc/posix-functions/isblank_l.texi: Renamed from
71616         doc/glibc-functions/isblank_l.texi.
71617         * doc/posix-functions/iscntrl_l.texi: Renamed from
71618         doc/glibc-functions/iscntrl_l.texi.
71619         * doc/posix-functions/isdigit_l.texi: Renamed from
71620         doc/glibc-functions/isdigit_l.texi.
71621         * doc/posix-functions/isgraph_l.texi: Renamed from
71622         doc/glibc-functions/isgraph_l.texi.
71623         * doc/posix-functions/islower_l.texi: Renamed from
71624         doc/glibc-functions/islower_l.texi.
71625         * doc/posix-functions/isprint_l.texi: Renamed from
71626         doc/glibc-functions/isprint_l.texi.
71627         * doc/posix-functions/ispunct_l.texi: Renamed from
71628         doc/glibc-functions/ispunct_l.texi.
71629         * doc/posix-functions/isspace_l.texi: Renamed from
71630         doc/glibc-functions/isspace_l.texi.
71631         * doc/posix-functions/isupper_l.texi: Renamed from
71632         doc/glibc-functions/isupper_l.texi.
71633         * doc/posix-functions/iswalnum_l.texi: Renamed from
71634         doc/glibc-functions/iswalnum_l.texi.
71635         * doc/posix-functions/iswalpha_l.texi: Renamed from
71636         doc/glibc-functions/iswalpha_l.texi.
71637         * doc/posix-functions/iswblank_l.texi: Renamed from
71638         doc/glibc-functions/iswblank_l.texi.
71639         * doc/posix-functions/iswcntrl_l.texi: Renamed from
71640         doc/glibc-functions/iswcntrl_l.texi.
71641         * doc/posix-functions/iswctype_l.texi: Renamed from
71642         doc/glibc-functions/iswctype_l.texi.
71643         * doc/posix-functions/iswdigit_l.texi: Renamed from
71644         doc/glibc-functions/iswdigit_l.texi.
71645         * doc/posix-functions/iswgraph_l.texi: Renamed from
71646         doc/glibc-functions/iswgraph_l.texi.
71647         * doc/posix-functions/iswlower_l.texi: Renamed from
71648         doc/glibc-functions/iswlower_l.texi.
71649         * doc/posix-functions/iswprint_l.texi: Renamed from
71650         doc/glibc-functions/iswprint_l.texi.
71651         * doc/posix-functions/iswpunct_l.texi: Renamed from
71652         doc/glibc-functions/iswpunct_l.texi.
71653         * doc/posix-functions/iswspace_l.texi: Renamed from
71654         doc/glibc-functions/iswspace_l.texi.
71655         * doc/posix-functions/iswupper_l.texi: Renamed from
71656         doc/glibc-functions/iswupper_l.texi.
71657         * doc/posix-functions/iswxdigit_l.texi: Renamed from
71658         doc/glibc-functions/iswxdigit_l.texi.
71659         * doc/posix-functions/isxdigit_l.texi: Renamed from
71660         doc/glibc-functions/isxdigit_l.texi.
71661         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
71662         doc/glibc-functions/mbsnrtowcs.texi.
71663         * doc/posix-functions/mkdtemp.texi: Renamed from
71664         doc/glibc-functions/mkdtemp.texi.
71665         * doc/posix-functions/newlocale.texi: Renamed from
71666         doc/glibc-functions/newlocale.texi.
71667         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
71668         doc/glibc-functions/nl_langinfo_l.texi.
71669         * doc/posix-functions/open_memstream.texi: Renamed from
71670         doc/glibc-functions/open_memstream.texi.
71671         * doc/posix-functions/opterr.texi: Renamed from
71672         doc/glibc-functions/opterr.texi.
71673         * doc/posix-functions/optind.texi: Renamed from
71674         doc/glibc-functions/optind.texi.
71675         * doc/posix-functions/optopt.texi: Renamed from
71676         doc/glibc-functions/optopt.texi.
71677         * doc/posix-functions/psignal.texi: Renamed from
71678         doc/glibc-functions/psignal.texi.
71679         * doc/posix-functions/scandir.texi: Renamed from
71680         doc/glibc-functions/scandir.texi.
71681         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
71682         doc/glibc-functions/sched_get_priority_min.texi.
71683         * doc/posix-functions/signgam.texi: Renamed from
71684         doc/glibc-functions/signgam.texi.
71685         * doc/posix-functions/stpcpy.texi: Renamed from
71686         doc/glibc-functions/stpcpy.texi.
71687         * doc/posix-functions/stpncpy.texi: Renamed from
71688         doc/glibc-functions/stpncpy.texi.
71689         * doc/posix-functions/strcasecmp_l.texi: Renamed from
71690         doc/glibc-functions/strcasecmp_l.texi.
71691         * doc/posix-functions/strcoll_l.texi: Renamed from
71692         doc/glibc-functions/strcoll_l.texi.
71693         * doc/posix-functions/strfmon_l.texi: Renamed from
71694         doc/glibc-functions/strfmon_l.texi.
71695         * doc/posix-functions/strftime_l.texi: Renamed from
71696         doc/glibc-functions/strftime_l.texi.
71697         * doc/posix-functions/strncasecmp_l.texi: Renamed from
71698         doc/glibc-functions/strncasecmp_l.texi.
71699         * doc/posix-functions/strndup.texi: Renamed from
71700         doc/glibc-functions/strndup.texi.
71701         * doc/posix-functions/strnlen.texi: Renamed from
71702         doc/glibc-functions/strnlen.texi.
71703         * doc/posix-functions/strsignal.texi: Renamed from
71704         doc/glibc-functions/strsignal.texi.
71705         * doc/posix-functions/strxfrm_l.texi: Renamed from
71706         doc/glibc-functions/strxfrm_l.texi.
71707         * doc/posix-functions/timer_gettime.texi: Renamed from
71708         doc/glibc-functions/timer_gettime.texi.
71709         * doc/posix-functions/tolower_l.texi: Renamed from
71710         doc/glibc-functions/tolower_l.texi.
71711         * doc/posix-functions/toupper_l.texi: Renamed from
71712         doc/glibc-functions/toupper_l.texi.
71713         * doc/posix-functions/towctrans_l.texi: Renamed from
71714         doc/glibc-functions/towctrans_l.texi.
71715         * doc/posix-functions/towlower_l.texi: Renamed from
71716         doc/glibc-functions/towlower_l.texi.
71717         * doc/posix-functions/towupper_l.texi: Renamed from
71718         doc/glibc-functions/towupper_l.texi.
71719         * doc/posix-functions/uselocale.texi: Renamed from
71720         doc/glibc-functions/uselocale.texi.
71721         * doc/posix-functions/vdprintf.texi: Renamed from
71722         doc/glibc-functions/vdprintf.texi.
71723         * doc/posix-functions/wcpcpy.texi:
71724         Renamed from doc/glibc-functions/wcpcpy.texi.
71725         * doc/posix-functions/wcpncpy.texi: Renamed from
71726         doc/glibc-functions/wcpncpy.texi.
71727         * doc/posix-functions/wcscasecmp.texi: Renamed from
71728         doc/glibc-functions/wcscasecmp.texi.
71729         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
71730         doc/glibc-functions/wcscasecmp_l.texi.
71731         * doc/posix-functions/wcscoll_l.texi: Renamed from
71732         doc/glibc-functions/wcscoll_l.texi.
71733         * doc/posix-functions/wcsdup.texi: Renamed from
71734         doc/glibc-functions/wcsdup.texi.
71735         * doc/posix-functions/wcsncasecmp.texi: Renamed from
71736         doc/glibc-functions/wcsncasecmp.texi.
71737         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
71738         doc/glibc-functions/wcsncasecmp_l.texi.
71739         * doc/posix-functions/wcsnlen.texi: Renamed from
71740         doc/glibc-functions/wcsnlen.texi.
71741         * doc/posix-functions/wcsnrtombs.texi: Renamed from
71742         doc/glibc-functions/wcsnrtombs.texi.
71743         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
71744         doc/glibc-functions/wcsxfrm_l.texi.
71745         * doc/posix-functions/wctrans_l.texi: Renamed from
71746         doc/glibc-functions/wctrans_l.texi.
71747         * doc/posix-functions/wctype_l.texi: Renamed from
71748         doc/glibc-functions/wctype_l.texi.
71749         * doc/gnulib.texi (Function Substitutes): Add these subsections.
71750         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
71751         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
71752         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
71753         these subsections.
71754         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
71755         Remove sections.
71757 2008-12-14  Bruno Haible  <bruno@clisp.org>
71759         Update doc for POSIX:2008.
71760         * doc/posix-functions/*.texi: Update URL of POSIX specification.
71762 2008-12-14  Bruno Haible  <bruno@clisp.org>
71764         Update doc for POSIX:2008.
71765         * doc/pastposix-functions/bcmp.texi: Renamed from
71766         doc/posix-functions/bcmp.texi.
71767         * doc/pastposix-functions/bcopy.texi: Renamed from
71768         doc/posix-functions/bcopy.texi.
71769         * doc/pastposix-functions/bsd_signal.texi: Renamed from
71770         doc/posix-functions/bsd_signal.texi.
71771         * doc/pastposix-functions/bzero.texi: Renamed from
71772         doc/posix-functions/bzero.texi.
71773         * doc/pastposix-functions/ecvt.texi: Renamed from
71774         doc/posix-functions/ecvt.texi.
71775         * doc/pastposix-functions/fcvt.texi: Renamed from
71776         doc/posix-functions/fcvt.texi.
71777         * doc/pastposix-functions/ftime.texi: Renamed from
71778         doc/posix-functions/ftime.texi.
71779         * doc/pastposix-functions/gcvt.texi: Renamed from
71780         doc/posix-functions/gcvt.texi.
71781         * doc/pastposix-functions/getcontext.texi: Renamed from
71782         doc/posix-functions/getcontext.texi.
71783         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
71784         doc/posix-functions/gethostbyaddr.texi.
71785         * doc/pastposix-functions/gethostbyname.texi: Renamed from
71786         doc/posix-functions/gethostbyname.texi.
71787         * doc/pastposix-functions/getwd.texi: Renamed from
71788         doc/posix-functions/getwd.texi.
71789         * doc/pastposix-functions/h_errno.texi: Renamed from
71790         doc/posix-functions/h_errno.texi.
71791         * doc/pastposix-functions/index.texi: Renamed from
71792         doc/posix-functions/index.texi.
71793         * doc/pastposix-functions/makecontext.texi: Renamed from
71794         doc/posix-functions/makecontext.texi.
71795         * doc/pastposix-functions/mktemp.texi: Renamed from
71796         doc/posix-functions/mktemp.texi.
71797         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
71798         doc/posix-functions/pthread_attr_getstackaddr.texi.
71799         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
71800         doc/posix-functions/pthread_attr_setstackaddr.texi.
71801         * doc/pastposix-functions/rindex.texi: Renamed from
71802         doc/posix-functions/rindex.texi.
71803         * doc/pastposix-functions/scalb.texi: Renamed from
71804         doc/posix-functions/scalb.texi.
71805         * doc/pastposix-functions/setcontext.texi: Renamed from
71806         doc/posix-functions/setcontext.texi.
71807         * doc/pastposix-functions/swapcontext.texi: Renamed from
71808         doc/posix-functions/swapcontext.texi.
71809         * doc/pastposix-functions/ualarm.texi: Renamed from
71810         doc/posix-functions/ualarm.texi.
71811         * doc/pastposix-functions/usleep.texi: Renamed from
71812         doc/posix-functions/usleep.texi.
71813         * doc/pastposix-functions/vfork.texi: Renamed from
71814         doc/posix-functions/vfork.texi.
71815         * doc/pastposix-functions/wcswcs.texi: Renamed from
71816         doc/posix-functions/wcswcs.texi.
71817         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
71818         (Function Substitutes): Update.
71820 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71822         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
71823         m4/strerror.m4.
71825 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71826             Bruno Haible  <bruno@clisp.org>
71828         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
71830 2008-12-13  Bruno Haible  <bruno@clisp.org>
71832         * modules/strtoull (Depends-on): Remove unistd.
71834 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71836         * modules/strtoull (Depends-on): Add stdlib.
71838 2008-12-11  Simon Josefsson  <simon@josefsson.org>
71840         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
71842 2008-12-10  Jim Meyering  <meyering@redhat.com>
71844         gl_ASSERT: don't say assertions are disabled when they're not
71845         * m4/assert.m4 (gl_ASSERT): Do not make configure report
71846         "checking whether to enable assertions... no", when they are in
71847         fact enabled.  This is solely a bug in the output of configure.
71848         In spite of saying "no", NDEBUG was not defined in that case.
71849         Also, as noted by Eric Blake, leave assertions enabled upon
71850         --enable-assert=INVALID.
71852 2008-12-10  Bruno Haible  <bruno@clisp.org>
71854         Change MODULES.html to refer to POSIX:2008 where possible.
71855         * MODULES.html.sh (POSIX2008_URL): New variable.
71856         (posix_headers): Remove sys/timeb, ucontext.
71857         (posix2001_headers): New variable.
71858         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
71859         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
71860         index, makecontext, mktemp, pthread_attr_getstackaddr,
71861         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
71862         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
71863         (posix2001_functions): New variable.
71864         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
71865         otherwise.
71867 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71869         add missing include to parse-duration.c
71870         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
71871         * modules/parse-duration (Depends-on): Add xalloc.
71873         fix sed script reading maint.mk
71874         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
71875         (syntax-check-rules): Use it.
71877 2008-12-09  Bruno Haible  <bruno@clisp.org>
71879         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
71880         MacOS X 10.4/PowerPC.
71881         Reported by Simon Josefsson.
71883 2008-12-08  Jim Meyering  <meyering@redhat.com>
71885         work around mingw's lack of some S_IF definitions
71886         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
71887         Reported by Simon Josefsson.
71889 2008-12-08  Bruno Haible  <bruno@clisp.org>
71891         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
71892         applied to variables. Needed on MacOS X 10.4/PowerPC.
71893         Reported by Simon Josefsson.
71895 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
71896         and Eric Blake  <ebb9@byu.net>
71898         assert: honor --enable-assert
71899         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
71900         order to honor --enable-assert, rather than treating it as a
71901         synonym for --disable-assert.
71903 2008-12-08  Jim Meyering  <meyering@redhat.com>
71905         * lib/posixtm.c: Remove now-useless declaration of mktime.
71907         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
71909 2008-12-07  Bruno Haible  <bruno@clisp.org>
71911         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
71912         test_once): Mark functions as static.
71913         * tests/test-tls.c (test_tls): Likewise.
71915 2008-12-07  Bruno Haible  <bruno@clisp.org>
71917         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
71918         iconv_register_autodetect.
71920 2008-12-07  Jim Meyering  <meyering@redhat.com>
71922         posixtm.c: avoid a warning
71923         * lib/posixtm.c (posixtime): Don't initialize tm0.
71924         It's no longer needed to placate gcc4's -Wuninitialized,
71925         and the attempt to placate would elicit a new warning.
71927         unicodeio.c: mark unused parameters
71928         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
71929         (fallback_failure_callback): Likewise.
71931 2008-12-07  Bruno Haible  <bruno@clisp.org>
71933         * gnulib-tool (func_create_testdir): When building the tests
71934         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
71935         Reported by Simon Josefsson.
71937 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71939         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
71941 2008-12-06  Bruno Haible  <bruno@clisp.org>
71943         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
71944         Suggested by Eric Blake.
71946 2008-12-06  Bruno Haible  <bruno@clisp.org>
71948         Fix a c-stack test failure on MacOS X.
71949         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
71950         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
71951         handler for SIGBUS as well.
71952         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
71953         install a signal handler for SIGBUS as well.
71954         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
71956 2008-12-06  Bruno Haible  <bruno@clisp.org>
71958         Advocacy documentation.
71959         * doc/gnulib-intro.texi (Benefits): New section.
71960         * doc/gnulib.texi: Update.
71962 2008-12-06  Bruno Haible  <bruno@clisp.org>
71964         Document the 'manywarnings' module.
71965         * doc/manywarnings.texi: New file.
71966         * doc/gnulib.texi: Include it.
71968 2008-12-05  Eric Blake  <ebb9@byu.net>
71970         tests: silence some gcc warnings
71971         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
71972         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
71973         type mismatches.
71975 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71976             Bruno Haible  <bruno@clisp.org>
71978         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
71980 2008-11-29  Jim Meyering  <meyering@redhat.com>
71982         unicodeio.c: mark unused parameters
71983         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
71984         (fallback_failure_callback): Likewise.
71986         fts: fix a thinko
71987         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
71988         (set_stat_type): Return S_IF*-valued "type" directly.
71989         Prompted by James Youngman's spotting a related bug.
71990         Confirmed by further testing through find.
71992         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
71993         * lib/fts.c (D_TYPE): Define.
71994         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
71995         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
71996         (s_ifmt_shift_bits): New function.
71997         (set_stat_type): New function.
71998         (fts_build): When not calling fts_stat, call set_stat_type
71999         to propagate dirent.d_type info to fts_read caller.
72000         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
72001         fts_statp->st_mode type information may be valid.
72003 2008-11-28  Simon Josefsson  <simon@josefsson.org>
72005         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
72006         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
72007         <sds@gnu.org>.
72009 2008-11-20  Bruno Haible  <bruno@clisp.org>
72011         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
72012         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
72013         INCLUDE_NEXT.
72014         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
72015         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
72016         * modules/math (Makefile.am): Substitute
72017         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
72018         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72020 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
72021             Bruno Haible  <bruno@clisp.org>
72023         * lib/stdint.in.h: Define all type macros so that their expansion is
72024         a single typedef'ed token. Fixes a compilation failure in Boost which
72025         does "using ::int8_t;".
72027 2008-11-18  Simon Josefsson  <simon@josefsson.org>
72029         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
72030         gl_MANYWARN_ALL_GCC.
72031         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
72032         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
72033         * modules/manywarnings: New file.
72034         * MODULES.html.sh: Mention manywarnings module.
72036 2008-11-18  Bruno Haible  <bruno@clisp.org>
72038         * doc/gnulib-tool.texi (Unit tests): New section.
72040 2008-11-18  Simon Josefsson  <simon@josefsson.org>
72042         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
72043         paths like 'lib/po/foo.po'.
72045 2008-11-17  Simon Josefsson  <simon@josefsson.org>
72047         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
72048         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
72050 2008-11-17  Simon Josefsson  <simon@josefsson.org>
72052         * m4/warnings.m4: Use CPPFLAGS to really check whether the
72053         parameter works.
72055 2008-11-17  Simon Josefsson  <simon@josefsson.org>
72057         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
72059 2008-11-17  Bruce Korb  <bkorb@gnu.org>
72061         * modules/parse-duration-tests: New file.
72062         * tests/test-parse-duration.sh: New file.
72063         * tests/test-parse-duration.c: New file.
72065         New module 'parse-duration'.
72066         * lib/parse-duration.h: New file.
72067         * lib/parse-duration.c: New file.
72068         * modules/parse-duration: New file.
72070 2008-11-17  Bruno Haible  <bruno@clisp.org>
72072         * tests/test-select-out.sh: Comment out the first pipe test.
72073         Reported by Simon Josefsson.
72075 2008-11-17  Bruno Haible  <bruno@clisp.org>
72077         * modules/getaddrinfo (Depends-on): Add servent, hostent.
72078         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
72079         gl_HOSTENT.
72081 2008-11-17  Bruno Haible  <bruno@clisp.org>
72083         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
72084         -lnetwork and -lnet. Needed for Haiku and BeOS.
72086 2008-11-16  Bruno Haible  <bruno@clisp.org>
72088         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
72090 2008-11-16  Bruno Haible  <bruno@clisp.org>
72092         Avoid test failure on Haiku.
72093         * tests/test-fsync.c: Include <errno.h>.
72094         (main): Don't require that fsync (0) fails.
72096 2008-11-15  Bruno Haible  <bruno@clisp.org>
72098         New module 'hostent'.
72099         * modules/hostent: New file.
72100         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
72102 2008-11-15  Bruno Haible  <bruno@clisp.org>
72104         New module 'servent'.
72105         * modules/servent: New file.
72106         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
72108 2008-11-15  Bruno Haible  <bruno@clisp.org>
72110         Avoid generating same test program with two different rules.
72111         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
72112         test-frexp to test-frexp-nolibm.
72113         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
72114         test-frexpl to test-frexpl-nolibm.
72116 2008-11-15  Bruno Haible  <bruno@clisp.org>
72118         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
72119         $(FREXPL_LIBM).
72121 2008-11-15  Bruno Haible  <bruno@clisp.org>
72123         * lib/netdb.in.h: Activate the definitions also when the system's
72124         <netdb.h> has 'struct addrinfo'.
72125         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
72126         EAI_OVERFLOW or AI_NUMERICSERV.
72127         * doc/posix-headers/netdb.texi: Document the problem.
72129 2008-11-15  Bruno Haible  <bruno@clisp.org>
72131         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
72133         Make the 'sched' module work on platforms where <sched.h> exists but
72134         is incomplete (such as Haiku).
72135         * lib/sched.in.h; Include the system's <sched.h> if it exists.
72136         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
72137         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
72138         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
72139         HAVE_STRUCT_SCHED_PARAM.
72140         * modules/sched (Depends-on): Add include_next.
72141         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
72142         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
72143         * doc/posix-headers/sched.texi: Document the issue.
72145 2008-11-13  Jim Meyering  <meyering@redhat.com>
72147         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
72148         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
72149         test would fail due to the difference in the Report bugs to ...
72150         line.  The expected address is empty, "<>", while the actual
72151         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
72153 2008-11-12  Bruno Haible  <bruno@clisp.org>
72155         lstat: don't compile lstat.c on systems lacking lstat
72156         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
72157         which don't have lstat; this is handled by lib/sys_stat.in.h already.
72158         Reported by Daniel P. Berrange via Jim Meyering.
72160 2008-11-12  Jim Meyering  <meyering@redhat.com>
72162         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
72164 2008-11-12  Simon Josefsson  <simon@josefsson.org>
72166         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
72167         instead.
72169 2008-11-12  Bruno Haible  <bruno@clisp.org>
72171         * lib/unicodeio.c: Include unistr.h.
72172         (utf8_wctomb): Remove function.
72173         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
72175 2008-11-12  Simon Josefsson  <simon@josefsson.org>
72177         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
72178         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
72179         <bruno@clisp.org>.
72180         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
72182 2008-11-12  Simon Josefsson  <simon@josefsson.org>
72184         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
72185         * doc/gnulib.texi: Add section for warnings.
72187 2008-11-11  Bruno Haible  <bruno@clisp.org>
72189         * lib/sockets.h: Add a comment.
72191 2008-11-11  Karl Berry  <karl@gnu.org>
72193         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
72195 2008-11-11  Eric Blake  <ebb9@byu.net>
72197         fdl.texi: avoid git symlinks
72198         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
72200 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
72202         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
72204 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
72206         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
72207         (gl_WARN_ADD): Substitute $2 if literal.
72209 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
72211         * m4/warning.m4: Remove.
72213 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
72215         * m4/warnings.m4: Almost complete rewrite. :-)
72217 2008-11-10  Simon Josefsson  <simon@josefsson.org>
72219         * modules/warnings: New module.
72220         * m4/warnings.m4: New file.
72221         * MODULES.html.sh: Mention warnings module.
72222         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
72223         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72225 2008-11-10  Eric Blake  <ebb9@byu.net>
72227         fdl.texi: make a symlink to the latest version
72228         * doc/standards.texi: Revert today's earlier change.
72229         * doc/fdl-1.2.texi: Rename from old fdl.texi...
72230         * doc/fdl.texi: ...and replace this with a symlink to the newer
72231         fdl-1.3.texi.
72233 2008-11-10  Bruno Haible  <bruno@clisp.org>
72235         * tests/test-select-fd.c (main): Accept the result file name as fourth
72236         argument.
72237         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
72238         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
72240 2008-11-10  Bruno Haible  <bruno@clisp.org>
72242         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
72243         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
72244         as autoconf-substituted macros.
72245         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
72246         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
72247         gl_NETDB_H_DEFAULTS. Set these variables.
72248         * modules/netdb (Makefile.am): Substitute these variables.
72250 2008-11-10  Eric Blake  <ebb9@byu.net>
72252         standards.texi: include correct file for FDL 1.3
72253         * doc/standards.texi (GNU Free Documentation License): Change
72254         include file to pull in FDL 1.3, not 1.2.
72256         fdl.texi: revert accidental change to license
72257         * doc/fdl.texi: This is FDL 1.2, not 1.3.
72259 2008-11-10  Bruno Haible  <bruno@clisp.org>
72261         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
72262         cross-compiling guesses also when the native compile gives no result.
72264 2008-11-10  Bruno Haible  <bruno@clisp.org>
72266         * lib/spawni.c (__spawni): Force variable into the stack.
72268 2008-11-10  Bruno Haible  <bruno@clisp.org>
72270         Add support for Haiku.
72271         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
72272         glibc and BeOS, but also on Haiku.
72273         * lib/fpurge.c (fpurge): Likewise.
72274         * lib/freadable.c (freadable): Likewise.
72275         * lib/freadahead.c (freadahead): Likewise.
72276         * lib/freading.c (freading): Likewise.
72277         * lib/freadptr.c (freadptr): Likewise.
72278         * lib/freadseek.c (freadptrinc): Likewise.
72279         * lib/fseeko.c (rpl_fseeko): Likewise.
72280         * lib/fseterr.c (fseterr): Likewise.
72281         * lib/fwritable.c (fwritable): Likewise.
72282         * lib/fwriting.c (fwriting): Likewise.
72283         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
72285 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
72287         * lib/config.charset: Treat Haiku like BeOS.
72289 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
72291         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
72292         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
72294 2008-11-08  Bruno Haible  <bruno@clisp.org>
72296         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
72297         AC_CACHE_CHECK.
72299 2008-11-08  Bruno Haible  <bruno@clisp.org>
72301         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
72303 2008-11-08  Bruno Haible  <bruno@clisp.org>
72305         * tests/test-select-fd.c: New file.
72306         * tests/test-select-in.sh: New file.
72307         * tests/test-select-out.sh: New file.
72308         * tests/test-select-stdin.c: New file.
72309         * modules/select-tests (Files): Add the new files.
72310         (Depends-on): Add gettimeofday.
72311         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
72312         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
72313         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
72315 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
72316             Bruno Haible  <bruno@clisp.org>
72318         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
72320 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
72322         * build-aux/pmccabe2html: Added support for C++ source files.
72324 2008-11-05  Ben Pfaff  <blp@gnu.org>
72326         Fix lib/close.c build on Windows.
72327         * modules/close (Files): Add lib/w32sock.h.
72329 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
72331         Accept Bison's NEWS format.
72332         * build-aux/announce-gen (print_news_deltas): Tweak
72333         $re_prefix.
72335 2008-11-04  Bruno Haible  <bruno@clisp.org>
72337         * modules/random_r (Maintainer): Add glibc.
72339 2008-11-04  Simon Josefsson  <simon@josefsson.org>
72341         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
72342         by karl@freefriends.org (Karl Berry).
72343         * doc/alloca.texi: Likewise.
72344         * doc/c-ctype.texi: Likewise.
72345         * doc/c-strcase.texi: Likewise.
72346         * doc/c-strcaseeq.texi: Likewise.
72347         * doc/c-strcasestr.texi: Likewise.
72348         * doc/c-strstr.texi: Likewise.
72349         * doc/c-strtod.texi: Likewise.
72350         * doc/c-strtold.texi: Likewise.
72351         * doc/ctime.texi: Likewise.
72352         * doc/error.texi: Likewise.
72353         * doc/fdl.texi: Likewise.
72354         * doc/gcd.texi: Likewise.
72355         * doc/getdate.texi: Likewise.
72356         * doc/gnulib-intro.texi: Likewise.
72357         * doc/gnulib-tool.texi: Likewise.
72358         * doc/gnulib.texi: Likewise.
72359         * doc/inet_ntoa.texi: Likewise.
72360         * doc/maintain.texi: Likewise.
72361         * doc/make-stds.texi: Likewise.
72362         * doc/quote.texi: Likewise.
72363         * doc/regexprops-generic.texi: Likewise.
72364         * doc/standards.texi: Likewise.
72365         * doc/verify.texi: Likewise.
72366         * doc/visibility.texi: Likewise.
72367         * doc/gnulib.texi (GNU Free Documentation License): Include
72368         fdl-1.3.texi instead of fdl.texi.
72370 2008-11-04  Simon Josefsson  <simon@josefsson.org>
72372         * doc/fdl-1.3.texi: New file, from
72373         <http://www.gnu.org/licenses/fdl-1.3.texi>.
72374         * modules/fdl-1.3: Add.
72375         * MODULES.html.sh: Add fdl-1.3.
72377 2008-11-03  Bruno Haible  <bruno@clisp.org>
72379         Make determination of absolute name of header file work with AIX xlc.
72380         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
72381         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
72382         preprocessing.
72383         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
72384         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
72386 2008-11-03  Simon Josefsson  <simon@josefsson.org>
72388         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
72389         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
72390         <ludo@gnu.org>.
72392 2008-11-02  Bruno Haible  <bruno@clisp.org>
72394         Mark 'strpbrk' obsolete.
72395         * modules/strpbrk (Status, Notice): New sections.
72396         * modules/strtok_r (Depends-on): Add strpbrk.
72398 2008-11-02  Bruno Haible  <bruno@clisp.org>
72400         Mark 'strdup' obsolete.
72401         * modules/strdup (Status, Notice): New sections.
72402         * modules/findprog (Depends-on): Add strdup.
72403         * modules/getaddrinfo (Depends-on): Likewise.
72404         * modules/localename (Depends-on): Likewise.
72405         * modules/relocatable-lib (Depends-on): Likewise.
72406         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
72407         * modules/relocatable-prog (Depends-on): Likewise.
72408         * modules/trim (Depends-on): Likewise.
72409         * modules/unictype/gen-ctype (Depends-on): Likewise.
72410         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
72412 2008-11-02  Bruno Haible  <bruno@clisp.org>
72414         Mark 'strcspn' obsolete.
72415         * modules/strcspn (Status, Notice): New sections.
72417 2008-11-02  Bruno Haible  <bruno@clisp.org>
72419         Mark 'rmdir' obsolete.
72420         * modules/rmdir (Status, Notice): New sections.
72421         * modules/clean-temp (Depends-on): Add rmdir.
72422         * modules/openat (Depends-on): Likewise.
72424 2008-11-02  Bruno Haible  <bruno@clisp.org>
72426         Mark 'raise' obsolete.
72427         * modules/raise (Status, Notice): New sections.
72428         (Include): Specify <signal.h>.
72429         * modules/stdio (Depends-on): Add raise.
72430         * modules/write (Depends-on): Likewise.
72432 2008-11-02  Bruno Haible  <bruno@clisp.org>
72434         Mark 'memset' obsolete.
72435         * modules/memset (Status, Notice): New sections.
72437 2008-11-02  Bruno Haible  <bruno@clisp.org>
72439         Mark 'memmove' obsolete.
72440         * modules/memmove (Status, Notice): New sections.
72441         * modules/argp (Depends-on): Add memmove.
72442         * modules/argz (Depends-on): Likewise.
72443         * modules/canonicalize (Depends-on): Likewise.
72444         * modules/canonicalize-lgpl (Depends-on): Likewise.
72445         * modules/fts (Depends-on): Likewise.
72446         * modules/getcwd (Depends-on): Likewise.
72447         * modules/human (Depends-on): Likewise.
72448         * modules/regex (Depends-on): Likewise.
72449         * modules/striconveh (Depends-on): Likewise.
72450         * modules/trim (Depends-on): Likewise.
72451         * modules/unistr/u8-move (Depends-on): Likewise.
72452         * modules/unistr/u16-move (Depends-on): Likewise.
72453         * modules/unistr/u32-move (Depends-on): Likewise.
72455 2008-11-02  Bruno Haible  <bruno@clisp.org>
72457         Mark 'memcpy' obsolete.
72458         * modules/memcpy (Status, Notice): New sections.
72460 2008-11-02  Bruno Haible  <bruno@clisp.org>
72462         Mark 'memcmp' obsolete.
72463         * modules/memcmp (Status, Notice): New sections.
72464         * modules/argmatch (Depends-on): Add memchr.
72465         * modules/backupfile (Depends-on): Likewise.
72466         * modules/c-strcasestr (Depends-on): Likewise.
72467         * modules/crypto/des (Depends-on): Likewise.
72468         * modules/csharpcomp (Depends-on): Likewise.
72469         * modules/fnmatch (Depends-on): Likewise.
72470         * modules/git-merge-changelog (Depends-on): Likewise.
72471         * modules/isnand (Depends-on): Likewise.
72472         * modules/isnand-nolibm (Depends-on): Likewise.
72473         * modules/isnanf (Depends-on): Likewise.
72474         * modules/isnanf-nolibm (Depends-on): Likewise.
72475         * modules/isnanl (Depends-on): Likewise.
72476         * modules/isnanl-nolibm (Depends-on): Likewise.
72477         * modules/mbchar (Depends-on): Likewise.
72478         * modules/memcoll (Depends-on): Likewise.
72479         * modules/quotearg (Depends-on): Likewise.
72480         * modules/regex (Depends-on): Likewise.
72481         * modules/relocatable-prog (Depends-on): Likewise.
72482         * modules/same (Depends-on): Likewise.
72483         * modules/signbit (Depends-on): Likewise.
72484         * modules/strcasestr-simple (Depends-on): Likewise.
72485         * modules/unictype/gen-ctype (Depends-on): Likewise.
72486         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
72487         * modules/uniname/uniname (Depends-on): Likewise.
72488         * modules/unistr/u8-cmp (Depends-on): Likewise.
72490 2008-11-02  Bruno Haible  <bruno@clisp.org>
72492         Mark 'memchr' obsolete.
72493         * modules/memchr (Status, Notice): New sections.
72494         * modules/argp (Depends-on): Add memchr.
72495         * modules/base64 (Depends-on): Likewise.
72496         * modules/c-strcasestr (Depends-on): Likewise.
72497         * modules/chdir-long (Depends-on): Likewise.
72498         * modules/fnmatch (Depends-on): Likewise.
72499         * modules/getsubopt (Depends-on): Likewise.
72500         * modules/git-merge-changelog (Depends-on): Likewise.
72501         * modules/glob (Depends-on): Likewise.
72502         * modules/strcasestr-simple (Depends-on): Likewise.
72503         * modules/strnlen (Depends-on): Likewise.
72505 2008-11-02  Bruno Haible  <bruno@clisp.org>
72507         Mark 'atexit' obsolete.
72508         * modules/atexit (Status, Notice): New sections.
72509         * modules/chdir-long (Depends-on): Add atexit.
72510         * modules/wait-process (Depends-on): Likewise.
72512 2008-11-02  Bruno Haible  <bruno@clisp.org>
72514         * gnulib-tool: New option --with-obsolete.
72515         (func_usage): Document it.
72516         (func_modules_transitive_closure): Drop obsolete dependencies if
72517         incobsolete is not true.
72518         (func_import): Read and save the incobsolete variable to the cache.
72520 2008-11-02  Bruno Haible  <bruno@clisp.org>
72522         * modules/TEMPLATE-EXTENDED: New field 'Status'.
72523         * gnulib-tool: New option --extract-status.
72524         (func_usage): Document it.
72525         (sed_extract_prog): Recognize it.
72526         (func_get_status): New function.
72528 2008-10-30  Simon Josefsson  <simon@josefsson.org>
72530         * modules/sockets (License): Change from LGPL to LGPLv2+.
72532 2008-10-28  Simon Josefsson  <simon@josefsson.org>
72534         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
72536 2008-10-28  Simon Josefsson  <simon@josefsson.org>
72538         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72539         Mention times and sys_times.
72540         * modules/sys_times, modules/sys_times-tests: New modules.
72541         * modules/times, modules/times-tests: Likewise
72542         * m4/sys_times_h.m4: New file.
72543         * lib/sys_times.in.h: Likewise
72544         * lib/times.c: Likewise.
72545         * tests/test-sys_times.c: Likewise.
72546         * tests/test-times.c: Likewise.
72547         * doc/posix-headers/sys_times.texi: Update.
72548         * doc/posix-functions/times.texi: Update.
72550 2008-10-28  Jim Meyering  <meyering@redhat.com>
72552         * modules/tempname (Depends-on): Add lstat.
72554         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
72556 2008-10-28  Simon Josefsson  <simon@josefsson.org>
72558         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
72559         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
72560         using idiom used elsewhere in gnulib.
72562 2008-10-27  Jim Meyering  <meyering@redhat.com>
72564         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
72566 2008-10-27  Simon Josefsson  <simon@josefsson.org>
72568         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
72569         TESTS_ENVIRONMENT, for shell scripts that needs to call built
72570         programs.
72571         * tests/test-argp-2.sh: Use $EXEEXT when needed.
72573 2008-10-27  Simon Josefsson  <simon@josefsson.org>
72575         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
72577 2008-10-27  Bruno Haible  <bruno@clisp.org>
72579         * tests/test-lstat.c: Include <stdio.h>.
72581 2008-10-27  Simon Josefsson  <simon@josefsson.org>
72583         * modules/lstat-tests: New module.
72584         * tests/test-lstat.c: New file.
72586 2008-10-26  Jim Meyering  <meyering@redhat.com>
72588         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
72590 2008-10-26  Simon Josefsson  <simon@josefsson.org>
72591             Bruno Haible  <bruno@clisp.org>
72593         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
72594         * modules/configmake (Include): Add a note that the include must come
72595         after all system headers.
72596         * lib/javaversion.c: Include configmake.h after all other includes.
72598 2008-10-26  Bruno Haible  <bruno@clisp.org>
72600         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
72601         HAVE_STRUCT_RANDOM_DATA to 1.
72602         (gl_STDLIB_H): Simplify.
72604 2008-10-26  Simon Josefsson  <simon@josefsson.org>
72606         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
72607         substitute HAVE_STRUCT_RANDOM_DATA.
72608         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
72609         random_data.
72610         * modules/stdlib (Makefile.am): Substitute
72611         HAVE_STRUCT_RANDOM_DATA.
72613 2008-10-26  Simon Josefsson  <simon@josefsson.org>
72615         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
72616         * doc/gnulib-intro.texi (Copyright): Likewise.
72618 2008-10-26  Simon Josefsson  <simon@josefsson.org>
72620         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
72621         findings.
72623 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
72624             Bruno Haible  <bruno@clisp.org>
72626         * lib/unistd.in.h: Include <winsock2.h>.
72627         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
72628         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
72629         Provide dummy declarations.
72630         (gethostname): Override.
72631         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
72632         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
72633         gl_PREREQ_SYS_H_WINSOCK2.
72634         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
72635         * doc/posix-functions/gethostname.texi: More details.
72637 2008-10-25  Bruno Haible  <bruno@clisp.org>
72639         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
72640         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
72641         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
72643         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
72644         here ...
72645         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
72646         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
72647         gl_UNISTD_H_DEFAULTS.
72649 2008-10-25  Eric Blake  <ebb9@byu.net>
72651         signbit: avoid spurious compiler failure
72652         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
72653         declarations inside function.
72655 2008-10-24  Simon Josefsson  <simon@josefsson.org>
72656             Bruno Haible  <bruno@clisp.org>
72658         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
72659         * modules/random_r (Depends-on): Add stdint.
72661 2008-10-24  Bruno Haible  <bruno@clisp.org>
72663         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
72664         Eggert.
72665         * modules/strerror (License): Likewise.
72667 2008-10-24  Jim Meyering  <meyering@redhat.com>
72669         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
72670         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
72672 2008-10-24  Eric Blake  <ebb9@byu.net>
72674         getgroups: fix compilation when getgroups is available
72675         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
72676         but with <config.h> override of getgroups disabled.
72678 2008-10-24  Simon Josefsson  <simon@josefsson.org>
72680         * doc/gnulib.texi (Header files): Add note about C++ problems.
72681         Explained by Bruno Haible <bruno@clisp.org>.
72683 2008-10-23  Bruno Haible  <bruno@clisp.org>
72685         Define a dummy SA_NODEFER macro on Interix.
72686         * lib/signal.in.h (SA_NODEFER): Define fallback.
72687         Reported by Aleksey Cheusov <cheusov@tut.by> via
72688         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
72690 2008-10-23  Bruno Haible  <bruno@clisp.org>
72692         * modules/freadahead (License): Change to LGPLv2+.
72693         Suggested by Simon Josefsson.
72695 2008-10-23  Jim Meyering  <meyering@redhat.com>
72697         random_r: new module
72698         * modules/random_r: New file.
72699         * m4/random_r.m4: New file.
72700         * lib/random_r.c: New file, from glibc.
72701         * modules/random_r-tests: New file.
72702         * tests/test-random_r.c: New file.
72703         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
72704          Declare.
72705         (RAND_MAX): Define.
72706         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
72707         * modules/stdlib: Substitute them, too.
72708         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
72709         * doc/glibc-functions/initstate_r.texi: Mention the new module.
72710         * doc/glibc-functions/random_r.texi: Likewise.
72711         * doc/glibc-functions/setstate_r.texi: Likewise.
72712         * doc/glibc-functions/srandom_r.texi: Likewise.
72713         * config/srclist.txt: Mention it.
72715 2008-10-23  David Lutterkort  <lutter@redhat.com>
72717         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
72718         link requirement
72720 2008-10-23  Jim Meyering  <meyering@redhat.com>
72722         selinux-h: mark parameters of stub functions as intentionally unused
72723         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
72724         * lib/se-context.in.h: Likewise.
72726 2008-10-22  Simon Josefsson  <simon@josefsson.org>
72728         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
72730 2008-10-22  Simon Josefsson  <simon@josefsson.org>
72732         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
72734 2008-10-22  Eric Blake  <ebb9@byu.net>
72736         glthread/thread: avoid compiler warning
72737         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
72738         Add unreachable abort to silence compiler.
72740 2008-10-22  Eric Blake  <ebb9@byu.net>
72742         netdb: also supply struct addrinfo for cygwin 1.5.x
72743         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
72744         older cygwin.
72745         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
72746         cygwin.
72747         * doc/posix-headers/netdb.texi (netdb.h): Document this.
72749 2008-10-22  Bruno Haible  <bruno@clisp.org>
72751         * users.txt: Update entry about pspp.
72753 2008-10-21  Bruno Haible  <bruno@clisp.org>
72755         Simplification.
72756         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
72757         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
72759         Simplification.
72760         * lib/ioctl.c (ioctl): Don't undefine.
72761         * lib/socket.c (socket): Don't undefine.
72763         Remove unused module indicator macros.
72764         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
72765         GNULIB_$1 as a C macro.
72767         * doc/posix-functions/close.texi: Undo last change.
72768         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
72769         Windows platforms.
72771 2008-10-21  Bruno Haible  <bruno@clisp.org>
72773         Add gethostname() declaration to <unistd.h>.
72774         * lib/unistd.in.h (gethostname): New declaration.
72775         * lib/gethostname.c: Include <unistd.h>.
72776         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
72777         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
72778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
72779         and HAVE_GETHOSTNAME.
72780         * modules/gethostname (Depends-on): Add unistd.
72781         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72782         (Include): Specify <unistd.h>.
72783         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
72784         HAVE_GETHOSTNAME.
72785         * tests/test-gethostname.c: Include <unistd.h> first.
72787 2008-10-21  Bruno Haible  <bruno@clisp.org>
72789         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
72790         * modules/select-tests (Depends-on): Likewise.
72791         Reported by Simon Josefsson.
72793 2008-10-21  Simon Josefsson  <simon@josefsson.org>
72795         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
72796         * lib/accept.c: New file, based on winsock.c.
72797         * lib/bind.c: New file, based on winsock.c.
72798         * lib/connect.c: New file, based on winsock.c.
72799         * lib/getpeername.c: New file, based on winsock.c.
72800         * lib/getsockname.c: New file, based on winsock.c.
72801         * lib/getsockopt.c: New file, based on winsock.c.
72802         * lib/ioctl.c: New file, based on winsock.c.
72803         * lib/listen.c: New file, based on winsock.c.
72804         * lib/recv.c: New file, based on winsock.c.
72805         * lib/recvfrom.c: New file, based on winsock.c.
72806         * lib/send.c: New file, based on winsock.c.
72807         * lib/sendto.c: New file, based on winsock.c.
72808         * lib/setsockopt.c: New file, based on winsock.c.
72809         * lib/shutdown.c: New file, based on winsock.c.
72810         * lib/socket.c: New file, based on winsock.c.
72811         * lib/w32sock.h: New file, based on winsock.c.
72812         * lib/winsock.c: Remove file.
72813         * modules/accept: Likewise.
72814         * modules/bind: Likewise.
72815         * modules/connect: Likewise.
72816         * modules/getpeername: Likewise.
72817         * modules/getsockname: Likewise.
72818         * modules/getsockopt: Likewise.
72819         * modules/ioctl: Likewise.
72820         * modules/listen: Likewise.
72821         * modules/recv: Likewise.
72822         * modules/recvfrom: Likewise.
72823         * modules/send: Likewise.
72824         * modules/sendto: Likewise.
72825         * modules/setsockopt: Likewise.
72826         * modules/shutdown: Likewise.
72827         * modules/socket: Use socket.c instead of winsock.c.
72828         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
72829         * doc/posix-functions/accept.texi: Doc fix.
72830         * doc/posix-functions/bind.texi: Doc fix.
72831         * doc/posix-functions/close.texi: Doc fix.
72832         * doc/posix-functions/connect.texi: Doc fix.
72833         * doc/posix-functions/getpeername.texi: Doc fix.
72834         * doc/posix-functions/getsockname.texi: Doc fix.
72835         * doc/posix-functions/getsockopt.texi: Doc fix.
72836         * doc/posix-functions/ioctl.texi: Doc fix.
72837         * doc/posix-functions/listen.texi: Doc fix.
72838         * doc/posix-functions/recv.texi: Doc fix.
72839         * doc/posix-functions/recvfrom.texi: Doc fix.
72840         * doc/posix-functions/send.texi: Doc fix.
72841         * doc/posix-functions/sendto.texi: Doc fix.
72842         * doc/posix-functions/setsockopt.texi: Doc fix.
72843         * doc/posix-functions/shutdown.texi: Doc fix.
72844         * doc/posix-functions/socket.texi: Doc fix.
72846 2008-10-20  Bruno Haible  <bruno@clisp.org>
72848         Take into account the role of SIGABRT_COMPAT on Windows 2008.
72849         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
72850         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
72851         as an alias for SIGABRT.
72852         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
72853         (sigaction): Map it to SIGABRT.
72854         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
72856 2008-10-20  Bruno Haible  <bruno@clisp.org>
72858         * lib/fts.c: Don't include lstat.h.
72859         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
72861         Move the lstat() declaration to <sys/stat.h>.
72862         * lib/lstat.h: Remove file.
72863         * lib/sys_stat.in.h: Add special invocation convention.
72864         (lstat): New declaration.
72865         * lib/lstat.c (orig_lstat): New function.
72866         (rpl_lstat): Use orig_lstat instead of lstat.
72867         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
72868         AC_C_INLINE. Set REPLACE_LSTAT.
72869         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
72870         and REPLACE_LSTAT.
72871         * modules/lstat (Files): Remove lib/lstat.h.
72872         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
72873         (Include): Specify <sys/stat.h> instead of lstat.h.
72874         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
72875         REPLACE_LSTAT.
72876         * NEWS: Mention the change.
72878 2008-10-20  Bruno Haible  <bruno@clisp.org>
72880         * modules/posix_spawn-tests: New file.
72881         * tests/test-posix_spawn3.c: New file.
72883 2008-10-20  Bruno Haible  <bruno@clisp.org>
72885         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
72886         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
72887         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
72888         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
72889         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
72891 2008-10-20  Bruno Haible  <bruno@clisp.org>
72893         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
72894         of posix_spawn on AIX 5.3.
72896 2008-10-20  Bruno Haible  <bruno@clisp.org>
72898         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
72900 2008-10-20  Bruno Haible  <bruno@clisp.org>
72902         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
72903         of AC_LANG_PROGRAM.
72905 2008-10-20  Simon Josefsson  <simon@josefsson.org>
72907         * lib/netdb.in.h: Don't define GNU specific constants until they
72908         are supported or needed.  Reported by Bruno Haible
72909         <bruno@clisp.org>.
72911 2008-10-20  Simon Josefsson  <simon@josefsson.org>
72913         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
72915 2008-10-20  Simon Josefsson  <simon@josefsson.org>
72917         * lib/getaddrinfo.h: Remove file.
72918         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
72919         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
72920         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
72921         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
72922         * modules/netdb: Substitute GNULIB_GETADDRINFO.
72923         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
72924         * tests/test-getaddrinfo.c: Likewise.
72925         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
72926         * NEWS: Mention change.
72928 2008-10-19  Bruno Haible  <bruno@clisp.org>
72930         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
72932 2008-10-19  Bruno Haible  <bruno@clisp.org>
72934         * lib/wait-process.c: Include simply <sys/wait.h>.
72935         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
72936         WIFSTOPPED): Remove fallback definitions.
72937         * modules/wait-process (Depends-on): Add sys_wait.
72939         New module 'sys_wait'.
72940         * modules/sys_wait: New file.
72941         * lib/sys_wait.in.h: New file, partially copied from
72942         lib/wait-process.c.
72943         * m4/sys_wait_h.m4: New file.
72944         * doc/posix-headers/sys_wait.texi: Mention the new module.
72946 2008-10-19  Bruno Haible  <bruno@clisp.org>
72948         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
72950 2008-10-19  Bruno Haible  <bruno@clisp.org>
72952         Assume that waitpid() fills an 'int' status, not a 'union wait'.
72953         * lib/wait-process.c (WAIT_T): Remove type.
72954         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
72955         (wait_subprocess): Update.
72957 2008-10-19  Bruno Haible  <bruno@clisp.org>
72959         New module 'atoll'.
72960         * modules/atoll: New file.
72961         * lib/stdlib.in.h (atoll): New declaration.
72962         * lib/atoll.c: New file, from glibc with modifications.
72963         * m4/atoll.m4: New file.
72964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
72965         HAVE_ATOLL.
72966         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
72967         * doc/posix-functions/atoll.texi: Mention the new module.
72969 2008-10-19  Bruno Haible  <bruno@clisp.org>
72971         Add strtoull() declaration to <stdlib.h>.
72972         * lib/stdlib.in.h (strtoull): New declaration.
72973         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
72974         Set HAVE_STRTOULL.
72975         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
72976         HAVE_STRTOULL.
72977         * modules/strtoull (Depends-on): Add stdlib.
72978         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72979         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
72980         HAVE_STRTOULL.
72982 2008-10-19  Bruno Haible  <bruno@clisp.org>
72984         Add strtoll() declaration to <stdlib.h>.
72985         * lib/stdlib.in.h (strtoll): New declaration.
72986         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
72987         Set HAVE_STRTOLL.
72988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
72989         HAVE_STRTOLL.
72990         * modules/strtoll (Depends-on): Add stdlib.
72991         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72992         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
72994 2008-10-19  Bruno Haible  <bruno@clisp.org>
72996         * modules/bcopy (Depends-on): Add strings.
72997         (Include): Specify <strings.h>.
72999 2008-10-19  Bruno Haible  <bruno@clisp.org>
73001         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
73003 2008-10-19  Bruno Haible  <bruno@clisp.org>
73005         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
73006         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
73007         mingw.
73009 2008-10-19  Bruno Haible  <bruno@clisp.org>
73011         * lib/atanl.c: Don't include isnanl.h.
73012         * lib/cosl.c: Likewise.
73013         * lib/ldexpl.c: Likewise.
73014         * lib/logl.c: Likewise.
73015         * lib/sinl.c: Likewise.
73016         * lib/sqrtl.c: Likewise.
73017         * lib/tanl.c: Likewise.
73019         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
73020         * lib/isnanf.h: Remove file.
73021         * lib/isnand.h: Remove file.
73022         * lib/isnanl.h: Remove file.
73023         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
73024         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
73025         macros.
73026         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
73027         HAVE_ISNANF, don't define it as a C macro.
73028         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
73029         HAVE_ISNAND, don't define it as a C macro.
73030         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
73031         HAVE_ISNANL, don't define it as a C macro.
73032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
73033         HAVE_ISNAN[FDL].
73034         * modules/isnanf (Files): Remove lib/isnanf.h.
73035         (Depends-on): Add math.
73036         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
73037         (Include): Specify <math.h> instead of isnanf.h.
73038         * modules/isnand (Files): Remove lib/isnand.h.
73039         (Depends-on): Add math.
73040         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
73041         (Include): Specify <math.h> instead of isnand.h.
73042         * modules/isnanl (Files): Remove lib/isnanl.h.
73043         (Depends-on): Add math.
73044         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
73045         (Include): Specify <math.h> instead of isnanl.h.
73046         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
73047         HAVE_ISNAN[FDL].
73048         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
73049         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
73050         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
73051         * NEWS: Mention the change.
73053 2008-10-18  Bruno Haible  <bruno@clisp.org>
73055         Add getusershell(), setusershell(), endusershell() declarations to
73056         <unistd.h>.
73057         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
73058         declarations.
73059         * lib/getusershell.c: Include unistd.h.
73060         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
73061         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
73062         HAVE_GETUSERSHELL.
73063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
73064         and HAVE_GETUSERSHELL.
73065         * modules/getusershell (Depends-on): Add unistd, extensions.
73066         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73067         (Include): Specify <unistd.h>.
73068         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
73069         HAVE_GETUSERSHELL.
73071 2008-10-18  Bruno Haible  <bruno@clisp.org>
73073         Add a getloadavg() declaration to <stdlib.h>.
73074         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
73075         getloadavg declaration.
73076         (getloadavg): New declaration.
73077         * lib/getloadavg.c: Include <stdlib.h> first.
73078         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
73079         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
73080         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
73081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
73082         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
73083         * modules/getloadavg (Depends-on): Add stdlib, extensions.
73084         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73085         (Include): Specify <stdlib.h>.
73086         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
73087         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
73089 2008-10-18  Bruno Haible  <bruno@clisp.org>
73091         * lib/dirchownmod.c: Don't include lchmod.h.
73093         Move the lchmod() declaration to <sys/stat.h>.
73094         * lib/lchmod.h: Remove file.
73095         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
73096         (lchmod): New declaration, moved here from lib/lchown.h.
73097         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
73098         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
73099         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
73100         and HAVE_LCHMOD.
73101         * modules/lchmod (Files): Remove lib/lchmod.h.
73102         (Depends-on): Add sys_stat, extensions.
73103         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
73104         (Include): Specify <sys/stat.h> instead of lchmod.h.
73105         * modules/sys_stat (Depends-on): Add link-warning.
73106         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
73107         definition of GL_LINK_WARNING.
73108         * NEWS: Mention the change.
73110 2008-10-18  Bruno Haible  <bruno@clisp.org>
73112         * lib/fchdir.c: Don't include dirfd.h.
73113         * lib/fts.c: Likewise.
73114         * lib/getcwd.c: Likewise.
73115         * lib/glob.c: Likewise.
73117         Move the dirfd() declaration to <dirent.h>.
73118         * lib/dirfd.h: Remove file.
73119         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
73120         (dirfd): New declaration.
73121         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
73122         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
73123         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
73124         HAVE_DECL_DIRFD.
73125         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
73126         HAVE_DECL_DIRFD.
73127         * modules/dirfd (Files): Remove lib/dirfd.h.
73128         (Depends-on): Add dirent, extensions.
73129         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
73130         (Include): Specify <dirent.h> instead of dirfd.h.
73131         * modules/dirent (Depends-on): Add link-warning.
73132         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
73133         definition of GL_LINK_WARNING.
73134         * NEWS: Mention the change.
73136 2008-10-18  Bruno Haible  <bruno@clisp.org>
73138         Move the euidaccess() declaration to <unistd.h>.
73139         * lib/euidaccess.h: Remove file.
73140         * lib/unistd.in.h (euidaccess): New declaration.
73141         * lib/euidaccess.c: Don't include euidaccess.h.
73142         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
73143         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
73144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
73145         and HAVE_EUIDACCESS.
73146         * modules/euidaccess (Files): Remove lib/euidaccess.h.
73147         (Depends-on): Add unistd.
73148         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73149         (Include): Specify <unistd.h> instead of euidaccess.h.
73150         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
73151         HAVE_EUIDACCESS.
73152         * NEWS: Mention the change.
73154 2008-10-18  Bruno Haible  <bruno@clisp.org>
73156         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
73158         Move the getdomainname() declaration to <unistd.h>.
73159         * lib/getdomainname.h: Remove file.
73160         * lib/unistd.in.h (getdomainname): New declaration.
73161         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
73162         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
73163         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
73164         HAVE_GETDOMAINNAME.
73165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
73166         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
73167         * modules/getdomainname (Files): Remove lib/getdomainname.h.
73168         (Depends-on): Add unistd, extensions.
73169         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73170         (Includes): Specify <unistd.h> instead of getdomainname.h.
73171         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
73172         HAVE_GETDOMAINNAME.
73173         * NEWS: Mention the change.
73175 2008-10-18  Bruno Haible  <bruno@clisp.org>
73177         * modules/dirent: New file.
73178         * m4/dirent_h.m4: New file.
73179         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
73180         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
73181         * modules/fchdir (Files): Remove lib/dirent.in.h.
73182         (Depends-on): Add dirent.
73183         (Makefile.am): Move rules to modules/dirent.
73184         * doc/posix-headers/dirent.texi: Mention the new module.
73186 2008-10-18  Bruno Haible  <bruno@clisp.org>
73188         Avoid -Wunused-parameter warnings in public gnulib header files.
73189         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
73190         macro.
73191         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
73193 2008-10-18  Bruno Haible  <bruno@clisp.org>
73195         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
73196         * doc/glibc-functions/error.texi: Mention the module 'error'.
73197         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
73198         * doc/glibc-functions/getdomainname.texi: Mention the module
73199         'getdomainname'.
73200         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
73201         * doc/glibc-functions/getpagesize.texi: Mention the module
73202         'getpagesize'.
73203         * doc/glibc-functions/getusershell.texi: Mention the module
73204         'getusershell'.
73205         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
73206         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
73207         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
73208         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
73209         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
73210         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
73211         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
73212         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
73213         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
73214         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
73215         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
73216         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
73217         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
73218         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
73220 2008-10-17  Bruno Haible  <bruno@clisp.org>
73222         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
73223         HP-UX and IRIX, use -0.0L.
73224         * tests/test-ceill.c (minus_zero): Likewise.
73225         * tests/test-floorl.c (minus_zero): Likewise.
73226         * tests/test-frexpl.c (minus_zero): Likewise.
73227         * tests/test-isnan.c (minus_zerol): Likewise.
73228         * tests/test-isnanl.h (minus_zero): Likewise.
73229         * tests/test-ldexpl.c (minus_zero): Likewise.
73230         * tests/test-roundl.c (minus_zero): Likewise.
73231         * tests/test-signbit.c (minus_zerol): Likewise.
73232         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
73233         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
73234         * tests/test-truncl.c (minus_zero): Likewise.
73235         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
73236         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
73237         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
73238         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
73240 2008-10-17  Bruno Haible  <bruno@clisp.org>
73242         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
73243         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
73244         that it gets activated only for gcc >= 3.0.
73245         * lib/dirent.in.h: Likewise.
73246         * lib/errno.in.h: Likewise.
73247         * lib/fcntl.in.h: Likewise.
73248         * lib/float.in.h: Likewise.
73249         * lib/iconv.in.h: Likewise.
73250         * lib/inttypes.in.h: Likewise.
73251         * lib/locale.in.h: Likewise.
73252         * lib/math.in.h: Likewise.
73253         * lib/netdb.in.h: Likewise.
73254         * lib/netinet_in.in.h: Likewise.
73255         * lib/search.in.h: Likewise.
73256         * lib/signal.in.h: Likewise.
73257         * lib/spawn.in.h: Likewise.
73258         * lib/stdarg.in.h: Likewise.
73259         * lib/stdint.in.h: Likewise.
73260         * lib/stdio.in.h: Likewise.
73261         * lib/stdlib.in.h: Likewise.
73262         * lib/string.in.h: Likewise.
73263         * lib/strings.in.h: Likewise.
73264         * lib/sys_file.in.h: Likewise.
73265         * lib/sys_ioctl.in.h: Likewise.
73266         * lib/sys_select.in.h: Likewise.
73267         * lib/sys_socket.in.h: Likewise.
73268         * lib/sys_stat.in.h: Likewise.
73269         * lib/sys_time.in.h: Likewise.
73270         * lib/sysexits.in.h: Likewise.
73271         * lib/time.in.h: Likewise.
73272         * lib/unistd.in.h: Likewise.
73273         * lib/wchar.in.h: Likewise.
73274         * lib/wctype.in.h: Likewise.
73275         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73277 2008-10-17  Jim Meyering  <meyering@redhat.com>
73279         ignore-value: don't depend on inline module
73280         * modules/ignore-value (Depends-on): Remove 'inline'.
73281         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
73282         Suggestion from Bruno Haible.
73284 2008-10-17  Bruno Haible  <bruno@clisp.org>
73286         New implementation of condition variables for Win32.
73287         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
73288         (gl_linked_waitqueue_t): New type.
73289         (gl_cond_t): Use it.
73290         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
73291         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
73292         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
73293         (glthread_cond_init_func, glthread_cond_wait_func,
73294         glthread_cond_timedwait_func, glthread_cond_signal_func,
73295         glthread_cond_broadcast_func, glthread_cond_destroy_func):
73296         Reimplemented on the basis of gl_linked_waitqueue_t.
73297         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
73298         gl_waitqueue_t.
73299         (gl_rwlock_t): Update.
73300         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
73302 2008-10-17  Simon Josefsson  <simon@josefsson.org>
73304         * modules/recvfrom (Depends-on): Add dependency on getpeername.
73305         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73307 2008-10-17  Jim Meyering  <meyering@redhat.com>
73309         ignore-value: new module
73310         * modules/ignore-value: New file.
73311         * lib/ignore-value.h: New file.
73312         * MODULES.html.sh (Compiler warning management): New section,
73313         just for this module.  More to come.
73315 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
73317         open-safer.c: avoid 'signed and unsigned in conditional...' warning
73318         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
73319         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
73321 2008-10-16  Jim Meyering  <meyering@redhat.com>
73323         openat-die.c: avoid 'no previous prototype' warning
73324         * lib/openat-die.c: Include "openat.h".
73325         Reported by Reuben Thomas <rrt@sc3d.org>.
73327 2008-10-16  Simon Josefsson  <simon@josefsson.org>
73329         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
73330         * lib/netdb.in.h: Fix typo.
73331         Reported by Bruno Haible  <bruno@clisp.org>
73333         * lib/netdb.in.h: Include sys/socket.h for platforms without
73334         netdb.h, to get structures like hostent on MinGW.
73335         * modules/netdb (Depends-on): Add sys_socket.
73337 2008-10-15  Simon Josefsson  <simon@josefsson.org>
73339         * modules/netdb, modules/netdb-tests: New file.
73340         * m4/netdb_h.m4: New file.
73341         * lib/netdb.in.h: Add, currently just an empty file pending
73342         definitions.
73343         * tests/test-netdb.c: New file.
73344         * doc/posix-headers/netdb.texi: Mention that we replace it if
73345         needed.
73346         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73347         netdb.
73349 2008-10-15  Simon Josefsson  <simon@josefsson.org>
73351         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
73352         with code.
73354 2008-10-13  Bruno Haible  <bruno@clisp.org>
73356         * lib/glthread/cond.c (glthread_cond_wait_func,
73357         glthread_cond_timedwait_func): Add a comment.
73359 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73361         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
73362         * tests/test-select.c: Likewise,
73364 2008-10-13  Bruno Haible  <bruno@clisp.org>
73366         * lib/glthread/cond.c (glthread_cond_wait_func,
73367         glthread_cond_timedwait_func): Fix variable name.
73368         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73370 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
73372         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
73373         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
73374         struct sockaddr.sa_len.
73375         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
73377 2008-10-13  Simon Josefsson  <simon@josefsson.org>
73379         * build-aux/pmccabe2html: Add css and css_url parameters.
73381 2008-10-12  Bruno Haible  <bruno@clisp.org>
73383         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
73384         calling aclx_get.
73385         Reported by Rainer Tammer <tammer@tammer.net>.
73387 2008-10-12  Bruno Haible  <bruno@clisp.org>
73389         Use msvcrt aware primitives for creation/termination of Win32 threads.
73390         * lib/glthread/thread.c: Include <process.h>.
73391         (glthread_create_func): Use _beginthreadex instead of CreateThread.
73392         (wrapper_func): Update signature.
73393         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
73395 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73396             Bruno Haible  <bruno@clisp.org>
73398         Provide a Win32 implementation of the 'cond' module.
73399         * lib/glthread/cond.h [USE_WIN32]: New implementation.
73400         * lib/glthread/cond.c (glthread_cond_init_func,
73401         glthread_cond_wait_func, glthread_cond_timedwait_func,
73402         glthread_cond_signal_func, glthread_cond_broadcast_func,
73403         glthread_cond_destroy_func) [USE_WIN32]: New functions.
73404         * modules/cond (Dependencies): Add gettimeofday.
73406 2008-10-11  Bruno Haible  <bruno@clisp.org>
73408         Make sleep work on older versions of mingw.
73409         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
73410         only whether it exists.
73411         * doc/posix-functions/sleep.texi: Mention the problem with older
73412         versions of mingw.
73414 2008-10-11  Bruno Haible  <bruno@clisp.org>
73416         New module 'shutdown'.
73417         * modules/shutdown: New file.
73418         * lib/sys_socket.in.h (shutdown): New declaration.
73419         * lib/winsock.c (shutdown): New function.
73420         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
73421         GNULIB_SHUTDOWN.
73422         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
73423         * doc/posix-functions/shutdown.texi: Document the new module.
73425 2008-10-11  Jim Meyering  <meyering@redhat.com>
73427         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
73429 2008-10-11  Bruno Haible  <bruno@clisp.org>
73431         New module 'fclose'.
73432         * modules/fclose: New file.
73433         * lib/stdio.in.h (fclose): New declaration.
73434         * lib/fclose.c: New file.
73435         * m4/fclose.m4: New file.
73436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
73437         REPLACE_FCLOSE.
73438         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
73439         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
73440         REPLACE_FCLOSE.
73441         * modules/close (Depends-on): fclose.
73442         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
73444 2008-10-11  Bruno Haible  <bruno@clisp.org>
73446         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
73447         set errno and don't call _close.
73449 2008-10-10  Bruno Haible  <bruno@clisp.org>
73451         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
73452         ACL, not afterwards. Fixes test failure on Cygwin.
73454 2008-10-09  Ben Pfaff  <blp@gnu.org>
73456         * build-aux/announce-gen: Fix gnulib version related part of usage
73457         message.  Die with a useful error message if no tarballs are
73458         found.
73460 2008-10-10  Jim Meyering  <meyering@redhat.com>
73462         bootstrap: use git's --depth=N option only if it's supported
73463         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
73464         recognize the --depth option.  Reported by Pádraig Brady.
73466 2008-10-09  Bruno Haible  <bruno@clisp.org>
73468         New module 'ioctl'.
73469         * modules/ioctl: New file.
73470         * lib/sys_socket.in.h (ioctl): Remove declaration.
73471         * lib/winsock.c: Include <sys/ioctl.h>.
73472         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
73473         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
73474         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
73475         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
73476         * doc/posix-functions/ioctl.texi: Mention the new module.
73478 2008-10-09  Bruno Haible  <bruno@clisp.org>
73480         New module 'sys_ioctl'.
73481         * lib/sys_ioctl.in.h: New file.
73482         * m4/sys_ioctl_h.m4: New file.
73483         * modules/sys_ioctl: New file.
73484         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
73486 2008-10-09  Bruno Haible  <bruno@clisp.org>
73488         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
73489         * lib/winsock.c: Include <stdarg.h>.
73490         (rpl_ioctl): Change to second argument 'int' and then varargs.
73492 2008-10-09  Bruno Haible  <bruno@clisp.org>
73494         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
73495         when the sys_socket module is present and the system has <winsock2.h>.
73497 2008-10-09  Bruno Haible  <bruno@clisp.org>
73499         * doc/posix-functions/close.texi: Mention module 'close' instead of
73500         module 'sys_socket'.
73502 2008-10-09  Bruno Haible  <bruno@clisp.org>
73504         * doc/glibc-headers/sys_ioctl.texi: New file.
73505         * doc/gnulib.texi: Include it.
73507 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
73508             Bruno Haible  <bruno@clisp.org>
73510         Combine the two replacements of 'close'.
73511         * lib/sys_socket.in.h (close): Define to a reminder to include
73512         <unistd.h>.
73513         (_gl_close_fd_maybe_socket): New declaration.
73514         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
73515         * lib/winsock.c (close): Remove undefinition.
73516         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
73517         needed for the gnulib module 'close'.
73518         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
73519         define to an error symbol or to a warning, if suitable.
73520         * lib/close.c: Include <sys/socket.h>.
73521         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
73522         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
73523         UNISTD_H_HAVE_WINSOCK2_H.
73524         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
73525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
73526         UNISTD_H_HAVE_WINSOCK2_H.
73527         * modules/sys_socket (Files): Add m4/unistd_h.m4.
73528         (configure.ac): Set a module indicator.
73529         (Makefile.am): Substitute GNULIB_CLOSE.
73530         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
73531         * modules/poll-tests (Depends-on): Add close.
73532         * modules/select-tests (Depends-on): Likewise.
73534 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
73535             Bruno Haible  <bruno@clisp.org>
73537         New module 'close'.
73538         * modules/close: New file.
73539         * lib/unistd.in.h (close): Move declaration out of the
73540         FCHDIR_REPLACEMENT scope.
73541         (_gl_unregister_fd): New declaration.
73542         * lib/close.c: New file.
73543         * lib/fchdir.c (rpl_close): Remove function.
73544         * m4/close.m4: New file.
73545         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
73546         close.
73547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
73548         REPLACE_CLOSE.
73549         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
73550         REPLACE_CLOSE.
73551         * modules/fchdir (Depends-on): Add close.
73553 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
73554             Bruno Haible  <bruno@clisp.org>
73556         * lib/fcntl.in.h (open): Simplify conditionals.
73557         (_gl_register_fd): New declaration.
73558         * lib/fchdir.c (rpl_open): Remove function.
73559         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
73560         also.
73561         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
73562         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
73563         open.
73565 2008-10-09  Jim Meyering  <meyering@redhat.com>
73567         GNUmakefile: use the more name-space-friendly "_version"
73568         * top/GNUmakefile (_dummy): Update.
73569         (_version): Rename from "version".
73571 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
73572             Bruno Haible  <bruno@clisp.org>
73574         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
73575         rpl_close.
73576         (_gl_register_fd): New function, extracted from rpl_open.
73577         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
73578         (rpl_open, rpl_opendir): Use _gl_register_fd.
73580 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
73582         Fix organization of 'open' replacement.
73583         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
73584         (gl_FUNC_OPEN): Use it.
73585         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
73587 2008-10-08  Bruno Haible  <bruno@clisp.org>
73589         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
73591 2008-10-08  Simon Josefsson  <simon@josefsson.org>
73593         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
73594         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
73595         listen).
73597 2008-10-08  Eric Blake  <ebb9@byu.net>
73599         GNUmakefile: add 'make version' target
73600         * top/GNUmakefile (_curr-ver): Split version update rules...
73601         (version): ...into a target.
73603 2008-10-07  Bruno Haible  <bruno@clisp.org>
73605         Use a more portable replacement expression for -0.0L.
73606         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
73607         instead of -0.0L. Fix m4 quotation.
73609         * tests/test-signbit.c: Include <float.h>.
73610         (minus_zero): New variable.
73611         (test_signbitl): Use minus_zero instead of -zero.
73612         * modules/signbit-tests (Depends-on): Add float.
73614         * tests/test-ceill.c: Include <float.h>.
73615         (zero): Remove variable.
73616         (minus_zero): New variable.
73617         (main): Use minus_zero instead of -zero.
73618         * modules/ceill-tests (Depends-on): Add float.
73620         * tests/test-floorl.c: Include <float.h>.
73621         (zero): Remove variable.
73622         (minus_zero): New variable.
73623         (main): Use minus_zero instead of -zero.
73624         * modules/floorl-tests (Depends-on): Add float.
73626         * tests/test-roundl.c: Include <float.h>.
73627         (zero): Remove variable.
73628         (minus_zero): New variable.
73629         (main): Use minus_zero instead of -zero.
73630         * modules/roundl-tests (Depends-on): Add float.
73632         * tests/test-truncl.c: Include <float.h>.
73633         (zero): Remove variable.
73634         (minus_zero): New variable.
73635         (main): Use minus_zero instead of -zero.
73636         * modules/truncl-tests (Depends-on): Add float.
73638         * tests/test-frexpl.c (zero): Remove variable.
73639         (minus_zero): New variable.
73640         (main): Use minus_zero instead of -zero.
73641         * modules/frexpl-tests (Depends-on): Add float.
73643         * tests/test-isnan.c (zerol): Remove variable.
73644         (minus_zerol): New variable.
73645         (test_long_double): Use minus_zerol instead of -zerol.
73646         * modules/isnan-tests (Depends-on): Add float.
73648         * tests/test-isnanl.h (zero): Remove variable.
73649         (minus_zero): New variable.
73650         (main): Use minus_zero instead of -zero.
73651         * modules/isnanl-nolibm-tests (Depends-on): Add float.
73652         * modules/isnanl-tests (Depends-on): Add float.
73654         * tests/test-ldexpl.c (zero): Remove variable.
73655         (minus_zero): New variable.
73656         (main): Use minus_zero instead of -zero.
73657         * modules/ldexpl-tests (Depends-on): Add float.
73659         * tests/test-snprintf-posix.h (zerol): Remove variable.
73660         (minus_zerol): New variable.
73661         (test_function): Use minus_zerol instead of -zerol.
73662         * modules/snprintf-posix-tests (Depends-on): Add float.
73663         * modules/vsnprintf-posix-tests (Depends-on): Add float.
73665         * tests/test-sprintf-posix.h (zerol): Remove variable.
73666         (minus_zerol): New variable.
73667         (test_function): Use minus_zerol instead of -zerol.
73668         * modules/sprintf-posix-tests (Depends-on): Add float.
73669         * modules/vsprintf-posix-tests (Depends-on): Add float.
73671         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
73672         (minus_zerol): New variable.
73673         (test_function): Use minus_zerol instead of -zerol.
73674         * modules/vasnprintf-posix-tests (Depends-on): Add float.
73676         * tests/test-vasprintf-posix.c (zerol): Remove variable.
73677         (minus_zerol): New variable.
73678         (test_function): Use minus_zerol instead of -zerol.
73679         * modules/vasprintf-posix-tests (Depends-on): Add float.
73681 2008-10-07  Simon Josefsson  <simon@josefsson.org>
73683         * MODULES.html.sh (Support for building documentation): Mention
73684         pmccabe2html.  Sort entries.
73686         Add pmccabe2html module, from gnupdf.
73687         * build-aux/pmccabe.css: New file.
73688         * build-aux/pmccabe2html: New file.
73689         * m4/pmccabe2html.m4: New file.
73690         * modules/pmccabe2html: New file.
73692 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
73694         flock: new module
73695         * MODULES.html.sh: Add to list of modules.
73696         * lib/flock.c: flock implementation for Windows and Unix systems
73697         which have fcntl.
73698         * doc/glibc-functions/flock.texi: Update documentation.
73699         * lib/sys_file.in.h: <sys/file.h> header file.
73700         * m4/flock.m4: M4 macros.
73701         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
73702         * modules/flock: flock module.
73703         * modules/flock-tests: flock tests module.
73704         * modules/sys_file: sys/file.h module.
73705         * tests/test-flock.c: test suite for flock.
73707 2008-10-06  Jim Meyering  <meyering@redhat.com>
73709         bootstrap: check for LT_INIT more portably still ;-)
73710         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
73711         Spotted by Bruno Haible.
73713 2008-10-06  Eric Blake  <ebb9@byu.net>
73715         test-signbit: avoid tripping Irix cc bug on -0.0L
73716         * tests/test-signbit.c (minus_zerol): Delete, and replace with
73717         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
73718         entire testsuite consistent and avoids an Irix 6.2 bug.
73720 2008-10-05  Bruno Haible  <bruno@clisp.org>
73721             Jim Meyering  <jim@meyering.net>
73723         Add an option for ignoring EPIPE during close_stdout.
73724         * lib/closeout.h: Include <stdbool.h>.
73725         (close_stdout_set_ignore_EPIPE): New declaration.
73726         * lib/closeout.c: Include <stdbool.h>.
73727         (ignore_EPIPE): New variable.
73728         (close_stdout_set_ignore_EPIPE): New function.
73729         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
73730         * lib/close-stream.c (close_stream): Mention the possible EPIPE
73731         failure.
73732         * modules/closeout (Depends-on): Add stdbool.
73734 2008-10-05  Bruno Haible  <bruno@clisp.org>
73736         * modules/accept: New file.
73737         * modules/bind: New file.
73738         * modules/connect: New file.
73739         * modules/getpeername: New file.
73740         * modules/getsockname: New file.
73741         * modules/getsockopt: New file.
73742         * modules/listen: New file.
73743         * modules/recv: New file.
73744         * modules/recvfrom: New file.
73745         * modules/send: New file.
73746         * modules/sendto: New file.
73747         * modules/setsockopt: New file.
73748         * modules/socket: New file.
73749         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
73750         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
73751         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
73752         the particular module is requested. Add a link warning when the
73753         particular module is not requested.
73754         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
73755         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
73756         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
73757         the particular module is requested.
73758         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
73759         gl_SYS_SOCKET_H_DEFAULTS): New macros.
73760         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
73761         * modules/sys_socket (Depends-on): Add link-warning.
73762         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
73763         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
73764         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
73765         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
73766         GL_LINK_WARNING.
73767         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
73768         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
73769         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
73770         * doc/posix-functions/getpeername.texi: Mention the new module
73771         'getpeername'.
73772         * doc/posix-functions/getsockname.texi: Mention the new module
73773         'getsockname'.
73774         * doc/posix-functions/getsockopt.texi: Mention the new module
73775         'getsockopt'.
73776         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
73777         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
73778         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
73779         * doc/posix-functions/send.texi: Mention the new module 'send'.
73780         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
73781         * doc/posix-functions/setsockopt.texi: Mention the new module
73782         'setsockopt'.
73783         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
73784         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
73785         listen, connect, accept.
73786         * modules/select-tests (Depends-on): Likewise.
73788 2008-10-05  Bruno Haible  <bruno@clisp.org>
73790         * lib/winsock.c (strerror): Remove unused #undef.
73791         (rpl_close): Remove unused local variable.
73793         * modules/sys_socket (Depends-on); Add errno.
73795 2008-10-05  Bruno Haible  <bruno@clisp.org>
73797         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
73798         (select): Add a link warning when the 'select' module is not used.
73799         * modules/sys_select (Depends-on): Add link-warning.
73800         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
73801         Suggested by Paolo Bonzini.
73803 2008-10-05  Jim Meyering  <meyering@redhat.com>
73805         bootstrap: check for LT_INIT more portably
73806         * build-aux/bootstrap: Avoid using grep -E, since it's not
73807         portable enough.  Suggestion from Bruno Haible.
73809 2008-10-05  Bruno Haible  <bruno@clisp.org>
73811         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
73812         as being fixed by gnulib.
73814 2008-10-05  Bruno Haible  <bruno@clisp.org>
73816         * modules/select-tests: New file, mostly copied from
73817         modules/sys_select-tests.
73818         * tests/test-select.c: New file, mostly copied from
73819         tests/test-sys_select.c.
73820         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
73821         * modules/sys_select-tests (Depends-on): Remove all dependencies.
73822         (Makefile.am): Remove test_sys_select_LDADD.
73824         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
73825         to an undefined symbol, for an error message.
73826         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
73827         (gl_SYS_SELECT_H_DEFAULTS): New macro.
73828         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
73829         winsock-select.c here.
73830         * modules/sys_select (Files): Remove lib/winsock-select.c.
73831         (Depends-on): Remove alloca.
73832         (Makefile.am): Substitute GNULIB_SELECT.
73833         * modules/select: New file.
73834         * doc/posix-functions/select.texi: Update.
73836 2008-10-05  Bruno Haible  <bruno@clisp.org>
73838         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
73839         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
73840         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
73841         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
73842         getdtablesize.
73843         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
73844         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
73846 2008-10-05  Bruno Haible  <bruno@clisp.org>
73848         * modules/getdtablesize-tests: New file.
73849         * tests/test-getdtablesize.c: New file.
73851         New module 'getdtablesize'.
73852         * lib/unistd.in.h (getdtablesize): New declaration.
73853         * lib/getdtablesize.c: New file.
73854         * m4/getdtablesize.m4: New file.
73855         * modules/getdtablesize: New file.
73856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
73857         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
73858         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
73859         HAVE_GETDTABLESIZE.
73860         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
73862 2008-10-05  Bruno Haible  <bruno@clisp.org>
73864         * modules/sched (Makefile.am): Fix typo.
73865         Reported by Simon Josefsson.
73867 2008-10-05  Jim Meyering  <meyering@redhat.com>
73869         bootstrap: check for LT_INIT, too
73870         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
73871         are deprecated.  Suggestion from Ralf Wildenhues.
73873 2008-10-05  Bruno Haible  <bruno@clisp.org>
73875         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
73876         overriding them by ours.
73877         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
73879 2008-10-05  Jim Meyering  <meyering@redhat.com>
73881         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
73882         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
73883         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
73885 2008-10-04  Bruno Haible  <bruno@clisp.org>
73887         * modules/dup2 (License): Change to LGPLv2+.
73888         * modules/sleep (License): Likewise.
73889         * modules/perror (License): Likewise.
73890         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
73891         Blake.
73892         * modules/signal (License): Likewise.
73893         * modules/sigprocmask (License): Likewise.
73894         * modules/raise (License): Change to LGPLv2+, with approval by Jim
73895         Meyering.
73897 2008-10-04  Bruno Haible  <bruno@clisp.org>
73899         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
73900         Reported by Rainer Tammer <tammer@tammer.net>.
73902 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
73903             Bruno Haible  <bruno@clisp.org>
73905         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
73906         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
73907         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
73909 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
73911         filevercmp: new module
73912         * lib/filevercmp.h: New function filevercmp comparing version strings.
73913         * lib/filevercmp.c: Implementation of filevercmp function.
73914         * modules/filevercmp: Module metadata.
73915         * tests/test-filevercmp.c: Unit test for new module.
73916         * modules/filevercmp-tests: Unit test metadata.
73917         * MODULES.html.sh: Add filevercmp module.
73919 2008-10-03  Bruno Haible  <bruno@clisp.org>
73921         * lib/c-ctype.h: Add comment.
73922         Reported by Jim Meyering.
73924 2008-10-02  Bruno Haible  <bruno@clisp.org>
73926         * modules/posix_spawn-internal (Depends-on): Add 'open'.
73928 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
73930         * build-aux/bootstrap: Allow renaming bootstrap, and change the
73931         name of bootstrap.conf accordingly.
73933 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
73935         * build-aux/bootstrap: Install git-merge-changelog configuration
73936         items into .gitconfig if needed.
73938 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
73940         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
73941         git repository, and initialize/update it accordingly.
73943 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
73945         * modules/fsync-tests: New file.
73946         * tests/test-fsync.c: New file.
73948         New module 'fsync'.
73949         * lib/fsync.c: New file.
73950         * m4/fsync.m4: New file.
73951         * modules/fsync: New file.
73952         * lib/unistd.in.h (fsync): New declaration.
73953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
73954         GNULIB_FSYNC and HAVE_FSYNC.
73955         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
73956         * MODULES.html.sh (posix_functions): Add fsync.
73957         * doc/posix-functions/fsync.texi: Mention the new module.
73959 2008-10-02  Jim Meyering  <meyering@redhat.com>
73961         fts.c: sync with similar code from coreutils' remove.c
73962         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
73963         Guard also with "#if defined __linux__", since for now at least,
73964         this code is Linux-kernel-specific.
73966 2008-10-02  Jim Meyering  <meyering@redhat.com>
73968         fts: bug fixes
73969         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
73970         Include <sys/vfs.h>, not <sys/statfs.h>.
73972         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
73973         Include <sys/vfs.h>, not <sys/statfs.h>.
73975 2008-10-01  Bruno Haible  <bruno@clisp.org>
73977         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
73978         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
73979         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
73980         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
73981         * doc/posix-functions/posix_spawnp.texi: Likewise.
73982         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
73983         whether posix_spawn actually works.
73984         * m4/pipe.m4 (gl_PIPE): Likewise.
73985         * modules/execute (Files): Add m4/posix_spawn.m4.
73986         * modules/pipe (Files): Add m4/posix_spawn.m4.
73987         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
73989 2008-10-01  Jim Meyering  <meyering@redhat.com>
73991         remove trailing spaces
73992         * NEWS: Likewise.
73993         * lib/poll.c (poll): Likewise.
73994         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
73995         * lib/winsock.c (rpl_close): Likewise.
73996         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
73997         * modules/yield: Likewise.
73998         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
73999         * tests/test-sys_select.c (connect_to_socket): Likewise.
74001         fts.c: adjust a new interface to be more generally useful
74002         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
74003         (fts_build): Adjust caller.
74005 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74007         * modules/cond-tests: New file.
74008         * tests/test-cond.c: New file.
74010 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74011             Bruno Haible  <bruno@clisp.org>
74013         * modules/cond (Dependencies): Add errno, time.
74014         * lib/glthread/cond.h: Include <time.h>.
74015         (gl_cond_define, gl_cond_define_initialized): Use the same definition
74016         across platforms.
74018 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74019             Bruno Haible  <bruno@clisp.org>
74021         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
74023 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74024             Bruno Haible  <bruno@clisp.org>
74026         * modules/tls-tests (Depends-on): Add thread, yield.
74027         (configure.ac): Remove all checks.
74028         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
74029         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
74030         gl_thread_self): Remove definitions. Include glthread/thread.h and
74031         glthread/yield.h instead.
74032         (test_tls): Pass an additional NULL argument to gl_thread_join.
74034 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74035             Bruno Haible  <bruno@clisp.org>
74037         * modules/lock-tests (Depends-on): Add thread, yield.
74038         (configure.ac): Remove all checks.
74039         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
74040         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
74041         gl_thread_self): Remove definitions. Include glthread/thread.h and
74042         glthread/yield.h instead.
74043         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
74044         additional NULL argument to gl_thread_join.
74046 2008-09-30  Bruno Haible  <bruno@clisp.org>
74048         Fix the Win32 implementation of the 'thread' module.
74049         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
74050         pointer type.
74051         (gl_thread_self): Invoke gl_thread_self_func.
74052         (gl_thread_self_func): New declaration.
74053         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
74054         (do_init_self_key, init_self_key): New functions.
74055         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
74056         Remove some fields.
74057         (running_threads, running_lock): Remove variables.
74058         (get_current_thread_handle): New function.
74059         (gl_thread_self_func, wrapper_func, glthread_create_func,
74060         glthread_join_func, gl_thread_exit_func): Largely rewritten and
74061         simplified.
74063 2008-09-30  Bruno Haible  <bruno@clisp.org>
74065         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
74066         files.
74068 2008-09-30  Jim Meyering  <meyering@redhat.com>
74070         fts.m4: correct the test for statfs.f_type
74071         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
74072         when checking for statfs.f_type.
74074 2008-09-15  Simon Josefsson  <simon@josefsson.org>
74076         tests: avoid some compiler warnings
74077         * tests/test-memchr.c (main): Pass NULL indirectly.
74078         * tests/test-getdate.c (main): Remove unused variable 'ret'.
74080 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
74082         getdate.y: disallow countable dayshifts like "4 yesterday ago"
74083         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
74084         exactly specified dayshifts.
74085         (dayshift): New rule.
74086         (rel): Add dayshift.
74087         (relative_time_table) [tomorrow, yesterday, today, now]:
74088         Use tDAY_SHIFT in place of tDAY_UNIT.
74089         * tests/test-getdate.c: Add tests for now-disallowed countable
74090         dayshifts, e.g., "4 yesterday ago".
74092 2008-09-29  Bruno Haible  <bruno@clisp.org>
74094         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
74095         * tests/test-posix_spawn1.in.sh: Renamed from
74096         tests/test-posix_spawn.in.sh.
74097         * tests/test-posix_spawn2.c: New file.
74098         * tests/test-posix_spawn2.in.sh: New file.
74099         * modules/posix_spawnp-tests (Files): Update.
74100         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
74102 2008-09-29  Bruno Haible  <bruno@clisp.org>
74104         Propagate effects of putenv/setenv/unsetenv to child processes.
74105         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
74106         * lib/pipe.c (create_pipe): Likewise.
74108 2008-09-29  Bruno Haible  <bruno@clisp.org>
74110         Enable use of shell scripts as executables in mingw.
74111         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
74112         run the program as a shell script.
74113         * lib/pipe.c (create_pipe): Likewise.
74114         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
74115         resulting array.
74117 2008-09-29  Eric Blake  <ebb9@byu.net>
74119         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
74121 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
74123         * doc/posix-functions/accept.texi: Update mingw problems.
74124         * doc/posix-functions/bind.texi: Update mingw problems.
74125         * doc/posix-functions/close.texi: Update mingw problems.
74126         * doc/posix-functions/connect.texi: Update mingw problems.
74127         * doc/posix-functions/getpeername.texi: Update mingw problems.
74128         * doc/posix-functions/getsockname.texi: Update mingw problems.
74129         * doc/posix-functions/getsockopt.texi: Update mingw problems.
74130         * doc/posix-functions/ioctl.texi: Update mingw problems.
74131         * doc/posix-functions/listen.texi: Update mingw problems.
74132         * doc/posix-functions/recv.texi: Update mingw problems.
74133         * doc/posix-functions/recvfrom.texi: Update mingw problems.
74134         * doc/posix-functions/select.texi: Update mingw problems.
74135         * doc/posix-functions/send.texi: Update mingw problems.
74136         * doc/posix-functions/sendto.texi: Update mingw problems.
74137         * doc/posix-functions/setsockopt.texi: Update mingw problems.
74138         * doc/posix-functions/socket.texi: Update mingw problems.
74140 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
74141             Bruno Haible  <bruno@clisp.org>
74143         * lib/sys_select.in.h: Include sys/time.h.
74144         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
74145         * modules/sys_select: Depend on sys_time.
74146         * tests/test-sys_select.c: Test that sys/select.h defines struct
74147         timeval fully.
74149 2008-09-29  Bruno Haible  <bruno@clisp.org>
74151         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
74152         * lib/sys_select.in.h: Likewise.
74154 2008-09-29  Bruno Haible  <bruno@clisp.org>
74156         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
74158 2008-09-29  Bruno Haible  <bruno@clisp.org>
74160         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
74161         Set LIBSOCKET instead of augmenting LIBS.
74162         * modules/sockets (Link): New section.
74163         * modules/sockets-tests (test_sockets_LDADD): New variable.
74164         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
74165         * modules/poll-tests (test_poll_LDADD): New variable.
74166         * NEWS: Document the change.
74168 2008-09-29  Bruno Haible  <bruno@clisp.org>
74170         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
74171         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
74172         ARPA_INET_H directly.
74173         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74175 2008-09-28  Bruno Haible  <bruno@clisp.org>
74177         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
74178         from gl_HEADER_SYS_SOCKET.
74179         (gl_HEADER_SYS_SOCKET): Invoke it.
74180         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74182 2008-09-28  Bruno Haible  <bruno@clisp.org>
74184         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
74185         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
74186         Needed on OSF/1 4.0.
74188 2008-09-28  Bruno Haible  <bruno@clisp.org>
74190         Override open more carefully.
74191         * lib/open.c (orig_open): New function.
74192         (rpl_open): Use orig_open instead of open.
74193         * lib/fcntl.in.h: Add special invocation convention.
74194         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
74195         (gl_FUNC_OPEN): Invoke it.
74197         Override freopen more carefully.
74198         * lib/freopen.c (orig_freopen): New function.
74199         (rpl_freopen): Use orig_freopen instead of freopen.
74200         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
74201         (gl_FUNC_FREOPEN): Invoke it.
74203         Override fopen more carefully.
74204         * lib/fopen.c (orig_fopen): New function.
74205         (rpl_fopen): Use orig_fopen instead of fopen.
74206         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
74207         (gl_FUNC_FOPEN): Invoke it.
74208         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
74210 2008-09-28  Bruno Haible  <bruno@clisp.org>
74212         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
74213         SIGPIPE.
74215 2008-09-28  Bruno Haible  <bruno@clisp.org>
74217         * tests/test-sigaction.c (handler, main): Disable the check whether
74218         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
74219         glibc systems with LinuxThreads.
74221 2008-09-28  Bruno Haible  <bruno@clisp.org>
74223         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
74225         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
74226         with AIX xlc.
74227         * lib/fcntl.in.h (open): Likewise.
74228         Reported by Rainer Tammer <tammer@tammer.net>.
74230 2008-09-28  Bruno Haible  <bruno@clisp.org>
74232         * modules/posix_spawnp-tests: New file.
74233         * tests/test-posix_spawn.c: New file.
74234         * tests/test-posix_spawn.in.sh: New file.
74236         New module 'posix_spawnp'.
74237         * modules/posix_spawnp: New file.
74238         * lib/spawnp.c: New file, from GNU libc with modifications.
74239         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
74241         New module 'posix_spawn'.
74242         * modules/posix_spawn: New file.
74243         * lib/spawn.c: New file, from GNU libc with modifications.
74244         * doc/posix-functions/posix_spawn.texi: Mention the new module.
74246         New module 'posix_spawnattr_destroy'.
74247         * modules/posix_spawnattr_destroy: New file.
74248         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
74249         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
74250         module.
74252         New module 'posix_spawnattr_setsigmask'.
74253         * modules/posix_spawnattr_setsigmask: New file.
74254         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
74255         modifications.
74256         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
74257         new module.
74259         New module 'posix_spawnattr_getsigmask'.
74260         * modules/posix_spawnattr_getsigmask: New file.
74261         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
74262         modifications.
74263         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
74264         new module.
74266         New module 'posix_spawnattr_setsigdefault'.
74267         * modules/posix_spawnattr_setsigdefault: New file.
74268         * lib/spawnattr_setdefault.c: New file, from GNU libc with
74269         modifications.
74270         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
74271         new module.
74273         New module 'posix_spawnattr_getsigdefault'.
74274         * modules/posix_spawnattr_getsigdefault: New file.
74275         * lib/spawnattr_getdefault.c: New file, from GNU libc with
74276         modifications.
74277         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
74278         new module.
74280         New module 'posix_spawnattr_setschedpolicy'.
74281         * modules/posix_spawnattr_setschedpolicy: New file.
74282         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
74283         modifications.
74284         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
74285         new module.
74287         New module 'posix_spawnattr_getschedpolicy'.
74288         * modules/posix_spawnattr_getschedpolicy: New file.
74289         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
74290         modifications.
74291         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
74292         new module.
74294         New module 'posix_spawnattr_setschedparam'.
74295         * modules/posix_spawnattr_setschedparam: New file.
74296         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
74297         modifications.
74298         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
74299         new module.
74301         New module 'posix_spawnattr_getschedparam'.
74302         * modules/posix_spawnattr_getschedparam: New file.
74303         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
74304         modifications.
74305         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
74306         new module.
74308         New module 'posix_spawnattr_setpgroup'.
74309         * modules/posix_spawnattr_setpgroup: New file.
74310         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
74311         modifications.
74312         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
74313         module.
74315         New module 'posix_spawnattr_getpgroup'.
74316         * modules/posix_spawnattr_getpgroup: New file.
74317         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
74318         modifications.
74319         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
74320         module.
74322         New module 'posix_spawnattr_setflags'.
74323         * modules/posix_spawnattr_setflags: New file.
74324         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
74325         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
74326         module.
74328         New module 'posix_spawnattr_getflags'.
74329         * modules/posix_spawnattr_getflags: New file.
74330         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
74331         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
74332         module.
74334         New module 'posix_spawnattr_init'.
74335         * modules/posix_spawnattr_init: New file.
74336         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
74337         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
74338         module.
74340         New module 'posix_spawn_file_actions_destroy'.
74341         * modules/posix_spawn_file_actions_destroy: New file.
74342         * lib/spawn_faction_destroy.c: New file, from GNU libc with
74343         modifications.
74344         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
74345         the new module.
74347         New module 'posix_spawn_file_actions_addopen'.
74348         * modules/posix_spawn_file_actions_addopen: New file.
74349         * lib/spawn_faction_addopen.c: New file, from GNU libc with
74350         modifications.
74351         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
74352         the new module.
74354         New module 'posix_spawn_file_actions_adddup2'.
74355         * modules/posix_spawn_file_actions_adddup2: New file.
74356         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
74357         modifications.
74358         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
74359         the new module.
74361         New module 'posix_spawn_file_actions_addclose'.
74362         * modules/posix_spawn_file_actions_addclose: New file.
74363         * lib/spawn_faction_addclose.c: New file, from GNU libc with
74364         modifications.
74365         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
74366         the new module.
74368         New module 'posix_spawn_file_actions_init'.
74369         * modules/posix_spawn_file_actions_init: New file.
74370         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
74371         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
74372         new module.
74374         New module 'posix_spawn-internal'.
74375         * modules/posix_spawn-internal: New file.
74376         * lib/spawn_int.h: New file, from GNU libc with modifications.
74377         * lib/spawni.c: New file, from GNU libc with modifications.
74378         * m4/posix_spawn.m4: New file.
74380         New module 'spawn'.
74381         * modules/spawn: New file.
74382         * lib/spawn.in.h: New file, from GNU libc with modifications.
74383         * m4/spawn_h.m4: New file.
74384         * doc/posix-headers/spawn.texi: Mention the new module.
74386 2008-09-28  Bruno Haible  <bruno@clisp.org>
74388         * modules/sched-tests: New file.
74389         * tests/test-sched.c: New file.
74391         New module 'sched'.
74392         * modules/sched: New file.
74393         * lib/sched.in.h: New file.
74394         * m4/sched_h.m4: New file.
74395         * doc/posix-headers/sched.texi: Mention the new module.
74397 2008-09-27  Eric Blake  <ebb9@byu.net>
74399         Fix previous patch, and tweak references to $0.
74400         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
74401         (func_version, func_gnulib_dir): Don't call this program
74402         gnulib-tool.
74403         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
74404         with using $0 in function.
74405         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
74406         (func_fatal_error): Reuse the name the user invoked us with.
74408 2008-09-27  Bruno Haible  <bruno@clisp.org>
74410         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
74411         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
74412         (gl_ICONV_H): Not here.
74413         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
74414         instead of assigning ICONV_H directly.
74416         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
74417         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
74418         WCHAR_H directly.
74420 2008-09-27  Bruno Haible  <bruno@clisp.org>
74422         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
74423         * modules/arpa_inet (Depends-on): Add link-warning.
74424         (Makefile.am): Insert the definition of GL_LINK-WARNING.
74425         * modules/unistd (Makefile.am): Likewise.
74427 2008-09-26  Bruno Haible  <bruno@clisp.org>
74429         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
74430         variables.
74431         (func_version): Essentially copied from gnulib-tool.
74432         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
74433         func_readlink): Copied from gnulib-tool.
74435 2008-09-26  Bruno Haible  <bruno@clisp.org>
74437         * gnulib-tool (func_version): Change directory to $gnulib_dir before
74438         invoking git-version-gen.
74440 2008-09-26  Bruno Haible  <bruno@clisp.org>
74442         * posix-modules: Update to directory names changed on 2008-01-19.
74443         Remove commas in output before splitting into words. No more need to
74444         avoid 'ftruncate' since 2007-02-19.
74446 2008-09-26  Bruno Haible  <bruno@clisp.org>
74448         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
74450 2008-09-26  Bruno Haible  <bruno@clisp.org>
74452         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
74453         * modules/fwriteerror (Depends-on): Add errno.
74455 2008-09-26  Bruno Haible  <bruno@clisp.org>
74457         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
74458         * tests/test-vc-list-files-cvs.sh: Likewise.
74460 2008-09-26  Bruno Haible  <bruno@clisp.org>
74462         * doc/posix-headers/sys_resource.texi: Reorder items.
74464 2008-09-26  Jim Meyering  <meyering@redhat.com>
74466         fts: tweak inode comparison function
74467         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
74468         inode numbers, as documented.
74470         fts: sort dirent entries on inode number before traversing
74471         This avoids a quadratic, seek-related performance penalty when
74472         operating on a directory containing many entries (measurable at 10k;
74473         3.5 hours at 2 million entries with a cold cache) on certain types
74474         of file systems, including ext3 and ext4, but not tmpfs.
74475         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
74476         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
74477         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
74478         (fs_handles_readdir_ordered_dirents_efficiently): New function.
74479         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
74480         (fts_build): Set the stat.st_ino member from D_INO.
74481         If it is likely to be useful, sort dirent entries on inode number.
74483         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
74484         and the struct statfs.f_type member.
74485         * modules/fts (Depends-on): Add d-ino.
74487 2008-09-26  Bruno Haible  <bruno@clisp.org>
74489         * modules/sigpipe-die (Depends-on): Add sigpipe.
74491         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
74492         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
74493         and GNULIB_STDIO_H_SIGPIPE are set.
74494         * lib/stdio-write.c: New file.
74495         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
74496         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
74497         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
74498         REPLACE_STDIO_WRITE_FUNCS.
74499         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
74500         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
74501         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
74502         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
74503         * modules/stdio (Files): Add lib/stdio-write.c.
74504         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
74505         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
74506         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
74507         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
74508         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
74509         REPLACE_FPRINTF_POSIX.
74510         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
74511         REPLACE_PRINTF_POSIX.
74512         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
74513         REPLACE_VFPRINTF_POSIX.
74514         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
74515         REPLACE_VPRINTF_POSIX.
74516         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
74517         SIGPIPE issue.
74518         * doc/posix-functions/fputc.texi: Likewise.
74519         * doc/posix-functions/fputs.texi: Likewise.
74520         * doc/posix-functions/fwrite.texi: Likewise.
74521         * doc/posix-functions/printf.texi: Likewise.
74522         * doc/posix-functions/putc.texi: Likewise.
74523         * doc/posix-functions/putchar.texi: Likewise.
74524         * doc/posix-functions/puts.texi: Likewise.
74525         * doc/posix-functions/vfprintf.texi: Likewise.
74526         * doc/posix-functions/vprintf.texi: Likewise.
74528         * modules/safe-write (Depends-on): Add write.
74530         * modules/sigpipe-tests: New file.
74531         * tests/test-sigpipe.c: New file.
74532         * tests/test-sigpipe.sh: New file.
74534         * modules/write: New file.
74535         * lib/unistd.in.h: Include <sys/types.h>.
74536         (write): New declaration.
74537         * lib/write.c: New file.
74538         * m4/write.m4: New file.
74539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74540         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
74541         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
74542         GNULIB_WRITE, REPLACE_WRITE.
74543         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
74544         and the SIGPIPE issue.
74546         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
74547         (raise): New declaration.
74548         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
74549         (ext_signal): New function.
74550         (rpl_raise): New function.
74551         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
74552         GNULIB_SIGNAL_H_SIGPIPE.
74553         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
74554         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
74556         * modules/sigpipe: New file.
74557         * m4/sigpipe.m4: New file.
74559 2008-09-25  Derek Price  <derek@ximbiot.com>
74560             Bruno Haible  <bruno@clisp.org>
74562         * gnulib-tool (func_import): Report all license incompatibilities, not
74563         just the first one.
74565 2008-09-25  Bruno Haible  <bruno@clisp.org>
74567         * gnulib-tool (func_import): When computing the edits, consider not
74568         only the Makefile.ams that exist but also those that will be generated.
74570 2008-09-25  Simon Josefsson  <simon@josefsson.org>
74572         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
74573         fixes gnulib-tool --test warning about duplicate dependency.
74575 2008-09-25  Bruno Haible  <bruno@clisp.org>
74577         * gnulib-tool: Don't ask the user to perform edits in the generated
74578         Makefile.ams.
74579         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
74580         apply to the Makefile.am being generated.
74581         (func_emit_tests_Makefile_am): Execute edits that apply to the
74582         Makefile.am being generated.
74583         (func_import): Setup list of Makefile.am edits before emitting the
74584         Makefile.ams, not at the end.
74585         (func_create_testdir): Update.
74586         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74588 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74590         * gnulib-tool (func_import): Store the --tests-base option in the
74591         comment in gnulib-cache.m4.
74593 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
74595         * NEWS: Document increased portability that sys_select now provides.
74597         * lib/sys_select.in.h: Install select wrapper.
74598         * lib/sys_socket.in.h: Use more descriptive name when there is no
74599         select wrapper.
74600         * lib/winsock-select.c: New.
74601         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
74602         Require gl_HEADER_SYS_SOCKET.
74603         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
74604         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
74605         * tests/test-sys_select.c: Add functional tests.
74607 2008-09-24  Eric Blake  <ebb9@byu.net>
74609         open, fopen: close fd leak in last patch
74610         * lib/open.c (rpl_open): Close fd before returning error.
74611         * lib/fopen.c (rpl_fopen): Close fd before returning error.
74612         * doc/posix-functions/open.texi (open): Document that Irix also
74613         has the bug.
74614         * doc/posix-functions/fopen.texi (fopen): Likewise.
74615         Reported by Paolo Bonzini.
74617 2008-09-24  Bruno Haible  <bruno@clisp.org>
74619         Ensure that a filename ending in a slash cannot be used to access a
74620         non-directory.
74621         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
74622         to check whether it's really a directory.
74623         * lib/fopen.c: Include fcntl.h, unistd.h.
74624         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
74625         and fdopen().
74626         * modules/fopen (Depends-on): Add unistd.
74627         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
74628         * tests/test-fopen.c (main): Likewise.
74629         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
74630         * doc/posix-functions/fopen.texi: Likewise.
74631         Reported by Eric Blake.
74633 2008-09-23  Eric Blake  <ebb9@byu.net>
74635         c-stack: avoid compiler optimizations when provoking overflow
74636         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
74637         recursion harder to optimize, to ensure a stack overflow occurs.
74638         * tests/test-c-stack.c (recurse): Likewise.
74639         Borrowed from libsigsegv.
74641         c-stack: work around Irix sigaltstack bug
74642         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
74643         whether sigaltstack uses wrong end of stack_t (copied in part from
74644         libsigsegv).
74645         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
74646         Irix bug, without requiring an over-allocation.
74647         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
74648         bug.
74650         fopen: document mingw bug on directories
74651         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
74652         not allowing a stream visiting a directory, even though reading
74653         from such a stream is not portable.
74655 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
74657         * lib/poll.c: Rewrite.
74658         * modules/poll: Depend on alloca.
74660 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
74662         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
74663         instead define prototypes for a full set of wrappers.  Ensure
74664         that Cygwin does not use the compatibility code, which is only
74665         for MinGW.
74666         * lib/winsock.c: New.
74667         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
74668         * modules/sys_socket: Add lib/winsock.c.
74670         * modules/poll-tests: Add errno and perror.
74671         * tests/test-poll.c: Use ioctl, not ioctlsocket.
74673 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
74675         * tests/test-poll.c: Downgrade minimum needed Winsock version.
74677 2008-09-23  Bruno Haible  <bruno@clisp.org>
74679         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
74680         * doc/glibc-functions/*: Likewise.
74682 2008-09-23  Simon Josefsson  <simon@josefsson.org>
74684         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
74685         success.
74687 2008-09-22  Eric Blake  <ebb9@byu.net>
74688             Bruno Haible  <bruno@clisp.org>
74690         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
74691         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
74692         supply %A but mishandle pseudo-NaN.
74693         Reported by Simon Josefsson.
74695 2008-09-21  Bruno Haible  <bruno@clisp.org>
74697         * tests/test-lock.c (main): Tweak skip message.
74698         * tests/test-tls.c (main): Likewise.
74700 2008-09-21  Bruno Haible  <bruno@clisp.org>
74702         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
74703         whether 'struct sigaction' has sa_sigaction here...
74704         (gl_PREREQ_SIG_HANDLER_H): ... not here.
74705         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
74707 2008-09-21  Bruno Haible  <bruno@clisp.org>
74709         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
74710         section.
74711         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
74712         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
74713         the new section.
74714         (Support for obsolete systems lacking POSIX:2001): New section.
74715         (String handling <string.h>): Move strdup to the new section.
74716         Suggested by Simon Josefsson and Paolo Bonzini.
74718 2008-09-21  Bruno Haible  <bruno@clisp.org>
74720         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
74721         exponents in %e and %g results on 'long double'. Needed for mingw's
74722         improved *printf functions.
74723         * tests/test-vasprintf-posix.c (test_function): Likewise.
74724         * tests/test-snprintf-posix.h (test_function): Likewise.
74725         * tests/test-sprintf-posix.h (test_function): Likewise.
74726         Reported by Eric Blake.
74728 2008-09-21  Bruno Haible  <bruno@clisp.org>
74730         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
74731         * tests/test-sprintf-posix.h (test_function): Likewise.
74733 2008-09-21  Bruno Haible  <bruno@clisp.org>
74735         * modules/getpass (Depends-on): Add strdup-posix.
74737         New module 'strdup-posix'.
74738         * modules/strdup-posix: New file.
74739         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
74740         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
74741         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74742         REPLACE_STRDUP.
74743         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
74744         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
74745         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74746         strdup-posix.
74748         * modules/strdup (Depends-on): Remove malloc-posix.
74750 2008-09-20  Bruno Haible  <bruno@clisp.org>
74752         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
74753         Wildenhues.
74755 2008-09-20  Bruno Haible  <bruno@clisp.org>
74757         Ensure that wint_t gets defined on IRIX 5.3.
74758         * lib/wchar.in.h (wint_t): Define if not defined by the system.
74759         * lib/wctype.in.h (wint_t): Likewise.
74760         (__wctype_wint_t): Remove type.
74761         (isw*): Use wint_t instead of __wctype_wint_t.
74762         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
74763         * modules/wchar (Files): Add m4/wint_t.m4.
74764         (Makefile.am): Substitute HAVE_WINT_T.
74765         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
74766         * tests/test-wctype.c: Check that wint_t is defined.
74767         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
74768         * doc/posix-headers/wctype.texi: Likewise.
74769         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
74771 2008-09-18  Bruno Haible  <bruno@clisp.org>
74773         * gnulib-tool (func_exit): Update comment.
74775 2008-09-18  Simon Josefsson  <simon@josefsson.org>
74777         * modules/getaddrinfo (Depends-on): Remove strdup, this module
74778         assumes strdup exists and does not depend on strdup to return
74779         ENOMEM on out of memory conditions.
74781 2008-09-18  Bruno Haible  <bruno@clisp.org>
74783         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
74784         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
74785         digits for the exponent.
74787 2008-09-18  Jim Meyering  <meyering@redhat.com>
74788             Bruno Haible  <bruno@clisp.org>
74790         * lib/vasnprintf.c (decimal_point_char): Define also if
74791         NEED_PRINTF_INFINITE_LONG_DOUBLE.
74793 2008-09-16  Bruno Haible  <bruno@clisp.org>
74794         and Eric Blake  <ebb9@byu.net>
74796         vasnprintf: support Irix 5.3
74797         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
74798         that mishandle long double infinity.
74799         Reported by Tom G. Christensen.
74801 2008-09-16  Bruno Haible  <bruno@clisp.org>
74803         * doc/glibc-functions/scandir.texi: Mention the function is missing on
74804         Solaris 9.
74805         * doc/glibc-functions/alphasort.texi: Likewise.
74806         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
74808 2008-09-16  Jim Meyering  <meyering@redhat.com>
74810         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
74811         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
74812         a umask modification leak out of a subshell.  Otherwise, the
74813         opensolaris /bin/sh would be accepted and thus cause unwarranted
74814         failures in the coreutils test suite.
74816 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
74818         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
74819         to succeed.
74821 2008-09-16  Jim Meyering  <meyering@redhat.com>
74823         avoid spurious test failure when library is built without ACL support
74824         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
74825         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
74826         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
74827         * tests/test-copy-acl.sh: Likewise.
74829 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74831         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
74832         based on character occurrence counts.
74834 2008-09-15  Eric Blake  <ebb9@byu.net>
74836         tests: avoid some compiler warnings
74837         * tests/test-memchr.c (main): Pass NULL indirectly.
74838         * tests/test-closein.c (main): Avoid unused variable.
74840 2008-09-15  Bruno Haible  <bruno@clisp.org>
74842         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
74843         are missing on OpenBSD 4.0 individually.
74844         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74846 2008-09-15  Bruno Haible  <bruno@clisp.org>
74848         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
74849         * doc/posix-functions/strerror.texi: Mention also Cygwin.
74850         * doc/posix-functions/perror.texi: Likewise.
74851         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
74852         is missing.
74853         Reported by Eric Blake.
74855         * lib/errno.in.h: Use replacement values >= 2000.
74856         Reported by Eric Blake.
74858 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74860         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
74861         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
74862         limit.
74863         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
74864         compareseq was aborted.
74866 2008-09-14  Bruno Haible  <bruno@clisp.org>
74868         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
74869         yvec_edit_count.
74870         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
74871         (fstrcmp_bounded): Simplify result computation accordingly.
74873 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74875         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
74876         (fstrcmp): Define in terms of fstrcmp_bounded.
74877         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
74878         lower_bound argument.
74879         Return quickly if the result is certainly < lower_bound.
74880         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
74882 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74884         * lib/diffseq.h (EARLY_ABORT): New macro.
74885         (compareseq): Change return type to bool. Return true when EARLY_ABORT
74886         evaluates to true.
74888 2008-09-14  Bruno Haible  <bruno@clisp.org>
74890         * modules/perror-tests: New file.
74891         * tests/test-perror.sh: New file.
74892         * tests/test-perror.c: New file.
74894         New module 'perror'.
74895         * lib/stdio.in.h (perror): New declaration.
74896         * lib/perror.c: New file.
74897         * m4/perror.m4: New file.
74898         * modules/perror: New file.
74899         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
74900         * doc/posix-functions/perror.texi: Mention the perror module.
74901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
74902         REPLACE_PERROR.
74903         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
74904         REPLACE_PERROR.
74906 2008-09-14  Bruno Haible  <bruno@clisp.org>
74908         * modules/stdio (Makefile.am): Reorder to match the order in
74909         lib/stdio.in.h.
74910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
74912 2008-09-13  Bruno Haible  <bruno@clisp.org>
74914         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
74916 2008-09-13  Bruno Haible  <bruno@clisp.org>
74918         Extend strerror to cover the added errno values.
74919         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
74920         (rpl_strerror): Provide error messages for the added errno values and
74921         for the WSA* values.
74922         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
74923         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
74924         strerror.
74925         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
74926         * modules/strerror (Depends-on): Add errno.
74927         * doc/posix-functions/strerror.texi: Document the change.
74928         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
74929         and EOVERFLOW.
74931 2008-09-13  Bruno Haible  <bruno@clisp.org>
74933         * modules/EOVERFLOW: Remove file.
74934         * m4/eoverflow.m4: Remove file.
74935         * modules/EOVERFLOW-tests: Remove file.
74936         * tests/test-EOVERFLOW.c: Remove file.
74937         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
74938         * modules/ftell (Depends-on): Likewise.
74939         * modules/getdelim (Depends-on): Likewise.
74940         * modules/getugroups (Depends-on): Likewise.
74941         * modules/poll (Depends-on): Likewise.
74942         * modules/snprintf (Depends-on): Likewise.
74943         * modules/sprintf-posix (Depends-on): Likewise.
74944         * modules/vasnprintf (Depends-on): Likewise.
74945         * modules/vasprintf (Depends-on): Likewise.
74946         * modules/vfprintf-posix (Depends-on): Likewise.
74947         * modules/vsnprintf (Depends-on): Likewise.
74948         * modules/vsprintf-posix (Depends-on): Likewise.
74949         * modules/xvasprintf (Depends-on): Likewise.
74950         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
74951         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
74952         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
74953         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
74954         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
74955         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
74956         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
74957         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
74958         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
74959         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
74960         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
74961         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
74962         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
74963         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
74964         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
74965         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
74966         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
74967         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
74968         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
74969         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
74970         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
74971         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
74972         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
74973         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
74974         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
74975         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
74976         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
74977         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
74978         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
74979         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
74980         * MODULES.html.sh: Remove EOVERFLOW.
74981         * NEWS: Mention the change.
74983 2008-09-13  Bruno Haible  <bruno@clisp.org>
74985         * modules/errno-tests: New file.
74986         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
74988         * lib/errno.in.h: New file.
74989         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
74990         * modules/errno: New file.
74991         * doc/posix-headers/errno.texi: Update documentation.
74992         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
74994 2008-09-13  Bruno Haible  <bruno@clisp.org>
74996         * tests/test-poll.c: Use #if for native Windows, rather than testing
74997         __MSVCRT__.
74999 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75000             Bruno Haible  <bruno@clisp.org>
75002         * lib/glob.c: Don't include <pwd.h> on native Windows.
75003         (WINDOWS32): New macro.
75004         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
75006 2008-09-13  Bruno Haible  <bruno@clisp.org>
75008         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
75009         (ETIMEDOUT): Remove macro.
75010         (glthread_cond_timedwait_multithreaded): New declaration.
75011         (glthread_cond_timedwait): Use it.
75012         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
75013         (glthread_cond_timedwait_multithreaded): New function.
75015 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
75017         * modules/poll-tests: Do not check for io.h.
75018         * tests/test-poll.c: Check for __MSVCRT__ instead.
75020 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
75022         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
75023         * modules/poll-tests: Add inet_pton, stdbool, sockets.
75024         * tests/test-poll.c: Use them.  Use _pipe on Windows.
75026 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
75028         * modules/poll-tests: New.
75029         * tests/test-poll.c: New.
75031 2008-09-12  Eric Blake  <ebb9@byu.net>
75033         frexp: test for NetBSD failure on -0.0
75034         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
75035         not all, bugs from NetBSD 3.0 have been fixed.
75036         * doc/posix-functions/frexp.texi (frexp): Document bug.
75037         Reported by Thomas Klausner.
75039         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
75040         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
75041         literal -0.0.
75042         Reported by Jonathan C. Patschke <jp@centtech.com>.
75044 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75046         * lib/glthread/cond.h: Use dummy implementation also if
75047         USE_WIN32_THREADS.
75049 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75051         * modules/fnmatch-posix (License): Change to LGPLv2+.
75052         * modules/fnmatch-gnu (License): Likewise.
75054 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75056         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
75058 2008-09-11  Jim Meyering  <meyering@redhat.com>
75060         * users.txt: Add gtk-vnc.
75062 2008-09-08  Simon Josefsson  <simon@josefsson.org>
75064         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
75065         rotate amounts.
75067         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
75068         required for 16-bit and 8-bit rotates.
75069         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
75070         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
75071         UINT8_MAX instead of hard-coded constants.
75072         Suggested by Paul Eggert.
75074 2008-09-07  Bruno Haible  <bruno@clisp.org>
75076         * tests/test-striconveh.c (main): Check behaviour when converting from
75077         UTF-7.
75079         Make striconveh work better with stateful encodings.
75080         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
75081         that iconv does not increment the inptr when returning -1/EINVAL.
75083 2008-09-07  Bruno Haible  <bruno@clisp.org>
75085         * build-aux/config.rpath: Update according to libtool-2.2.6.
75086         * build-aux/config.libpath: Likewise.
75088 2008-09-06  Bruno Haible  <bruno@clisp.org>
75090         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
75091         * lib/freadptr.c (freadptr): Likewise.
75092         * lib/freadseek.c (freadptrinc): Likewise.
75093         Reported by Simon Josefsson.
75095 2008-09-06  Bruno Haible  <bruno@clisp.org>
75097         * modules/freadptr (License): Change to LGPLv2+.
75098         * modules/freadseek (License): Likewise.
75099         Suggested by Eric Blake.
75101         * modules/memchr2 (License): Change to LGPLv2+.
75102         Approved by Eric Blake.
75104 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75105             Bruno Haible  <bruno@clisp.org>
75107         Make gnulib-tool work with native 'sed' on AIX.
75108         * gnulib-tool (sed_noop): New variable.
75109         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
75110         func_add_or_update, func_create_testdir): Use it to initialize sed
75111         script variables.
75112         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
75114 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
75115             Bruno Haible  <bruno@clisp.org>
75117         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
75118         also works after #include directives.
75120 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
75122         getdate.y: reject an out-of-range timezone value
75123         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
75124         the range [-24...+24].  When specified with only one or two digits,
75125         * tests/test-getdate.c: Tests for the fix.
75126         * doc/getdate.texi: Document this change.
75128 2008-09-03  Bruno Haible  <bruno@clisp.org>
75130         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
75132 2008-09-02  Simon Josefsson  <simon@josefsson.org>
75134         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
75135         <bruce.korb@gmail.com> with ideas from Ben Pfaff
75136         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
75137         Blake <ebb9@byu.net>.
75139         * tests/test-bitrotate.c: Add more test vectors.
75141 2008-09-02  Eric Blake  <ebb9@byu.net>
75143         vasnprintf-posix: handle large precision via %.*d
75144         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
75145         when handling it ourselves.
75146         * tests/test-vasnprintf-posix.c (test_function): Add test.
75147         * tests/test-snprintf-posix.h (test_function): Likewise.
75148         * tests/test-sprintf-posix.h (test_function): Likewise.
75149         * tests/test-vasprintf-posix.c (test_function): Likewise.
75150         Reported by Alain Guibert.
75152 2008-09-01  Eric Blake  <ebb9@byu.net>
75154         c-stack: make configure-time check more robust
75155         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
75156         successful sigaction call.
75157         Reported by Tom G. Christensen.
75159 2008-09-01  Bruno Haible  <bruno@clisp.org>
75161         New module 'findprog-lgpl'.
75162         * modules/findprog-lgpl: New file.
75163         * lib/findprog-lgpl.c: New file.
75164         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
75165         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
75166         to decide whether to use strdup or xstrdup, concatenated_filename or
75167         xconcatenated_filename.
75169 2008-09-01  Bruno Haible  <bruno@clisp.org>
75171         Split module 'concat-filename' into 'concat-filename' (LGPL) and
75172         'xconcat-filename' (GPL).
75173         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
75174         (License): Change to LGPLv2+.
75175         * modules/xconcat-filename: New file.
75176         * lib/concat-filename.h (concatenated_filename): Change specification.
75177         (xconcatenated_filename): New declaration.
75178         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
75179         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
75180         memory situations.
75181         * lib/xconcat-filename.c: New file.
75182         * NEWS: Mention the change.
75183         * lib/findprog.c: Include concat-filename.h, not filename.h.
75184         (find_in_path): Use xconcatenated_filename instead of
75185         concatenated_filename.
75186         * lib/javacomp.c: Include concat-filename.h, not filename.h.
75187         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
75188         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
75189         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
75190         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
75191         instead of concatenated_filename.
75192         * lib/javaexec.c: Include concat-filename.h, not filename.h.
75193         (execute_java_class): Use xconcatenated_filename instead of
75194         concatenated_filename.
75195         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
75196         * modules/javacomp (Depends-on): Likewise.
75197         * modules/javaexec (Depends-on): Likewise.
75199 2008-09-01  Bruno Haible  <bruno@clisp.org>
75201         Split module 'filename' into 'filename' and 'concat-filename'.
75202         * modules/filename: Keep only lib/filename.h.
75203         (License): Change to LGPLv2+.
75204         * modules/concat-filename: New file, extracted from modules/filename.
75205         * lib/filename.h (concatenated_filename): Remove declaration.
75206         * lib/concat-filename.h: New file, extracted from lib/filename.h.
75207         * lib/concat-filename.c: Include concat-filename.h.
75208         * NEWS: Mention the change.
75210 2008-09-01  Simon Josefsson  <simon@josefsson.org>
75212         * lib/bitrotate.h (rotl8, rotr8): Add.
75214         * modules/bitrotate (configure.ac): Need
75215         AC_REQUIRE([AC_C_INLINE]).
75216         (Description): Mention stdint.h.  Reported by Bruno Haible
75217         <bruno@clisp.org>.
75219         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
75220         Paolo Bonzini <bonzini@gnu.org>.
75222 2008-08-31  Bruno Haible  <bruno@clisp.org>
75224         Assume Solaris specific bi-arch conventions on Solaris systems.
75225         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
75226         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
75227         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
75228         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
75229         like acl_libdirstem.
75230         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
75231         acl_libdirstem.
75232         * NEWS: Mention the change.
75233         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
75235 2008-08-31  Jim Meyering  <meyering@redhat.com>
75237         * lib/strftime.h: Add comments describing the two added arguments.
75239         remove duplicate #include directives
75240         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
75241         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
75243 2008-08-31  Bruno Haible  <bruno@clisp.org>
75245         New module 'sigpipe-die'.
75246         * modules/sigpipe-die: New file.
75247         * lib/sigpipe-die.h: New file.
75248         * lib/sigpipe-die.c: New file.
75249         * MODULES.html.sh (Signal handling): Add sigpipe-die.
75251 2008-08-31  Bruno Haible  <bruno@clisp.org>
75253         Don't override previously installed signal handlers.
75254         * lib/fatal-signal.c (saved_sigactions): New variable.
75255         (uninstall_handlers): Reset the signal to the saved handler, not
75256         to SIG_DFL (except when ignored).
75257         (install_handlers): Save the previous handlers.
75259 2008-08-30  Bruno Haible  <bruno@clisp.org>
75261         * gnulib-tool (func_reset_sigpipe): New function.
75262         (func_get_automake_snippet, func_modules_transitive_closure,
75263         func_import): Invoke it before a join command that reads from stdin,
75264         to avoid "echo: write error: Broken pipe" error messages on stderr.
75265         Reported by Sam Steingold <sds@gnu.org>.
75267 2008-08-30  Bruno Haible  <bruno@clisp.org>
75269         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
75270         Code copied from m4/open.m4.
75271         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
75272         access and the filename ends in a slash. Code copied from lib/open.c.
75273         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
75274         * tests/test-fopen.c (main): Check against bug with trailing slash.
75276 2008-08-29  Bruno Haible  <bruno@clisp.org>
75278         Avoid some "gcc -pedantic" warnings.
75279         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
75280         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
75281         * lib/dirent.in.h: Likewise.
75282         * lib/fcntl.in.h: Likewise.
75283         * lib/float.in.h: Likewise.
75284         * lib/iconv.in.h: Likewise.
75285         * lib/inttypes.in.h: Likewise.
75286         * lib/locale.in.h: Likewise.
75287         * lib/math.in.h: Likewise.
75288         * lib/netinet_in.in.h: Likewise.
75289         * lib/search.in.h: Likewise.
75290         * lib/signal.in.h: Likewise.
75291         * lib/stdarg.in.h: Likewise.
75292         * lib/stdint.in.h: Likewise.
75293         * lib/stdio.in.h: Likewise.
75294         * lib/stdlib.in.h: Likewise.
75295         * lib/string.in.h: Likewise.
75296         * lib/strings.in.h: Likewise.
75297         * lib/sys_select.in.h: Likewise.
75298         * lib/sys_socket.in.h: Likewise.
75299         * lib/sys_stat.in.h: Likewise.
75300         * lib/sys_time.in.h: Likewise.
75301         * lib/sysexits.in.h: Likewise.
75302         * lib/time.in.h: Likewise.
75303         * lib/unistd.in.h: Likewise.
75304         * lib/wchar.in.h: Likewise.
75305         * lib/wctype.in.h: Likewise.
75306         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
75307         * modules/fchdir (Makefile.am): Likewise.
75308         * modules/fcntl (Makefile.am): Likewise.
75309         * modules/float (Makefile.am): Likewise.
75310         * modules/iconv_open (Makefile.am): Likewise.
75311         * modules/inttypes (Makefile.am): Likewise.
75312         * modules/locale (Makefile.am): Likewise.
75313         * modules/math (Makefile.am): Likewise.
75314         * modules/netinet_in (Makefile.am): Likewise.
75315         * modules/search (Makefile.am): Likewise.
75316         * modules/signal (Makefile.am): Likewise.
75317         * modules/stdarg (Makefile.am): Likewise.
75318         * modules/stdint (Makefile.am): Likewise.
75319         * modules/stdio (Makefile.am): Likewise.
75320         * modules/stdlib (Makefile.am): Likewise.
75321         * modules/string (Makefile.am): Likewise.
75322         * modules/strings (Makefile.am): Likewise.
75323         * modules/sys_select (Makefile.am): Likewise.
75324         * modules/sys_socket (Makefile.am): Likewise.
75325         * modules/sys_stat (Makefile.am): Likewise.
75326         * modules/sys_time (Makefile.am): Likewise.
75327         * modules/sysexits (Makefile.am): Likewise.
75328         * modules/time (Makefile.am): Likewise.
75329         * modules/unistd (Makefile.am): Likewise.
75330         * modules/wchar (Makefile.am): Likewise.
75331         * modules/wctype (Makefile.am): Likewise.
75332         Reported by Reuben Thomas <rrt@sc3d.org>.
75334 2008-08-29  Bruno Haible  <bruno@clisp.org>
75336         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
75337         any more.
75339 2008-08-29  Simon Josefsson  <simon@josefsson.org>
75341         * MODULES.html.sh (Misc): Add bitrotate.
75343         * modules/bitrotate: New file.
75345         * lib/bitrotate.h: New file.
75347         * modules/bitrotate-tests: New file.
75349         * tests/test-bitrotate.c: New file.
75351         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
75352         on the bitrotate module.
75354         * lib/arctwo.c: Use new bitrotate module.
75356 2008-08-29  Jim Meyering  <meyering@redhat.com>
75358         bootstrap: merge changes from coreutils
75359         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
75360         of copied files.  Remove a kludge, now that this is fixed.
75361         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
75362         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
75363         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
75365 2008-08-29  Bruno Haible  <bruno@clisp.org>
75367         * MODULES.html.sh: Remove --cvs-urls option.
75369 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
75371         maint.mk: adjust to file name change
75372         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
75374 2008-08-28  Jim Meyering  <meyering@redhat.com>
75376         * modules/getndelim2 (License): Relicense to LGPLv2+.
75377         Approved by Richard Stallman for the version of 1995, and by
75378         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
75380 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
75382         * lib/getdelim.c (flockfile, funlockfile): Make all of them
75383         dummy if one is not available.  Do not touch them if
75384         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
75385         (getc_maybe_unlocked): New.
75386         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
75388 2008-08-26  Eric Blake  <ebb9@byu.net>
75390         doc/INSTALL: resync from autoconf
75391         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
75392         (INSTALL_PRELUDE): Delete; this is done more efficiently by
75393         moving...
75394         * install.texi [!autoconf]: ...here.  Resync from autoconf.
75395         * INSTALL: Regenerate.
75396         * INSTALL.ISO: New file.
75397         * INSTALL.UTF-8: Likewise.
75399 2008-08-26  Jim Meyering  <meyering@redhat.com>
75401         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
75402         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
75403         these definitions conditional, so that they may be overridden, too.
75405 2008-08-26  Bruno Haible  <bruno@clisp.org>
75407         Generate INSTALL file variants with prettier quotes.
75408         * doc/Makefile (INSTALL_PRELUDE): New macro.
75409         (INSTALL): Use it.
75410         (INSTALL.ISO, INSTALL.UTF-8): New rules.
75412 2008-08-26  Bruno Haible  <bruno@clisp.org>
75414         Run makeinfo in an English locale.
75415         * doc/Makefile (MAKEINFO): New variable.
75417 2008-08-26  Bruno Haible  <bruno@clisp.org>
75419         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
75420         Suggested by Eric Blake.
75422 2008-08-25  Bruno Haible  <bruno@clisp.org>
75424         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
75426 2008-08-25  Eric Blake  <ebb9@byu.net>
75428         c-stack: test that stack overflow can be caught
75429         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
75430         that platform allows handling stack overflow; at least OS/2 EMX
75431         has sigaltstack, but crashes before transferring control to
75432         handler on stack overflow.
75433         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
75434         check for HAVE_STACK_OVERFLOW_HANDLING.
75435         Reported by Elbert Pol.
75437 2008-08-25  Bruno Haible  <bruno@clisp.org>
75439         * doc/posix-functions/strftime.texi: Fix description of strftime
75440         module.
75442 2008-08-24  Bruno Haible  <bruno@clisp.org>
75444         * tests/uniwidth/test-uc_width2.c: New file.
75445         * tests/uniwidth/test-uc_width2.sh: New file.
75446         * modules/uniwidth/width-tests (Files): Add the new files.
75447         (TESTS): Add uniwidth/test-uc_width2.sh.
75448         (TESTS_ENVIRONMENT): New variable.
75449         (check_PROGRAMS): Add test-uc_width2.
75450         (test_uc_width2_SOURCES): New variable.
75452         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
75453         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
75454         not 0x00AB.
75455         Reported by Alexander V. Lukyanov <lav@netis.ru>.
75457 2008-08-22  Eric Blake  <ebb9@byu.net>
75459         test-lock, test-tls: mention why a test is skipped
75460         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
75461         skipped.
75462         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
75464         count-one-bits: relax license
75465         * modules/count-one-bits (License): Relicense to LGPLv2+.
75466         Suggested by Ludovic Courtès, approved by Ben Pfaff.
75468 2008-08-22  Andreas Schwab  <schwab@suse.de>
75470         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
75471         Remove spurious space in assignment.
75473 2008-08-21  Simon Josefsson  <simon@josefsson.org>
75475         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
75476         Paul Eggert <eggert@CS.UCLA.EDU>.
75478 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
75480         * modules/gettext: Add m4/threadlib.m4.
75482 2008-08-19  Eric Blake  <ebb9@byu.net>
75484         test-c-stack: fix compilation failure on FreeBSD 5.0
75485         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
75486         headers before <sys/resource.h>.
75487         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
75488         the bug.
75489         Reported by Nelson H. F. Beebe.
75491         strverscmp: migrate from "strverscmp.h" to <string.h>
75492         * modules/string (Makefile.am): Add new hooks.
75493         * modules/strverscmp (Files): Remove strverscmp.h.
75494         (Depends-on): Add string.
75495         (configure.ac): Add indicator.
75496         (Include): Mention new header.
75497         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
75498         defaults.
75499         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
75500         results.
75501         * lib/strverscmp.h: Delete.
75502         * lib/string.in.h (strverscmp): Provide declaration, when needed.
75503         * tests/test-strverscmp.c (includes): Adjust client.
75504         * lib/check-version.c (includes): Likewise.
75505         * NEWS: Document the change.
75507         strverscmp: add unit test
75508         * modules/strverscmp-tests: New file.
75509         * tests/test-strverscmp.c: Likewise.
75511 2008-08-19  Simon Josefsson  <simon@josefsson.org>
75513         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
75514         regarding Windows crypto stuff, from Mono.
75516 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
75518         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
75519         if present, for intel RND.  Return error on failures.
75521 2008-08-18  Ben Pfaff  <blp@gnu.org>
75523         gitlog-to-changelog: give better diagnostic for failed pipe-open
75524         * build-aux/gitlog-to-changelog: Improve error message: suggest
75525         that the version of Git may be too old.
75527 2008-08-18  Simon Josefsson  <simon@josefsson.org>
75529         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
75530         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
75532 2008-08-18  Bruno Haible  <bruno@clisp.org>
75534         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
75535         pthread_in_use().
75537 2008-08-18  Bruno Haible  <bruno@clisp.org>
75539         * lib/glthread/threadlib.c: Include <pthread.h>.
75541 2008-08-18  Bruno Haible  <bruno@clisp.org>
75543         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
75544         glthread_recursive_lock_* macros.
75545         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
75546         Fix syntax error.
75548 2008-08-18  Bruno Haible  <bruno@clisp.org>
75550         * lib/glthread/thread.c: Avoid forcing a context switch right after
75551         thread creation.
75553 2008-08-17  Bruno Haible  <bruno@clisp.org>
75555         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
75556         * lib/glthread/thread.h: Provide Win32 specific implementation.
75557         * modules/thread (Files): Add lib/glthread/thread.c.
75558         (Depends-on): Add lock.
75559         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
75561 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75563         New module 'yield'.
75564         * modules/yield: New file.
75565         * lib/glthread/yield.h: New file.
75566         * m4/yield.m4: New file.
75567         * MODULES.html.sh (Multithreading): Add yield.
75569 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75571         New module 'thread'.
75572         * modules/thread: New file.
75573         * lib/glthread/thread.h: New file.
75574         * m4/thread.m4: New file.
75575         * MODULES.html.sh (Multithreading): Add thread.
75577 2008-08-17  Bruno Haible  <bruno@clisp.org>
75579         * lib/glthread/lock.h: Include <stdlib.h> always.
75580         * lib/glthread/tls.h: Likewise.
75581         * lib/glthread/cond.h: Likewise.
75583 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75585         New module 'cond'.
75586         * modules/cond: New file.
75587         * lib/glthread/cond.h: New file.
75588         * lib/glthread/cond.c: New file.
75589         * m4/cond.m4: New file.
75590         * MODULES.html.sh (Multithreading): Add cond.
75592 2008-08-16  Eric Blake  <ebb9@byu.net>
75594         c-stack: fix regression on Irix 5.3 from 2008-06-21
75595         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
75596         sa_sigaction...
75597         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
75598         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
75599         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
75600         * modules/signal (Makefile.am): Use the value.
75601         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
75602         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
75603         * doc/posix-headers/signal.texi (signal.h): Document this
75604         portability issue.
75605         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
75606         Reported by Tom G. Christensen.
75608 2008-08-17  Bruno Haible  <bruno@clisp.org>
75610         New module 'threadlib'.
75611         * modules/threadlib: New file.
75612         * lib/glthread/threadlib.c: New file, extracted from
75613         lib/glthread/lock.c.
75614         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
75615         functions.
75616         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
75617         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
75618         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
75619         macros.
75620         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
75621         (gl_DISABLE_THREADS): Remove macro.
75622         * modules/lock (Files): Remove build-aux/config.rpath.
75623         (Depends-on): Remove havelib. Add threadlib.
75624         (configure.ac-early): Remove section.
75625         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
75626         * modules/tls (Depends-on): Remove lock. Add threadlib.
75627         (Link): New section, copied from threadlib.
75628         * MODULES.html.sh (Multithreading): Add threadlib.
75630 2008-08-14  Bruno Haible  <bruno@clisp.org>
75632         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
75633         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
75634         glthread_rwlock_unlock, glthread_rwlock_destroy,
75635         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
75636         glthread_recursive_lock_destroy): Define as macros always.
75637         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
75638         glthread_lock_lock.
75639         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
75640         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
75641         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
75642         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
75643         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
75644         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
75645         (glthread_recursive_lock_lock_func): Renamed from
75646         glthread_recursive_lock_lock.
75647         (glthread_recursive_lock_unlock_func): Renamed from
75648         glthread_recursive_lock_unlock.
75649         (glthread_recursive_lock_destroy_func): Renamed from
75650         glthread_recursive_lock_destroy.
75652 2008-08-14  Bruno Haible  <bruno@clisp.org>
75654         * lib/glthread/lock.h: Renamed from lib/lock.h.
75655         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
75656         * lib/glthread/tls.h: Renamed from lib/tls.h.
75657         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
75658         * lib/fstrcmp.c: Update includes.
75659         * lib/strsignal.c: Update includes.
75660         * modules/lock (Files, Makefile.am): Update.
75661         (Include): Change to "glthread/lock.h".
75662         * modules/tls (Files, Makefile.am): Update.
75663         (Include): Change to "glthread/tls.h".
75664         * tests/test-lock.c: Update includes.
75665         * tests/test-tls.c: Update includes.
75666         * NEWS: Mention the renamed header files.
75668 2008-08-11  Jim Meyering  <meyering@redhat.com>
75670         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
75672 2008-08-11  Eric Blake  <ebb9@byu.net>
75674         test-c-stack: avoid C99-ism
75675         * tests/test-c-stack.c (main): Fix whitespace, move declaration
75676         before statement.
75677         Reported by Alain Guibert.
75679 2008-08-10  Jim Meyering  <meyering@redhat.com>
75681         ensure that return value of uinttostr et al are not ignored
75682         * lib/inttostr.h (__GNUC_PREREQ): Define.
75683         (__attribute_warn_unused_result__): Define.
75684         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
75686 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
75688         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
75689         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
75691 2008-08-07  Jim Meyering  <meyering@redhat.com>
75693         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
75695         * modules/mkstemp (License): Relicense under LGPLv2+.
75696         * modules/tempname (License): Likewise.
75698 2008-08-06  Bruno Haible  <bruno@clisp.org>
75700         * lib/poll.c (poll): Further micro-optimization.
75702 2008-08-06  Jim Meyering  <meyering@redhat.com>
75704         inet_pton.c: use locale-independent tolower
75705         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
75706         (inet_pton6): Use c_tolower rather than tolower.
75707         * modules/inet_pton (Depends-on): Add c-ctype.
75709 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
75711         * lib/poll.c (poll): Avoid division when timeout is 0, cache
75712         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
75714 2008-08-06  Jim Meyering  <meyering@redhat.com>
75716         * modules/inet_pton (License): Relicense under LGPLv2+.
75718 2008-08-03  Bruno Haible  <bruno@clisp.org>
75720         Additional non-aborting API for lock and tls.
75721         * lib/lock.h: Include <errno.h>.
75722         (glthread_lock_init): New macro/function.
75723         (gl_lock_init): Define as wrapper around glthread_lock_init.
75724         (glthread_lock_lock): New macro/function.
75725         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
75726         (glthread_lock_unlock): New macro/function.
75727         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
75728         (glthread_lock_destroy): New macro/function.
75729         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
75730         (glthread_rwlock_init): New macro/function.
75731         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
75732         (glthread_rwlock_rdlock): New macro/function.
75733         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
75734         (glthread_rwlock_wrlock): New macro/function.
75735         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
75736         (glthread_rwlock_unlock): New macro/function.
75737         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
75738         (glthread_rwlock_destroy): New macro/function.
75739         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
75740         (glthread_recursive_lock_init): New macro/function.
75741         (gl_recursive_lock_init): Define as wrapper around
75742         glthread_recursive_lock_init.
75743         (glthread_recursive_lock_lock): New macro/function.
75744         (gl_recursive_lock_lock): Define as wrapper around
75745         glthread_recursive_lock_lock.
75746         (glthread_recursive_lock_unlock): New macro/function.
75747         (gl_recursive_lock_unlock): Define as wrapper around
75748         glthread_recursive_lock_unlock.
75749         (glthread_recursive_lock_destroy): New macro/function.
75750         (gl_recursive_lock_destroy): Define as wrapper around
75751         glthread_recursive_lock_destroy.
75752         (glthread_once): New macro/function.
75753         (gl_once): Define as wrapper around glthread_once.
75754         Update function declarations.
75755         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
75756         glthread_rwlock_init. Return error code.
75757         (glthread_rwlock_rdlock_multithreaded): Renamed from
75758         glthread_rwlock_rdlock. Return error code.
75759         (glthread_rwlock_wrlock_multithreaded): Renamed from
75760         glthread_rwlock_wrlock. Return error code.
75761         (glthread_rwlock_unlock_multithreaded): Renamed from
75762         glthread_rwlock_unlock. Return error code.
75763         (glthread_rwlock_destroy_multithreaded): Renamed from
75764         glthread_rwlock_destroy. Return error code.
75765         (glthread_recursive_lock_init_multithreaded): Renamed from
75766         glthread_recursive_lock_init. Return error code.
75767         (glthread_recursive_lock_lock_multithreaded): Renamed from
75768         glthread_recursive_lock_lock. Return error code.
75769         (glthread_recursive_lock_unlock_multithreaded): Renamed from
75770         glthread_recursive_lock_unlock. Return error code.
75771         (glthread_recursive_lock_destroy_multithreaded): Renamed from
75772         glthread_recursive_lock_destroy. Return error code.
75773         (glthread_once_call): Make static.
75774         (glthread_once_multithreaded): Renamed from glthread_once.
75775         * lib/tls.h: Include <errno.h>.
75776         (glthread_tls_key_init): New macro/function.
75777         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
75778         (glthread_tls_set): New macro/function.
75779         (gl_tls_set): Define as wrapper around glthread_tls_set.
75780         (glthread_tls_key_destroy): New macro/function.
75781         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
75782         Update function declarations.
75783         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
75784         glthread_tls_get.
75785         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
75787 2008-08-04  Eric Blake  <ebb9@byu.net>
75789         gnumakefile: use space, not TAB, outside of targets
75790         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
75792 2008-08-02  Jim Meyering  <meyering@redhat.com>
75794         getdate.y: avoid locale-dependent date parsing failure
75795         In Turkish locales, getdate would fail to recognize keywords
75796         containing a lowercase "i".  The solution is not to rely on
75797         locale-sensitive case-conversion.
75798         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
75799         (lookup_word): Use c_toupper in place of toupper.
75800         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
75801         Reported by Vefa Bicakci <bicave@superonline.com> in
75802         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
75803         * modules/getdate (Depends-on): Add c-ctype.
75805 2008-08-02  Bruno Haible  <bruno@clisp.org>
75807         * gnulib-tool (func_import): When updating or creating a .gitignore
75808         file, prepend each added line with a slash, and ignore leading slashes
75809         from the existing lines.
75810         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
75812 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75814         Portability fix for GNU make 3.79.1.
75815         * top/GNUmakefile: Avoid 'else COND', which older GNU make
75816         versions do not understand.
75818 2008-08-01  Bruno Haible  <bruno@clisp.org>
75820         Work around bug of HP-UX 10.20 cc with -0.0 literal.
75821         * tests/test-isnanf.h (zero): New variable.
75822         (main): Avoid literal -0.0f.
75823         * tests/test-isnand.h (zero): New variable.
75824         (main): Avoid literal -0.0.
75825         * tests/test-isnanl.h (zero): New variable.
75826         (main): Avoid literal -0.0L.
75827         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
75828         (test_float, test_double, test_long_double): Avoid literals -0.0f,
75829         -0.0, -0.0L.
75830         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
75831         (test_signbitd): Avoid literal -0.0.
75832         (test_signbitl): Avoid literal -0.0L.
75833         * tests/test-ceilf1.c (zero): New variable.
75834         (main): Avoid literal -0.0f.
75835         * tests/test-ceill.c (zero): New variable.
75836         (main): Avoid literal -0.0L.
75837         * tests/test-floorf1.c (zero): New variable.
75838         (main): Avoid literal -0.0f.
75839         * tests/test-floorl.c (zero): New variable.
75840         (main): Avoid literal -0.0L.
75841         * tests/test-roundf1.c (zero): New variable.
75842         (main): Avoid literal -0.0f.
75843         * tests/test-round1.c (zero): New variable.
75844         (main): Avoid literal -0.0.
75845         * tests/test-roundl.c (zero): New variable.
75846         (main): Avoid literal -0.0L.
75847         * tests/test-truncf1.c (zero): New variable.
75848         (main): Avoid literal -0.0f.
75849         * tests/test-trunc1.c (zero): New variable.
75850         (main): Avoid literal -0.0.
75851         * tests/test-truncl.c (zero): New variable.
75852         (main): Avoid literal -0.0L.
75853         * tests/test-frexp.c (zero): New variable.
75854         (main): Avoid literal -0.0.
75855         * tests/test-frexpl.c (zero): New variable.
75856         (main): Avoid literal -0.0L.
75857         * tests/test-ldexpl.c (zero): New variable.
75858         (main): Avoid literal -0.0L.
75859         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
75860         (zerod, zerol): New variables.
75861         (test_function): Avoid literals -0.0, -0.0L.
75862         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
75863         (zerod, zerol): New variables.
75864         (test_function): Avoid literals -0.0, -0.0L.
75865         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
75866         (zerod, zerol): New variables.
75867         (test_function): Avoid literals -0.0, -0.0L.
75868         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
75869         (zerod, zerol): New variables.
75870         (test_function): Avoid literals -0.0, -0.0L.
75871         * tests/test-strtod.c (zero): New variable.
75872         (main): Avoid literal -0.0.
75873         Reported by Jonathan C. Patschke <jp@centtech.com>.
75875 2008-07-31  Jim Meyering  <meyering@redhat.com>
75877         sha256.h: correct definition of SHA224_DIGEST_SIZE
75878         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
75879         Reported by Paulie Pena IV <paulie4@gmail.com>.
75880         Define as 224 / 8, rather than as a literal.
75881         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
75882         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
75883         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
75885 2008-07-31  Bruno Haible  <bruno@clisp.org>
75887         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
75888         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
75889         Reported by Jonathan Patschke <jp@centtech.com>.
75891 2008-07-31  Bruno Haible  <bruno@clisp.org>
75893         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
75894         Reported by Paolo Bonzini <bonzini@gnu.org>.
75896 2008-07-30  Eric Blake  <ebb9@byu.net>
75898         test-strtod: allow compilation without -lm
75899         * tests/test-strtod.c (main): Avoid link dependence on fabs.
75900         Reported by Dennis Clarke <blastwave@gmail.com>.
75902 2008-07-28  Jim Meyering  <meyering@redhat.com>
75904         bootstrap: work also when there are no .po files in po/
75905         * build-aux/bootstrap (update_po_files): Complete the change
75906         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
75908 2008-07-27  Jim Meyering  <meyering@redhat.com>
75910         * users.txt: Add zile.
75912 2008-07-26  Ben Pfaff  <blp@gnu.org>
75914         Add missing dependencies on new m4/exponent[fdl].m4 files.
75915         * modules/isnanf-nolibm: Add m4/exponentf.m4.
75916         * modules/isnand-nolibm: Add m4/exponentd.m4.
75917         * modules/isnanl-nolibm: Add m4/exponentl.m4.
75918         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
75919         m4/isnan[fdl].m4, because the macros actually used moved.
75920         Reported by Jim Meyering.
75922 2008-07-14  Ben Pfaff  <blp@gnu.org>
75924         Add isinf module.
75925         * lib/isinf.c: New file.
75926         * lib/math.in.h: Define isinf macro if we have decided to replace
75927         it.
75928         * m4/isinf.m4: New file.
75929         * m4/math_h.m4: Initialize and substitute variables for isinf
75930         module.
75931         * modules/isinf: New file.
75932         * modules/isinf-tests: New file.
75933         * modules/math: Add substitutions for new module.
75934         * tests/test-isinf.c: New file.
75935         * doc/posix-functions/isinf.texi: Mention new module.
75936         * MODULES.html.sh: Mention new module.
75938 2008-07-14  Ben Pfaff  <blp@gnu.org>
75940         Factor out some macros for use by additional modules.
75941         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
75942         exponentf.m4.
75943         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
75944         exponentd.m4.
75945         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
75946         file exponentl.m4.
75947         * m4/exponentf.m4: New file.
75948         * m4/exponentd.m4: New file.
75949         * m4/exponentl.m4: New file.
75950         * modules/isnanf: Use new file m4/exponentf.m4.
75951         * modules/isnand: Use new file m4/exponentd.m4.
75952         * modules/isnanl: Use new file m4/exponentl.m4.
75954 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
75956         mktime.c: normalize tp->tm_isdst value to -1/0/1.
75957         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
75958         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
75959         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
75961         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
75962         readlink on platforms without PATH_MAX.
75964 2008-07-21  Eric Blake  <ebb9@byu.net>
75966         Warn, not fail, on stale version.
75967         * top/GNUmakefile (_curr-ver): Tone down previous patch.
75969         Don't allow installation with stale devel version number.
75970         * top/GNUmakefile (_is-install-target): New macro.
75971         (_curr-ver): Forbid installation with stale version number.
75973 2008-07-20  Bruno Haible  <bruno@clisp.org>
75975         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
75976         TESTS_ENVIRONMENT.
75977         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
75979 2008-07-20  Bruno Haible  <bruno@clisp.org>
75981         * lib/c-stack.h (c_stack_action): Add documentation.
75982         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
75984 2008-07-20  Bruno Haible  <bruno@clisp.org>
75986         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
75987         * modules/readlink (License): Likewise.
75989 2008-07-17  Eric Blake  <ebb9@byu.net>
75991         * modules/c-stack (Link): Fix typo.
75993         Make c-stack use libsigsegv, when available.
75994         * modules/c-stack (Depends-on): Add libsigsegv.
75995         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
75996         needed.
75997         * lib/c-stack.c (SIGSTKSZ): Define fallback.
75998         (segv_handler, overflow_handler, c_stack_action)
75999         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
76000         implementation when libsigsegv is available, but only when using
76001         the library is necessary.
76002         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
76003         comment, explaining why XSI check fails on Linux.
76004         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
76005         * tests/test-c-stack2.sh: Tweak skip message.
76006         * NEWS: Document new link-time requirements.
76008 2008-07-16  Eric Blake  <ebb9@byu.net>
76010         c-stack: Expose false positives when not using libsigsegv.
76011         * modules/c-stack-tests (Files): Expand test.
76012         * tests/test-c-stack.c (main): Add means to conditionally trigger
76013         non-overflow SIGSEGV.
76014         * tests/test-c-stack2.sh: New file.
76016 2008-07-14  Bruno Haible  <bruno@clisp.org>
76018         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
76019         Reported by Eric Blake.
76021 2008-07-14  Sam Steingold  <sds@gnu.org>
76022             Bruno Haible  <bruno@clisp.org>
76024         New module libsigsegv.
76025         * modules/libsigsegv: New file.
76026         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
76027         modifications.
76028         * MODULES.html.sh (Signal handling): New section.
76030 2008-07-14  Bruno Haible  <bruno@clisp.org>
76032         * modules/unictype/ctype-* (Description): Add the word "function".
76033         Improves the resulting doc in MODULES.html.
76035 2008-07-12  Ben Pfaff  <blp@gnu.org>
76037         Add longlong module.
76038         * modules/longlong: New file.
76040 2008-07-12  Bruno Haible  <bruno@clisp.org>
76042         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
76043         to empty.
76045 2008-07-10  Ben Pfaff  <blp@gnu.org>
76047         Add isnan module.
76048         * doc/posix-functions/isnan.texi: Mention new module.
76049         * lib/math.in.h: Define isnan macro if we have decided to replace
76050         it.
76051         * m4/isnan.m4: New file.
76052         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
76053         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
76054         also.
76055         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
76056         redundancy.
76057         * m4/math_h.m4: Initialize and substitute variables for isnan
76058         module.
76059         * modules/isnan: New file.
76060         * modules/isnan-tests: New file.
76061         * modules/math: Add substitutions for new module.
76062         * tests/test-isnan.c: New file.
76063         * MODULES.html.sh: Mention new module.
76065 2008-07-10  Ben Pfaff  <blp@gnu.org>
76067         Add isnanf module.
76068         * lib/isnanf.m4: New file.
76069         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
76070         (gl_HAVE_ISNANF_IN_LIBM): New macro.
76071         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
76072         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
76073         * modules/isnanf: New file.
76074         * modules/isnanf-tests: New file.
76075         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
76076         files.
76077         * tests/test-isnanf-nolibm.c: factored most of its contents into
76078         new file tests/test-isnanf.h.
76079         * tests/test-isnanf.h: New file.
76080         * tests/test-isnanf.c: New file.
76081         * MODULES.html.sh: Mention new module.
76082         * doc/glibc-functions/isnanf.texi: Mention new module.
76084 2008-07-10  Ben Pfaff  <blp@gnu.org>
76086         Add isnand module.
76087         * lib/isnand.h: New file.
76088         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
76089         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
76090         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
76091         functionality also.
76092         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
76093         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
76094         (gl_HAVE_ISNAND_IN_LIBM): New macro.
76095         * modules/isnand: New file.
76096         * modules/isnand-tests: New file.
76097         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
76098         files.
76099         * tests/test-isnand-nolibm.c: factored most of its contents into
76100         new file tests/test-isnand.h.
76101         * tests/test-isnand.h: New file.
76102         * tests/test-isnand.c: New file.
76103         * MODULES.html.sh: Mention new module.
76105 2008-07-10  Ben Pfaff  <blp@gnu.org>
76107         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
76108         * lib/isnand.h: Rename lib/isnand-nolibm.h.
76109         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
76110         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
76111         * modules/isnanf-nolibm: Update references to renamed files.
76112         * modules/isnand-nolibm: Likewise.
76113         * modules/isnanf-nolibm-tests: Likewise.
76114         * modules/isnand-nolibm-tests: Likewise.
76115         * lib/frexp.c: Likewise.
76116         * lib/isfinite.c: Likewise.
76117         * lib/signbitd.c: Likewise.
76118         * lib/signbitf.c: Likewise.
76119         * lib/vasnprintf.c: Likewise.
76120         * tests/test-ceilf1.c: Likewise.
76121         * tests/test-ceilf2.c: Likewise.
76122         * tests/test-floorf1.c: Likewise.
76123         * tests/test-floorf2.c: Likewise.
76124         * tests/test-frexp.c: Likewise.
76125         * tests/test-round1.c: Likewise.
76126         * tests/test-round2.c: Likewise.
76127         * tests/test-roundf1.c: Likewise.
76128         * tests/test-strtod.c: Likewise.
76129         * tests/test-trunc1.c: Likewise.
76130         * tests/test-trunc2.c: Likewise.
76131         * tests/test-truncf1.c: Likewise.
76132         * tests/test-truncf2.c: Likewise.
76133         * NEWS: Mention the renamed header files.
76135 2008-07-11  Jim Meyering  <meyering@redhat.com>
76137         vc-list-files: make the last-resort awk code more portable
76138         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
76139         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
76140         does not support it.
76142 2008-07-10  Eric Blake  <ebb9@byu.net>
76144         Work with tar's bootstrap.
76145         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
76146         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
76147         an m4 comment.
76149 2008-07-09  Jim Meyering  <meyering@redhat.com>
76151         posix-shell.m4: fix typo that made this test malfunction
76152         * m4/posix-shell.m4: Remove capitalization in variable name.
76154 2008-07-08  Bruno Haible  <bruno@clisp.org>
76156         * m4/onceonly.m4: Update comments.
76157         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76159 2008-07-04  Jim Meyering  <meyering@redhat.com>
76161         * users.txt: Add vc-dwim.
76162         (bison, coreutils): Use the gitweb URL.
76164 2008-07-03  Jim Meyering  <meyering@redhat.com>
76166         * users.txt: Add libffcall.  From Sam Steingold.
76168 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
76170         getdate.y: do not ignore TZ with relative day, month or year offset
76171         * lib/getdate.y (get_date): Move the tz-handling block to follow the
76172         relative-date-handling, since otherwise, the latter would clobber the
76173         sole output (an updated Start value) of the tz-handling block.
76174         * tests/test-getdate.c: Tests for the fix
76176 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76178         Recognize 'foo_LIBRARIES += libgnu.a'.
76179         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
76180         makefile snippet has already specified an installation location,
76181         also using '+='.
76183 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
76185         getdate.y: factor out common actions
76186         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
76187         Use them in place of open-coded actions.
76189 2008-07-01  Simon Josefsson  <simon@josefsson.org>
76191         Add self-test for getdate module.
76192         * modules/getdate-tests: New file.
76193         * tests/test-getdate.c: New file.
76195 2008-06-29  Bruno Haible  <bruno@clisp.org>
76197         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
76198         .gitignore.
76199         Reported by Sylvain Beucler <beuc@beuc.net>.
76201 2008-06-29  Bruno Haible  <bruno@clisp.org>
76203         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
76204         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
76206 2008-06-29  Bruno Haible  <bruno@clisp.org>
76208         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
76209         EXTRA_DIST.
76210         Reported by Sylvain Beucler <beuc@beuc.net>.
76212 2008-06-26  Jim Meyering  <meyering@redhat.com>
76214         make several modules depend on the "open" module
76215         This provides slightly increased consistency when opening-for-write
76216         the name of a non-directory spelled with a trailing slash.
76217         * modules/chdir-safer: Likewise.
76218         * modules/chown: Likewise.
76219         * modules/clean-temp: Likewise.
76220         * modules/copy-file: Likewise.
76221         * modules/fchdir: Likewise.
76222         * modules/fcntl-safer: Likewise.
76223         * modules/pipe: Likewise.
76224         * modules/utime: Likewise.
76225         Prompted by Eric Blake and Bruno Haible.
76227 2008-06-24  Andreas Schwab  <schwab@suse.de>
76229         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
76230         literals can be used as initializers for global variables.
76232 2008-06-23  Eric Blake  <ebb9@byu.net>
76234         Make gnulib-cache.m4 easier to diff.
76235         * gnulib-tool (func_import): Allow newlines when reading cached
76236         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
76238 2008-06-23  Bruno Haible  <bruno@clisp.org>
76240         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
76241         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
76242         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
76243         m4/signalblocking.m4.
76244         (gl_PREREQ_SIGACTION): Don't invoke it.
76245         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
76246         gl_PREREQ_SIG_HANDLER_H.
76247         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
76248         Don't check for sigaction here.
76250 2008-06-23  Bruno Haible  <bruno@clisp.org>
76252         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
76253         (install_handlers): Don't set the SA_RESETHAND flag.
76255 2008-06-23  Bruno Haible  <bruno@clisp.org>
76257         * m4/sigaction.m4: Comment fixes.
76258         * lib/signal.in.h: Likewise.
76260 2008-06-23  Eric Blake  <ebb9@byu.net>
76262         Fix typo.
76263         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
76265         Avoid SA_ namespace.
76266         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
76267         Reported by Ralf Wildenhues.
76269         Avoid test failure due to SA_RESTORER.
76270         * tests/test-sigaction.c (SA_MASK): New macro.
76271         (main): Avoid failing due to extension flags being set.
76272         Reported by Jim Meyering.
76274         Revert use of sig-handler.h in sigprocmask.c.
76275         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
76276         it requires the existence of struct sigaction.
76277         * lib/sigprocmask.c (handler_t): Restore typedef.
76278         (rpl_signal, old_handlers): Use local type.
76280 2008-06-22  Bruno Haible  <bruno@clisp.org>
76282         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
76283         conditionally.
76284         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
76286 2008-06-22  Bruno Haible  <bruno@clisp.org>
76288         * doc/posix-functions/siginterrupt.texi: Move note.
76290         * lib/signal.in.h (SA_RESTART): New macro.
76291         * lib/sigaction.c: Update comment.
76293         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
76295         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
76296         (gl_PREREQ_SIGPROCMASK): Invoke it.
76297         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
76299         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
76301         * lib/sigprocmask.c: Update a comment.
76303 2008-06-21  Eric Blake  <ebb9@byu.net>
76305         Use sigaction module rather than signal().
76306         * modules/c-stack (Depends-on): Add sigaction.
76307         * modules/fatal-signal (Depends-on): Likewise.
76308         * modules/nanosleep (Depends-on): Likewise.
76309         * modules/sigprocmask (Files): Add sig-handler.h.
76310         * modules/sigaction (Files): Likewise.
76311         * lib/sig-handler.h (get_handler): New file, suggested by Paul
76312         Eggert.
76313         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
76314         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
76315         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
76316         (init_fatal_signals): Likewise.
76317         * lib/nanosleep.c (rpl_nanosleep): Likewise.
76318         (siginterrupt): Delete fallback.
76319         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
76320         instead.
76321         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
76322         siginterrupt.
76324         New module sigaction, for mingw.
76325         * modules/sigaction: New module...
76326         * modules/sigaction-tests: ...and its test.
76327         * m4/sigaction.m4: New file.
76328         * lib/sigaction.c: Likewise.
76329         * tests/test-sigaction.c: Likewise.
76330         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
76331         * modules/signal (Makefile.am): Likewise.
76332         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
76333         needed.
76334         * doc/posix-headers/signal.texi (signal.h): Mention provided
76335         types.
76336         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
76337         that sigaction is preferable.
76338         * doc/posix-functions/sigaction.texi (sigaction): Mention new
76339         module.
76340         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76341         sigaction.
76343         Improve robustness of sigprocmask by overriding signal.
76344         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
76345         is in use.
76346         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
76347         (SIGKILL, SIGSTOP): Provide fallbacks.
76348         (rpl_signal): Implement.
76349         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
76350         signal can be called inside handlers.
76352         Fix nanosleep module on mingw.
76353         * modules/nanosleep (Depends-on): Add sys_select.
76354         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
76356         Fix licensing of sigprocmask.
76357         * modules/raise (License): Relicense as LGPL.
76359 2008-06-21  Bruno Haible  <bruno@clisp.org>
76361         * lib/propername.c (proper_name_utf8): Don't use the transliterated
76362         result if it contains question marks.
76363         Reported by Michael Geng <linux@michaelgeng.de>.
76365 2008-06-19  Bruno Haible  <bruno@clisp.org>
76367         Fix CVS-ism.
76368         * doc/gnulib.texi: Include updated-stamp.texi.
76369         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
76370         (updated-stamp.texi): New rule.
76371         (gnulib.info): Depend on it.
76372         * doc/.gitignore: Add updated-stamp.texi.
76373         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
76375 2008-06-19  Bruno Haible  <bruno@clisp.org>
76377         * doc/Makefile (gnulib.info): Update and simplify dependencies.
76378         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
76380 2008-06-19  Eric Blake  <ebb9@byu.net>
76382         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
76383         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
76384         Reported by Stepan Kasal.
76386 2008-06-18  Bruno Haible  <bruno@clisp.org>
76388         * lib/fatal-signal.c (init_fatal_signals): Add comment.
76389         Reported by Eric Blake.
76391 2008-06-18  Eric Blake  <ebb9@byu.net>
76393         Work around cygwin 1.5.25 strsignal bug.
76394         * tests/test-strsignal.c: Allow for const char *.
76395         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
76397 2008-06-18  Simon Josefsson  <simon@josefsson.org>
76399         * users.txt: Update URL to article and add author/date
76400         information.
76402 2008-06-17  Bruno Haible  <bruno@clisp.org>
76404         New macro gl_DISABLE_THREADS.
76405         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
76406         if the user did not pass --enable-threads or --disable-threads option.
76407         (gl_DISABLE_THREADS): New macro.
76408         Reported by Eric Blake <ebb9@byu.net>.
76410 2008-06-17  Bruno Haible  <bruno@clisp.org>
76412         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
76413         when the macro ignores it.
76414         Based on a patch by Eric Blake <ebb9@byu.net>.
76416 2008-06-17  Bruno Haible  <bruno@clisp.org>
76418         * modules/tls (License): Change to LGPLv2+.
76419         Reported by Eric Blake.
76421 2008-06-17  Eric Blake  <ebb9@byu.net>
76423         Simplify c-stack prerequisites.
76424         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
76425         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
76426         no longer requires <ucontext.h> to exist.  Optimize setrlimit
76427         check.
76428         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
76429         <sys/resource.h>.
76431         Move c-stack test into testsuite.
76432         * modules/c-stack-tests: New file.
76433         * lib/c-stack.c [DEBUG]: Move test program...
76434         * tests/test-c-stack.c: ...into this new file.  Skip rather than
76435         fail test if sigaltstack is lacking.
76436         * tests/test-c-stack.sh: New driver file.
76438 2008-06-16  Eric Blake  <ebb9@byu.net>
76440         Use raise module consistently.
76441         * modules/fatal-signal (Depends-on): Add raise.
76442         * modules/sigprocmask (Depends-on): Likewise.
76443         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
76444         * lib/sigprocmask.c (sigprocmask): Likewise.
76445         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
76446         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
76448         Fix compliance bug in sigpending.
76449         * lib/sigprocmask.c (sigpending): Return pending array via
76450         parameter, not return value.
76452 2008-06-14  Eric Blake  <ebb9@byu.net>
76454         Improve obstack-printf test code.
76455         * tests/test-obstack-printf.c (test_function): Fix comment, and
76456         simplify usage of obstack_* in macros.  Add a test for coverage.
76457         Reported by Bruno Haible.
76459 2008-06-14  Bruno Haible  <bruno@clisp.org>
76461         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
76462         array size as a constant, not as a const variable.
76463         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
76464         AC_USE_SYSTEM_EXTENSIONS.
76465         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
76466         Test whether the obstack_printf function actually exists.
76467         * modules/obstack-printf (Depends-on): Add extensions.
76468         (Include): Remove obstack.h.
76469         * modules/obstack-printf-posix (Depends-on): Add extensions.
76470         (Include): Remove obstack.h.
76472 2008-06-13  Eric Blake  <ebb9@byu.net>
76474         Add obstack-printf and obstack-printf-posix modules.
76475         * modules/obstack-printf: New file.
76476         * modules/obstack-printf-posix: Likewise.
76477         * MODULES.html.sh (Misc): Mention them.
76478         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
76479         Likewise.
76480         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
76481         Likewise.
76482         * modules/stdio (Makefile.am): Accomodate new modules.
76483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
76484         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
76485         Declare.
76486         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
76487         functions.
76488         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
76489         (gl_REPLACE_OBSTACK_PRINTF): New macros
76490         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
76491         * tests/test-obstack-printf.c: New file.
76492         * modules/obstack-printf-tests: Likewise.
76493         * modules/obstack-printf-posix-tests: Likewise.
76495 2008-06-11  Bruno Haible  <bruno@clisp.org>
76497         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
76498         * lib/open.c: Include errno.h.
76499         (open): Fail when attempting to write to a file that has a trailing
76500         slash.
76501         * tests/test-open.c (main): Test against trailing slash bug.
76502         * doc/posix-functions/open.texi: Mention the trailing slash bug.
76504 2008-06-10  Bruno Haible  <bruno@clisp.org>
76506         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
76507         for $? to work inside the trap command, with various /bin/sh-s.
76508         * tests/test-vc-list-files-cvs.sh: Likewise.
76510 2008-06-10  Bruno Haible  <bruno@clisp.org>
76512         * lib/acl-internal.h: Don't include gettext.h here.
76513         * lib/set-mode-acl.c: Include gettext.h here.
76514         * lib/copy-acl.c: Likewise.
76516 2008-06-10  Bruno Haible  <bruno@clisp.org>
76518         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
76519         * lib/wait-process.c (wait_subprocess): Likewise.
76520         * lib/execute.h (execute): Add termsigp argument.
76521         * lib/execute.c (execute): Likewise.
76522         * lib/csharpcomp.c (compile_csharp_using_pnet,
76523         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
76524         * lib/csharpexec.c (execute_csharp_using_pnet,
76525         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
76526         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
76527         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
76528         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
76529         is_jikes_present): Update.
76530         * lib/javaexec.c (execute_java_class): Update.
76531         * lib/javaversion.c (execute_and_read_line): Update.
76532         * NEWS: Document the changes.
76533         Reported by Eric Blake.
76535 2008-06-10  Eric Blake  <ebb9@byu.net>
76537         Add missing include.
76538         * tests/test-strstr.c (includes): Add <signal.h>.
76539         * tests/test-strcasestr.c (includes): Likewise.
76540         * tests/test-memmem.c (includes): Likewise.
76542 2008-06-10  Bruno Haible  <bruno@clisp.org>
76544         * lib/wait-process.c (wait_subprocess): Add an assertion.
76546 2008-06-10  Bruno Haible  <bruno@clisp.org>
76548         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
76550 2008-06-10  Bruno Haible  <bruno@clisp.org>
76552         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
76553         using alarm().
76554         * tests/test-strcasestr.c (main): Likewise.
76555         * tests/test-strstr.c (main): Likewise.
76557 2008-06-09  Bruno Haible  <bruno@clisp.org>
76559         Work around the Solaris 10 ACE ACLs ABI change.
76560         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
76561         declare if ACL_NO_TRIVIAL is present.
76562         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
76563         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
76564         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
76565         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
76566         define if ACL_NO_TRIVIAL is present.
76567         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
76568         and use the current ABI.
76569         (file_has_acl): Use same #if condition as elsewhere.
76570         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
76571         in use, and use the current ABI.
76572         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
76573         Reported by Jim Meyering.
76575 2008-06-09  Eric Blake  <ebb9@byu.net>
76577         Work around environments that (stupidly) ignore SIGALRM.
76578         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
76579         before using alarm().
76580         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
76581         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
76582         Reported by Ian Beckwith <ianb@erislabs.net>.
76584         Produce autobuild blurb earlier in log.
76585         * modules/autobuild (configure.ac-early): Move AB_INIT here.
76587 2008-06-09  Jim Meyering  <meyering@redhat.com>
76588         and Ondřej Vašík  <ovasik@redhat.com>
76590         utimens.c: correct kernel bug work-around
76591         Ondřej Vašík found that the invalid return value of 280 indicates
76592         failure, not success, and the kernel bug we're trying to work
76593         around affects not just the utimensat call, but also the fallback
76594         futimens call.
76595         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
76596         not success.
76597         [HAVE_FUTIMENS]: Use the same work-around, here.
76599 2008-06-09  Jim Meyering  <meyering@redhat.com>
76601         add more guards around definition of ACE_-related code
76602         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
76603         ALLOW and ACE_OWNER are also defined.
76605 2008-06-08  Bruno Haible  <bruno@clisp.org>
76607         * lib/acl-internal.h: Add me as co-author.
76608         * lib/file-has-acl.c: Likewise.
76609         * lib/set-mode-acl.c: Likewise.
76610         * lib/copy-acl.c: Likewise.
76612 2008-06-08  Bruno Haible  <bruno@clisp.org>
76614         Add support for AIX ACLs.
76615         * lib/acl-internal.h (acl_nontrivial): New declaration.
76616         * lib/file-has-acl.c (acl_nontrivial): New function.
76617         (file_has_acl): Add implementation using AIX 4 ACL API.
76618         * lib/set-mode-acl.c (qset_acl): Likewise.
76619         * lib/copy-acl.c (qcopy_acl): Likewise.
76621 2008-06-08  Bruno Haible  <bruno@clisp.org>
76623         Add support for HP-UX ACLs.
76624         * lib/acl-internal.h (acl_nontrivial): New declaration.
76625         * lib/file-has-acl.c (acl_nontrivial): New function.
76626         (file_has_acl): Add implementation using HP-UX 11 ACL API.
76627         * lib/set-mode-acl.c (qset_acl): Likewise.
76628         * lib/copy-acl.c (qcopy_acl): Likewise.
76630 2008-06-08  Bruno Haible  <bruno@clisp.org>
76632         Add support for Cygwin ACLs.
76633         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
76634         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
76635         the chmod_or_fchmod call.
76636         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
76638 2008-06-08  Bruno Haible  <bruno@clisp.org>
76640         Fix bug with setuid modes in Solaris 10+ code.
76641         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
76642         succeeded, when the mode contains some special bits.
76644 2008-06-08  Bruno Haible  <bruno@clisp.org>
76646         Add support for Solaris 7..10 ACLs.
76647         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
76648         declarations.
76649         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
76650         functions.
76651         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
76652         * lib/set-mode-acl.c (qset_acl): Likewise.
76653         * lib/copy-acl.c (qcopy_acl): Likewise.
76655 2008-06-08  Bruno Haible  <bruno@clisp.org>
76657         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
76658         declaration.
76659         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
76660         (acl_access_nontrivial): Remove MacOS X case.
76661         (file_has_acl): Use acl_extended_nontrivial.
76662         * lib/copy-acl.c (qcopy_acl): Likewise.
76664 2008-06-08  Bruno Haible  <bruno@clisp.org>
76666         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
76668 2008-06-08  Jim Meyering  <meyering@redhat.com>
76670         * modules/acl (Maintainer): Add Bruno Haible.
76672 2008-06-07  Bruno Haible  <bruno@clisp.org>
76674         Improve support for Tru64 ACLs.
76675         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
76676         ACL on OSF/1.
76678 2008-06-07  Bruno Haible  <bruno@clisp.org>
76680         Add support for MacOS X ACLs.
76681         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
76682         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
76683         * lib/set-mode-acl.c (qset_acl): Likewise.
76684         * lib/copy-acl.c (qcopy_acl): Likewise.
76686 2008-06-07  Bruno Haible  <bruno@clisp.org>
76688         Fix memory leak introduced on 2008-05-22.
76689         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
76690         use.
76692 2008-06-07  Bruno Haible  <bruno@clisp.org>
76694         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
76695         to construct an empty ACL.
76697 2008-06-07  Bruno Haible  <bruno@clisp.org>
76699         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
76700         precisely.
76701         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
76703 2008-06-07  Bruno Haible  <bruno@clisp.org>
76705         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
76706         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
76708 2008-06-07  Bruno Haible  <bruno@clisp.org>
76710         * doc/posix-functions/_setjmp.texi: Explain the use of this function
76711         regardless of POSIX.
76712         * doc/posix-functions/_longjmp.texi: Likewise.
76713         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
76714         SystemV platform in this case.
76716 2008-06-06  Eric Blake  <ebb9@byu.net>
76718         Document abort() bugs.
76719         * doc/posix-functions/abort.texi (abort): Mention anomalies.
76721         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
76722         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
76723         sigsetjmp.
76724         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
76725         siglongjmp, but only as a macro.
76726         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
76727         is obsolete.
76728         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
76730         Tweak documentation to cover cygwin argz bugs.
76731         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
76732         argz bug fix; no code change needed since no cygwin releases
76733         occurred between the last fix and the bug being tested.
76734         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
76735         module and recently fixed cygwin bugs.
76736         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
76737         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
76738         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
76739         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
76740         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
76741         Likewise.
76742         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
76743         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
76744         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
76745         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
76746         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
76747         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
76748         Likewise.
76750         Avoid gcc warning on cygwin.
76751         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
76752         !ACL_NO_TRIVIAL]: Avoid unused variable.
76754 2008-06-05  Eric Blake  <ebb9@byu.net>
76756         Be tolerant of UNKNOWN version in gnulib-tool test dir.
76757         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
76758         git-version-gen fails to come up with a version.
76759         Reported by Simon Josefsson.
76761 2008-06-05  Jim Meyering  <meyering@redhat.com>
76762             Paul Eggert  <eggert@cs.ucla.edu>
76764         utimens.c: work around a probable Linux kernel bug
76765         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
76766         appears to be a kernel bug that causes utimensat to return 280
76767         instead of 0, indicating success.
76769 2008-06-04  Bruno Haible  <bruno@clisp.org>
76771         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
76772         2008-06-01 commit.
76774 2008-06-04  Bruno Haible  <bruno@clisp.org>
76776         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
76777         * lib/file-has-acl.c (acl_access_nontrivial): New function.
76778         (file_has_acl): Use it. Save errno afterwards.
76779         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
76781 2008-06-03  Bruno Haible  <bruno@clisp.org>
76783         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
76784         draft code. Simplify #ifs.
76785         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
76786         Put Solaris code after POSIX-draft code. Fix comments regarding
76787         Solaris 10, HP-UX. Mention Cygwin.
76788         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
76790 2008-06-03  Eric Blake  <ebb9@byu.net>
76792         Provide fallback for older kernels.
76793         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
76794         Provide runtime fallback if kernel lacks support.
76795         Reported by Mike Frysinger.
76797 2008-06-02  Bruno Haible  <bruno@clisp.org>
76799         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
76800         it exists.
76802 2008-06-02  Bruno Haible  <bruno@clisp.org>
76804         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
76805         * lib/copy-acl.c (qcopy_acl): Update comment.
76807 2008-06-02  Bruno Haible  <bruno@clisp.org>
76809         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
76810         like ACL APIs.
76812 2008-06-02  Bruno Haible  <bruno@clisp.org>
76814         * tests/test-file-has-acl.sh: Use different code for Cygwin.
76815         * tests/test-set-mode-acl.sh: Likewise.
76816         * tests/test-copy-acl.sh: Likewise.
76817         * tests/test-copy-file.sh: Likewise.
76819 2008-06-02  Bruno Haible  <bruno@clisp.org>
76821         * tests/test-file-has-acl.sh: Remove unused code.
76823 2008-06-01  Bruno Haible  <bruno@clisp.org>
76825         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
76826         (copy_acl): Just a wrapper around qcopy_acl that emits the error
76827         messages.
76828         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
76830 2008-06-01  Bruno Haible  <bruno@clisp.org>
76832         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
76833         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
76834         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
76835         APIs.
76836         * modules/acl-tests (configure.ac): Remove tests now contained in
76837         m4/acl.m4.
76839 2008-06-02  Jim Meyering  <meyering@redhat.com>
76841         announce-gen: use a better key-server host name
76842         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
76843         it may be more consistently reliable.  Suggested by Werner Koch
76844         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
76846 2008-06-01  Bruno Haible  <bruno@clisp.org>
76848         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
76849         Reported by Voroskoi Andras <voroskoi@gmail.com>.
76851 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
76853         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
76855 2008-06-01  Bruno Haible  <bruno@clisp.org>
76857         New ACL tests.
76858         * tests/test-file-has-acl.sh: New file.
76859         * tests/test-file-has-acl.c: New file.
76860         * tests/test-set-mode-acl.sh: New file.
76861         * tests/test-set-mode-acl.c: New file.
76862         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
76863         * tests/test-copy-acl.c: New file.
76864         * modules/acl-tests: New file, based on modules/copy-file-tests.
76865         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
76866         (Depends-on): Add acl-tests.
76867         (configure.ac): Remove checks.
76868         (Makefile.am): Don't create test-sameacls program here any more.
76870 2008-06-01  Bruno Haible  <bruno@clisp.org>
76872         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
76873         * tests/test-sameacls.c: Include progname.h.
76874         (main): Invoke set_program_name. Portability fixes for MacOS X,
76875         Solaris, HP-UX.
76877 2008-06-01  Bruno Haible  <bruno@clisp.org>
76879         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
76880         function.
76881         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
76883 2008-06-01  Bruno Haible  <bruno@clisp.org>
76885         * modules/rpmatch (Depends-on): Add strdup.
76887 2008-06-01  Bruno Haible  <bruno@clisp.org>
76889         * lib/pipe.c: Include unistd-safer.h.
76890         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
76891         * modules/pipe (Depends-on): Add unistd-safer.
76893 2008-05-30  Simon Josefsson  <simon@josefsson.org>
76895         * modules/autobuild (configure.ac): Call AB_INIT.
76897 2008-05-30  Simon Josefsson  <simon@josefsson.org>
76899         * tests/test-getaddrinfo.c: Don't print debug messages by default.
76900         Suggested by Bruno Haible <bruno@clisp.org>.
76902 2008-05-30  Simon Josefsson  <simon@josefsson.org>
76904         * tests/test-base64.c: Cast size_t to unsigned long when invoking
76905         printf.  Use %lu instead of %d.  Reported by Bruno Haible
76906         <bruno@clisp.org>.
76908 2008-05-29  Eric Blake  <ebb9@byu.net>
76910         Prefer new POSIX 200x interfaces over futimesat.
76911         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
76912         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
76913         when available.
76914         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
76916 2008-05-28  Bruno Haible  <bruno@clisp.org>
76918         * modules/stpcpy (License): Change to LGPLv2+.
76919         Requested by David Lutterkort <dlutter@redhat.com>.
76921 2008-05-27  Bruno Haible  <bruno@clisp.org>
76923         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
76924         current mingw.
76925         Reported by Jose E. Marchesi <jemarch@gnu.org>.
76927 2008-05-27  Bruno Haible  <bruno@clisp.org>
76929         * modules/iconv_open (Link): New section, from module 'iconv'.
76930         * modules/striconv (Link): Likewise.
76931         * modules/striconveh (Link): Likewise.
76932         * modules/xstriconv (Link): Likewise.
76933         * modules/unicodeio (Link): Likewise.
76934         * modules/propername (Link): Likewise.
76935         Reported by Jim Meyering.
76937 2008-05-26  Jim Meyering  <meyering@redhat.com>
76939         sha256: do not artificially restrict buffer length to be < 2^32
76940         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
76941         uint32_t to size_t.
76942         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
76943         to match.
76945         avoid unaligned access errors, e.g., on sparc
76946         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
76947         direct access through a possibly-unaligned uint64* pointer.
76948         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
76949         direct access through a possibly-unaligned uint32* pointer.
76950         Prompted by this patch from Tom "spot" Callaway:
76951         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
76953         sha512.c: fix typo in comment
76954         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
76956 2008-05-25  Bruno Haible  <bruno@clisp.org>
76958         * lib/set-mode-acl.c: Renamed from lib/acl.c.
76959         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
76960         (Makefile.am): Update lib_SOURCES.
76962 2008-05-25  Bruno Haible  <bruno@clisp.org>
76964         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
76966 2008-05-25  Jim Meyering  <meyering@redhat.com>
76968         useless-if-before-free: freed expr may have white-space differences
76969         * build-aux/useless-if-before-free: Recognize cases in which the
76970         freed expression differs from the tested one in embedded white
76971         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
76972         $1 was used, so we can't make any regexp shy.  Improved tests now
76973         detect this.
76975         useless-if-before-free: accept white space in the expression.
76976         * build-aux/useless-if-before-free: For now, any white space
76977         in the expression must be identical in the free argument.
76979         useless-if-before-free: efficiency tweak
76980         * build-aux/useless-if-before-free: Make the expression-matching
76981         regexp "shy".
76982         Make the *outer* regexp shy, not the expr-matching one.
76984         update code-in-comment to accept cast of free arg
76985         * build-aux/useless-if-before-free: Update regexp.
76987 2008-05-25  Bruno Haible  <bruno@clisp.org>
76989         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
76990         * modules/copy-file-tests (Files, Makefile.am): Update.
76991         * tests/test-copy-file.c (func_test_copy): Update.
76993 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
76995         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
76997 2008-05-23  Bruno Haible  <bruno@clisp.org>
76999         Improve support for ACLs on OSF/1.
77000         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
77001         Remove fallback for unknown flavors of ACLs.
77003 2008-05-22  Bruno Haible  <bruno@clisp.org>
77005         Add support for ACLs on OSF/1.
77006         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
77007         replacements.
77008         (acl_free_text): New macro fallback.
77009         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
77010         acl_free.
77011         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
77012         acl_free_text function. Require AC_C_INLINE.
77014 2008-05-22  Bruno Haible  <bruno@clisp.org>
77016         Make copy_acl work on MacOS X 10.5.
77017         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
77018         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
77019         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
77020         If MODE_INSIDE_ACL, don't assume that every system has the same text
77021         representation for ACLs as FreeBSD.
77022         * lib/copy-acl.c (copy_acl): Add support for platforms with
77023         !MODE_INSIDE_ACL.
77024         * lib/file-has-acl.c (file_has_acl): Likewise.
77025         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
77026         FreeBSD, MacOS X, or IRIX, respectively.
77028 2008-05-22  Bruno Haible  <bruno@clisp.org>
77030         * lib/acl.h: Don't include <sys/acl.h>.
77031         (GETACLCNT): Move fallback to lib/acl-internal.h.
77032         * lib/acl-internal.h: Include <sys/acl.h> here.
77033         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
77035 2008-05-22  Bruno Haible  <bruno@clisp.org>
77037         Split off copy_acl function to separate file.
77038         * lib/copy-acl.c: New file, extracted from lib/acl.c.
77039         * lib/acl.c (copy_acl): Moved function to separate file.
77040         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
77041         * modules/acl (Files): Add lib/copy-acl.c.
77042         (Makefiles.am): Augment lib_SOURCES.
77044 2008-05-22  Bruno Haible  <bruno@clisp.org>
77046         * modules/copy-file-tests: New file.
77047         * tests/test-copy-file.sh: New file.
77048         * tests/test-copy-file.c: New file.
77049         * tests/test-copy-file-sameacls.c: New file.
77051 2008-05-22  Eric Blake  <ebb9@byu.net>
77053         Avoid gcc warning.
77054         * tests/test-memcmp.c (main): Pass NULL indirectly.
77056 2008-05-21  Bruno Haible  <bruno@clisp.org>
77058         Add reference doc about ACLs.
77059         * doc/acl-resources.txt: New file.
77060         * doc/acl-cygwin.txt: New file.
77062 2008-05-21  Bruno Haible  <bruno@clisp.org>
77064         Avoid one more warning from gcc.
77065         * lib/vasnprintf.c (IF_LINT): Update comments.
77066         (VASNPRINTF): Use it also for the 'prefix' array initializer.
77068 2008-05-21  Jim Meyering  <meyering@redhat.com>
77070         avoid a warning from gcc
77071         * lib/vasnprintf.c (IF_LINT): Define.
77072         (scale10_round_decimal_long_double):
77073         Use it to avoid a "may be used uninitialized" warning.
77074         (scale10_round_decimal_double): Likewise.
77076 2008-05-21  Simon Josefsson  <simon@josefsson.org>
77078         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
77079         declared.
77081 2008-05-20  Bruno Haible  <bruno@clisp.org>
77083         * tests/test-memcmp.c (main): Test also the sign of the result. Test
77084         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
77086 2008-05-20  Simon Josefsson  <simon@josefsson.org>
77088         * modules/memcmp-tests: New file.
77089         * tests/test-memcmp.c: New file.
77091 2008-05-19  Bruno Haible  <bruno@clisp.org>
77093         * modules/propername (Notice, configure.ac): Put quoted "..." into
77094         --keyword option.
77095         * lib/propername.h: Update comments accordingly.
77096         Reported by Eric Blake.
77098 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
77100         * modules/getpass-gnu (Depends-on): Add fseeko.
77102 2008-05-19  Simon Josefsson  <simon@josefsson.org>
77104         * modules/base64-tests: New file.
77106 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
77108         * lib/base64.c (base64_decode_ctx): If a decode context structure
77109         was passed in use it to ignore newlines.  If a context structure
77110         was _not_ passed in, continue to treat newlines as garbage (this
77111         is the historical behavior).  Formerly base64_decode.
77112         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
77113         takes a decode context structure.
77114         * lib/base64.h (base64_decode): Macro for four-argument calls.
77115         (base64_decode_alloc): Likewise.
77116         * lib/base64.c (base64_decode_ctx): If a decode context structure
77117         was passed in use it to ignore newlines.  If a context structure
77118         was _not_ passed in, continue to treat newlines as garbage (this
77119         is the historical behavior).  Formerly base64_decode.
77120         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
77121         takes a decode context structure.
77122         * lib/base64.h (base64_decode): Macro for four-argument calls.
77123         (base64_decode_alloc): Likewise.
77125 2008-05-19  Jim Meyering  <meyering@redhat.com>
77127         avoid a warning from gcc
77128         * lib/trim.c (IF_LINT): Define.
77129         (trim2): Use it to avoid a "may be used uninitialized" warning.
77131         Fix doc typo.
77132         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
77134 2008-05-19  Bruno Haible  <bruno@clisp.org>
77136         * doc/glibc-functions/getpass.texi: Document limits of other
77137         implementations.
77139 2008-05-19  Simon Josefsson  <simon@josefsson.org>
77140             Bruno Haible <bruno@clisp.org>
77142         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
77144 2008-05-18  Bruno Haible  <bruno@clisp.org>
77146         * modules/propername: New file, from GNU gettext.
77147         * lib/propername.h: New file, from GNU gettext.
77148         * lib/propername.c: New file, from GNU gettext.
77149         * MODULES.html.sh (Internationalization functions): Add propername.
77151 2008-05-16  Jim Meyering  <meyering@redhat.com>
77152             Bruno Haible  <bruno@clisp.org>
77154         Avoid some warnings from "gcc -Wshadow".
77155         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
77157 2008-05-15  Eric Blake  <ebb9@byu.net>
77159         Extend previous patch to cygwin 1.7.0.
77160         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
77161         fast implementation in cygwin >= 1.7.0.
77162         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
77163         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
77165 2008-05-15  Bruno Haible  <bruno@clisp.org>
77167         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
77168         implementation in glibc >= 2.9.
77169         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
77170         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
77172 2008-05-15  Bruno Haible  <bruno@clisp.org>
77174         * MODULES.html.sh (Internationalization functions): Remove linebreak.
77175         (Unicode string functions): Add unilbrk/*.
77176         Reported by Karl Berry.
77178 2008-05-15  Eric Blake  <ebb9@byu.net>
77180         Fix violation of <stdbool.h> replacement in regex.
77181         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
77182         * lib/regexec.c (re_search_internal): Likewise.
77183         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
77185 2008-05-15  Jim Meyering  <meyering@redhat.com>
77187         avoid distracting test output when git or cvs is not found
77188         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
77189         * tests/test-vc-list-files-git.sh: Likewise.
77191 2008-05-15  Eric Blake  <ebb9@byu.net>
77193         Glibc finally accepted the memmem speedup code, bugzilla #5514.
77194         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
77195         glibc version.
77196         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
77197         * doc/posix-functions/strstr.texi (strstr): Likewise.
77198         * lib/str-two-way.h (MAX): Sychronize with glibc.
77200 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
77202         * lib/regcomp.c (optimize_utf8): Add a note on why we test
77203         opr.ctx_type.
77204         (calc_first): Initialize constraint field.
77205         (duplicate_node_closure): Use it instead of special casing ANCHORS.
77206         Fix grammar.
77207         (duplicate_node): Merge constraint field for all node types.
77208         (calc_eclosure_iter): Look at constraint field for all node types.
77209         * lib/regex_internal.c (create_cd_newstate): Don't look at
77210         opr.ctx_type.
77212 2008-05-14  Bruno Haible  <bruno@clisp.org>
77214         Help GCC to do better code generation.
77215         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
77216         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
77217         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
77218         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
77219         Declare with attribute 'malloc' if supported.
77221 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
77223         use "echo STR|wc -c" rather than unportable "expr length STR"
77224         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
77225         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
77227 2008-05-14  Jim Meyering  <meyering@redhat.com>
77229         use dd ibs=$n count=1 ... rather than less-portable head -c$n
77230         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
77231         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
77232         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
77233         via Collin Lasse.
77235 2008-05-14  Eric Blake  <ebb9@byu.net>
77237         Avoid quadratic growth in gl_LIBSOURCES.
77238         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
77239         Suggested by Bruno Haible.
77241         Test xmemdup0.
77242         * modules/xmemdup0-tests: New file.
77243         * tests/test-xmemdup0.c: Likewise.
77245 2008-05-13  Eric Blake  <ebb9@byu.net>
77247         Split xmemdup0 into its own module.
77248         * modules/xmemdup0: New file.
77249         * lib/xmemdup0.h: Likewise.
77250         * lib/xmemdup0.c: Likewise.
77251         * MODULES.html.sh (Memory management functions): Add xmemdup0.
77252         * lib/xalloc.h (xmemdup0): Remove.
77253         * lib/xmalloc.c (xmemdup0): Likewise.
77255 2008-05-13  Eric Blake  <ebb9@byu.net>
77256             Bruno Haible  <bruno@clisp.org>
77258         Reduce number of forks required during autoconf.
77259         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
77260         and gl_LIBSOURCES_DIR.
77261         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
77262         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
77263         m4_syscmd per file.
77264         <m4_foreach_w>: Move...
77265         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
77267 2008-05-13  Eric Blake  <ebb9@byu.net>
77269         * gnulib-tool: Fix various comment typos.
77271 2008-05-12  Bruno Haible  <bruno@clisp.org>
77273         Tailor the linebreaking algorithm.
77274         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
77276 2008-05-12  Bruno Haible  <bruno@clisp.org>
77278         Update to Unicode 5.0.0.
77279         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
77280         LBP_JV, LBP_JT. Redistribute values.
77281         (unilbrk_table): Change size.
77282         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
77283         Unicode TR#14 rev. 22.
77284         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
77285         LBP_JV, LBP_JT. Redistribute values.
77286         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
77287         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
77288         Update.
77289         * lib/unilbrk/lbrkprop1.h: Regenerated.
77290         * lib/unilbrk/lbrkprop2.h: Regenerated.
77291         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
77292         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
77293         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
77294         Likewise.
77295         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
77296         Likewise.
77297         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
77298         result.
77299         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
77300         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
77301         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
77302         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
77303         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
77304         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
77306 2008-05-11  Bruno Haible  <bruno@clisp.org>
77308         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
77310 2008-05-11  Bruno Haible  <bruno@clisp.org>
77312         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
77313         * modules/unilbrk/gen-lbrk: New file.
77315 2008-05-11  Bruno Haible  <bruno@clisp.org>
77317         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
77318         * m4/sha512.m4 (gl_SHA512): Likewise.
77320 2008-05-11  Jim Meyering  <meyering@redhat.com>
77322         New modules: crypto/sha256, crypto/sha512 (from coreutils)
77323         * modules/crypto/sha256: New file.
77324         * modules/crypto/sha512: Likewise.
77325         * lib/sha256.c: Likewise.
77326         * lib/sha256.h: Likewise.
77327         * lib/sha512.c: Likewise.
77328         * lib/sha512.h: Likewise.
77329         * lib/u64.h: Likewise.
77330         * m4/sha256.m4: Likewise.
77331         * m4/sha512.m4: Likewise.
77332         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
77334 2008-05-10  Bruno Haible  <bruno@clisp.org>
77336         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
77337         (Input/Output <stdio.h>): Add xprintf.
77338         (Signal handling <signal.h>): Add strsignal.
77339         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
77340         (Core language properties): Add func.
77341         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
77342         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
77343         strings.
77344         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
77345         (Input/output): New section.
77346         (File system functions): Add openat-die, stat-macros.
77347         (Networking functions): Add sockets.
77348         (Unicode string functions): Add unictype/*.
77349         (Support for building libraries and executables): Add gperf.
77350         (Support for building documentation): Add agpl-3.0.
77351         (Misc): Add nocrash.
77353 2008-05-10  Bruno Haible  <bruno@clisp.org>
77355         * modules/unictype/gen-ctype: New file.
77357 2008-05-10  Jim Meyering  <meyering@redhat.com>
77359         Make chdir-safer.c more efficient on a system with no symlinks.
77360         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
77361         also if ELOOP is zero.  Suggested by Bruno Haible.
77363         Make chdir-safer.c slightly safer.
77364         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
77365         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
77367         Avoid compile failure on systems without ELOOP (like mingw).
77368         * lib/chdir-safer.c (ELOOP): Define if not already defined.
77369         Reported by Bruno Haible.
77371 2008-05-10  Bruno Haible  <bruno@clisp.org>
77373         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
77374         (is_utf8_encoding): Use a case-insensitive comparison.
77375         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
77376         streq.
77378 2008-05-10  Bruno Haible  <bruno@clisp.org>
77380         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
77381         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
77382         * lib/unilbrk/ulc-common.h (iconv_string_length,
77383         iconv_string_keeping_offsets): Remove declarations.
77384         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
77385         Don't include <iconv.h>, streq.h, xsize.h.
77386         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
77387         conversion.
77388         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
77389         <iconv.h>, streq.h, xsize.h.
77390         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
77391         conversion.
77392         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
77393         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
77394         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
77395         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
77397 2008-05-10  Bruno Haible  <bruno@clisp.org>
77399         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
77400         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
77402         * modules/unilbrk/u32-width-linebreaks-tests: New file.
77403         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
77405         * modules/unilbrk/u16-width-linebreaks-tests: New file.
77406         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
77408         * modules/unilbrk/u8-width-linebreaks-tests: New file.
77409         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
77411         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
77412         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
77414         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
77415         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
77417         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
77418         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
77420         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
77421         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
77423 2008-05-10  Bruno Haible  <bruno@clisp.org>
77425         Split up 'linebreak' module.
77426         * lib/unilbrk.h: New file, based on lib/linebreak.h.
77427         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
77428         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
77429         modifications.
77430         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
77431         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
77432         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
77433         lib/linebreak.c.
77434         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
77435         lib/linebreak.c.
77436         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
77437         lib/linebreak.c.
77438         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
77439         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
77440         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
77441         lib/linebreak.c.
77442         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
77443         lib/linebreak.c.
77444         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
77445         lib/linebreak.c.
77446         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
77447         lib/linebreak.c.
77448         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
77449         lib/linebreak.c.
77450         * modules/unilbrk/base: New file.
77451         * modules/unilbrk/tables: New file.
77452         * modules/unilbrk/u8-possible-linebreaks: New file.
77453         * modules/unilbrk/u16-possible-linebreaks: New file.
77454         * modules/unilbrk/u32-possible-linebreaks: New file.
77455         * modules/unilbrk/ulc-common: New file.
77456         * modules/unilbrk/ulc-possible-linebreaks: New file.
77457         * modules/unilbrk/u8-width-linebreaks: New file.
77458         * modules/unilbrk/u16-width-linebreaks: New file.
77459         * modules/unilbrk/u32-width-linebreaks: New file.
77460         * modules/unilbrk/ulc-width-linebreaks: New file.
77461         * lib/linebreak.h: Remove file.
77462         * lib/linebreak.c: Remove file.
77463         * m4/linebreak.m4: Remove file.
77464         * modules/linebreak: Remove file.
77465         * NEWS: Mention the changes.
77467 2008-05-09  Eric Blake  <ebb9@byu.net>
77469         Add xmemdup0.
77470         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
77471         implementation.
77472         * lib/xmalloc.c (xmemdup0): New C implementation.
77474 2008-05-08  Bruno Haible  <bruno@clisp.org>
77476         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
77478 2008-05-07  Eric Blake  <ebb9@byu.net>
77480         Support cross-compilation of <wctype.h>.
77481         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
77482         AC_CACHE_CHECK.
77484 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
77486         * build-aux/vc-list-files: Add support for bzr.
77488 2008-05-03  Jim Meyering  <meyering@redhat.com>
77490         avoid failed assertion with tight malloc
77491         * tests/test-getndelim2.c: Correct an off-by-one assertion.
77493 2008-05-03  Simon Josefsson  <simon@josefsson.org>
77495         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
77496         are needed from arpa/inet.h.
77497         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
77498         Reported by Bruno Haible.
77500 2008-05-02  Jim Meyering  <meyering@redhat.com>
77502         avoid compilation error on FreeBSD 6
77503         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
77505 2008-05-01  Jim Meyering  <meyering@redhat.com>
77507         useless-if-before-free: correct --help's exit status description
77508         * build-aux/useless-if-before-free (usage): Like grep, exit 0
77509         for one or more matches, etc.  Reported by Bruno Haible.
77511         vc-list-files: make the stand-alone gnulib test work
77512         * modules/vc-list-files-tests (configure.ac):
77513         Define and AC_SUBST abs_aux_dir.
77514         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
77515         $(abs_top_srcdir) to each script and having each of them
77516         duplicate the work of setting PATH, set PATH here, using
77517         the new variable, abs_aux_dir instead.
77518         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
77519         * tests/test-vc-list-files-git.sh: Likewise.
77520         Reported by Bruno Haible.
77522 2008-05-01  Bruno Haible  <bruno@clisp.org>
77524         * lib/getndelim2.c (getndelim2): Fix newsize computation during
77525         reallocation. Rename 'done' to 'found_delimiter'.
77527 2008-05-01  Jim Meyering  <meyering@redhat.com>
77529         vc-list-files: accommodate /bin/sh like the one from Solaris 10
77530         * build-aux/vc-list-files: Use `...`, not $(...).
77532 2008-04-30  Jim Meyering  <meyering@redhat.com>
77534         add tests for vc-list-files
77535         * modules/vc-list-files-tests: New module.
77536         * tests/test-vc-list-files-cvs.sh: New file.
77537         * tests/test-vc-list-files-git.sh: New file.
77539         avoid a warning from gcc
77540         * lib/getndelim2.c (IF_LINT): Define.
77541         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
77543         vc-list-files: work properly with build-aux/cvsu, too
77544         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
77545         to all cvs-based clauses.
77547         vc-list-files: work properly in the CVS+awk case, too
77548         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
77550         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
77551         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
77552         take more than one file argument, so .  Add quotes, just in case $dir
77553         ever contains a shell meta-character.  Prompted by Soren Hansen in
77554         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
77556 2008-04-29  Eric Blake  <ebb9@byu.net>
77558         Optimize getndelim2 to use block operations when possible.
77559         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
77560         freadseek, and memchr2.
77561         * lib/getndelim2.c (getndelim2): Use them for block reads.
77563 2008-04-29  Bruno Haible  <bruno@clisp.org>
77565         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
77566         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77567         * modules/inet_ntop (Depends-on): Add extensions.
77568         * modules/inet_pton (Depends-on): Likewise.
77569         Reported by Simon Josefsson.
77571 2008-04-29  Jim Meyering  <meyering@redhat.com>
77573         When the is more than one match in a block, match all of them.
77574         * build-aux/useless-if-before-free: Iterate through each block
77575         until there are no more matches.
77577         Fix broken useless-if-before-free script.
77578         * build-aux/useless-if-before-free: Fix typo: missing "?" after
77579         the expression to match cast of argument to free-like function.
77581 2008-04-29  Eric Blake  <ebb9@byu.net>
77583         Use new header.
77584         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
77586 2008-04-29  Jim Meyering  <meyering@redhat.com>
77588         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
77589         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
77590         by gnulib to exist and to declare e.g., inet_ntop.
77591         Don't include "inet_ntop.h", now removed.
77593         * m4/arpa_inet_h.m4: Remove trailing blanks.
77595 2008-04-29  Eric Blake  <ebb9@byu.net>
77597         Silence valgrind on safe reads beyond potential array bounds.
77598         * lib/rawmemchr.valgrind: New file.
77599         * lib/strchrnul.valgrind: Likewise.
77600         * modules/rawmemchr (Files): Distribute new file.
77601         * modules/strchrnul (Files): Likewise.
77602         Suggested by Bruno Haible.
77604 2008-04-29  Bruno Haible  <bruno@clisp.org>
77606         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
77607         (inet_ntop, inet_pton): Change portability warning's wording.
77608         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
77609         Invoke gl_CHECK_NEXT_HEADERS.
77610         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
77611         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
77612         set ARPA_INET_H.
77613         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77614         * modules/arpa_inet (Description): No longer only for systems that
77615         lack it.
77616         (Depends-on): Add include_next.
77617         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
77618         HAVE_ARPA_INET_H.
77620 2008-04-29  Jim Meyering  <meyering@redhat.com>
77622         * modules/mkdir (License): Re-license as LGPLv2+.
77624 2008-04-29  Bruno Haible  <bruno@clisp.org>
77626         * modules/rawmemchr (Maintainer): Set to Eric.
77627         * modules/strchrnul (Maintainer): Likewise.
77629 2008-04-29  Simon Josefsson  <simon@josefsson.org>
77631         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
77632         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
77634         * modules/arpa_inet (arpa/inet.h): Use them.
77636 2008-04-28  Eric Blake  <ebb9@byu.net>
77638         Test getndelim2.
77639         * modules/getndelim2-tests: New file.
77640         * tests/test-getndelim2.c: Likewise.
77641         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
77642         stream.
77643         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
77645         * MODULES.html.sh: Document new module.
77647 2008-04-20  Bruno Haible  <bruno@clisp.org>
77649         * lib/c-stack.c (die): Use raise.
77650         * modules/c-stack (Depends-on): Add raise.
77652 2008-04-28  Bruno Haible  <bruno@clisp.org>
77654         Expect rpmatch to be declared.
77655         * lib/yesno.c (rpmatch): Remove declaration.
77657         Declare rpmatch.
77658         * lib/stdlib.in.h (rpmatch): New declaration.
77659         * lib/rpmatch.c: Include <stdlib.h> first.
77660         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
77661         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
77662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
77663         HAVE_RPMATCH.
77664         * modules/rpmatch (Depends-on): Add stdlib, extensions.
77665         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
77666         (Include): Set to <stdlib.h>.
77667         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
77668         HAVE_RPMATCH.
77669         * NEWS: Document the change.
77671 2008-04-28  Bruno Haible  <bruno@clisp.org>
77673         Change rpmatch to use nl_langinfo when appropriate.
77674         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
77675         (N_): New macro.
77676         (localized_pattern): New function/macro.
77677         (try): Remove match, nomatch arguments. Copy the pattern into safe
77678         memory before caching it.
77679         (rpmatch): Use localized_pattern. Add translator comments.
77680         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
77681         Suggested by Eric Blake.
77682         * modules/rpmatch (Depends-on): Add stdbool.
77684 2008-04-28  Eric Blake  <ebb9@byu.net>
77686         Add rawmemchr module, matching glibc.
77687         * modules/string (Makefile.am): New indicator.
77688         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
77689         * lib/string.in.h (rawmemchr): Declare when appropriate.
77690         * modules/rawmemchr: New file.
77691         * m4/rawmemchr.m4: Likewise.
77692         * lib/rawmemchr.c: Likewise.
77693         * modules/rawmemchr-tests: Likewise.
77694         * tests/test-rawmemchr.c: Likewise.
77695         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
77696         module.
77697         * modules/strchrnul (Depends-on): Add rawmemchr.
77698         * lib/strchrnul.c (strchrnul): Optimize a corner case.
77700         Whitespace cleanup.
77701         * tests/test-strchrnul.c: Reindent.
77702         * lib/strchrnul.c: Likewise.
77704         Optimize and test strchrnul.
77705         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
77706         * modules/strchrnul-tests: New file.
77707         * tests/test-strchrnul.c: Likewise.
77709         Remove intprops dependency.
77710         * modules/memchr (Depends-on): Remove intprops.
77711         * modules/memrchr (Depends-on): Likewise.
77712         * modules/memchr2 (Depends-on): Likewise.
77713         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
77714         * lib/memrchr.c (__memrchr): Likewise.
77715         * lib/memrchr2.c (memchr2): Likewise.
77716         Reported by Simon Josefsson.
77718 2008-04-28  Simon Josefsson  <simon@josefsson.org>
77720         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
77721         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77723 2008-04-28  Simon Josefsson  <simon@josefsson.org>
77725         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
77727         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
77729         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
77731         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
77732         declarations.
77733         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
77735         * m4/inet_pton.m4: Don't check for header files.
77737         * m4/inet_ntop.m4: Don't check for header files.
77739 2008-04-28  Simon Josefsson  <simon@josefsson.org>
77741         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
77742         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
77743         trigger for cygwin).
77744         Reported by Bruno Haible  <bruno@clisp.org>.
77746 2008-04-28  Bruno Haible  <bruno@clisp.org>
77748         * doc/posix-functions/strdup.texi: Mention mingw problem.
77750 2008-04-27  Bruno Haible  <bruno@clisp.org>
77752         * modules/stat-time-tests (Depends-on): Add sleep.
77753         * tests/test-stat-time.c (force_unlink): New function.
77754         (cleanup): Use it.
77755         (test_mtime): Remove the ctime related tests.
77756         (test_ctime): New function, containing the ctime related tests.
77757         (main): Call test_ctime, except on native Windows platforms.
77759 2008-04-27  Bruno Haible  <bruno@clisp.org>
77761         * lib/rpmatch.c (rpmatch): Add some comments.
77762         Reported by James Youngman <jay@gnu.org>.
77764 2008-04-27  Bruno Haible  <bruno@clisp.org>
77766         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
77767         quiet NaNs.
77769 2008-04-27  Bruno Haible  <bruno@clisp.org>
77771         Make test-yesno.sh work on mingw.
77772         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
77773         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
77774         (main): Set stdin to binary mode.
77775         * modules/yesno-tests (Depends-on): Add binary-io.
77777 2008-04-27  Bruno Haible  <bruno@clisp.org>
77779         Fix 'isfinite' on x86, x86_64, ia64 platforms.
77780         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
77781         argument that lie outside the IEEE 854 domain.
77782         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
77783         (gl_ISFINITE): Use it.
77784         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
77786 2008-04-27  Bruno Haible  <bruno@clisp.org>
77788         Allow local renaming in config.h.
77789         * lib/memrchr.c (memrchr): Don't undefine outside libc.
77791 2008-04-27  Bruno Haible  <bruno@clisp.org>
77793         * lib/memchr.c (__memchr): Change type of 'i'.
77794         * lib/memchr2.c (memchr2): Likewise.
77796 2008-04-26  Eric Blake  <ebb9@byu.net>
77797         and Bruno Haible  <bruno@clisp.org>
77799         Optimize and test memrchr.
77800         * modules/memrchr (Depends-on): Add intprops.
77801         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
77802         * modules/memrchr-tests: New file.
77803         * tests/test-memrchr.c: New file.
77805 2008-04-26  Bruno Haible  <bruno@clisp.org>
77807         Add tentative support for DragonFly BSD.
77808         * lib/stdio-impl.h: Add macros for DragonFly BSD.
77809         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
77810         fp.
77811         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
77812         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
77813         * lib/fpurge.c (fpurge): Likewise.
77814         * lib/freadable.c (freaadable): Likewise.
77815         * lib/freadahead.c (freadahead): Likewise.
77816         * lib/freading.c (freading): Likewise.
77817         * lib/freadptr.c (freadptr): Likewise.
77818         * lib/freadseek.c (freadptrinc): Likewise.
77819         * lib/fseeko.c (fseeko): Likewise.
77820         * lib/fseterr.c (fseterr): Likewise.
77821         * lib/fwritable.c (fwritable): Likewise.
77822         * lib/fwriting.c (fwriting): Likewise.
77824 2008-04-26  Bruno Haible  <bruno@clisp.org>
77826         * lib/stdio-impl.h: New file.
77827         * lib/fbufmode.c: Include stdio-impl.h.
77828         (fbufmode): Use fp_, remove redundant #defines.
77829         * lib/fflush.c: Include stdio-impl.h.
77830         (clear_ungetc_buffer): Remove redundant #defines.
77831         * lib/fpurge.c: Include stdio-impl.h.
77832         (fpurge): Remove redundant #defines.
77833         * lib/freadable.c: Include stdio-impl.h.
77834         (freadable): Remove redundant #defines.
77835         * lib/freadahead.c: Include stdio-impl.h.
77836         (freadahead): Remove redundant #defines.
77837         * lib/freading.c: Include stdio-impl.h.
77838         (freading): Remove redundant #defines.
77839         * lib/freadptr.c: Include stdio-impl.h.
77840         (freadptr): Remove redundant #defines.
77841         * lib/freadseek.c: Include stdio-impl.h.
77842         (freadptrinc): Remove redundant #defines.
77843         * lib/fseeko.c: Include stdio-impl.h.
77844         (rpl_fseeko): Remove redundant #defines.
77845         * lib/fseterr.c: Include stdio-impl.h.
77846         (fseterr): Remove redundant #defines.
77847         * lib/fwritable.c: Include stdio-impl.h.
77848         (fwritable: Remove redundant #defines.
77849         * lib/fwriting.c: Include stdio-impl.h.
77850         (fwriting): Remove redundant #defines.
77851         * modules/fbufmode (Files): Add lib/stdio-impl.h.
77852         * modules/fflush (Files): Likewise.
77853         * modules/fpurge (Files): Likewise.
77854         * modules/freadable (Files): Likewise.
77855         * modules/freadahead (Files): Likewise.
77856         * modules/freading (Files): Likewise.
77857         * modules/freadptr (Files): Likewise.
77858         * modules/freadseek (Files): Likewise.
77859         * modules/fseeko (Files): Likewise.
77860         * modules/fseterr (Files): Likewise.
77861         * modules/fwritable (Files): Likewise.
77862         * modules/fwriting (Files): Likewise.
77864 2008-04-26  Bruno Haible  <bruno@clisp.org>
77866         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
77867         restore_seek_optimization, update_fpos_cache): New functions, extracted
77868         from rpl_fflush.
77869         (rpl_fflush): Use them.
77870         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
77871         (gl_REPLACE_FFLUSH): Use it.
77873 2008-04-26  Bruno Haible  <bruno@clisp.org>
77875         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
77876         on Solaris.
77877         * tests/test-xstrtoimax.sh: Likewise.
77878         * tests/test-xstrtoumax.sh: Likewise.
77879         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77881 2008-04-26  Bruno Haible  <bruno@clisp.org>
77883         * modules/memchr-tests: New file.
77884         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
77886 2008-04-26  Eric Blake  <ebb9@byu.net>
77887             Bruno Haible  <bruno@clisp.org>
77889         * lib/memchr.c: Include intprops.h.
77890         (__memchr): Optimize parallel detection of matching bytes. Rename local
77891         variables. Add explanatory comments.
77893 2008-04-26  Bruno Haible  <bruno@clisp.org>
77895         Fix module 'memchr', broken since 2000-10-28.
77896         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
77898 2008-04-26  Bruno Haible  <bruno@clisp.org>
77900         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
77901         comments.
77903 2008-04-25  Eric Blake  <ebb9@byu.net>
77905         Use native fstatat on cygwin 1.7.0.
77906         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
77907         first.
77909 2008-04-23  Eric Blake  <ebb9@byu.net>
77911         Improve memchr2 performance.
77912         * lib/memchr2.c (memchr2): Further optimize parallel detection of
77913         NUL bytes.
77914         * modules/memchr2 (Depends-on): Use intprops.h.
77916 2008-04-23  Simon Josefsson  <simon@josefsson.org>
77918         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
77919         an inline function instead of a CPP macro.  Patch by Ben Pfaff
77920         <blp@cs.stanford.edu>.
77922 2008-04-23  Simon Josefsson  <simon@josefsson.org>
77924         * lib/arpa_inet.in.h: New file.
77926         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
77927         (Makefile.am): Sed in substitute header file.
77929         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
77930         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
77932         * modules/inet_ntop (configure.ac): Use
77933         gl_ARPA_INET_MODULE_INDICATOR.
77935         * modules/inet_pton (configure.ac): Use
77936         gl_ARPA_INET_MODULE_INDICATOR.
77938 2008-04-22  Jim Meyering  <meyering@redhat.com>
77940         * modules/verify (License): Re-license as LGPLv2+.
77942 2008-04-22  Simon Josefsson  <simon@josefsson.org>
77944         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
77945         parameter to void* as per POSIX standard (MinGW uses char*).
77947 2008-04-21  Bruno Haible  <bruno@clisp.org>
77949         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
77950         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
77951         Define to replacements if REPLACE_ISWCNTRL is 1.
77952         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
77953         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
77954         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
77955         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
77956         what it fixes.
77957         * doc/posix-functions/iswalpha.texi: Likewise.
77958         * doc/posix-functions/iswblank.texi: Likewise.
77959         * doc/posix-functions/iswcntrl.texi: Likewise.
77960         * doc/posix-functions/iswdigit.texi: Likewise.
77961         * doc/posix-functions/iswgraph.texi: Likewise.
77962         * doc/posix-functions/iswlower.texi: Likewise.
77963         * doc/posix-functions/iswprint.texi: Likewise.
77964         * doc/posix-functions/iswpunct.texi: Likewise.
77965         * doc/posix-functions/iswspace.texi: Likewise.
77966         * doc/posix-functions/iswupper.texi: Likewise.
77967         * doc/posix-functions/iswxdigit.texi: Likewise.
77968         Reported by Alain Guibert.
77970 2008-04-21  Bruno Haible  <bruno@clisp.org>
77972         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
77973         Patch by Alain Guibert.
77975 2008-04-21  Bruno Haible  <bruno@clisp.org>
77977         Fix test failures on mingw.
77978         * tests/test-xstrtol.c (print_no_progname): New function.
77979         (main): Install it in error_print_progname hook.
77980         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
77981         * tests/test-xstrtoimax.sh: Likewise.
77982         * tests/test-xstrtoumax.sh: Likewise.
77984 2008-04-21  Bruno Haible  <bruno@clisp.org>
77986         Fix test failure on mingw.
77987         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
77989 2008-04-21  Bruno Haible  <bruno@clisp.org>
77991         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
77992         Actually assign a value.
77994 2008-04-20  Bruno Haible  <bruno@clisp.org>
77996         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
77997         take 2.
77998         * lib/canonicalize.c (canonicalize_file_name): Elide if the
77999         'canonicalize-lgpl' module is also used.
78000         * lib/canonicalize-lgpl.c: Undo last change.
78001         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
78003 2008-04-20  Bruno Haible  <bruno@clisp.org>
78005         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
78006         config.h. Provide _mkdir based fallback for mingw.
78007         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
78008         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
78009         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
78010         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
78011         rather than defining mkdir in config.h.
78012         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
78013         (gl_SYS_STAT_H_DEFAULTS): New macro.
78014         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
78015         HAVE_IO_H any more.
78016         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
78017         HAVE_DECL_MKDIR and HAVE_IO_H.
78019 2008-04-20  Bruno Haible  <bruno@clisp.org>
78021         * lib/isapipe.c: Port to native Windows platforms.
78023 2008-04-20  Bruno Haible  <bruno@clisp.org>
78025         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
78027 2008-04-21  Eric Blake  <ebb9@byu.net>
78029         Work around preprocessors that don't handle UINTMAX_MAX.
78030         * lib/memchr2.c (memchr2): Avoid embedded #if.
78031         Reported by Alain Guibert, fix suggested by Bruno Haible.
78033 2008-04-21  Simon Josefsson  <simon@josefsson.org>
78035         * doc/posix-functions/strftime.texi (strftime): Explain better
78036         Windows incompatibility.  Suggested by Micah Cowan
78037         <micah@cowan.name>.
78039 2008-04-20  Bruno Haible  <bruno@clisp.org>
78041         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
78042         unistr/u8-mblen.
78044 2008-04-20  Bruno Haible  <bruno@clisp.org>
78046         Fix test failure on platforms with non-GNU iconv.
78047         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
78048         (U_TO_U8): Use it, rather than u16_to_u8.
78049         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
78050         units at the end of the input string.
78051         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
78053 2008-04-20  Bruno Haible  <bruno@clisp.org>
78055         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
78056         when the resulting length is 0.
78057         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
78059 2008-04-20  Bruno Haible  <bruno@clisp.org>
78061         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
78062         works.
78063         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
78065 2008-04-20  Bruno Haible  <bruno@clisp.org>
78067         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
78068         * modules/tsearch-tests (configure.ac): Test for initstate function.
78070 2008-04-20  Bruno Haible  <bruno@clisp.org>
78072         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
78073         for nlink_t if missing.
78074         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
78076 2008-04-19  Bruno Haible  <bruno@clisp.org>
78078         Work around snprintf bug on Linux libc5.
78079         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
78080         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
78081         gl_SNPRINTF_SIZE1.
78082         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
78083         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
78084         that test failed.
78085         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
78086         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
78087         * modules/snprintf (Files): Add m4/printf.m4.
78088         * modules/vsnprintf (Files): Likewise.
78089         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
78090         * doc/posix-functions/vsnprintf.texi: Likewise.
78092 2008-04-19  Bruno Haible  <bruno@clisp.org>
78094         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
78095         from 0.0058 to less than 10^-7.
78097 2008-04-19  Bruno Haible  <bruno@clisp.org>
78099         Fix rounding when a precision is given.
78100         * lib/vasnprintf.c (is_borderline): New function.
78101         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
78102         9...9x.
78103         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
78104         %e, %g.
78105         * tests/test-vasprintf-posix.c (test_function): Likewise.
78106         * tests/test-snprintf-posix.h (test_function): Likewise.
78107         * tests/test-sprintf-posix.h (test_function): Likewise.
78108         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
78109         * tests/test-printf-posix.h (test_function): Likewise.
78110         * tests/test-printf-posix.output: Update.
78111         Reported by John Darrington <john@darrington.wattle.id.au> via
78112         Ben Pfaff <blp@cs.stanford.edu>.
78114 2008-04-18  Simon Josefsson  <simon@josefsson.org>
78116         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
78117         Suggested by Bruno Haible <bruno@clisp.org>.
78119 2008-04-17  Bruno Haible  <bruno@clisp.org>
78121         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
78122         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
78123         implementation.
78124         Patch by Bruce Merry <bmerry@gmail.com>.
78126 2008-04-17  Simon Josefsson  <simon@josefsson.org>
78128         * doc/posix-functions/strftime.texi (strftime): Mention that %e
78129         doesn't work under Windows.
78131 2008-04-16  Bruno Haible  <bruno@clisp.org>
78133         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
78134         New macros.
78135         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
78136         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
78137         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
78138         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
78139         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
78140         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
78141         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
78142         macros.
78143         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
78144         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
78145         Northern Sotho, Uighur.
78147 2008-04-16  Bruno Haible  <bruno@clisp.org>
78149         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
78150         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
78151         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
78152         Reported by Daniel Bergström <daniel@octocode.com>.
78154 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
78155             Bruno Haible  <bruno@clisp.org>
78157         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
78158         function.
78159         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
78160         New functions, mostly extracted from gl_locale_name_default.
78161         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
78163 2008-04-16  Eric Blake  <ebb9@byu.net>
78165         Adjust strtod detection to catch glibc 2.7 bug.
78166         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
78167         Reported by John Gatewood Ham.
78169 2008-04-16  Bruno Haible  <bruno@clisp.org>
78171         Add tentative support for Linux libc5.
78172         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
78173         * lib/fpurge.c (fpurge): Likewise.
78174         * lib/freadable.c (freadable): Likewise.
78175         * lib/freadahead.c (freadahead): Likewise.
78176         * lib/freading.c (freading): Likewise.
78177         * lib/freadptr.c (freadptr): Likewise.
78178         * lib/freadseek.c (freadptrinc): Likewise.
78179         * lib/fseeko.c (rpl_fseeko): Likewise.
78180         * lib/fseterr.c (fseterr): Likewise.
78181         * lib/fwritable.c (fwritable): Likewise.
78182         * lib/fwriting.c (fwriting): Likewise.
78183         Reported by Alain Guibert <alguibert+bts@free.fr>.
78185 2008-04-15  Bruno Haible  <bruno@clisp.org>
78187         * modules/mathl (configure.ac): Define module indicator.
78189 2008-04-15  Bruno Haible  <bruno@clisp.org>
78191         * lib/logl.c (logl): Remove unused variables.
78193 2008-04-15  Bruno Haible  <bruno@clisp.org>
78195         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
78196         fails.
78198 2008-04-15  Bruno Haible  <bruno@clisp.org>
78200         * lib/trim.c (trim2): Fix argument of isspace() macro.
78202 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
78204         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
78205         to 0.
78206         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
78208 2008-04-14  Bruno Haible  <bruno@clisp.org>
78210         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
78211         AC_LANG_PROGRAM argument.
78212         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
78213         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
78214         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
78215         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
78216         * m4/math_h.m4 (gl_MATH_H): Likewise.
78217         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
78218         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
78219         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
78220         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
78221         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78222         * m4/regex.m4 (gl_REGEX): Likewise.
78223         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
78224         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
78225         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78226         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
78227         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
78228         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
78229         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
78230         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
78232 2008-04-14  Jim Meyering  <meyering@redhat.com>
78234         test-strtod: fix typos: s/abs/fabs/
78235         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
78237 2008-04-13  Bruno Haible  <bruno@clisp.org>
78239         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
78240         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
78241         module is also used and while not building the reloc-wrapper.
78243 2008-04-13  Bruno Haible  <bruno@clisp.org>
78245         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
78247 2008-04-13  Bruno Haible  <bruno@clisp.org>
78249         Fix AIX compilation failure introduced on 2008-04-02.
78250         * tests/test-frexp.c (exp): Undefine before redefining.
78251         * tests/test-frexpl.c (exp): Likewise.
78253 2008-04-13  Bruno Haible  <bruno@clisp.org>
78255         Work around a HP-UX stdio bug.
78256         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
78257         * tests/test-ftello.c (main): Likewise.
78258         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
78259         * doc/posix-functions/ftello.texi: Likewise.
78261 2008-04-13  Bruno Haible  <bruno@clisp.org>
78263         Make test-signbit pass on HP-UX/hppa.
78264         * tests/test-signbit.c (minus_zerol): New variable.
78265         (test_signbitl): Use it.
78267 2008-04-13  Bruno Haible  <bruno@clisp.org>
78269         Make truncl work on OSF/1 4.0.
78270         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
78271         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
78272         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
78273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
78274         HAVE_DECL_TRUNCL.
78275         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
78276         HAVE_DECL_TRUNCL.
78277         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
78279 2008-04-13  Bruno Haible  <bruno@clisp.org>
78281         * lib/unictype.h: Remove trailing comma from enumeration definitions.
78283 2008-04-13  Bruno Haible  <bruno@clisp.org>
78285         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
78286         expression, so as to avoid HP-UX 11 cc compiler bug.
78288 2008-04-13  Bruno Haible  <bruno@clisp.org>
78290         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
78292 2008-04-13  Bruno Haible  <bruno@clisp.org>
78294         * lib/git-merge-changelog.c: Remove empty declaration outside of
78295         functions.
78297 2008-04-13  Bruno Haible  <bruno@clisp.org>
78299         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
78301 2008-04-13  Bruno Haible  <bruno@clisp.org>
78303         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
78304         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
78305         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
78306         also if it exists but lacks definitions of the SHUT_* macros.
78307         * modules/sys_socket (Description): Update.
78308         Reported by Elbert Pol <e.pol@chello.nl>.
78310 2008-04-13  Bruno Haible  <bruno@clisp.org>
78312         * lib/localcharset.c (OS2): Don't redefine if already defined.
78313         Reported by Elbert Pol <e.pol@chello.nl>.
78315 2008-04-13  Bruno Haible  <bruno@clisp.org>
78317         * lib/binary-io.h [__EMX__]: Include <io.h>.
78318         Reported by Elbert Pol <e.pol@chello.nl>.
78320 2008-04-12  Bruno Haible  <bruno@clisp.org>
78322         * lib/fpucw.h: Enable the definitions also for x86_64.
78323         Needed for NetBSD/x86_64.
78324         Reported by Thomas Klausner <tk@giga.or.at>.
78326 2008-04-12  Bruno Haible  <bruno@clisp.org>
78328         * tests/test-strtod.c: Include isnand.h.
78329         (main): Use isnand instead of isnan.
78330         Reported by Jim Meyering.
78332 2008-04-12  Bruno Haible  <bruno@clisp.org>
78334         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
78335         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
78337 2008-04-12  Jim Meyering  <meyering@redhat.com>
78339         * m4/math_h.m4 (gl_MATH_H): Fix typos.
78341 2008-04-12  Bruno Haible  <bruno@clisp.org>
78343         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
78344         Reported by Elbert Pol <e.pol@chello.nl>.
78346 2008-04-12  Eric Blake  <ebb9@byu.net>
78348         Work around Solaris 10 math.h bug.
78349         * m4/math_h.m4 (gl_MATH_H): Check for bug.
78350         (gl_MATH_H_DEFAULTS): Set up default.
78351         * modules/math (Makefile.am): Replace new indicators.
78352         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
78353         * tests/test-math.c (main): Test this.
78354         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
78355         * doc/posix-headers/math.texi (math.h): Mention bug.
78356         Reported by Nelson H. F. Beebe and Jim Meyering.
78358 2008-04-11  Bruno Haible  <bruno@clisp.org>
78360         Adapt to future versions of Apple GCC.
78361         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
78362         Reported by Peter O'Gorman <peter@pogma.com>.
78364 2008-04-11  Bruno Haible  <bruno@clisp.org>
78366         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
78368 2008-04-11  Bruno Haible  <bruno@clisp.org>
78370         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
78372         * modules/getaddrinfo-tests (Makefile.am): Define
78373         test_getaddrinfo_LDADD.
78375 2008-04-11  Bruno Haible  <bruno@clisp.org>
78377         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
78378         (init): Fix syntax error.
78379         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
78380         is declared.
78382 2008-04-11  Bruno Haible  <bruno@clisp.org>
78384         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
78385         * modules/glob (Depends-on): Add stdbool.
78387 2008-04-11  Bruno Haible  <bruno@clisp.org>
78389         * lib/trim.c: Include <string.h>.
78391 2008-04-11  Eric Blake  <ebb9@byu.net>
78393         Avoid compile failure on OS/2.
78394         * lib/regex_internal.h (internal_function): Disable optimization
78395         on OS/2 (__EMX__), where it caused compiler error.
78396         Reported by Elbert Pol.
78398 2008-04-11  Bruno Haible  <bruno@clisp.org>
78400         Flush the standard error stream before aborting. Needed on mingw.
78401         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
78402         * tests/test-array_list.c (ASSERT): Likewise.
78403         * tests/test-array_oset.c (ASSERT): Likewise.
78404         * tests/test-avltree_list.c (ASSERT): Likewise.
78405         * tests/test-avltree_oset.c (ASSERT): Likewise.
78406         * tests/test-avltreehash_list.c (ASSERT): Likewise.
78407         * tests/test-binary-io.c (ASSERT): Likewise.
78408         * tests/test-byteswap.c (ASSERT): Likewise.
78409         * tests/test-c-ctype.c (ASSERT): Likewise.
78410         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
78411         * tests/test-c-strcasestr.c (ASSERT): Likewise.
78412         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
78413         * tests/test-c-strstr.c (ASSERT): Likewise.
78414         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
78415         * tests/test-canonicalize.c (ASSERT): Likewise.
78416         * tests/test-carray_list.c (ASSERT): Likewise.
78417         * tests/test-ceilf1.c (ASSERT): Likewise.
78418         * tests/test-ceilf2.c (ASSERT): Likewise.
78419         * tests/test-ceill.c (ASSERT): Likewise.
78420         * tests/test-count-one-bits.c (ASSERT): Likewise.
78421         * tests/test-fbufmode.c (ASSERT): Likewise.
78422         * tests/test-fflush2.c (ASSERT): Likewise.
78423         * tests/test-floorf1.c (ASSERT): Likewise.
78424         * tests/test-floorf2.c (ASSERT): Likewise.
78425         * tests/test-floorl.c (ASSERT): Likewise.
78426         * tests/test-fopen.c (ASSERT): Likewise.
78427         * tests/test-fpending.c (ASSERT): Likewise.
78428         * tests/test-fprintf-posix.c (ASSERT): Likewise.
78429         * tests/test-fpurge.c (ASSERT): Likewise.
78430         * tests/test-freadable.c (ASSERT): Likewise.
78431         * tests/test-freadahead.c (ASSERT): Likewise.
78432         * tests/test-freading.c (ASSERT): Likewise.
78433         * tests/test-freadptr.c (ASSERT): Likewise.
78434         * tests/test-freadptr2.c (ASSERT): Likewise.
78435         * tests/test-freadseek.c (ASSERT): Likewise.
78436         * tests/test-freopen.c (ASSERT): Likewise.
78437         * tests/test-frexp.c (ASSERT): Likewise.
78438         * tests/test-frexpl.c (ASSERT): Likewise.
78439         * tests/test-fseek.c (ASSERT): Likewise.
78440         * tests/test-fseeko.c (ASSERT): Likewise.
78441         * tests/test-fstrcmp.c (ASSERT): Likewise.
78442         * tests/test-ftell.c (ASSERT): Likewise.
78443         * tests/test-ftello.c (ASSERT): Likewise.
78444         * tests/test-func.c (ASSERT): Likewise.
78445         * tests/test-fwritable.c (ASSERT): Likewise.
78446         * tests/test-fwriting.c (ASSERT): Likewise.
78447         * tests/test-getdelim.c (ASSERT): Likewise.
78448         * tests/test-getline.c (ASSERT): Likewise.
78449         * tests/test-i-ring.c (ASSERT): Likewise.
78450         * tests/test-iconv-utf.c (ASSERT): Likewise.
78451         * tests/test-iconv.c (ASSERT): Likewise.
78452         * tests/test-isfinite.c (ASSERT): Likewise.
78453         * tests/test-isnand.c (ASSERT): Likewise.
78454         * tests/test-isnanf.c (ASSERT): Likewise.
78455         * tests/test-isnanl.h (ASSERT): Likewise.
78456         * tests/test-ldexpl.c (ASSERT): Likewise.
78457         * tests/test-linked_list.c (ASSERT): Likewise.
78458         * tests/test-linkedhash_list.c (ASSERT): Likewise.
78459         * tests/test-localename.c (ASSERT): Likewise.
78460         * tests/test-lseek.c (ASSERT): Likewise.
78461         * tests/test-mbscasecmp.c (ASSERT): Likewise.
78462         * tests/test-mbscasestr1.c (ASSERT): Likewise.
78463         * tests/test-mbscasestr2.c (ASSERT): Likewise.
78464         * tests/test-mbscasestr3.c (ASSERT): Likewise.
78465         * tests/test-mbscasestr4.c (ASSERT): Likewise.
78466         * tests/test-mbschr.c (ASSERT): Likewise.
78467         * tests/test-mbscspn.c (ASSERT): Likewise.
78468         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
78469         * tests/test-mbspbrk.c (ASSERT): Likewise.
78470         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
78471         * tests/test-mbsrchr.c (ASSERT): Likewise.
78472         * tests/test-mbsspn.c (ASSERT): Likewise.
78473         * tests/test-mbsstr1.c (ASSERT): Likewise.
78474         * tests/test-mbsstr2.c (ASSERT): Likewise.
78475         * tests/test-mbsstr3.c (ASSERT): Likewise.
78476         * tests/test-memchr2.c (ASSERT): Likewise.
78477         * tests/test-memmem.c (ASSERT): Likewise.
78478         * tests/test-open.c (ASSERT): Likewise.
78479         * tests/test-printf-frexp.c (ASSERT): Likewise.
78480         * tests/test-printf-frexpl.c (ASSERT): Likewise.
78481         * tests/test-printf-posix.c (ASSERT): Likewise.
78482         * tests/test-quotearg.c (ASSERT): Likewise.
78483         * tests/test-rbtree_list.c (ASSERT): Likewise.
78484         * tests/test-rbtree_oset.c (ASSERT): Likewise.
78485         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
78486         * tests/test-round1.c (ASSERT): Likewise.
78487         * tests/test-roundf1.c (ASSERT): Likewise.
78488         * tests/test-roundl.c (ASSERT): Likewise.
78489         * tests/test-signbit.c (ASSERT): Likewise.
78490         * tests/test-sleep.c (ASSERT): Likewise.
78491         * tests/test-snprintf-posix.c (ASSERT): Likewise.
78492         * tests/test-snprintf.c (ASSERT): Likewise.
78493         * tests/test-sprintf-posix.c (ASSERT): Likewise.
78494         * tests/test-stat-time.c (ASSERT): Likewise.
78495         * tests/test-strcasestr.c (ASSERT): Likewise.
78496         * tests/test-strerror.c (ASSERT): Likewise.
78497         * tests/test-striconv.c (ASSERT): Likewise.
78498         * tests/test-striconveh.c (ASSERT): Likewise.
78499         * tests/test-striconveha.c (ASSERT): Likewise.
78500         * tests/test-strsignal.c (ASSERT): Likewise.
78501         * tests/test-strstr.c (ASSERT): Likewise.
78502         * tests/test-strtod.c (ASSERT): Likewise.
78503         * tests/test-trunc1.c (ASSERT): Likewise.
78504         * tests/test-trunc2.c (ASSERT): Likewise.
78505         * tests/test-truncf1.c (ASSERT): Likewise.
78506         * tests/test-truncf2.c (ASSERT): Likewise.
78507         * tests/test-truncl.c (ASSERT): Likewise.
78508         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
78509         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
78510         * tests/test-vasnprintf.c (ASSERT): Likewise.
78511         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
78512         * tests/test-vasprintf.c (ASSERT): Likewise.
78513         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
78514         * tests/test-vprintf-posix.c (ASSERT): Likewise.
78515         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
78516         * tests/test-vsnprintf.c (ASSERT): Likewise.
78517         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
78518         * tests/test-wcwidth.c (ASSERT): Likewise.
78519         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
78520         * tests/test-xprintf-posix.c (ASSERT): Likewise.
78521         * tests/test-xvasprintf.c (ASSERT): Likewise.
78522         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
78523         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
78524         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
78525         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
78526         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
78527         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
78528         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
78529         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
78530         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
78531         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
78532         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
78533         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
78534         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
78535         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
78536         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
78537         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
78538         * tests/unictype/test-block_list.c (ASSERT): Likewise.
78539         * tests/unictype/test-block_of.c (ASSERT): Likewise.
78540         * tests/unictype/test-block_test.c (ASSERT): Likewise.
78541         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
78542         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
78543         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
78544         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
78545         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
78546         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
78547         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
78548         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
78549         * tests/unictype/test-combining.c (ASSERT): Likewise.
78550         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
78551         * tests/unictype/test-digit.c (ASSERT): Likewise.
78552         * tests/unictype/test-mirror.c (ASSERT): Likewise.
78553         * tests/unictype/test-numeric.c (ASSERT): Likewise.
78554         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
78555         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
78556         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
78557         * tests/unictype/test-scripts.c (ASSERT): Likewise.
78558         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
78559         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
78560         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
78561         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
78562         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
78563         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
78564         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
78565         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
78566         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
78567         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
78568         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
78569         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
78570         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
78571         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
78572         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
78573         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
78574         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
78575         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
78576         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
78577         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
78578         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
78579         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
78580         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
78581         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
78582         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
78583         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
78584         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
78585         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
78586         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
78587         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
78588         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
78589         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
78590         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
78591         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
78592         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
78593         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
78594         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
78595         Reported by Eric Blake.
78597 2008-04-11  Bruno Haible  <bruno@clisp.org>
78599         * lib/wchar.in.h: Tweak comment.
78601 2008-04-11  Bruno Haible  <bruno@clisp.org>
78603         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
78604         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
78605         gl_COMMON.
78606         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
78608 2008-04-11  Bruno Haible  <bruno@clisp.org>
78610         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
78612 2008-04-11  Simon Josefsson  <simon@josefsson.org>
78614         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
78615         of attempting to use non-existing /dev/*random.  Based on patch
78616         from Adam Strzelecki <ono@java.pl> in
78617         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
78619 2008-04-08  Bruno Haible  <bruno@clisp.org>
78621         Add tentative support for emx+gcc.
78622         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
78623         * lib/fpurge.c (fpurge): Likewise.
78624         * lib/freadable.c (freadable): Likewise.
78625         * lib/freadahead.c (freadahead): Likewise.
78626         * lib/freading.c (freading): Likewise.
78627         * lib/freadptr.c (freadptr): Likewise.
78628         * lib/freadseek.c (freadptrinc): Likewise.
78629         * lib/fseeko.c (rpl_fseeko): Likewise.
78630         * lib/fseterr.c (fseterr): Likewise.
78631         * lib/fwritable.c (fwritable): Likewise.
78632         * lib/fwriting.c (fwriting): Likewise.
78633         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
78635 2008-04-09  Eric Blake  <ebb9@byu.net>
78637         Avoid some autoconf warnings.
78638         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
78639         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
78640         * m4/afs.m4 (gl_AFS): Likewise.
78641         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
78642         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
78643         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
78644         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
78645         (gl_INTEGER_TYPE_SUFFIX): Likewise.
78646         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
78647         (AC_CHECK_DECLS_ONCE): Likewise.
78648         Rename file...
78649         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
78650         gnulib-tool requires autoconf 2.59 or better.
78651         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
78653 2008-04-08  Eric Blake  <ebb9@byu.net>
78655         Use 'git describe --match' if present (added in git 1.5.5).
78656         * build-aux/git-version-gen: Limit result to tags that match 'v*'
78657         if possible.
78659 2008-04-08  Bruno Haible  <bruno@clisp.org>
78661         Add tentative support for OpenServer.
78662         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
78663         _ptr, _cnt.
78664         * lib/fpurge.c (fpurge): Likewise.
78665         * lib/freadable.c (freadable): Likewise.
78666         * lib/freadahead.c (freadahead): Likewise.
78667         * lib/freading.c (freading): Likewise.
78668         * lib/freadptr.c (freadptr): Likewise.
78669         * lib/freadseek.c (freadptrinc): Likewise.
78670         * lib/fseeko.c (rpl_fseeko): Likewise.
78671         * lib/fseterr.c (fseterr): Likewise.
78672         * lib/fwritable.c (fwritable): Likewise.
78673         * lib/fwriting.c (fwriting): Likewise.
78674         Reported by Roger Cornelius <rac@tenzing.org> and
78675         Brian K. White <brian@aljex.com>.
78677 2008-04-06  Jim Meyering  <meyering@redhat.com>
78679         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
78681 2008-04-06  Bruno Haible  <bruno@clisp.org>
78683         Avoid possible error with non-ASCII bytes in UTF-8 locales.
78684         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
78685         * tests/test-printf-posix.sh: Likewise.
78686         * tests/test-vfprintf-posix.sh: Likewise.
78687         * tests/test-vprintf-posix.sh: Likewise.
78688         * tests/test-xprintf-posix.sh: Likewise.
78690 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78692         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
78693         hide error from 'ls', needed on OS/2.
78694         Report by Elbert Pol <elbert.pol@gmail.com>.
78696 2008-04-04  Eric Blake  <ebb9@byu.net>
78698         Make test-fseeko.c failures meaningful.
78699         * tests/test-fseeko.c: Print line number on failure.
78700         * tests/test-fseek.c: Likewise.
78701         Reported by Nelson H. F. Beebe.
78703         Improve strtod bug detection check.
78704         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
78705         required for Solaris 10.
78706         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
78708 2008-04-04  Bruno Haible  <bruno@clisp.org>
78710         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
78711         by m4/setenv.m4.
78713 2008-04-03  Eric Blake  <ebb9@byu.net>
78715         Ensure sane .version contents.
78716         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
78717         version string.
78718         * build-aux/git-version-gen: Improve documentation.
78720         Make GNU make output nicer.
78721         * top/GNUmakefile [!_have-Makefile]: Add dependency on
78722         MAKECMDGOALS to enforce message for all command line targets.  Set
78723         srcdir for use in maint.mk.
78725         Another maintainer tweak.
78726         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
78727         a target that regenerates version.
78729 2008-04-03  Jim Meyering  <meyering@redhat.com>
78731         vc-list-files: don't cause coreutils "make po-check" failure
78732         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
78734 2008-04-03  Eric Blake  <ebb9@byu.net>
78736         Allow VPATH usage of vc-list-files.
78737         * build-aux/vc-list-files (scriptversion): Add timestamp.
78738         (options): Add --help, --version, -C.
78739         (CVS): Support installed cvsu.
78741 2008-04-02  Bruno Haible  <bruno@clisp.org>
78743         Avoid some "statement with no effect" warnings from gcc.
78744         * tests/test-wctype.c (main): Explicitly ignore unused values.
78745         Reported by Jim Meyering.
78747 2008-04-02  Jim Meyering  <meyering@redhat.com>
78749         Avoid some warnings from "gcc -Wshadow".
78750         * tests/test-frexp.c (exp): Define to a different identifier.
78751         * tests/test-frexpl.c (exp): Likewise.
78753 2008-04-03  Jim Meyering  <meyering@redhat.com>
78755         bootstrap: remove dangling *.[ch] symlinks from lib
78756         * build-aux/bootstrap [dangling symlink removal]: Move find's
78757         -depth option to precede all others, to avoid a warning.
78758         Remove *.[ch] files too, and from "$source_base" (usually lib/).
78760 2008-04-02  Bruno Haible  <bruno@clisp.org>
78762         Avoid some warnings from "gcc -Wshadow".
78763         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
78764         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
78765         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
78766         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
78767         Reported by Jim Meyering.
78769 2008-04-01  Bruno Haible  <bruno@clisp.org>
78771         Fix test to work on IRIX 6.5 with cc.
78772         * tests/test-math.c (numeric_equal): New function.
78773         (main): Use it.
78775 2008-04-01  Bruno Haible  <bruno@clisp.org>
78777         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
78779 2008-04-01  Bruno Haible  <bruno@clisp.org>
78781         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
78782         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
78783         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
78784         (Depends-on): Remove math.
78786         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
78787         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
78788         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
78789         (Depends-on): Remove math.
78791         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
78792         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
78793         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
78794         (Depends-on): Remove math.
78795         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
78796         (Depends-on): Remove math.
78798         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
78799         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
78800         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
78801         (Depends-on): Remove math.
78802         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
78803         (Depends-on): Remove math.
78805         * tests/test-round1.c: Include nan.h.
78806         (main): Use NaNd instead of NAN.
78807         * modules/round-tests (Files): Add tests/nan.h.
78809         * tests/test-trunc1.c: Include nan.h.
78810         (main): Use NaNd instead of NAN.
78811         * modules/trunc-tests (Files): Add tests/nan.h.
78813         * tests/test-roundf1.c: Include nan.h.
78814         (main): Use NaNf instead of NAN.
78815         * modules/roundf-tests (Files): Add tests/nan.h.
78817         * tests/test-truncf1.c: Include nan.h.
78818         (main): Use NaNf instead of NAN.
78819         * modules/truncf-tests (Files): Add tests/nan.h.
78821         * tests/test-ceilf1.c: Include nan.h.
78822         (main): Use NaNf instead of NAN.
78823         * modules/ceilf-tests (Files): Add tests/nan.h.
78825         * tests/test-floorf1.c: Include nan.h.
78826         (main): Use NaNf instead of NAN.
78827         * modules/floorf-tests (Files): Add tests/nan.h.
78829         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
78830         (main): Use NaNf instead of NAN.
78831         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
78833         * tests/test-isnand.c: Include nan.h instead of <math.h>.
78834         (main): Use NaNd instead of NAN.
78835         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
78837         * tests/test-frexp.c: Include nan.h.
78838         (main): Use NaNd instead of NAN.
78839         * modules/frexp-tests (Files): Add tests/nan.h.
78841         * lib/isnan.c: Don't include <math.h>.
78842         (FUNC): Don't use NAN macro.
78843         * modules/isnand-nolibm (Depends-on): Remove math.
78844         * modules/isnanf-nolibm (Depends-on): Remove math.
78845         * modules/isnanl (Depends-on): Remove math.
78846         * modules/isnanl-nolibm (Depends-on): Remove math.
78848         * tests/nan.h: New file.
78850 2008-04-01  Eric Blake  <ebb9@byu.net>
78852         Fix typos.
78853         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
78854         values to be the right type.
78856         For now, cater to gnulib strtod inaccuracies.
78857         * tests/test-strtod.c (main): Allow 1-ulp error on expected
78858         fractional results.  While not as nice from a QoI perspective, it
78859         is a quicker patch than correctly implementing decimal to binary
78860         rounding.
78862 2008-03-31  Eric Blake  <ebb9@byu.net>
78864         Guarantee a definition of NAN.
78865         * lib/math.in.h (NAN): Define if missing.
78866         * tests/test-math.c (main): Test it.
78867         * doc/posix-headers/math.texi (math.h): Document this.
78868         * lib/isnan.c (rpl_isnand): Use it.
78869         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
78870         * tests/test-floorf1.c (NaN): Likewise.
78871         * tests/test-frexp.c (NaN): Likewise.
78872         * tests/test-isnand.c (NaN): Likewise.
78873         * tests/test-isnanf.c (NaN): Likewise.
78874         * tests/test-round1.c (NaN): Likewise.
78875         * tests/test-roundf1.c (NaN): Likewise.
78876         * tests/test-snprintf-posix.h (NaN): Likewise.
78877         * tests/test-sprintf-posix.h (NaN): Likewise.
78878         * tests/test-trunc1.c (NaN): Likewise.
78879         * tests/test-truncf1.c (NaN): Likewise.
78880         * tests/test-vasnprintf-posix.c (NaN): Likewise.
78881         * tests/test-vasprintf-posix.c (NaN): Likewise.
78882         * modules/isnand-nolibm (Depends-on): Add math.
78883         * modules/isnanf-nolibm (Depends-on): Likewise.
78884         * modules/isnanl (Depends-on): Likewise.
78885         * modules/isnanl-nolibm (Depends-on): Likewise.
78886         * modules/snprintf-posix-tests (Depends-on): Likewise.
78887         * modules/sprintf-posix-tests (Depends-on): Likewise.
78888         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
78889         * modules/vsprintf-posix-tests (Depends-on): Likewise.
78890         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
78891         * modules/vasprintf-posix-tests (Depends-on): Likewise.
78893 2008-03-31  Bruno Haible  <bruno@clisp.org>
78895         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
78896         * doc/posix-functions/strtod.texi: Likewise.
78898 2008-03-31  Bruno Haible  <bruno@clisp.org>
78900         * tests/test-strtod.c (main): Don't use C99 syntax.
78902 2008-03-31  Bruno Haible  <bruno@clisp.org>
78904         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
78905         Reported by Eric Blake.
78907 2008-03-31  Jim Meyering  <meyering@redhat.com>
78909         Don't compare actual signbit return values.
78910         * tests/test-strtod.c (main): Rather, compare only their
78911         zero/non-zero nature.
78913 2008-03-31  Eric Blake  <ebb9@byu.net>
78915         More strtod documentation.
78916         * doc/posix-functions/strtod.texi (strtod): Interpret more test
78917         failures as distinct bugs.
78919 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
78921         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
78922         Problem reported by Erik Benada in
78923         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
78925 2008-03-30  Bruno Haible  <bruno@clisp.org>
78927         * tests/test-strtod.c: Add comments about which assertion fails on which
78928         platform.
78929         * doc/posix-functions/strtod.texi: Add info about many more platforms.
78931 2008-03-30  Eric Blake  <ebb9@byu.net>
78933         Test signbit behavior on zeros.
78934         * tests/test-signbit.c (test_signbitf): Add tests for zero.
78935         (test_signbitd, test_signbitl): Likewise.
78937         More strtod touchups.
78938         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
78939         sign of negative underflow, for now.  Use .5, not .1.
78940         * doc/posix-functions/strtod.texi (strtod): Mention these
78941         limitations.
78942         Reported by Jim Meyering.
78944 2008-03-30  Bruno Haible  <bruno@clisp.org>
78946         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
78947         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
78949 2008-03-30  Bruno Haible  <bruno@clisp.org>
78951         Avoid failure when attempting to return empty iconv results on some
78952         platforms.
78953         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
78954         allocation, don't report ENOMEM when the resulting string is empty.
78956 2008-03-30  Bruno Haible  <bruno@clisp.org>
78958         Fix buffer overrun.
78959         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
78960         Don't consider the width for tmp_length. Check count against tmp_length
78961         before doing the padding. Ensure enough allocation during padding.
78963 2008-03-30  Eric Blake  <ebb9@byu.net>
78965         strtod touchups.
78966         * lib/strtod.c (strtod): Avoid compiler warnings.
78967         Reported by Jim Meyering.
78969 2008-03-30  Bruno Haible  <bruno@clisp.org>
78971         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
78972         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
78973         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
78974         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
78975         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
78976         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
78977         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
78978         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
78980         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
78981         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
78982         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
78983         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
78984         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
78985         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
78986         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
78987         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
78989         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
78990         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
78991         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
78992         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
78993         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
78994         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
78995         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
78996         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
78998         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
78999         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
79001         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
79002         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
79004         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
79005         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
79007         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
79008         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
79009         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
79011         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
79012         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
79013         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
79015         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
79016         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
79017         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
79019         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
79020         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
79021         * modules/vasprintf (Depends-on): Add EOVERFLOW.
79023         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
79024         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
79025         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
79026         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
79027         (Depends-on): Add EOVERFLOW.
79028         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
79029         (Depends-on): Add EOVERFLOW.
79030         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
79031         (Depends-on): Add EOVERFLOW.
79032         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
79033         (Depends-on): Add EOVERFLOW.
79034         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
79035         (Depends-on): Add EOVERFLOW.
79036         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
79037         (Depends-on): Add EOVERFLOW.
79038         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
79039         (Depends-on): Add EOVERFLOW.
79040         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
79041         (Depends-on): Add EOVERFLOW.
79043         * lib/sprintf.c (EOVERFLOW): Remove fallback.
79044         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
79045         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
79047         * lib/snprintf.c (EOVERFLOW): Remove fallback.
79048         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
79049         * modules/snprintf (Depends-on): Add EOVERFLOW.
79051         * lib/poll.c (EOVERFLOW): Remove fallback.
79052         * modules/poll (Depends-on): Add EOVERFLOW.
79054         * lib/getugroups.c (EOVERFLOW): Remove fallback.
79055         * modules/getugroups (Depends-on): Add EOVERFLOW.
79057         * lib/getdelim.c (EOVERFLOW): Remove fallback.
79058         * modules/getdelim (Depends-on): Add EOVERFLOW.
79060         * lib/ftell.c (EOVERFLOW): Remove fallback.
79061         * modules/ftell (Depends-on): Add EOVERFLOW.
79063         * lib/fprintf.c (EOVERFLOW): Remove fallback.
79064         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
79065         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
79067         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
79069         * modules/EOVERFLOW-tests: New file.
79070         * tests/test-EOVERFLOW.c: New file.
79072         * modules/EOVERFLOW: New file.
79073         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
79075 2008-03-30  Bruno Haible  <bruno@clisp.org>
79077         Fix bug introduced on 2007-06-10.
79078         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
79079         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
79081 2008-03-30  Bruno Haible  <bruno@clisp.org>
79083         Improve freadseek's efficiency after ungetc.
79084         * lib/freadseek.c: Include freadahead.h.
79085         (freadptrinc): New function, extracted from freadseek.
79086         (freadseek): Use it in a loop. Use freadahead to determine the number
79087         of loop iterations.
79088         * modules/freadseek (Depends-on): Add freadahead.
79089         (configure.ac): Require AC_C_INLINE.
79091 2008-03-30  Bruno Haible  <bruno@clisp.org>
79093         * lib/freadseek.c (freadseek): Don't ignore the return value of
79094         freadptr.
79096 2008-03-29  Eric Blake  <ebb9@byu.net>
79098         Add hex float support.
79099         * modules/strtod (Depends-on): Add c-ctype.
79100         (Link): Mention POW_LIB.
79101         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
79102         whitespace between 'e' and exponent.
79103         * tests/test-strtod.c (main): Enable hex float tests.
79104         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
79105         now provides.
79107         Document various strtod bugs, with some fixes.
79108         * doc/posix-functions/strtod.texi (strtod): Document bugs with
79109         "-0x", "inf", "nan", and hex constants.
79110         * doc/posix-functions/atof.texi (atof): Likewise.
79111         * modules/stdlib (Makefile.am): Support strtod.
79112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
79113         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
79114         detect additional strtod bugs.
79115         * lib/stdlib.in.h (rpl_strtod): Add declarations.
79116         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
79117         bool where appropriate.  Parse 'inf' and 'nan'.
79118         * tests/test-strtod.c: New file.
79119         * modules/strtod (Depends-on): Add stdbool, stdlib.
79120         (configure.ac): Turn on module indicator.
79121         * modules/strtod-tests: New module.
79123 2008-03-29  Eric Blake  <ebb9@byu.net>
79125         Fix ftell on mingw.
79126         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
79127         * modules/ftell-tests (Depends-on): Add binary-io.
79128         * modules/ftello-tests (Depends-on): Likewise.
79129         * tests/test-ftell.c (main): Enhance test to cover behavior after
79130         ungetc.  Enforce binary mode.
79131         * tests/test-ftello.c (main): Likewise.
79133         Pass test-freadseek on cygwin.
79134         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
79135         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
79136         ungetc buffer.
79138         * tests/test-fflush2.c (main): Fix typo.
79140 2008-03-29  Bruno Haible  <bruno@clisp.org>
79142         * tests/test-fflush2.c (main): Temporarily disable the contents of
79143         this test.
79144         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
79145         Reported by Eric Blake.
79147 2008-03-28  Simon Josefsson  <simon@josefsson.org>
79149         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
79150         (GC_SHA224_DIGEST_SIZE): Add.
79152         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
79153         (gc_hash_digest_length): Likewise.
79154         (gc_hash_buffer): Likewise.
79156 2008-03-25  Bruno Haible  <bruno@clisp.org>
79158         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
79159         detail which gettext release to use.
79160         Reported by Simon Josefsson.
79162 2008-03-26  Jim Meyering  <meyering@redhat.com>
79164         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
79165         * modules/gnumakefile (clean-GNUmakefile): Also, use
79166         test ... && ... || : syntax rather than if-then ... fi.
79168         gnumakefile: Don't double-quote-expand $(VPATH) value.
79169         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
79171 2008-03-24  Eric Blake  <ebb9@byu.net>
79173         Alter GNUmakefile to install into top directory.
79174         * modules/maintainer-makefile: Split, and add dependency...
79175         * modules/gnumakefile: to this new module.
79176         * build-aux/GNUmakefile: Move...
79177         * top/GNUmakefile: ...here.
79178         * build-aux/maint.mk: Move...
79179         * top/maint.mk: ...here.
79180         * MODULES.html.sh (Support for maintaining...): Document new
79181         module.
79183 2008-03-23  Bruno Haible  <bruno@clisp.org>
79185         * gnulib-tool: New options --vc-files, --no-vc-files.
79186         (func_usage): Document them.
79187         (vc_files): New variable.
79188         (func_import): Consider vc_files.
79189         (func_create_testdir): Set vc_files to empty.
79190         Suggested by Jim Meyering and Karl Berry.
79192 2008-03-23  Bruno Haible  <bruno@clisp.org>
79194         Fix regex compilation error on HP-UX 11.
79195         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
79196         * modules/regex (Files): Add m4/mbstate_t.m4.
79197         Reported by Ton Voon <ton.voon@altinity.com>.
79199 2008-03-23  Bruno Haible  <bruno@clisp.org>
79201         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
79203 2008-03-23  Eric Blake  <ebb9@byu.net>
79204             Bruno Haible  <bruno@clisp.org>
79206         Install files from top/ in the destination directory.
79207         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
79208         augmentation also for the files from top/.
79209         (func_import, func_create_testdir): Rewrite file names:
79210         top/filename -> filename.
79212 2008-03-23  Bruno Haible  <bruno@clisp.org>
79214         Tweak "gnulib --version" output.
79215         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
79217 2008-03-23  Bruno Haible  <bruno@clisp.org>
79219         Tweak "gnulib --version" output.
79220         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
79221         rather than contents of ChangeLog, when possible.
79223 2008-03-21  Eric Blake  <ebb9@byu.net>
79225         More --version tweaks.
79226         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
79227         date of last ChangeLog entry.
79229 2008-03-21  Jim Meyering  <meyering@redhat.com>
79231         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
79233 2008-03-20  Eric Blake  <ebb9@byu.net>
79235         VPATH fix.
79236         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
79238 2008-03-20  Simon Josefsson  <simon@josefsson.org>
79240         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
79241         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
79243 2008-03-20  Eric Blake  <ebb9@byu.net>
79245         Sync GNUmakefile with coreutils.
79246         * build-aux/GNUmakefile (have-Makefile): Rename...
79247         (_have-Makefile): ...to this, for namespace consideration.
79248         (GNUmakefile.cfg): Include, if present.
79249         (_autoreconf): Define a default.
79250         (_is-dist-target): New rule for rebuilds to pick up intra-release
79251         version.
79252         (maint-cfg.mk): Rename...
79253         (cfg.mk): ...to this.
79255 2008-03-18  Jim Meyering  <meyering@redhat.com>
79257         New script and module: mktempd
79258         * MODULES.html.sh (maint+release support): Add mktempd.
79259         * build-aux/mktempd: New file.
79260         * modules/mktempd: New file.
79262 2008-03-15  Jim Meyering  <meyering@redhat.com>
79264         Undo last change.
79265         * lib/sha1.c, lib/md5.c: 63 != ~63.
79266         Reported by Andreas Schwab.
79268         sha1.c, md5.c: Hoist a redundant expression.
79269         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
79270         "ctx->buflen" only once, before calling *_process_block.
79271         * lib/md5.c (md5_process_bytes): Likewise.
79273 2008-03-14  Eric Blake  <ebb9@byu.net>
79275         Bump copyright year in files generated by gnulib-tool.
79276         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
79277         gnulib-tool, rather than hard-coding it.
79279         Fix 'gnulib-tool --version' output to work with git.
79280         * gnulib-tool (func_gnulib_dir): New function, extracted from...
79281         (startup): ...here.
79282         (func_version): Use it to invoke git-version-gen, rather than
79283         relying on CVS keyword expansion.  Modernize wording.
79284         (cvsdatestamp, last_checkin_date, version): Kill unused
79285         variables.
79287 2008-03-12  Jim Meyering  <meyering@redhat.com>
79289         Recognize optional cast of the argument to free.
79290         * build-aux/useless-if-before-free: Update regexps.
79292         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
79294 2008-03-11  Bruno Haible  <bruno@clisp.org>
79296         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
79297         by a single package.
79298         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
79299         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
79300         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
79301         Reported by Sam Steingold <sds@gnu.org>.
79303 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79305         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
79306         repositories.
79308 2008-03-11  Bruno Haible  <bruno@clisp.org>
79310         Avoid conflicts between local macro definitions.
79311         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
79312         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
79314 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
79315             Bruno Haible  <bruno@clisp.org>
79317         Make va_copy work with some version of xlc on AIX 5.1.
79318         * lib/stdarg.in.h: New file.
79319         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
79320         On AIX, use a <stdarg.h> file substitute.
79321         * modules/stdarg (Files): Add lib/stdarg.in.h.
79322         (Depends-on): Add include_next.
79323         (Makefile.am): Build a stdarg.h substitute if requested.
79324         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
79326 2008-03-10  Bruno Haible  <bruno@clisp.org>
79328         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
79329         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79330         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
79332 2008-03-10  Bruno Haible  <bruno@clisp.org>
79334         * modules/stdlib (Depends-on): Add include_next, remove
79335         absolute-header.
79337 2008-03-09  Bruno Haible  <bruno@clisp.org>
79339         * lib/freadahead.h (freadahead): Document more precisely.
79340         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
79341         the sum of both buffer sizes.
79342         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
79343         * NEWS: Document the change.
79345 2008-03-09  Bruno Haible  <bruno@clisp.org>
79347         Extend freadptr to return also the buffer size.
79348         * lib/freadptr.h (freadptr): Add sizep argument.
79349         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
79350         (freadptr): Add sizep argument. Determine buffer size like freadahead
79351         does.
79352         * tests/test-freadptr.c: Don't include freadahead.h.
79353         (main): Adapt for new calling convention of freadptr.
79354         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
79355         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
79356         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
79357         tests/test-freadptr2.sh.
79358         (Depends): Remove freadahead.
79359         (TESTS): Add test-freadptr2.sh.
79360         (check_PROGRAMS): Add test-freadptr2.
79362 2008-03-09  Bruno Haible  <bruno@clisp.org>
79364         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
79365         Report and solution by Simon Josefsson.
79367 2008-03-06  Bruno Haible  <bruno@clisp.org>
79369         Make fflush after ungetc work on BSD platforms.
79370         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
79371         * tests/test-fflush2.c: New file.
79372         * tests/test-fflush2.sh: New file.
79373         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
79374         tests/test-fflush2.c.
79375         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
79376         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
79378 2008-03-06  Eric Blake  <ebb9@byu.net>
79380         Likewise for ftello.
79381         * modules/ftello (Dependencies): Add extensions.
79382         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
79384 2008-03-06  Bruno Haible  <bruno@clisp.org>
79386         * modules/fseeko (Dependencies): Add extensions.
79387         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
79388         Needed on glibc systems.
79390 2008-03-06  Bruno Haible  <bruno@clisp.org>
79392         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
79393         email address.
79394         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
79396 2008-03-06  Bruno Haible  <bruno@clisp.org>
79398         * users.txt: Add libgnupdf.
79400 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
79402         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
79403         (Header File Substitutes, Function Substitutes,
79404         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
79405         (Build robot for gnulib): Fix typo.
79407 2008-03-06  Bruno Haible  <bruno@clisp.org>
79409         * doc/gnulib-tool.texi (VCS Issues): Small updates.
79410         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
79412 2008-03-06  Bruno Haible  <bruno@clisp.org>
79414         * doc/func.texi: New file, extracted from doc/gnulib.texi.
79415         * doc/gnulib.texi: Include it.
79417 2008-03-06  Simon Josefsson  <simon@josefsson.org>
79419         * modules/func (License): Change license to unlimited; there was
79420         no LGPL parts in the module anyway.
79422 2008-03-06  Simon Josefsson  <simon@josefsson.org>
79424         * modules/__func__: Renamed to modules/func.
79425         * modules/__func__-tests: Renamed to modules/func-tests.
79426         * tests/test-__func__.c: Renamed to tests/test-func.c.
79427         * m4/__func__.m4: Renamed to m4/func.m4.
79428         * doc/gnulib.texi (__func__): Section renamed to func.
79429         Suggested by Eric Blake <ebb9@byu.net>.
79431 2008-03-06  Simon Josefsson  <simon@josefsson.org>
79433         * doc/gnulib.texi (__func__): Use C99 terminology when talking
79434         about __func__.  Make example self-contained.  Suggested by Eric
79435         Blake <ebb9@byu.net>.
79437         * tests/test-__func__.c (main): Avoid extraneous () around __func.
79438         Suggested by Eric Blake <ebb9@byu.net>.
79440 2008-03-06  Simon Josefsson  <simon@josefsson.org>
79442         * modules/__func__: New file.
79443         * modules/__func__-tests: New file.
79444         * tests/test-__func__.c: New file.
79445         * m4/__func__.m4: New file.
79446         * doc/gnulib.texi (__func__): Document __func__ module.
79448 2008-03-05  Simon Josefsson  <simon@josefsson.org>
79450         * modules/byteswap (License): Re-license as LGPLv2+.
79452 2008-03-05  Simon Josefsson  <simon@josefsson.org>
79454         * doc/Makefile: Add pdf target.
79456 2008-03-05  Simon Josefsson  <simon@josefsson.org>
79458         * modules/inline (License): Use 'unlimited', since there are only
79459         *.m4 files in this module.
79461 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
79462             Bruno Haible  <bruno@clisp.org>
79464         Add support for HP C 7.1 on OpenVMS 8.3.
79465         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
79467 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
79469         Update VMS specifics.
79470         * lib/getopt.c [VMS]: Remove include of unixlib.h.
79472 2008-03-02  Jim Meyering  <meyering@redhat.com>
79474         Remove the last dependency on the "free" module.
79475         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
79476         Reported by Bob Proulx.
79478         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
79480         Remove useless "if" tests before free.  Deprecate "free" module.
79481         * doc/posix-functions/free.texi: Mention that this
79482         module is no longer useful.
79483         * modules/free (Notice): Say this module is obsolete.
79484         * modules/readutmp (Depends-on): Remove free.
79485         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
79486         * lib/putenv.c (putenv): Likewise.
79487         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
79488         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
79489         * tests/test-c-strcasestr.c (main): Likewise.
79490         * tests/test-c-strstr.c (main): Likewise.
79491         * tests/test-mbscasestr1.c (main): Likewise.
79492         * tests/test-mbscasestr2.c (main): Likewise.
79493         * tests/test-mbsstr1.c (main): Likewise.
79494         * tests/test-mbsstr2.c (main): Likewise.
79495         * tests/test-memmem.c (main): Likewise.
79496         * tests/test-strcasestr.c (main): Likewise.
79497         * tests/test-striconv.c (main): Likewise.
79498         * tests/test-striconveh.c (main): Likewise.
79499         * tests/test-striconveha.c (main): Likewise.
79500         * tests/test-strstr.c (main): Likewise.
79502         * build-aux/git-version-gen: Adjust a comment and the Usage string.
79504         bootstrap: sync from coreutils again
79505         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
79507 2008-03-01  Jim Meyering  <meyering@redhat.com>
79509         bootstrap: sync from coreutils
79510         * build-aux/bootstrap (update_po_files): Copy a .po file into place
79511         also when the target doesn't exist.
79513 2008-03-01  Eric Blake  <ebb9@byu.net>
79515         Fix bugs in last patch.
79516         * lib/memchr2.c (memchr2): Fix typo.
79517         * tests/test-memchr2.c: Test previous bug, and don't use GNU
79518         extension.
79519         Reported by Bruce Korb.
79521         New module 'memchr2'.
79522         * modules/memchr2: New file.
79523         * modules/memchr2-tests: Likewise.
79524         * lib/memchr2.h: Likewise.
79525         * lib/memchr2.c: Likewise, based on memchr.c.
79526         * tests/test-memchr2.c: New test.
79527         * MODULES.html.sh (String handling): Add memchr2.
79529 2008-02-29  Bruno Haible  <bruno@clisp.org>
79531         * modules/freadseek-tests: New file.
79532         * tests/test-freadseek.sh: New file.
79533         * tests/test-freadseek.c: New file.
79535         New module 'freadseek'.
79536         * modules/freadseek: New file.
79537         * lib/freadseek.h: New file.
79538         * lib/freadseek.c: New file.
79539         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
79541 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
79543         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
79544         wydawca.
79546         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
79547         program_invocation_name and program_invocation_short_name are
79548         present.
79550 2008-02-28  Bruno Haible  <bruno@clisp.org>
79552         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
79553         * tests/test-freadptr.sh: Also test non-seekable stdin.
79555 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
79557         * build-aux/bootstrap (source_base, m4_base)
79558         (doc_base, tests_base): New variables.
79559         (gnulib_tool_options): Do not hardcode base directories, use
79560         the above variables instead.
79562 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
79564         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
79566 2008-02-28  Bruno Haible  <bruno@clisp.org>
79568         * modules/freadptr-tests: New file.
79569         * tests/test-freadptr.sh: New file.
79570         * tests/test-freadptr.c: New file.
79572         New module 'freadptr'.
79573         * modules/freadptr: New file.
79574         * lib/freadptr.h: New file.
79575         * lib/freadptr.c: New file.
79576         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
79578 2008-02-26  Karl Berry  <karl@freefriends.org>
79580         Sync from Libtool:
79581         * libltdl/argz.c (argz_add, argz_count): New functions.
79582         * libltdl/argz.in.h: Declare them.
79583         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
79585 2008-02-22  Bruno Haible  <bruno@clisp.org>
79587         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
79588         is a pointer type.  Needed for HP-UX 10.
79589         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
79590         * doc/posix-functions/gmtime_r.texi: Likewise.
79591         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
79593 2008-02-24  Bruno Haible  <bruno@clisp.org>
79595         * modules/environ-tests: New file.
79596         * tests/test-environ.c: New file.
79598         New module 'environ'.
79599         * modules/environ: New file.
79600         * lib/unistd.in.h (environ): New declaration.
79601         * m4/environ.m4: New file.
79602         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
79603         after use.
79604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
79605         HAVE_DECL_ENVIRON.
79606         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
79607         HAVE_DECL_ENVIRON.
79608         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
79609         wrong claim that 'environ' is missing on some systems.
79610         * modules/execute (Depends-on): Add environ.
79611         * lib/execute.c (environ): Remove fallback declaration.
79612         * modules/pipe (Depends-on): Add environ.
79613         * lib/pipe.c (environ): Remove fallback declaration.
79614         * modules/setenv (Depends-on): Add environ.
79615         * lib/setenv.c (environ): Remove fallback declaration.
79616         * modules/unsetenv (Depends-on): Add environ.
79617         * lib/unsetenv.c (environ): Remove fallback declaration.
79618         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
79619         m4/environ.m4.
79620         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
79621         (gl_PREREQ_UNSETENV): Likewise.
79623 2008-02-24  Bruno Haible  <bruno@clisp.org>
79625         * doc/posix-functions/environ.texi: Document the MacOS X problem.
79627 2008-02-20  Bob Proulx  <bob@proulx.com>
79629         Enable use of older two part flavor 'git describe'.
79630         * build-aux/git-version-gen: If using the older two part flavor of
79631         git version then recreate the third part now present in the
79632         newer three part flavor of git describe.
79634 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
79636         * lib/fts.c (fts_build): Typo correction to comment.
79638 2008-02-17  Bruno Haible  <bruno@clisp.org>
79640         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
79641         generating no-op conflicts.
79643 2008-02-17  Bruno Haible  <bruno@clisp.org>
79645         Speed up by 10%.
79646         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
79647         result_entries, rather than an index-based loop.
79649 2008-02-17  Bruno Haible  <bruno@clisp.org>
79651         Speed up by 25%.
79652         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
79653         'hashcode_cached'.
79654         (entry_create): New function.
79655         (entry_hashcode): Use the cached hashcode if possible.
79656         (read_changelog_file, try_split_merged_entry): Use entry_create.
79658 2008-02-17  Bruno Haible  <bruno@clisp.org>
79660         Speed up from O(n^2) to O(n) for long ChangeLog files.
79661         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
79662         (read_changelog_file): Change implementation of entries_reversed list
79663         to rbtreehash.
79664         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
79666 2008-02-17  Bruno Haible  <bruno@clisp.org>
79668         New option --split-merged-entry.
79669         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
79670         (find_paragraph_end, try_split_merged_entry): New functions.
79671         (long_options): Add option --split-merged-entry.
79672         (usage): Document option --split-merged-entry.
79673         (main): Implement option --split-merged-entry.
79674         Reported by Eric Blake.
79676 2008-02-17  Bruno Haible  <bruno@clisp.org>
79678         * lib/git-merge-changelog.c: Include c-strstr.h.
79679         (main): Support the "git pull --rebase" situation.
79680         * modules/git-merge-changelog (Depends-on): Add c-strstr.
79681         Reported by Eric Blake.
79683 2008-02-16  Eric Blake  <ebb9@byu.net>
79685         Avoid doubling \ in common case of "c-maybe" quoting style.
79686         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
79687         eliding outer quotes.
79688         * lib/quotearg.h: Document this.
79689         * tests/test-quotearg.c (result_strings, inputs, results_g)
79690         (flag_results, locale_results): Test it by adding a new string to
79691         each test group.
79692         (compare_strings): Test new string.
79694 2008-02-13  Eric Blake  <ebb9@byu.net>
79696         Avoid trigraph quoting in default output.
79697         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
79698         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
79699         unless explicitly requested.
79700         * tests/test-quotearg.c (flag_results, main): Add additional tests.
79702 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
79704         Don't rely on signed integer overflowing to negative value.
79705         * lib/getugroups.c (getugroups): Include <limits.h>.
79706         Instead, compare against INT_MAX, and increment only if the test passes.
79708 2008-02-13  Jim Meyering  <meyering@redhat.com>
79709         and Eric Blake  <ebb9@byu.net>
79711         Avoid shadowing warning and compile errors on Linux.
79712         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
79713         forwarding macros on Linux.
79714         (dcgettext): Define a stub, for Linux.
79715         (results_g, main): Avoid warnings.
79717 2008-02-12  Eric Blake  <ebb9@byu.net>
79719         Silence warning in last patch.
79720         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
79722         Quotearg part 4: add tests, fix c-maybe colon quoting.
79723         * lib/quotearg.h: Improve documentation.
79724         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
79725         escapes when adding outer quotes.  When quoting trigraphs, use
79726         valid C notation.  When quoting NUL, omit extra characters if next
79727         character is not digit.  Alter prototype.
79728         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
79729         callers.
79730         * modules/quotearg-tests: New module.
79731         * tests/test-quotearg.c: New test.
79733 2008-02-07  Eric Blake  <ebb9@byu.net>
79735         Quotearg part 3: add flag to control outer quote elision.
79736         * lib/quotearg.h (c_maybe_quoting_style): New style.
79737         (enum quoting_flags): Better documentation of flags.
79738         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
79739         c-maybe style.
79740         (quotearg_buffer_restyled): Handle new flag to elide outer
79741         quotes.
79743         Quotearg part 2: add flag that can control NUL elision.
79744         * lib/quotearg.h (set_quoting_flags): New prototype.
79745         * lib/quotearg.c (struct quoting_options): Add flag field.
79746         (set_quoting_flags): New function.
79747         (quotearg_buffer_restyled): Add flags parameter.
79748         (quotearg_alloc_mem): Set the flag if length cannot be returned.
79749         (quotearg_n_options): Set the flag, since length cannot be
79750         returned.
79751         (quoting_options_from_style): Default flags correctly.
79753         Quotearg part 1: more wrappers, restore quotearg_char state.
79754         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
79755         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
79756         (quotearg_colon_mem): New wrappers.
79757         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
79758         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
79759         functions.
79760         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
79761         (quotearg_colon_mem): New functions.
79763 2008-02-11  Bruno Haible  <bruno@clisp.org>
79765         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
79766         library in the current directory: it does not work with parallel make.
79767         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79769 2008-02-11  Bruno Haible  <bruno@clisp.org>
79771         * .gitattributes: New file.
79773 2008-02-11  Jim Meyering  <meyering@redhat.com>
79775         useless-if-before-free: Fix reversed exit values.
79776         * build-aux/useless-if-before-free: Use correct values
79777         for EXIT_MATCH and EXIT_NO_MATCH.
79779         * build-aux/useless-if-before-free: Close stdout carefully.
79781 2008-02-10  Bruno Haible  <bruno@clisp.org>
79783         New module 'git-merge-changelog'.
79784         * modules/git-merge-changelog: New file.
79785         * lib/git-merge-changelog.c: New file.
79787 2008-02-10  Jim Meyering  <meyering@redhat.com>
79789         useless-if-before-free: New option: --list (-l).
79791         useless-if-before-free: Don't exit immediately upon open failure.
79792         * build-aux/useless-if-before-free: Exit 2 for errors.
79793         Upon failure to open a file, don't exit immediately.
79794         Rather, just warn and continue with any remaining files.
79796 2008-02-10  Bruno Haible  <bruno@clisp.org>
79798         New abstract list operation 'node_set_value'.
79799         * lib/gl_list.h (gl_list_node_set_value): New function.
79800         (struct gl_list_implementation): New field node_set_value.
79801         * lib/gl_list.c (gl_list_node_set_value): New function.
79802         * lib/gl_array_list.c (gl_array_node_set_value): New function.
79803         (gl_array_list_implementation): Update.
79804         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
79805         (gl_carray_list_implementation): Update.
79806         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
79807         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
79808         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
79809         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
79810         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
79811         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
79812         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
79813         Update.
79814         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
79815         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
79816         (gl_sublist_list_implementation): Update.
79818 2008-02-10  Bruno Haible  <bruno@clisp.org>
79820         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
79821         Needed when ELEMENT is #defined to 'some_type *'.
79823 2008-02-10  Jim Meyering  <meyering@redhat.com>
79825         New script and module: useless-if-before-free
79826         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
79827         * build-aux/useless-if-before-free: New file.
79828         * modules/useless-if-before-free: New file.
79830         * build-aux/gitlog-to-changelog: Use committer date, not author date.
79832         xstrtol_error: Fix typo.
79833         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
79834         s/exit_failure/exit_status/.
79836 2008-02-09  Jim Meyering  <meyering@redhat.com>
79838         New script and module: gitlog-to-changelog
79839         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
79840         * modules/gitlog-to-changelog: New file.
79841         * build-aux/gitlog-to-changelog: New file.
79843 2008-02-08  Jim Meyering  <meyering@redhat.com>
79845         Avoid two "parameter unused" warnings.
79846         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
79847         Mark "st" as used.
79849         Use "git COMMAND", not "git-COMMAND".
79850         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
79851         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
79852         * build-aux/git-version-gen: Use "git status", not "git-status".
79854 2008-02-07  Bruno Haible  <bruno@clisp.org>
79856         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
79857         Avoids a crash on Windows Vista.
79858         Reported by Adam Strzelecki <ono@java.pl> via
79859         Simon Josefsson <simon@josefsson.org>.
79861 2008-02-06  Bruno Haible  <bruno@clisp.org>
79863         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
79864         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
79865         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
79866         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
79867         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
79868         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
79869         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
79870         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
79871         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
79872         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79873         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
79874         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
79875         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
79876         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79877         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
79878         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
79879         left-adjust flag.
79880         * tests/test-snprintf-posix.h (test_function): Likewise.
79881         * tests/test-sprintf-posix.h (test_function): Likewise.
79882         * tests/test-vasprintf-posix.c (test_function): Likewise.
79883         * doc/posix-functions/fprintf.texi: Update.
79884         * doc/posix-functions/printf.texi: Update.
79885         * doc/posix-functions/snprintf.texi: Update.
79886         * doc/posix-functions/sprintf.texi: Update.
79887         * doc/posix-functions/vfprintf.texi: Update.
79888         * doc/posix-functions/vprintf.texi: Update.
79889         * doc/posix-functions/vsnprintf.texi: Update.
79890         * doc/posix-functions/vsprintf.texi: Update.
79891         Reported by Peter Fales <psfales@alcatel-lucent.com>.
79893 2008-02-06  Bruno Haible  <bruno@clisp.org>
79895         Fix bug introduced on 2008-01-26.
79896         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
79898 2008-02-06  Bruno Haible  <bruno@clisp.org>
79900         Fix bug introduced on 2007-06-10.
79901         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
79902         !NEED_PRINTF_FLAG_ZERO.
79904 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
79906         getloadavg: use libperfstat on AIX5
79907         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
79909 2008-02-03  Bruno Haible  <bruno@clisp.org>
79911         * lib/diffseq.h: Add comments about required #includes.
79912         Reported by Michael Biggs <gnulib@doubleplum.net>.
79914 2008-02-01  Bruno Haible  <bruno@clisp.org>
79916         * users.txt: Add gnuit.
79918 2008-01-31  Bruno Haible  <bruno@clisp.org>
79920         * lib/md4.c (set_uint32): Mark as inline.
79921         * lib/md5.c (set_uint32): Likewise.
79922         * lib/sha1.c (set_uint32): Likewise.
79923         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
79924         * m4/md5.m4 (gl_MD5): Likewise.
79925         * m4/sha1.m4 (gl_SHA1): Likewise.
79927 2008-01-31  Jim Meyering  <meyering@redhat.com>
79929         Use "sizeof VAR", rather than a literal "4".
79930         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
79931         * lib/md4.c (md4_read_ctx): Likewise.
79932         * lib/sha1.c (sha1_read_ctx): Likewise.
79934 2008-01-31  Simon Josefsson  <simon@josefsson.org>
79936         * tests/test-sha1.c: New file, based on test-md5.c.
79938         * modules/crypto/sha1-tests: New file.
79940 2008-01-31  Simon Josefsson  <simon@josefsson.org>
79942         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
79944 2008-01-31  Jim Meyering  <meyering@redhat.com>
79946         Prefer "sizeof v" over the equivalent "4".
79947         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
79948         * lib/md5.c (set_uint32): Likewise.
79949         * lib/sha1.c (set_uint32): Likewise.
79951 2008-01-31  Simon Josefsson  <simon@josefsson.org>
79953         * lib/sha1.c (set_uint32): Mark function as static.
79955 2008-01-31  Simon Josefsson  <simon@josefsson.org>
79957         md2: clarify comments to say that alignment is not required.
79958         * lib/md2.h: Remove warning about alignment in comment.
79959         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
79960         never been required.
79962 2008-01-31  Simon Josefsson  <simon@josefsson.org>
79964         md4: adapt alignment constraint fix from sha1.
79965         * lib/md4.c (set_uint32): New function, from sha1.c
79966         (md4_read_ctx): Use it.
79967         (md4_finish_ctx): Doc fix.
79968         * lib/md4.h: Doc fix.
79970 2008-01-31  Simon Josefsson  <simon@josefsson.org>
79972         md5: adapt alignment constraint fix from sha1.
79973         * lib/md5.c (set_uint32): New function, from sha1.c
79974         (md5_read_ctx): Use it.
79975         (md5_finish_ctx): Doc fix.
79976         * lib/md5.h: Doc fix.
79978 2008-01-30  Peter Palfrader  <weasel@debian.org>
79980         sha1: remove the result buffer alignment constraint
79981         * lib/sha1.c (set_uint32): New function.
79982         (sha1_read_ctx): Rewrite to remove the result buffer alignment
79983         constraint.
79984         (sha1_finish_ctx): Remove comment warning about alignment constraint.
79985         * lib/sha1.h: Likewise.
79987 2008-01-30  Andreas Schwab  <schwab@suse.de>
79988             Bruno Haible  <bruno@clisp.org>
79990         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
79991         correct definition of LDBL_MIN_EXP.
79993 2008-01-30  Karl Berry  <karl@gnu.org>
79995         * config/srclist-update: try to preserve x bit on updates.
79996         * config/srclistvars.sh: update for karl.
79998 2008-01-29  Jim Meyering  <meyering@redhat.com>
80000         vasnprintf.c: Avoid warning about unused label
80001         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
80002         "overflow" label definition and associated code with the
80003         same cpp condition that guards the sole use of that label.
80005 2008-01-26  Bruno Haible  <bruno@clisp.org>
80007         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
80008         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
80009         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
80010         * lib/isnanl-nolibm.h (isnanl): Likewise.
80011         Reported by Paul Eggert <eggert@cs.ucla.edu>.
80013 2008-01-26  Bruno Haible  <bruno@clisp.org>
80015         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
80016         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
80018 2008-01-26  Bruno Haible  <bruno@clisp.org>
80020         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
80021         GCC >= 4.0 built-in.
80022         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
80024 2008-01-26  Bruno Haible  <bruno@clisp.org>
80026         Rename isnan, applicable to 'double' only, to isnand.
80027         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
80028         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
80029         (configure.ac): Update.
80030         (Include): Replace "isnan.h" with "isnand.h".
80031         * m4/isnand.m4: Renamed from m4/isnan.m4.
80032         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
80033         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
80034         instead of isnan.c.
80035         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
80036         instead of HAVE_ISNAN_IN_LIBC.
80037         (isnand): Renamed from isnan.
80038         * lib/isnand.c: New file.
80039         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
80040         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
80041         (Makefile.am): Update.
80042         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
80043         Include isnand.h instead of isnan.h.
80044         (main): Test isnand instead of isnan.
80045         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
80046         isnan-nolibm.
80047         * modules/frexp (Depends-on): Likewise.
80048         * modules/frexp-tests (Depends-on): Likewise.
80049         * modules/frexp-nolibm (Depends-on): Likewise.
80050         * modules/frexp-nolibm-tests (Depends-on): Likewise.
80051         * modules/isfinite (Depends-on): Likewise.
80052         * modules/round-tests (Depends-on): Likewise.
80053         * modules/signbit (Depends-on): Likewise.
80054         * modules/signbit-tests (Depends-on): Likewise.
80055         * modules/snprintf-posix (Depends-on): Likewise.
80056         * modules/sprintf-posix (Depends-on): Likewise.
80057         * modules/trunc-tests (Depends-on): Likewise.
80058         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
80059         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
80060         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
80061         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
80062         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
80063         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
80064         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
80065         * modules/vasnprintf-posix (Depends-on): Likewise.
80066         * modules/vasprintf-posix (Depends-on): Likewise.
80067         * modules/vfprintf-posix (Depends-on): Likewise.
80068         * modules/vsnprintf-posix (Depends-on): Likewise.
80069         * modules/vsprintf-posix (Depends-on): Likewise.
80070         * lib/frexp.c: Include isnand.h instead of isnan.h.
80071         (ISNAN): Set to isnand instead of isnan.
80072         * lib/isfinite.c: Include isnand.h instead of isnan.h.
80073         (gl_isfinited): Use isnand instead of isnan.
80074         * lib/signbitd.c: Include isnand.h instead of isnan.h.
80075         (gl_signbitd): Use isnand instead of isnan.
80076         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
80077         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
80078         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
80079         (main): Use isnand instead of isnan.
80080         * tests/test-round1.c: Include isnand.h.
80081         (main): Use isnand instead of isnan.
80082         * tests/test-round2.c: Include isnand.h instead of isnan.h.
80083         (ISNAN): Set to isnand instead of isnan.
80084         * tests/test-trunc1.c: Include isnand.h.
80085         (main): Use isnand instead of isnan.
80086         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
80087         (equal): Use isnand instead of isnan.
80088         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
80089         isnand-nolibm.
80090         * NEWS: Mention the change.
80092 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
80093             Bruno Haible  <bruno@clisp.org>
80095         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
80096         the GCC builtins for signbits are present and set
80097         REPLACE_SIGNBIT_USING_GCC if so.
80098         * lib/math.in.h (signbit): Define using GCC builtins if
80099         REPLACE_SIGNBIT_USING_GCC is set.
80100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
80101         REPLACE_SIGNBIT_USING_GCC.
80102         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
80104 2008-01-25  Jim Meyering  <meyering@redhat.com>
80106         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
80107         * lib/poll.c: Include <config.h>, not "config.h".
80108         * tests/test-getaddrinfo.c: Likewise.
80110 2008-01-25  Simon Josefsson  <simon@josefsson.org>
80112         * modules/sockets-tests: New file.
80114 2008-01-24  Simon Josefsson  <simon@josefsson.org>
80116         * modules/sockets: New module, can be used to call WSA_Startup and
80117         WSA_Cleanup when needed.
80119         * lib/sockets.h, lib/sockets.c: New files.
80121         * m4/sockets.m4: New file.
80123         * tests/test-sockets.c: New file.
80125 2008-01-19  Bruno Haible  <bruno@clisp.org>
80127         * doc/posix-headers: Renamed from doc/headers.
80128         * doc/posix-functions: Renamed from doc/functions.
80129         * doc/gnulib.texi: Update.
80131 2008-01-19  Bruno Haible  <bruno@clisp.org>
80133         * doc/glibc-functions/strcasestr.texi: Include contents of
80134         doc/functions/strcasestr.texi, fixing the list of platforms.
80135         * doc/functions/strcasestr.texi: Remove file.
80137 2008-01-19  Bruno Haible  <bruno@clisp.org>
80139         * doc/glibc-functions/memmem.texi: Include contents of
80140         doc/functions/memmem.texi.
80141         * doc/functions/memmem.texi: Remove file.
80143 2008-01-18  Bruno Haible  <bruno@clisp.org>
80145         * doc/glibc-functions/*.texi: New files.
80146         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
80147         to use the new files.
80149 2008-01-17  Bruno Haible  <bruno@clisp.org>
80151         * tests/test-gethostname.c (main): Fix printf statement.
80153 2008-01-17  Simon Josefsson  <simon@josefsson.org>
80155         * modules/gethostname-tests: New file.
80157         * tests/test-gethostname.c: New file.
80159 2008-01-17  Simon Josefsson  <simon@josefsson.org>
80161         * lib/gethostname.c: Include string.h unconditionally, strncpy is
80162         used by the UNAME case.  Reported by Bruno Haible
80163         <bruno@clisp.org>.
80165 2008-01-17  Eric Blake  <ebb9@byu.net>
80167         Convert c-strcasestr to be more efficient.
80168         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
80169         (Depends-on): Add c-strcase, remove malloca, strnlen.
80170         * tests/test-c-strcasestr.c (main): Enhance test.
80171         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
80173 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
80175         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
80176         Use it in creating po/Makevars.
80178 2008-01-15  Simon Josefsson  <simon@josefsson.org>
80180         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
80181         Applications that requires it should initialize libgcrypt
80182         manually.
80184 2008-01-16  Simon Josefsson  <simon@josefsson.org>
80186         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
80188 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
80190         Fix problem with getdate on mingw32 reported by Simon Josefsson
80191         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
80192         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
80193         tzname", when deciding whether to declare tzname.
80194         * lib/strftime.c (tzname): Likewise.
80196 2008-01-15  Bruno Haible  <bruno@clisp.org>
80198         Work around a MacOS X 10.5 bug in frexpl().
80199         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
80200         * doc/functions/frexpl.texi: Document the bug.
80201         Reported by Elias Pipping <pipping@gentoo.org>.
80203 2008-01-14  Eric Blake  <ebb9@byu.net>
80205         Touch up previous patch.
80206         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
80207         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
80209         Convert strcasestr module to use Two-Way algorithm.
80210         * modules/strcasestr-simple: New module, based on the old
80211         strcasestr, but with Two-Way rather than KMP.
80212         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
80213         * lib/string.in.h (rpl_strcasestr): Declare.
80214         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
80215         performance.
80216         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
80217         * modules/string (Makefile.am): Support strcasestr.
80218         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
80219         * modules/strcasestr-tests (Depends-on): Check for alarm.
80220         * tests/test-strcasestr.c: Augment test.
80221         * lib/str-two-way.h: Clean up stray macro.
80222         * NEWS: Document new module.
80223         * MODULES.html.sh (string handling): Likewise.
80224         * doc/functions/strcasestr.texi: New file.
80225         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
80226         here, since it is not a POSIX function.
80228 2008-01-14  Colin Watson  <cjwatson@debian.org>
80229             Bruno Haible  <bruno@clisp.org>
80231         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
80232         works fine; if not, set REPLACE_STRSIGNAL.
80233         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
80234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
80235         REPLACE_STRSIGNAL.
80236         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
80237         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
80238         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
80240 2008-01-14  Bruno Haible  <bruno@clisp.org>
80242         * modules/strsignal (Include): Change to <string.h>.
80244 2008-01-14  Colin Watson  <cjwatson@debian.org>
80246         * modules/argp (Notice): Add a notice recommending to change
80247         XGETTEXT_OPTIONS.
80248         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
80250 2008-01-13  Colin Watson  <cjwatson@debian.org>
80252         * modules/strsignal-tests: New file.
80253         * tests/test-strsignal.c: New file.
80255         * lib/strsignal.c: New file, from glibc with modifications.
80256         * lib/siglist.h: New file, from glibc with modifications.
80257         * lib/string.in.h (strsignal): New declaration.
80258         * m4/strsignal.m4: New file.
80259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
80260         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
80261         * modules/strsignal: New file.
80262         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
80263         HAVE_DECL_STRSIGNAL.
80265 2008-01-13  Bruno Haible  <bruno@clisp.org>
80267         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
80268         locale encoding is not ASCII. Needed for OpenBSD 4.0.
80269         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
80270         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
80272 2008-01-13  Bruno Haible  <bruno@clisp.org>
80274         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
80275         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
80276         * lib/argp.h (__attribute__): Likewise.
80277         * lib/c-stack.c (__attribute__): Likewise.
80278         * lib/error.h (__attribute__): Likewise.
80279         * lib/fts.c (__attribute__): Likewise.
80280         * lib/openat.h (__attribute__): Likewise.
80281         * lib/stdio.in.h (__attribute__): Likewise.
80282         * lib/string.in.h (__attribute__): Likewise.
80283         * lib/utimens.c (__attribute__): Likewise.
80284         * lib/vasnprintf.h (__attribute__): Likewise.
80285         * lib/xalloc.h (__attribute__): Likewise.
80286         * lib/xprintf.h (__attribute__): Likewise.
80287         * lib/xstrtol.h (__attribute__): Likewise.
80288         * lib/xvasprintf.h (__attribute__): Likewise.
80290 2008-01-12  Bruno Haible  <bruno@clisp.org>
80292         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
80293         * doc/glibc-headers/a.out.texi: New file.
80294         * doc/glibc-headers/aliases.texi: New file.
80295         * doc/glibc-headers/alloca.texi: New file.
80296         * doc/glibc-headers/ar.texi: New file.
80297         * doc/glibc-headers/argp.texi: New file.
80298         * doc/glibc-headers/argz.texi: New file.
80299         * doc/glibc-headers/byteswap.texi: New file.
80300         * doc/glibc-headers/crypt.texi: New file.
80301         * doc/glibc-headers/endian.texi: New file.
80302         * doc/glibc-headers/envz.texi: New file.
80303         * doc/glibc-headers/err.texi: New file.
80304         * doc/glibc-headers/error.texi: New file.
80305         * doc/glibc-headers/execinfo.texi: New file.
80306         * doc/glibc-headers/fpu_control.texi: New file.
80307         * doc/glibc-headers/fstab.texi: New file.
80308         * doc/glibc-headers/fts.texi: New file.
80309         * doc/glibc-headers/getopt.texi: New file.
80310         * doc/glibc-headers/ieee754.texi: New file.
80311         * doc/glibc-headers/ifaddrs.texi: New file.
80312         * doc/glibc-headers/libintl.texi: New file.
80313         * doc/glibc-headers/mcheck.texi: New file.
80314         * doc/glibc-headers/mntent.texi: New file.
80315         * doc/glibc-headers/obstack.texi: New file.
80316         * doc/glibc-headers/paths.texi: New file.
80317         * doc/glibc-headers/printf.texi: New file.
80318         * doc/glibc-headers/pty.texi: New file.
80319         * doc/glibc-headers/resolv.texi: New file.
80320         * doc/glibc-headers/shadow.texi: New file.
80321         * doc/glibc-headers/sysexits.texi: New file.
80322         * doc/glibc-headers/ttyent.texi: New file.
80324 2008-01-12  Jim Meyering  <meyering@redhat.com>
80326         announce-gen: emit Gnulib's git-based version string.
80327         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
80328         New option --gnulib-version=V, where V is expected to be
80329         the output of running git describe in the gnulib directory.
80330         (get_tool_versions): Request feedback on xdelta.  I suspect it's
80331         not useful, and plan to stop publishing an xdelta file with each
80332         coreutils release.
80334         * build-aux/announce-gen: Also check for lzma-compressed files.
80336 2008-01-11  Bruno Haible  <bruno@clisp.org>
80338         * tests/test-memmem.c (main): Increase maximum allowed time.
80339         * tests/test-strstr.c (main): Likewise.
80341 2008-01-11  Bruno Haible  <bruno@clisp.org>
80343         * doc/functions/memmem.texi: Add more precisions about platforms.
80344         * doc/functions/strstr.texi: Likewise.
80346 2008-01-10  Eric Blake  <ebb9@byu.net>
80348         * m4/strstr.m4: Delete cruft from copy-n-paste.
80349         Reported by Bruno Haible.
80351 2008-01-10  Bruno Haible  <bruno@clisp.org>
80353         Make c-strstr rely on strstr.
80354         * lib/c-strstr.c: Don't include str-kmp.h.
80355         (c_strstr): Define in terms of strstr.
80356         * modules/c-strstr (Files): Remove lib/str-kmp.h.
80357         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
80359 2008-01-10  Bruno Haible  <bruno@clisp.org>
80361         * doc/gnulib.texi (String Functions in C Locale): New section.
80362         * doc/c-ctype.texi: New file.
80363         * doc/c-strcase.texi: New file.
80364         * doc/c-strcaseeq.texi: New file.
80365         * doc/c-strcasestr.texi: New file.
80366         * doc/c-strstr.texi: New file.
80367         * doc/c-strtod.texi: New file.
80368         * doc/c-strtold.texi: New file.
80370 2008-01-10  Eric Blake  <ebb9@byu.net>
80372         * lib/relocatable.h: Fix a comment.
80374 2008-01-10  Eric Blake  <ebb9@byu.net>
80376         Share two-way algorithm.
80377         * lib/str-two-way.h: New file, merged from...
80378         * lib/memmem.c: ...here...
80379         * lib/strstr.c: ...and here.
80380         * modules/memmem (Files): Use it.
80381         * modules/strstr (Files): Likewise.
80383         Avoid quadratic strstr implementations.
80384         * lib/strstr.c: New file.
80385         * m4/strstr.m4: Likewise.
80386         * modules/strstr: Likewise.
80387         * modules/strstr-tests: Likewise.
80388         * tests/test-strstr.c: Likewise.
80389         * lib/string.in.h (rpl_strstr): Declare.
80390         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
80391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
80392         * modules/string (Makefile.am): Likewise.
80393         * MODULES.html.sh (string handling): Mention new module.
80394         * doc/functions/strstr.texi (strstr): Document the bug.
80396 2008-01-10  Bruno Haible  <bruno@clisp.org>
80398         * lib/relocatable.h (relocate): State whether result is freshly
80399         allocated or not.
80400         * lib/relocatable.c (relocate): Return a freshly allocated string
80401         instead of a pointer to a privately held string.
80402         Reported by Sylvain Beucler <beuc@gnu.org>.
80404 2008-01-10  Colin Watson  <cjwatson@debian.org>
80406         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
80407         s/S_ISNLK/S_ISLNK/.
80409 2008-01-09  Bruno Haible  <bruno@clisp.org>
80411         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
80412         and other files.
80413         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
80414         if it's only a guess.
80415         * modules/memmem: Simplify by depending on memmem-simple.
80417 2008-01-09  Bruno Haible  <bruno@clisp.org>
80419         Work around OpenBSD 4.0 tdelete() bug.
80420         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
80421         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
80422         macros and don't redefine the enum values.
80423         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
80424         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
80425         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
80427 2008-01-09  Bruno Haible  <bruno@clisp.org>
80429         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
80430         (main): Don't perform the tests if setlocale did not install a UTF-8
80431         locale. Needed on OpenBSD 4.0.
80432         * modules/wcwidth-tests (Depends-on): Add localcharset.
80434 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80436         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
80437         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
80438         * NEWS: announce this.
80439         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
80441 2008-01-09  Simon Josefsson  <simon@josefsson.org>
80442         and Eric Blake  <ebb9@byu.net>
80444         Add memmem-simple module.
80445         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
80446         (gl_FUNC_MEMMEM): Separate performance from presence checks.
80447         * modules/memmem-simple: New file.
80448         * modules/memmem (Description): Tweak.
80449         * MODULES.html.sh (string handling): Mention new module.
80450         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
80451         addressed by memmem-simple.
80452         * NEWS: Document the difference.
80454 2008-01-09  Eric Blake  <ebb9@byu.net>
80456         Give gcc some memmem optimization hints.
80457         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
80458         (strcasestr): Declare as pure.
80459         * modules/memmem (Maintainer): Claim my implementation.
80461 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80463         Support AIX 6.1 and higher.
80464         * build-aux/config.libpath: Likewise.
80465         * build-aux/config.rpath: Likewise.
80467 2008-01-08  Jim Meyering  <meyering@redhat.com>
80468             Bruno Haible  <bruno@clisp.org>
80470         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
80471         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
80472         Reported by Peter Fales in
80473         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
80475 2008-01-08  Bruno Haible  <bruno@clisp.org>
80477         * modules/unictype/category-of (Depends-on): Add
80478         unictype/category-none.
80479         * modules/unictype/category-and-tests (Depends-on): Add
80480         unictype/category-{L,N,Lu,Nd}.
80481         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
80482         * modules/unictype/category-or-tests (Depends-on): Add
80483         unictype/category-{L,N}.
80484         * modules/unictype/category-name-tests (Depends-on): Add
80485         unictype/category-{Z,Nl}.
80486         Reported by Simon Josefsson.
80488 2008-01-08  Bruno Haible  <bruno@clisp.org>
80490         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
80491         convention better.
80492         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
80493         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
80494         Reported by Peter Miller <millerp@canb.auug.org.au>.
80496 2008-01-08  Eric Blake  <ebb9@byu.net>
80498         Rewrite memmem to guarantee linear complexity without malloc.
80499         * lib/memmem.c (memmem): Use Two-Way rather than
80500         Knuth-Morris-Pratt, to allow O(1) space usage.
80501         (critical_factorization, two_way_short_needle)
80502         (two_way_long_needle): New functions.
80503         (knuth_morris_pratt): Delete.
80504         * modules/memmem (Depends-on): No longer need malloca or stdbool.
80505         Add stdint.
80506         * tests/test-memmem.c (main): Add tests for periodic needle and
80507         sublinear performance.
80508         * doc/functions/memmem.texi (memmem): Document other deficiencies
80509         in cygwin and older glibc.
80511 2008-01-08  Bruno Haible  <bruno@clisp.org>
80513         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
80514         augmentation.
80516 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
80518         Add a configure time option: --disable-acl.
80519         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
80520         AC_ARG_ENABLE(acl).
80522 2008-01-06  Simon Josefsson  <simon@josefsson.org>
80524         * tests/test-localename.c: Don't include obsolete "setenv.h".
80526         * modules/localename-tests (Depends-on): Need unsetenv.
80528 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80530         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
80532 2008-01-06  Colin Watson  <cjwatson@debian.org>
80534         * users.txt: Add man-db.
80536 2008-01-07  Bruno Haible  <bruno@clisp.org>
80538         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
80539         previous section name.
80541 2008-01-07  Bruno Haible  <bruno@clisp.org>
80543         * lib/progname.c (set_program_name): Don't strip off a leading
80544         "lt-" prefix outside a .libs directory.
80545         Suggested by Paul Eggert.
80547 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
80548             Bruno Haible  <bruno@clisp.org>
80550         Improve memory cleanup in 'relocatable' module.
80551         * lib/relocatable.h (compute_curr_prefix): Change return type to
80552         'char *'.
80553         * lib/relocatable.c (compute_curr_prefix): Change return type to
80554         'char *'. Free curr_installdir after use.
80555         (relocate): Free curr_prefix_better after use.
80556         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
80558 2008-01-01  Bruno Haible  <bruno@clisp.org>
80560         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
80561         failure on older glibc systems.
80562         Reported by Peter Fales <psfales@alcatel-lucent.com>.
80564 2008-01-05  Eric Blake  <ebb9@byu.net>
80566         Avoid quadratic system memmem.
80567         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
80568         Reported by Ralf Wildenhues.
80570         Fix memmem test for mingw.
80571         * modules/memmem-tests (configure.ac): Check for alarm.
80572         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
80573         it.
80574         * doc/functions/memmem.texi: New file.
80575         * doc/gnulib.texi (Function Substitutes): Add memmem.
80576         Reported by Bruno Haible.
80578 2008-01-04  Bruno Haible  <bruno@clisp.org>
80580         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
80581         Require gl_HEADER_STRINGS_H_DEFAULTS, not
80582         gl_HEADER_STRING_H_DEFAULTS.
80584 2008-01-04  Eric Blake  <ebb9@byu.net>
80586         Shorten duration of memmem test.
80587         * tests/test-memmem.c (main): Use alarm to declare failure if test
80588         is taking too long.
80589         Reported by Ralf Wildenhues.
80591 2007-12-21  Simon Josefsson  <simon@josefsson.org>
80593         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
80594         string, needed by strerror.
80596 2008-01-03  Colin Watson  <cjwatson@debian.org>
80597             Bruno Haible  <bruno@clisp.org>
80599         * doc/gnulib-tool.texi (Localization): New section.
80601 2008-01-02  Bruno Haible  <bruno@clisp.org>
80603         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
80604         variables to 'unsigned char *' type.
80605         Reported by Paul Eggert.
80607 2008-01-02  Jim Meyering  <jim@meyering.net>
80609         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
80611 2007-12-31  Jim Meyering  <jim@meyering.net>
80613         Avoid use of private FTS type name.
80614         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
80616 2007-12-30  Karl Berry  <karl@gnu.org>
80618         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
80619         work around defect in Texinfo and/or the standalone Info browser.
80621 2007-12-30  Bruno Haible  <bruno@clisp.org>
80623         Unify 5 copies of the KMP code.
80624         * lib/str-kmp.h: New file.
80625         * lib/c-strcasestr.c: Include str-kmp.h.
80626         (knuth_morris_pratt): Remove function.
80627         (c_strcasestr): Update.
80628         * lib/c-strstr.c: Include str-kmp.h.
80629         (knuth_morris_pratt): Remove function.
80630         (c_strcasestr): Update.
80631         * lib/mbscasestr.c: Include str-kmp.h.
80632         (knuth_morris_pratt_unibyte): Remove function.
80633         * lib/mbsstr.c: Include str-kmp.h.
80634         (knuth_morris_pratt_unibyte): Remove function.
80635         * lib/strcasestr.c: Include str-kmp.h.
80636         (knuth_morris_pratt): Remove function.
80637         (strcasestr): Update.
80638         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
80639         * modules/c-strstr (Files): Likewise.
80640         * modules/mbscasestr (Files): Likewise.
80641         * modules/mbsstr (Files): Likewise.
80642         * modules/strcasestr (Files): Likewise.
80643         Suggested by Paul Eggert.
80645 2007-12-30  Bruno Haible  <bruno@clisp.org>
80647         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
80648         defined.
80650 2007-12-30  Bruno Haible  <bruno@clisp.org>
80652         * lib/xmalloca.h: Include xalloc.h.
80653         (xnmalloca): New macro.
80655 2007-12-30  Bruno Haible  <bruno@clisp.org>
80657         * lib/malloca.h (nmalloca): New macro.
80658         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
80659         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
80660         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
80661         knuth_morris_pratt_multibyte): Likewise.
80662         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
80663         knuth_morris_pratt_multibyte): Likewise.
80664         * lib/memmem.c (knuth_morris_pratt): Likewise.
80665         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
80667 2007-12-25  Bruno Haible  <bruno@clisp.org>
80669         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
80670         * lib/glob.c: Don't include openat.h.
80671         (link_exists2_p): Add back the code that deals with the
80672         !GLOB_ALTDIRFUNC case.
80673         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
80674         let it do the filename concatenation.
80675         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
80676         * modules/glob (Depends-on): Remove openat.
80678 2007-12-31  Bruno Haible  <bruno@clisp.org>
80680         * modules/dirfd (License): Change to LGPLv2+.
80681         Approved by Jim Meyering.
80683 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
80685         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
80686         when multiplying M by sizeof (size_t).
80688 2007-12-10  Martin Lambers  <marlam@marlam.de>
80690         Override getpagesize on mingw.
80691         * lib/getpagesize.c: New file.
80692         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
80693         * modules/getpagesize (Files): Add lib/getpagesize.c.
80694         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
80695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
80696         REPLACE_GETPAGESIZE.
80697         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
80699 2007-12-25  Bruno Haible  <bruno@clisp.org>
80701         * modules/localcharset (Notice): New field.
80702         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
80703         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
80705 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
80706             Bruno Haible  <bruno@clisp.org>
80708         Avoid using the syntax symbol() in formatted documentation.
80709         * MODULES.html.sh (func_module): When replacing symbol() with a
80710         hyperlink, remove the parentheses. Show an error if some remain.
80711         Recognize and render the '...' syntax.
80712         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
80713         Rework. Add paragraph about GCC's inlining.
80714         * doc/alloca.texi: Likewise.
80715         * doc/error.texi: Remove parentheses from symbol reference.
80716         * doc/gnulib-intro.texi: Likewise.
80717         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
80718         * modules/fnmatch (Description): Reword to say "the ... function".
80719         * modules/full-read (Description): Likewise.
80720         * modules/full-write (Description): Likewise.
80721         * modules/safe-read (Description): Likewise.
80722         * modules/safe-write (Description): Likewise.
80723         * modules/strchrnul (Description): Likewise.
80724         * modules/trim (Description): Likewise.
80725         * modules/error (Description): Remove parentheses from symbol
80726         references.
80727         * modules/verror (Description): Likewise.
80728         Reported by Karl Berry.
80730 2007-12-25  Bruno Haible  <bruno@clisp.org>
80732         Fixup after 2007-10-16 commit.
80733         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
80735 2007-12-24  Bruno Haible  <bruno@clisp.org>
80737         Make --enable-relocatable work with DESTDIR.
80738         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
80739         to compute installdir from destprog.
80740         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
80741         also set the RELOC_DESTDIR variable.
80742         Reported by Левашев Иван <octagram@bluebottle.com>.
80744 2007-12-24  Bruno Haible  <bruno@clisp.org>
80746         Fix link error due to xalloc_die().
80747         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
80748         of xreadlink.
80749         * lib/relocwrapper.c: Update comments.
80750         * build-aux/install-reloc: Remove xreadlink.c from file list.
80751         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
80752         xreadlink.c.
80753         Reported by Левашев Иван <octagram@bluebottle.com>.
80755 2007-12-24  Bruno Haible  <bruno@clisp.org>
80757         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
80758         * lib/setenv.h: Remove file.
80759         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
80760         lib/setenv.h.
80761         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
80762         (Depends-on): Add stdlib.
80763         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
80764         gl_FUNC_UNSETENV.
80765         (Include): Replace setenv.h with <stdlib.h>.
80766         * modules/unsetenv: New file.
80767         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
80768         * lib/unsetenv.c: Include <stdlib.h> first.
80769         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
80770         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
80771         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
80772         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
80773         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
80774         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
80775         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
80776         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
80777         * doc/functions/unsetenv.texi: Update.
80778         * modules/xsetenv (Depends-on): Add unsetenv.
80779         * modules/getdate (Depends-on): Likewise.
80780         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
80781         * lib/xsetenv.c: Don't include setenv.h.
80782         * lib/getdate.y: Likewise.
80783         * lib/relocwrapper.c: Likewise.
80784         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
80785         (Depends-on): Add stdlib.
80786         * NEWS: Mention the changes.
80787         Reported by Левашев Иван <octagram@bluebottle.com>.
80789 2007-12-23  Bruno Haible  <bruno@clisp.org>
80791         * lib/memmem.c (memmem): Use lowercase variable names. Tab
80792         indentation.
80794 2007-12-23  Bruno Haible  <bruno@clisp.org>
80796         * lib/c-strcasestr.c: Add more comments.
80797         * lib/c-strstr.c: Likewise.
80798         * lib/mbscasestr.c: Likewise.
80799         * lib/mbsstr.c: Likewise.
80800         * lib/strcasestr.c: Likewise.
80801         * lib/memmem.c: Likewise.
80803 2007-12-23  Bruno Haible  <bruno@clisp.org>
80805         * tests/test-memmem.c: Include <string.h> first.
80807 2007-12-22  Bruno Haible  <bruno@clisp.org>
80809         * gnulib-tool (func_create_testdir): Change $auxdir while generating
80810         the contents of $testsbase.
80811         Reported by Ralf Wildenhues.
80813 2007-12-22  Bruno Haible  <bruno@clisp.org>
80815         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
80816         two variables local_ldadd_before, local_ldadd_last.
80818 2007-12-20  Eric Blake  <ebb9@byu.net>
80820         Work around circular library issue when cross-compiling.
80821         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
80822         that progname.o does not need to pull in rpl_memcmp.
80824 2007-12-19  Eric Blake  <ebb9@byu.net>
80826         Fix memmem to avoid O(n^2) worst-case complexity.
80827         * lib/memmem.c (knuth_morris_pratt): New function.
80828         (memmem): Use it if first few naive iterations fail.
80829         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
80830         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
80831         * modules/memchr (License): Likewise.
80832         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
80833         malloca.
80834         * tests/test-memmem.c: Rewrite, borrowing ideas from
80835         test-mbsstr1.c; the old version wouldn't even compile!
80836         * modules/memmem-tests: New file.
80837         * lib/string.in.h (rpl_memmem): Add declaration.
80838         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
80839         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
80840         REPLACE_MEMMEM.
80842 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
80844         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
80845         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
80846         before any system include files, and undef after them all.  This
80847         should fix a problem on VMS reported by John E. Malmberg in
80848         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
80850 2007-12-17  Eric Blake  <ebb9@byu.net>
80852         Revert addition of verify, for BSD/OS.
80853         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
80854         can't handle large files, for the sake of obsolete platforms.
80855         * modules/fseeko (Depends-on): Remove verify.
80856         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
80857         * doc/functions/ftello.texi (ftello): Likewise.
80858         * doc/functions/fgetpos.texi (fgetpos): Likewise.
80859         Reported by Larry Jones.
80861 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
80863         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
80864         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
80866 2007-12-17  Jim Meyering  <meyering@redhat.com>
80868         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
80869         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
80870         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
80871         * modules/getcwd (Depends-on): Add openat.
80872         Reported by Petr Salinger.
80874 2007-12-17  Bruno Haible  <bruno@clisp.org>
80876         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
80877         avoid a segmentation fault of the configure test on x86_64 systems.
80879 2007-12-15  Jim Meyering  <meyering@redhat.com>
80881         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
80883 2007-12-13  Eric Blake  <ebb9@byu.net>
80885         Another fseek test.
80886         * tests/test-fseek.c (main): Also test ungetc handling.
80887         * tests/test-fseeko.c (main): Likewise.
80888         * modules/fseeko (Depends-on): Add verify.
80889         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
80890         large.
80891         Reported by Larry Jones.
80893         Fix fseeko on mingw.
80894         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
80895         seek.
80897         Beef up fseek tests.
80898         * tests/test-fseek.c (main): Also test eof handling.
80899         * tests/test-fseeko.c (main): Likewise.
80900         Reported by Larry Jones.
80902 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
80904         Fix fseeko on BSD-based platforms.
80905         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
80906         successful seek.
80908 2007-12-12  Eric Blake  <ebb9@byu.net>
80910         Allow circular dependency of separate libtests.a
80911         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
80912         when use_libtests.
80914 2007-12-11  Eric Blake  <ebb9@byu.net>
80916         Fix bug with -0.0L in previous patch.
80917         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
80918         * tests/test-isnan.c (main): Also test on zeroes.
80919         * tests/test-isnanf.c (main): Likewise.
80920         * tests/test-isnanl.h (main): Likewise.
80922         Detect pseudo-denormals on x86 even when cross-compiling.
80923         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
80924         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
80925         invalid bit patterns that happen to satisfy ==.
80927         Avoid link failures with separate libtests.a.
80928         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
80929         last, to satisfy circular dependencies.
80931 2007-12-11  Eric Blake  <ebb9@byu.net>
80932         and Bruno Haible  <bruno@clisp.org>
80934         Fix OpenBSD 4.0 <float.h> handling of long double.
80935         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
80936         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
80937         * doc/headers/float.texi (float.h): Document OpenBSD bug.
80939 2007-12-11  Jim Meyering  <meyering@redhat.com>
80941         * users.txt: Add libvirt.
80943         Support versions of autoconf prior to 2.59c.
80944         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
80945         if it is not already defined.
80947 2007-12-09  Bruno Haible  <bruno@clisp.org>
80949         Let 'gnulib-tool --import' collect sources needed for the tests in
80950         tests/ rather than in lib/.
80951         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
80952         argument. If true, add rules to generate libtests.a, and put libtests.a
80953         into $(LDADD). Consider source files in subdirectories and set
80954         uses_subdirs.
80955         (func_emit_initmacro_start, func_emit_initmacro_end,
80956         func_emit_initmacro_done): Pass all arguments explicitly.
80957         (func_import): Determine two module lists main_modules,
80958         testsrelated_modules. Determine use_libtests. Determine two variables
80959         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
80960         instead of just sed_transform_lib_file. Determine two variables
80961         main_files and testsrelated_files. Compute 'files' as the union of
80962         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
80963         func_add_or_update. In the generated gnulib-comp.m4, collect the
80964         object files for tests/ in different variables than those for lib/.
80965         Substitute LIBTESTS_LIBDEPS.
80966         (func_create_testdir): Combine the uses_subdirs results from
80967         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
80969 2007-12-09  Bruno Haible  <bruno@clisp.org>
80971         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
80972         the build-aux directory.
80974 2007-12-09  Bruno Haible  <bruno@clisp.org>
80976         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
80977         introduced on 2006-09-09.
80979 2007-12-07  Jim Meyering  <meyering@redhat.com>
80981         Let these macros work also with autoconf-2.59.
80982         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
80983         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
80984         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
80986 2007-12-06  Jim Meyering  <meyering@redhat.com>
80988         Avoid a configure-time syntax error in gl_FUNC_ACL.
80989         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
80990         function in each branch, before testing the cache variable.
80992 2007-12-04  Eric Blake  <ebb9@byu.net>
80994         Make scripts executable.
80995         * build-aux/config.guess: Add execute permissions.
80996         * build-aux/config.sub: Likewise.
80997         * build-aux/gendocs.sh: Likewise.
80999         Fix frexp on mingw.
81000         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
81001         cross-compiling.
81002         * doc/functions/frexp.texi (frexp): Document the bug.
81004         Make cygwin fseeko check more reliable.
81005         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
81006         version numbers, rather than unrelated feature check.
81007         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
81008         * doc/functions/ftello.texi (ftello): Likewise.
81009         Reported by Bruno Haible.
81011         * m4/strerror.m4: Bump version number.
81013 2007-12-03  Bruno Haible  <bruno@clisp.org>
81015         * doc/functions/mprotect.texi: Mention the mingw problem.
81017 2007-12-03  Eric Blake  <ebb9@byu.net>
81019         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
81020         REPLACE_STRERROR is initialized before this macro.
81022 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
81024         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
81025         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
81026         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
81027         put -lsec in even for programs other than 'ls'.  This fixes a problem
81028         for gettext reported by Bruno Haible in
81029         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
81030         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
81031         Add support for Solaris 10.  This isn't efficient, but should get the
81032         job done for now.
81034 2007-12-03  James Youngman  <jay@gnu.org>
81036         * doc/regexprops-generic.texi: change "an close-group" to "a
81037         close-group" and "illegal" to "not allowed".
81039 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81041         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
81042         pr_byname.h. Needed for the rare case when the maintainer has done
81043         "make maintainer-clean" in the source directory and then attempts a
81044         build outside the source directory.
81045         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
81046         scripts_byname.h.
81048 2007-12-02  Martin Lambers  <marlam@marlam.de>
81049             Bruno Haible  <bruno@clisp.org>
81051         * lib/getpagesize.h: Remove file.
81052         * lib/unistd.in.h: Include declaration of getpagesize here.
81053         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
81054         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
81055         HAVE_SYS_PARAM_H.
81056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
81057         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
81058         * modules/getpagesize (Files): Remove lib/getpagesize.h.
81059         (Depends-on): Add unistd.
81060         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
81061         (Include): Use <unistd.h> instead of getpagesize.h.
81062         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
81063         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
81064         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
81065         gl_GETPAGESIZE invocation, already handled by module dependency.
81066         * lib/pagealign_alloc.c: Don't include getpagesize.h.
81068 2007-12-02  Bruno Haible  <bruno@clisp.org>
81070         * modules/strings-tests: New file.
81071         * tests/test-strings.c: New file.
81073         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
81074         * lib/strings.in.h: New file.
81075         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
81076         * m4/strings_h.m4: New file.
81077         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
81078         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
81079         * modules/strings: New file.
81080         * modules/string (Makefile.am): Update.
81081         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
81082         Reported by Karl Berry.
81084 2007-12-01  Eric Blake  <ebb9@byu.net>
81086         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
81087         accommodate fix in cygwin 1.5.25.
81089 2007-12-01  Jim Meyering  <meyering@redhat.com>
81091         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
81092         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
81093         that would inhibit utf8-optimization of a regexp containing line-
81094         or buffer-anchors, e.g., `^', `$'.
81096 2007-11-30  Bruno Haible  <bruno@clisp.org>
81098         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
81099         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
81100         glthread_recursive_lock_init.
81101         * lib/lock.c (glthread_recursive_lock_init)
81102         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
81103         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81105 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
81107         New function qset_acl, like set_acl but with syscall semantics.
81108         * lib/acl.h (qset_acl): New decl.
81109         * lib/acl.c (qset_acl): New function.
81110         (set_acl): Use new function.  Use more-consistent diagnostics.
81112 2007-11-28  Jim Meyering  <meyering@redhat.com>
81114         * modules/physmem (License): Change from GPL to LGPLv2+.
81116 2007-11-26  Bruno Haible  <bruno@clisp.org>
81118         * lib/vasnprintf.c (decode_long_double): Don't abort if the
81119         'long double' type has excess precision.
81120         Reported by Jim Meyering in
81121         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
81123 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81125         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
81126         Sync from <http://gnu.org/licenses>.
81127         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
81128         with license text from same location.
81129         * doc/maintain.texi, doc/standards.texi:  Sync from
81130         <http://savannah.gnu.org/projects/gnustandards>.
81132 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
81133         and Jim Meyering  <meyering@redhat.com>
81135         Adjust getdate' grammar to accept a slightly more regular language.
81136         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
81137         Before, the former was rejected.
81138         * lib/getdate.y (digits_to_date_time): New function, factored
81139         out of ...
81140         (number): ...here.  Just call digits_to_date_time.
81141         (hybrid): New non-terminal to handle an <unsigned number,
81142         signed relative offset> sequence consistently.
81144 2007-11-18  Jim Meyering  <meyering@redhat.com>
81146         Pull my changes from coreutils:
81147         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
81148         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
81149         use of $gnulib_tool_option_extras, so that it's separated from the
81150         preceding argument.
81152         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
81153         * build-aux/bootstrap (cp_mark_as_generated): Create any required
81154         parent destination directories before copying a file into place.
81156 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
81158         bootstrap: work also with 4-argument variant of AC_INIT
81159         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
81161 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81163         Port test-getaddrinfo to Solaris.
81164         Problem reported by Bruno Haible in
81165         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
81166         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
81167         explanation of setting 'hints'.
81168         Don't reject an implementation merely because it returns EAI_SERVICE.
81169         (EAI_SERVICE): Define to 0 if not defined.
81171 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
81173         The license of gnu-make and posix-shell is now "GPLed build tool".
81174         * modules/gnu-make (License): Likewise.
81175         * modules/posix-shell (License): Likewise.
81177         New module posix-shell, for determining a POSIX shell
81178         or perhaps something that is close enough to a POSIX shell.
81179         * m4/posix-shell.m4: New file.
81180         * modules/posix-shell: New file.
81182         * MODULES.html.sh: Mention new module.
81184         New module gnu-make, for determining whether we're using GNU Make.
81185         * m4/gnu-make.m4: New file.
81186         * modules/gnu-make: New file.
81187         * MODULES.html.sh: Mention new module.
81189 2007-11-14  Jim Meyering  <meyering@redhat.com>
81191         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
81192         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
81193         use this macro to create a function _definition_.
81194         Remove useless "#undef ARGMATCH_DIE".
81196 2007-11-14  Bruno Haible  <bruno@clisp.org>
81198         * lib/config.charset: Update for OpenBSD 4.1.
81199         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
81201 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
81203         Document 64-bit #if problems in stdint.texi.
81204         * doc/headers/stdint.texi (stdint.h): Mention problems with
81205         64-bit-#if, and how to work around them.
81207         Don't insist on 'long long int' support in the preprocessor.  It
81208         breaks too many things.  For example, PRIdMAX still uses a 'long
81209         long int' format with the latest Sun compiler, even though
81210         HAVE_LONG_LONG_INT isn't defined due to that compiler's
81211         preprocessor problem.  This causes the latest coreutils to dump
81212         core on Solaris 10 sparc with the Sun C compiler.
81213         Instead, fix the 2007-10-16 problem in a different way, by evaluating
81214         the troublesome expressions at configure-time, not at #if-time.
81215         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
81216         preprocessor.
81217         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
81218         compile-time C checks, done at 'configure'-time.
81219         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
81220         * modules/inttypes (Makefile): Substitute the new symbols that
81221         gl_INTTYPES_H now generates.
81222         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
81224 2007-11-12  Bruno Haible  <bruno@clisp.org>
81226         Tests for Unicode character classification functions.
81228         * modules/unictype/bidicategory-byname-tests: New file.
81229         * modules/unictype/bidicategory-name-tests: New file.
81230         * modules/unictype/bidicategory-of-tests: New file.
81231         * modules/unictype/bidicategory-test-tests: New file.
81232         * modules/unictype/block-list-tests: New file.
81233         * modules/unictype/block-of-tests: New file.
81234         * modules/unictype/block-test-tests: New file.
81235         * modules/unictype/category-C-tests: New file.
81236         * modules/unictype/category-Cc-tests: New file.
81237         * modules/unictype/category-Cf-tests: New file.
81238         * modules/unictype/category-Cn-tests: New file.
81239         * modules/unictype/category-Co-tests: New file.
81240         * modules/unictype/category-Cs-tests: New file.
81241         * modules/unictype/category-L-tests: New file.
81242         * modules/unictype/category-Ll-tests: New file.
81243         * modules/unictype/category-Lm-tests: New file.
81244         * modules/unictype/category-Lo-tests: New file.
81245         * modules/unictype/category-Lt-tests: New file.
81246         * modules/unictype/category-Lu-tests: New file.
81247         * modules/unictype/category-M-tests: New file.
81248         * modules/unictype/category-Mc-tests: New file.
81249         * modules/unictype/category-Me-tests: New file.
81250         * modules/unictype/category-Mn-tests: New file.
81251         * modules/unictype/category-N-tests: New file.
81252         * modules/unictype/category-Nd-tests: New file.
81253         * modules/unictype/category-Nl-tests: New file.
81254         * modules/unictype/category-No-tests: New file.
81255         * modules/unictype/category-P-tests: New file.
81256         * modules/unictype/category-Pc-tests: New file.
81257         * modules/unictype/category-Pd-tests: New file.
81258         * modules/unictype/category-Pe-tests: New file.
81259         * modules/unictype/category-Pf-tests: New file.
81260         * modules/unictype/category-Pi-tests: New file.
81261         * modules/unictype/category-Po-tests: New file.
81262         * modules/unictype/category-Ps-tests: New file.
81263         * modules/unictype/category-S-tests: New file.
81264         * modules/unictype/category-Sc-tests: New file.
81265         * modules/unictype/category-Sk-tests: New file.
81266         * modules/unictype/category-Sm-tests: New file.
81267         * modules/unictype/category-So-tests: New file.
81268         * modules/unictype/category-Z-tests: New file.
81269         * modules/unictype/category-Zl-tests: New file.
81270         * modules/unictype/category-Zp-tests: New file.
81271         * modules/unictype/category-Zs-tests: New file.
81272         * modules/unictype/category-and-not-tests: New file.
81273         * modules/unictype/category-and-tests: New file.
81274         * modules/unictype/category-byname-tests: New file.
81275         * modules/unictype/category-name-tests: New file.
81276         * modules/unictype/category-none-tests: New file.
81277         * modules/unictype/category-of-tests: New file.
81278         * modules/unictype/category-or-tests: New file.
81279         * modules/unictype/category-test-withtable-tests: New file.
81280         * modules/unictype/combining-class-tests: New file.
81281         * modules/unictype/ctype-alnum-tests: New file.
81282         * modules/unictype/ctype-alpha-tests: New file.
81283         * modules/unictype/ctype-blank-tests: New file.
81284         * modules/unictype/ctype-cntrl-tests: New file.
81285         * modules/unictype/ctype-digit-tests: New file.
81286         * modules/unictype/ctype-graph-tests: New file.
81287         * modules/unictype/ctype-lower-tests: New file.
81288         * modules/unictype/ctype-print-tests: New file.
81289         * modules/unictype/ctype-punct-tests: New file.
81290         * modules/unictype/ctype-space-tests: New file.
81291         * modules/unictype/ctype-upper-tests: New file.
81292         * modules/unictype/ctype-xdigit-tests: New file.
81293         * modules/unictype/decimal-digit-tests: New file.
81294         * modules/unictype/digit-tests: New file.
81295         * modules/unictype/mirror-tests: New file.
81296         * modules/unictype/numeric-tests: New file.
81297         * modules/unictype/property-alphabetic-tests: New file.
81298         * modules/unictype/property-ascii-hex-digit-tests: New file.
81299         * modules/unictype/property-bidi-arabic-digit-tests: New file.
81300         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
81301         * modules/unictype/property-bidi-block-separator-tests: New file.
81302         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
81303         * modules/unictype/property-bidi-common-separator-tests: New file.
81304         * modules/unictype/property-bidi-control-tests: New file.
81305         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
81306         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
81307         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
81308         * modules/unictype/property-bidi-european-digit-tests: New file.
81309         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
81310         * modules/unictype/property-bidi-left-to-right-tests: New file.
81311         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
81312         * modules/unictype/property-bidi-other-neutral-tests: New file.
81313         * modules/unictype/property-bidi-pdf-tests: New file.
81314         * modules/unictype/property-bidi-segment-separator-tests: New file.
81315         * modules/unictype/property-bidi-whitespace-tests: New file.
81316         * modules/unictype/property-byname-tests: New file.
81317         * modules/unictype/property-combining-tests: New file.
81318         * modules/unictype/property-composite-tests: New file.
81319         * modules/unictype/property-currency-symbol-tests: New file.
81320         * modules/unictype/property-dash-tests: New file.
81321         * modules/unictype/property-decimal-digit-tests: New file.
81322         * modules/unictype/property-default-ignorable-code-point-tests: New file.
81323         * modules/unictype/property-deprecated-tests: New file.
81324         * modules/unictype/property-diacritic-tests: New file.
81325         * modules/unictype/property-extender-tests: New file.
81326         * modules/unictype/property-format-control-tests: New file.
81327         * modules/unictype/property-grapheme-base-tests: New file.
81328         * modules/unictype/property-grapheme-extend-tests: New file.
81329         * modules/unictype/property-grapheme-link-tests: New file.
81330         * modules/unictype/property-hex-digit-tests: New file.
81331         * modules/unictype/property-hyphen-tests: New file.
81332         * modules/unictype/property-id-continue-tests: New file.
81333         * modules/unictype/property-id-start-tests: New file.
81334         * modules/unictype/property-ideographic-tests: New file.
81335         * modules/unictype/property-ids-binary-operator-tests: New file.
81336         * modules/unictype/property-ids-trinary-operator-tests: New file.
81337         * modules/unictype/property-ignorable-control-tests: New file.
81338         * modules/unictype/property-iso-control-tests: New file.
81339         * modules/unictype/property-join-control-tests: New file.
81340         * modules/unictype/property-left-of-pair-tests: New file.
81341         * modules/unictype/property-line-separator-tests: New file.
81342         * modules/unictype/property-logical-order-exception-tests: New file.
81343         * modules/unictype/property-lowercase-tests: New file.
81344         * modules/unictype/property-math-tests: New file.
81345         * modules/unictype/property-non-break-tests: New file.
81346         * modules/unictype/property-not-a-character-tests: New file.
81347         * modules/unictype/property-numeric-tests: New file.
81348         * modules/unictype/property-other-alphabetic-tests: New file.
81349         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
81350         * modules/unictype/property-other-grapheme-extend-tests: New file.
81351         * modules/unictype/property-other-id-continue-tests: New file.
81352         * modules/unictype/property-other-id-start-tests: New file.
81353         * modules/unictype/property-other-lowercase-tests: New file.
81354         * modules/unictype/property-other-math-tests: New file.
81355         * modules/unictype/property-other-uppercase-tests: New file.
81356         * modules/unictype/property-paired-punctuation-tests: New file.
81357         * modules/unictype/property-paragraph-separator-tests: New file.
81358         * modules/unictype/property-pattern-syntax-tests: New file.
81359         * modules/unictype/property-pattern-white-space-tests: New file.
81360         * modules/unictype/property-private-use-tests: New file.
81361         * modules/unictype/property-punctuation-tests: New file.
81362         * modules/unictype/property-quotation-mark-tests: New file.
81363         * modules/unictype/property-radical-tests: New file.
81364         * modules/unictype/property-sentence-terminal-tests: New file.
81365         * modules/unictype/property-soft-dotted-tests: New file.
81366         * modules/unictype/property-space-tests: New file.
81367         * modules/unictype/property-terminal-punctuation-tests: New file.
81368         * modules/unictype/property-test-tests: New file.
81369         * modules/unictype/property-titlecase-tests: New file.
81370         * modules/unictype/property-unassigned-code-value-tests: New file.
81371         * modules/unictype/property-unified-ideograph-tests: New file.
81372         * modules/unictype/property-uppercase-tests: New file.
81373         * modules/unictype/property-variation-selector-tests: New file.
81374         * modules/unictype/property-white-space-tests: New file.
81375         * modules/unictype/property-xid-continue-tests: New file.
81376         * modules/unictype/property-xid-start-tests: New file.
81377         * modules/unictype/property-zero-width-tests: New file.
81378         * modules/unictype/scripts-tests: New file.
81379         * modules/unictype/syntax-c-ident-tests: New file.
81380         * modules/unictype/syntax-c-whitespace-tests: New file.
81381         * modules/unictype/syntax-java-ident-tests: New file.
81382         * modules/unictype/syntax-java-whitespace-tests: New file.
81383         * tests/unictype/test-bidi_byname.c: New file.
81384         * tests/unictype/test-bidi_name.c: New file.
81385         * tests/unictype/test-bidi_of.c: New file.
81386         * tests/unictype/test-bidi_test.c: New file.
81387         * tests/unictype/test-block_list.c: New file.
81388         * tests/unictype/test-block_of.c: New file.
81389         * tests/unictype/test-block_test.c: New file.
81390         * tests/unictype/test-categ_and.c: New file.
81391         * tests/unictype/test-categ_and_not.c: New file.
81392         * tests/unictype/test-categ_byname.c: New file.
81393         * tests/unictype/test-categ_name.c: New file.
81394         * tests/unictype/test-categ_none.c: New file.
81395         * tests/unictype/test-categ_of.c: New file.
81396         * tests/unictype/test-categ_or.c: New file.
81397         * tests/unictype/test-categ_test_withtable.c: New file.
81398         * tests/unictype/test-combining.c: New file.
81399         * tests/unictype/test-decdigit.c: New file.
81400         * tests/unictype/test-digit.c: New file.
81401         * tests/unictype/test-mirror.c: New file.
81402         * tests/unictype/test-numeric.c: New file.
81403         * tests/unictype/test-pr_byname.c: New file.
81404         * tests/unictype/test-pr_test.c: New file.
81405         * tests/unictype/test-predicate-part1.h: New file.
81406         * tests/unictype/test-predicate-part2.h: New file.
81407         * tests/unictype/test-scripts.c: New file.
81408         * tests/unictype/test-sy_c_ident.c: New file.
81409         * tests/unictype/test-sy_java_ident.c: New file.
81411         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
81412         for Unicode 5.0.0.
81413         * tests/unictype/test-categ_Cc.c: Likewise.
81414         * tests/unictype/test-categ_Cf.c: Likewise.
81415         * tests/unictype/test-categ_Cn.c: Likewise.
81416         * tests/unictype/test-categ_Co.c: Likewise.
81417         * tests/unictype/test-categ_Cs.c: Likewise.
81418         * tests/unictype/test-categ_L.c: Likewise.
81419         * tests/unictype/test-categ_Ll.c: Likewise.
81420         * tests/unictype/test-categ_Lm.c: Likewise.
81421         * tests/unictype/test-categ_Lo.c: Likewise.
81422         * tests/unictype/test-categ_Lt.c: Likewise.
81423         * tests/unictype/test-categ_Lu.c: Likewise.
81424         * tests/unictype/test-categ_M.c: Likewise.
81425         * tests/unictype/test-categ_Mc.c: Likewise.
81426         * tests/unictype/test-categ_Me.c: Likewise.
81427         * tests/unictype/test-categ_Mn.c: Likewise.
81428         * tests/unictype/test-categ_N.c: Likewise.
81429         * tests/unictype/test-categ_Nd.c: Likewise.
81430         * tests/unictype/test-categ_Nl.c: Likewise.
81431         * tests/unictype/test-categ_No.c: Likewise.
81432         * tests/unictype/test-categ_P.c: Likewise.
81433         * tests/unictype/test-categ_Pc.c: Likewise.
81434         * tests/unictype/test-categ_Pd.c: Likewise.
81435         * tests/unictype/test-categ_Pe.c: Likewise.
81436         * tests/unictype/test-categ_Pf.c: Likewise.
81437         * tests/unictype/test-categ_Pi.c: Likewise.
81438         * tests/unictype/test-categ_Po.c: Likewise.
81439         * tests/unictype/test-categ_Ps.c: Likewise.
81440         * tests/unictype/test-categ_S.c: Likewise.
81441         * tests/unictype/test-categ_Sc.c: Likewise.
81442         * tests/unictype/test-categ_Sk.c: Likewise.
81443         * tests/unictype/test-categ_Sm.c: Likewise.
81444         * tests/unictype/test-categ_So.c: Likewise.
81445         * tests/unictype/test-categ_Z.c: Likewise.
81446         * tests/unictype/test-categ_Zl.c: Likewise.
81447         * tests/unictype/test-categ_Zp.c: Likewise.
81448         * tests/unictype/test-categ_Zs.c: Likewise.
81449         * tests/unictype/test-ctype_alnum.c: Likewise.
81450         * tests/unictype/test-ctype_alpha.c: Likewise.
81451         * tests/unictype/test-ctype_blank.c: Likewise.
81452         * tests/unictype/test-ctype_cntrl.c: Likewise.
81453         * tests/unictype/test-ctype_digit.c: Likewise.
81454         * tests/unictype/test-ctype_graph.c: Likewise.
81455         * tests/unictype/test-ctype_lower.c: Likewise.
81456         * tests/unictype/test-ctype_print.c: Likewise.
81457         * tests/unictype/test-ctype_punct.c: Likewise.
81458         * tests/unictype/test-ctype_space.c: Likewise.
81459         * tests/unictype/test-ctype_upper.c: Likewise.
81460         * tests/unictype/test-ctype_xdigit.c: Likewise.
81461         * tests/unictype/test-decdigit.h: Likewise.
81462         * tests/unictype/test-digit.h: Likewise.
81463         * tests/unictype/test-numeric.h: Likewise.
81464         * tests/unictype/test-pr_alphabetic.c: Likewise.
81465         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
81466         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
81467         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
81468         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
81469         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
81470         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
81471         * tests/unictype/test-pr_bidi_control.c: Likewise.
81472         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
81473         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
81474         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
81475         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
81476         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
81477         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
81478         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
81479         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
81480         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
81481         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
81482         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
81483         * tests/unictype/test-pr_combining.c: Likewise.
81484         * tests/unictype/test-pr_composite.c: Likewise.
81485         * tests/unictype/test-pr_currency_symbol.c: Likewise.
81486         * tests/unictype/test-pr_dash.c: Likewise.
81487         * tests/unictype/test-pr_decimal_digit.c: Likewise.
81488         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
81489         * tests/unictype/test-pr_deprecated.c: Likewise.
81490         * tests/unictype/test-pr_diacritic.c: Likewise.
81491         * tests/unictype/test-pr_extender.c: Likewise.
81492         * tests/unictype/test-pr_format_control.c: Likewise.
81493         * tests/unictype/test-pr_grapheme_base.c: Likewise.
81494         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
81495         * tests/unictype/test-pr_grapheme_link.c: Likewise.
81496         * tests/unictype/test-pr_hex_digit.c: Likewise.
81497         * tests/unictype/test-pr_hyphen.c: Likewise.
81498         * tests/unictype/test-pr_id_continue.c: Likewise.
81499         * tests/unictype/test-pr_id_start.c: Likewise.
81500         * tests/unictype/test-pr_ideographic.c: Likewise.
81501         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
81502         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
81503         * tests/unictype/test-pr_ignorable_control.c: Likewise.
81504         * tests/unictype/test-pr_iso_control.c: Likewise.
81505         * tests/unictype/test-pr_join_control.c: Likewise.
81506         * tests/unictype/test-pr_left_of_pair.c: Likewise.
81507         * tests/unictype/test-pr_line_separator.c: Likewise.
81508         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
81509         * tests/unictype/test-pr_lowercase.c: Likewise.
81510         * tests/unictype/test-pr_math.c: Likewise.
81511         * tests/unictype/test-pr_non_break.c: Likewise.
81512         * tests/unictype/test-pr_not_a_character.c: Likewise.
81513         * tests/unictype/test-pr_numeric.c: Likewise.
81514         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
81515         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
81516         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
81517         * tests/unictype/test-pr_other_id_continue.c: Likewise.
81518         * tests/unictype/test-pr_other_id_start.c: Likewise.
81519         * tests/unictype/test-pr_other_lowercase.c: Likewise.
81520         * tests/unictype/test-pr_other_math.c: Likewise.
81521         * tests/unictype/test-pr_other_uppercase.c: Likewise.
81522         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
81523         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
81524         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
81525         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
81526         * tests/unictype/test-pr_private_use.c: Likewise.
81527         * tests/unictype/test-pr_punctuation.c: Likewise.
81528         * tests/unictype/test-pr_quotation_mark.c: Likewise.
81529         * tests/unictype/test-pr_radical.c: Likewise.
81530         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
81531         * tests/unictype/test-pr_soft_dotted.c: Likewise.
81532         * tests/unictype/test-pr_space.c: Likewise.
81533         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
81534         * tests/unictype/test-pr_titlecase.c: Likewise.
81535         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
81536         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
81537         * tests/unictype/test-pr_uppercase.c: Likewise.
81538         * tests/unictype/test-pr_variation_selector.c: Likewise.
81539         * tests/unictype/test-pr_white_space.c: Likewise.
81540         * tests/unictype/test-pr_xid_continue.c: Likewise.
81541         * tests/unictype/test-pr_xid_start.c: Likewise.
81542         * tests/unictype/test-pr_zero_width.c: Likewise.
81543         * tests/unictype/test-sy_c_whitespace.c: Likewise.
81544         * tests/unictype/test-sy_java_whitespace.c: Likewise.
81546 2007-11-12  Bruno Haible  <bruno@clisp.org>
81548         Unicode character classification functions.
81549         * lib/unictype.h: New file.
81550         * modules/unictype/base: New file.
81551         * modules/unictype/category-L: New file.
81552         * modules/unictype/category-Lu: New file.
81553         * modules/unictype/category-Ll: New file.
81554         * modules/unictype/category-Lt: New file.
81555         * modules/unictype/category-Lm: New file.
81556         * modules/unictype/category-Lo: New file.
81557         * modules/unictype/category-M: New file.
81558         * modules/unictype/category-Mn: New file.
81559         * modules/unictype/category-Mc: New file.
81560         * modules/unictype/category-Me: New file.
81561         * modules/unictype/category-N: New file.
81562         * modules/unictype/category-Nd: New file.
81563         * modules/unictype/category-Nl: New file.
81564         * modules/unictype/category-No: New file.
81565         * modules/unictype/category-P: New file.
81566         * modules/unictype/category-Pc: New file.
81567         * modules/unictype/category-Pd: New file.
81568         * modules/unictype/category-Ps: New file.
81569         * modules/unictype/category-Pe: New file.
81570         * modules/unictype/category-Pi: New file.
81571         * modules/unictype/category-Pf: New file.
81572         * modules/unictype/category-Po: New file.
81573         * modules/unictype/category-S: New file.
81574         * modules/unictype/category-Sm: New file.
81575         * modules/unictype/category-Sc: New file.
81576         * modules/unictype/category-Sk: New file.
81577         * modules/unictype/category-So: New file.
81578         * modules/unictype/category-Z: New file.
81579         * modules/unictype/category-Zs: New file.
81580         * modules/unictype/category-Zl: New file.
81581         * modules/unictype/category-Zp: New file.
81582         * modules/unictype/category-C: New file.
81583         * modules/unictype/category-Cc: New file.
81584         * modules/unictype/category-Cf: New file.
81585         * modules/unictype/category-Cs: New file.
81586         * modules/unictype/category-Co: New file.
81587         * modules/unictype/category-Cn: New file.
81588         * modules/unictype/category-or: New file.
81589         * modules/unictype/category-of: New file.
81590         * modules/unictype/category-test: New file.
81591         * modules/unictype/category-test-withtable: New file.
81592         * modules/unictype/category-byname: New file.
81593         * modules/unictype/category-none: New file.
81594         * modules/unictype/category-and: New file.
81595         * modules/unictype/category-and-not: New file.
81596         * modules/unictype/category-name: New file.
81597         * modules/unictype/combining-class: New file.
81598         * modules/unictype/category-all: New file.
81599         * modules/unictype/bidicategory-all: New file.
81600         * modules/unictype/bidicategory-byname: New file.
81601         * modules/unictype/bidicategory-name: New file.
81602         * modules/unictype/bidicategory-of: New file.
81603         * modules/unictype/bidicategory-test: New file.
81604         * modules/unictype/decimal-digit: New file.
81605         * modules/unictype/digit: New file.
81606         * modules/unictype/numeric: New file.
81607         * modules/unictype/mirror: New file.
81608         * modules/unictype/property-white-space: New file.
81609         * modules/unictype/property-alphabetic: New file.
81610         * modules/unictype/property-other-alphabetic: New file.
81611         * modules/unictype/property-not-a-character: New file.
81612         * modules/unictype/property-default-ignorable-code-point: New file.
81613         * modules/unictype/property-other-default-ignorable-code-point: New
81614         file.
81615         * modules/unictype/property-deprecated: New file.
81616         * modules/unictype/property-logical-order-exception: New file.
81617         * modules/unictype/property-variation-selector: New file.
81618         * modules/unictype/property-private-use: New file.
81619         * modules/unictype/property-unassigned-code-value: New file.
81620         * modules/unictype/property-uppercase: New file.
81621         * modules/unictype/property-other-uppercase: New file.
81622         * modules/unictype/property-lowercase: New file.
81623         * modules/unictype/property-other-lowercase: New file.
81624         * modules/unictype/property-titlecase: New file.
81625         * modules/unictype/property-soft-dotted: New file.
81626         * modules/unictype/property-id-start: New file.
81627         * modules/unictype/property-other-id-start: New file.
81628         * modules/unictype/property-id-continue: New file.
81629         * modules/unictype/property-other-id-continue: New file.
81630         * modules/unictype/property-xid-start: New file.
81631         * modules/unictype/property-xid-continue: New file.
81632         * modules/unictype/property-pattern-white-space: New file.
81633         * modules/unictype/property-pattern-syntax: New file.
81634         * modules/unictype/property-join-control: New file.
81635         * modules/unictype/property-grapheme-base: New file.
81636         * modules/unictype/property-grapheme-extend: New file.
81637         * modules/unictype/property-other-grapheme-extend: New file.
81638         * modules/unictype/property-grapheme-link: New file.
81639         * modules/unictype/property-bidi-control: New file.
81640         * modules/unictype/property-bidi-left-to-right: New file.
81641         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
81642         * modules/unictype/property-bidi-arabic-right-to-left: New file.
81643         * modules/unictype/property-bidi-european-digit: New file.
81644         * modules/unictype/property-bidi-eur-num-separator: New file.
81645         * modules/unictype/property-bidi-eur-num-terminator: New file.
81646         * modules/unictype/property-bidi-arabic-digit: New file.
81647         * modules/unictype/property-bidi-common-separator: New file.
81648         * modules/unictype/property-bidi-block-separator: New file.
81649         * modules/unictype/property-bidi-segment-separator: New file.
81650         * modules/unictype/property-bidi-whitespace: New file.
81651         * modules/unictype/property-bidi-non-spacing-mark: New file.
81652         * modules/unictype/property-bidi-boundary-neutral: New file.
81653         * modules/unictype/property-bidi-pdf: New file.
81654         * modules/unictype/property-bidi-embedding-or-override: New file.
81655         * modules/unictype/property-bidi-other-neutral: New file.
81656         * modules/unictype/property-hex-digit: New file.
81657         * modules/unictype/property-ascii-hex-digit: New file.
81658         * modules/unictype/property-ideographic: New file.
81659         * modules/unictype/property-unified-ideograph: New file.
81660         * modules/unictype/property-radical: New file.
81661         * modules/unictype/property-ids-binary-operator: New file.
81662         * modules/unictype/property-ids-trinary-operator: New file.
81663         * modules/unictype/property-zero-width: New file.
81664         * modules/unictype/property-space: New file.
81665         * modules/unictype/property-non-break: New file.
81666         * modules/unictype/property-iso-control: New file.
81667         * modules/unictype/property-format-control: New file.
81668         * modules/unictype/property-dash: New file.
81669         * modules/unictype/property-hyphen: New file.
81670         * modules/unictype/property-punctuation: New file.
81671         * modules/unictype/property-line-separator: New file.
81672         * modules/unictype/property-paragraph-separator: New file.
81673         * modules/unictype/property-quotation-mark: New file.
81674         * modules/unictype/property-sentence-terminal: New file.
81675         * modules/unictype/property-terminal-punctuation: New file.
81676         * modules/unictype/property-currency-symbol: New file.
81677         * modules/unictype/property-math: New file.
81678         * modules/unictype/property-other-math: New file.
81679         * modules/unictype/property-paired-punctuation: New file.
81680         * modules/unictype/property-left-of-pair: New file.
81681         * modules/unictype/property-combining: New file.
81682         * modules/unictype/property-composite: New file.
81683         * modules/unictype/property-decimal-digit: New file.
81684         * modules/unictype/property-numeric: New file.
81685         * modules/unictype/property-diacritic: New file.
81686         * modules/unictype/property-extender: New file.
81687         * modules/unictype/property-ignorable-control: New file.
81688         * modules/unictype/property-test: New file.
81689         * modules/unictype/property-byname: New file.
81690         * modules/unictype/property-all: New file.
81691         * modules/unictype/scripts: New file.
81692         * modules/unictype/scripts-all: New file.
81693         * modules/unictype/block-of: New file.
81694         * modules/unictype/block-test: New file.
81695         * modules/unictype/block-list: New file.
81696         * modules/unictype/block-all: New file.
81697         * modules/unictype/syntax-c-whitespace: New file.
81698         * modules/unictype/syntax-java-whitespace: New file.
81699         * modules/unictype/syntax-c-ident: New file.
81700         * modules/unictype/syntax-java-ident: New file.
81701         * modules/unictype/ctype-alnum: New file.
81702         * modules/unictype/ctype-alpha: New file.
81703         * modules/unictype/ctype-cntrl: New file.
81704         * modules/unictype/ctype-digit: New file.
81705         * modules/unictype/ctype-graph: New file.
81706         * modules/unictype/ctype-lower: New file.
81707         * modules/unictype/ctype-print: New file.
81708         * modules/unictype/ctype-punct: New file.
81709         * modules/unictype/ctype-space: New file.
81710         * modules/unictype/ctype-upper: New file.
81711         * modules/unictype/ctype-xdigit: New file.
81712         * modules/unictype/ctype-blank: New file.
81713         * lib/unictype/bidi_byname.c: New file.
81714         * lib/unictype/bidi_name.c: New file.
81715         * lib/unictype/bidi_of.c: New file.
81716         * lib/unictype/bidi_test.c: New file.
81717         * lib/unictype/bitmap.h: New file.
81718         * lib/unictype/block_test.c: New file.
81719         * lib/unictype/blocks.c: New file.
81720         * lib/unictype/categ_C.c: New file.
81721         * lib/unictype/categ_Cc.c: New file.
81722         * lib/unictype/categ_Cf.c: New file.
81723         * lib/unictype/categ_Cn.c: New file.
81724         * lib/unictype/categ_Co.c: New file.
81725         * lib/unictype/categ_Cs.c: New file.
81726         * lib/unictype/categ_L.c: New file.
81727         * lib/unictype/categ_Ll.c: New file.
81728         * lib/unictype/categ_Lm.c: New file.
81729         * lib/unictype/categ_Lo.c: New file.
81730         * lib/unictype/categ_Lt.c: New file.
81731         * lib/unictype/categ_Lu.c: New file.
81732         * lib/unictype/categ_M.c: New file.
81733         * lib/unictype/categ_Mc.c: New file.
81734         * lib/unictype/categ_Me.c: New file.
81735         * lib/unictype/categ_Mn.c: New file.
81736         * lib/unictype/categ_N.c: New file.
81737         * lib/unictype/categ_Nd.c: New file.
81738         * lib/unictype/categ_Nl.c: New file.
81739         * lib/unictype/categ_No.c: New file.
81740         * lib/unictype/categ_P.c: New file.
81741         * lib/unictype/categ_Pc.c: New file.
81742         * lib/unictype/categ_Pd.c: New file.
81743         * lib/unictype/categ_Pe.c: New file.
81744         * lib/unictype/categ_Pf.c: New file.
81745         * lib/unictype/categ_Pi.c: New file.
81746         * lib/unictype/categ_Po.c: New file.
81747         * lib/unictype/categ_Ps.c: New file.
81748         * lib/unictype/categ_S.c: New file.
81749         * lib/unictype/categ_Sc.c: New file.
81750         * lib/unictype/categ_Sk.c: New file.
81751         * lib/unictype/categ_Sm.c: New file.
81752         * lib/unictype/categ_So.c: New file.
81753         * lib/unictype/categ_Z.c: New file.
81754         * lib/unictype/categ_Zl.c: New file.
81755         * lib/unictype/categ_Zp.c: New file.
81756         * lib/unictype/categ_Zs.c: New file.
81757         * lib/unictype/categ_and.c: New file.
81758         * lib/unictype/categ_and_not.c: New file.
81759         * lib/unictype/categ_byname.c: New file.
81760         * lib/unictype/categ_name.c: New file.
81761         * lib/unictype/categ_none.c: New file.
81762         * lib/unictype/categ_of.c: New file.
81763         * lib/unictype/categ_or.c: New file.
81764         * lib/unictype/categ_test.c: New file.
81765         * lib/unictype/combining.c: New file.
81766         * lib/unictype/ctype_alnum.c: New file.
81767         * lib/unictype/ctype_alpha.c: New file.
81768         * lib/unictype/ctype_blank.c: New file.
81769         * lib/unictype/ctype_cntrl.c: New file.
81770         * lib/unictype/ctype_digit.c: New file.
81771         * lib/unictype/ctype_graph.c: New file.
81772         * lib/unictype/ctype_lower.c: New file.
81773         * lib/unictype/ctype_print.c: New file.
81774         * lib/unictype/ctype_punct.c: New file.
81775         * lib/unictype/ctype_space.c: New file.
81776         * lib/unictype/ctype_upper.c: New file.
81777         * lib/unictype/ctype_xdigit.c: New file.
81778         * lib/unictype/decdigit.c: New file.
81779         * lib/unictype/digit.c: New file.
81780         * lib/unictype/identsyntaxmap.h: New file.
81781         * lib/unictype/mirror.c: New file.
81782         * lib/unictype/numeric.c: New file.
81783         * lib/unictype/pr_alphabetic.c: New file.
81784         * lib/unictype/pr_ascii_hex_digit.c: New file.
81785         * lib/unictype/pr_bidi_arabic_digit.c: New file.
81786         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
81787         * lib/unictype/pr_bidi_block_separator.c: New file.
81788         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
81789         * lib/unictype/pr_bidi_common_separator.c: New file.
81790         * lib/unictype/pr_bidi_control.c: New file.
81791         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
81792         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
81793         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
81794         * lib/unictype/pr_bidi_european_digit.c: New file.
81795         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
81796         * lib/unictype/pr_bidi_left_to_right.c: New file.
81797         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
81798         * lib/unictype/pr_bidi_other_neutral.c: New file.
81799         * lib/unictype/pr_bidi_pdf.c: New file.
81800         * lib/unictype/pr_bidi_segment_separator.c: New file.
81801         * lib/unictype/pr_bidi_whitespace.c: New file.
81802         * lib/unictype/pr_byname.c: New file.
81803         * lib/unictype/pr_byname.gperf: New file.
81804         * lib/unictype/pr_combining.c: New file.
81805         * lib/unictype/pr_composite.c: New file.
81806         * lib/unictype/pr_currency_symbol.c: New file.
81807         * lib/unictype/pr_dash.c: New file.
81808         * lib/unictype/pr_decimal_digit.c: New file.
81809         * lib/unictype/pr_default_ignorable_code_point.c: New file.
81810         * lib/unictype/pr_deprecated.c: New file.
81811         * lib/unictype/pr_diacritic.c: New file.
81812         * lib/unictype/pr_extender.c: New file.
81813         * lib/unictype/pr_format_control.c: New file.
81814         * lib/unictype/pr_grapheme_base.c: New file.
81815         * lib/unictype/pr_grapheme_extend.c: New file.
81816         * lib/unictype/pr_grapheme_link.c: New file.
81817         * lib/unictype/pr_hex_digit.c: New file.
81818         * lib/unictype/pr_hyphen.c: New file.
81819         * lib/unictype/pr_id_continue.c: New file.
81820         * lib/unictype/pr_id_start.c: New file.
81821         * lib/unictype/pr_ideographic.c: New file.
81822         * lib/unictype/pr_ids_binary_operator.c: New file.
81823         * lib/unictype/pr_ids_trinary_operator.c: New file.
81824         * lib/unictype/pr_ignorable_control.c: New file.
81825         * lib/unictype/pr_iso_control.c: New file.
81826         * lib/unictype/pr_join_control.c: New file.
81827         * lib/unictype/pr_left_of_pair.c: New file.
81828         * lib/unictype/pr_line_separator.c: New file.
81829         * lib/unictype/pr_logical_order_exception.c: New file.
81830         * lib/unictype/pr_lowercase.c: New file.
81831         * lib/unictype/pr_math.c: New file.
81832         * lib/unictype/pr_non_break.c: New file.
81833         * lib/unictype/pr_not_a_character.c: New file.
81834         * lib/unictype/pr_numeric.c: New file.
81835         * lib/unictype/pr_other_alphabetic.c: New file.
81836         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
81837         * lib/unictype/pr_other_grapheme_extend.c: New file.
81838         * lib/unictype/pr_other_id_continue.c: New file.
81839         * lib/unictype/pr_other_id_start.c: New file.
81840         * lib/unictype/pr_other_lowercase.c: New file.
81841         * lib/unictype/pr_other_math.c: New file.
81842         * lib/unictype/pr_other_uppercase.c: New file.
81843         * lib/unictype/pr_paired_punctuation.c: New file.
81844         * lib/unictype/pr_paragraph_separator.c: New file.
81845         * lib/unictype/pr_pattern_syntax.c: New file.
81846         * lib/unictype/pr_pattern_white_space.c: New file.
81847         * lib/unictype/pr_private_use.c: New file.
81848         * lib/unictype/pr_punctuation.c: New file.
81849         * lib/unictype/pr_quotation_mark.c: New file.
81850         * lib/unictype/pr_radical.c: New file.
81851         * lib/unictype/pr_sentence_terminal.c: New file.
81852         * lib/unictype/pr_soft_dotted.c: New file.
81853         * lib/unictype/pr_space.c: New file.
81854         * lib/unictype/pr_terminal_punctuation.c: New file.
81855         * lib/unictype/pr_test.c: New file.
81856         * lib/unictype/pr_titlecase.c: New file.
81857         * lib/unictype/pr_unassigned_code_value.c: New file.
81858         * lib/unictype/pr_unified_ideograph.c: New file.
81859         * lib/unictype/pr_uppercase.c: New file.
81860         * lib/unictype/pr_variation_selector.c: New file.
81861         * lib/unictype/pr_white_space.c: New file.
81862         * lib/unictype/pr_xid_continue.c: New file.
81863         * lib/unictype/pr_xid_start.c: New file.
81864         * lib/unictype/pr_zero_width.c: New file.
81865         * lib/unictype/scripts.c: New file.
81866         * lib/unictype/sy_c_ident.c: New file.
81867         * lib/unictype/sy_c_whitespace.c: New file.
81868         * lib/unictype/sy_java_ident.c: New file.
81869         * lib/unictype/sy_java_whitespace.c: New file.
81871         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
81872         Unicode 5.0.0.
81873         * lib/unictype/blocks.h: Likewise.
81874         * lib/unictype/categ_C.h: Likewise.
81875         * lib/unictype/categ_Cc.h: Likewise.
81876         * lib/unictype/categ_Cf.h: Likewise.
81877         * lib/unictype/categ_Cn.h: Likewise.
81878         * lib/unictype/categ_Co.h: Likewise.
81879         * lib/unictype/categ_Cs.h: Likewise.
81880         * lib/unictype/categ_L.h: Likewise.
81881         * lib/unictype/categ_Ll.h: Likewise.
81882         * lib/unictype/categ_Lm.h: Likewise.
81883         * lib/unictype/categ_Lo.h: Likewise.
81884         * lib/unictype/categ_Lt.h: Likewise.
81885         * lib/unictype/categ_Lu.h: Likewise.
81886         * lib/unictype/categ_M.h: Likewise.
81887         * lib/unictype/categ_Mc.h: Likewise.
81888         * lib/unictype/categ_Me.h: Likewise.
81889         * lib/unictype/categ_Mn.h: Likewise.
81890         * lib/unictype/categ_N.h: Likewise.
81891         * lib/unictype/categ_Nd.h: Likewise.
81892         * lib/unictype/categ_Nl.h: Likewise.
81893         * lib/unictype/categ_No.h: Likewise.
81894         * lib/unictype/categ_P.h: Likewise.
81895         * lib/unictype/categ_Pc.h: Likewise.
81896         * lib/unictype/categ_Pd.h: Likewise.
81897         * lib/unictype/categ_Pe.h: Likewise.
81898         * lib/unictype/categ_Pf.h: Likewise.
81899         * lib/unictype/categ_Pi.h: Likewise.
81900         * lib/unictype/categ_Po.h: Likewise.
81901         * lib/unictype/categ_Ps.h: Likewise.
81902         * lib/unictype/categ_S.h: Likewise.
81903         * lib/unictype/categ_Sc.h: Likewise.
81904         * lib/unictype/categ_Sk.h: Likewise.
81905         * lib/unictype/categ_Sm.h: Likewise.
81906         * lib/unictype/categ_So.h: Likewise.
81907         * lib/unictype/categ_Z.h: Likewise.
81908         * lib/unictype/categ_Zl.h: Likewise.
81909         * lib/unictype/categ_Zp.h: Likewise.
81910         * lib/unictype/categ_Zs.h: Likewise.
81911         * lib/unictype/categ_of.h: Likewise.
81912         * lib/unictype/combining.h: Likewise.
81913         * lib/unictype/ctype_alnum.h: Likewise.
81914         * lib/unictype/ctype_alpha.h: Likewise.
81915         * lib/unictype/ctype_blank.h: Likewise.
81916         * lib/unictype/ctype_cntrl.h: Likewise.
81917         * lib/unictype/ctype_digit.h: Likewise.
81918         * lib/unictype/ctype_graph.h: Likewise.
81919         * lib/unictype/ctype_lower.h: Likewise.
81920         * lib/unictype/ctype_print.h: Likewise.
81921         * lib/unictype/ctype_punct.h: Likewise.
81922         * lib/unictype/ctype_space.h: Likewise.
81923         * lib/unictype/ctype_upper.h: Likewise.
81924         * lib/unictype/ctype_xdigit.h: Likewise.
81925         * lib/unictype/decdigit.h: Likewise.
81926         * lib/unictype/digit.h: Likewise.
81927         * lib/unictype/mirror.h: Likewise.
81928         * lib/unictype/numeric.h: Likewise.
81929         * lib/unictype/pr_alphabetic.h: Likewise.
81930         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
81931         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
81932         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
81933         * lib/unictype/pr_bidi_block_separator.h: Likewise.
81934         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
81935         * lib/unictype/pr_bidi_common_separator.h: Likewise.
81936         * lib/unictype/pr_bidi_control.h: Likewise.
81937         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
81938         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
81939         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
81940         * lib/unictype/pr_bidi_european_digit.h: Likewise.
81941         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
81942         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
81943         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
81944         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
81945         * lib/unictype/pr_bidi_pdf.h: Likewise.
81946         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
81947         * lib/unictype/pr_bidi_whitespace.h: Likewise.
81948         * lib/unictype/pr_combining.h: Likewise.
81949         * lib/unictype/pr_composite.h: Likewise.
81950         * lib/unictype/pr_currency_symbol.h: Likewise.
81951         * lib/unictype/pr_dash.h: Likewise.
81952         * lib/unictype/pr_decimal_digit.h: Likewise.
81953         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
81954         * lib/unictype/pr_deprecated.h: Likewise.
81955         * lib/unictype/pr_diacritic.h: Likewise.
81956         * lib/unictype/pr_extender.h: Likewise.
81957         * lib/unictype/pr_format_control.h: Likewise.
81958         * lib/unictype/pr_grapheme_base.h: Likewise.
81959         * lib/unictype/pr_grapheme_extend.h: Likewise.
81960         * lib/unictype/pr_grapheme_link.h: Likewise.
81961         * lib/unictype/pr_hex_digit.h: Likewise.
81962         * lib/unictype/pr_hyphen.h: Likewise.
81963         * lib/unictype/pr_id_continue.h: Likewise.
81964         * lib/unictype/pr_id_start.h: Likewise.
81965         * lib/unictype/pr_ideographic.h: Likewise.
81966         * lib/unictype/pr_ids_binary_operator.h: Likewise.
81967         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
81968         * lib/unictype/pr_ignorable_control.h: Likewise.
81969         * lib/unictype/pr_iso_control.h: Likewise.
81970         * lib/unictype/pr_join_control.h: Likewise.
81971         * lib/unictype/pr_left_of_pair.h: Likewise.
81972         * lib/unictype/pr_line_separator.h: Likewise.
81973         * lib/unictype/pr_logical_order_exception.h: Likewise.
81974         * lib/unictype/pr_lowercase.h: Likewise.
81975         * lib/unictype/pr_math.h: Likewise.
81976         * lib/unictype/pr_non_break.h: Likewise.
81977         * lib/unictype/pr_not_a_character.h: Likewise.
81978         * lib/unictype/pr_numeric.h: Likewise.
81979         * lib/unictype/pr_other_alphabetic.h: Likewise.
81980         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
81981         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
81982         * lib/unictype/pr_other_id_continue.h: Likewise.
81983         * lib/unictype/pr_other_id_start.h: Likewise.
81984         * lib/unictype/pr_other_lowercase.h: Likewise.
81985         * lib/unictype/pr_other_math.h: Likewise.
81986         * lib/unictype/pr_other_uppercase.h: Likewise.
81987         * lib/unictype/pr_paired_punctuation.h: Likewise.
81988         * lib/unictype/pr_paragraph_separator.h: Likewise.
81989         * lib/unictype/pr_pattern_syntax.h: Likewise.
81990         * lib/unictype/pr_pattern_white_space.h: Likewise.
81991         * lib/unictype/pr_private_use.h: Likewise.
81992         * lib/unictype/pr_punctuation.h: Likewise.
81993         * lib/unictype/pr_quotation_mark.h: Likewise.
81994         * lib/unictype/pr_radical.h: Likewise.
81995         * lib/unictype/pr_sentence_terminal.h: Likewise.
81996         * lib/unictype/pr_soft_dotted.h: Likewise.
81997         * lib/unictype/pr_space.h: Likewise.
81998         * lib/unictype/pr_terminal_punctuation.h: Likewise.
81999         * lib/unictype/pr_titlecase.h: Likewise.
82000         * lib/unictype/pr_unassigned_code_value.h: Likewise.
82001         * lib/unictype/pr_unified_ideograph.h: Likewise.
82002         * lib/unictype/pr_uppercase.h: Likewise.
82003         * lib/unictype/pr_variation_selector.h: Likewise.
82004         * lib/unictype/pr_white_space.h: Likewise.
82005         * lib/unictype/pr_xid_continue.h: Likewise.
82006         * lib/unictype/pr_xid_start.h: Likewise.
82007         * lib/unictype/pr_zero_width.h: Likewise.
82008         * lib/unictype/scripts.h: Likewise.
82009         * lib/unictype/scripts_byname.gperf: Likewise.
82010         * lib/unictype/sy_c_ident.h: Likewise.
82011         * lib/unictype/sy_c_whitespace.h: Likewise.
82012         * lib/unictype/sy_java_ident.h: Likewise.
82013         * lib/unictype/sy_java_whitespace.h: Likewise.
82015         * lib/unictype/Makefile: New file.
82016         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
82017         glibc.
82018         * lib/unictype/3level.h: New file, copied from glibc.
82019         * lib/unictype/3levelbit.h: New file.
82021 2007-11-11  Bruno Haible  <bruno@clisp.org>
82023         * modules/gperf: New file.
82024         * modules/iconv_open (Depends-on): Add it.
82025         (Makefile.am): Remove the GPERF definition.
82027 2007-11-11  Bruno Haible  <bruno@clisp.org>
82029         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
82030         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
82032 2007-11-11  Bruno Haible  <bruno@clisp.org>
82034         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
82035         (usage): Remove function.
82037 2007-11-11  Bruno Haible  <bruno@clisp.org>
82039         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
82040         gl_FUNC_CEILF_LIBS.
82041         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
82042         gl_FUNC_CEIL_LIBS.
82043         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
82044         gl_FUNC_CEILL_LIBS.
82045         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
82046         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
82047         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
82049 2007-11-11  Bruno Haible  <bruno@clisp.org>
82051         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
82052         roundf were declared but do not exist on functions.
82053         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
82054         roundl were declared but do not exist on functions.
82055         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
82056         HAVE_FLOORL_AND_CEILL, respectively.
82057         Needed for Sun C on Solaris 10.
82059 2007-11-11  Bruno Haible  <bruno@clisp.org>
82061         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
82062         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
82063         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
82064         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
82065         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
82066         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
82067         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
82068         HAVE_DECL_ROUNDF.
82069         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
82070         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
82071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
82072         of HAVE_DECL_ROUND*.
82073         * modules/math (Makefile.am): Update.
82075 2007-11-10  Bruno Haible  <bruno@clisp.org>
82077         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
82078         ptrdiff_t as m4/intl.m4.
82080 2007-11-10  Jim Meyering  <meyering@redhat.com>
82082         Avoid link failure for the argmatch test.
82083         * tests/test-argmatch.c (usage): Define function to avoid a link
82084         failure: argmatch_die requires a usage function.
82086 2007-11-09  Bruno Haible  <bruno@clisp.org>
82088         * doc/functions/snprintf.texi: Mention BeOS deficiency.
82089         * doc/functions/vsnprintf.texi: Likewise.
82090         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
82091         with a size argument < 2.
82093 2007-11-09  Bruno Haible  <bruno@clisp.org>
82095         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
82096         buffer. Fixes an inefficiency introduced on 2007-11-03.
82098 2007-11-09  Bruno Haible  <bruno@clisp.org>
82100         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
82101         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
82103 2007-11-08  Jim Meyering  <meyering@redhat.com>
82105         Change cache variable name prefix "jm_" to "gl_" everywhere.
82106         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
82107         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
82108         * m4/uptime.m4: s/gl_/jm_/
82110 2007-11-07  Bruno Haible  <bruno@clisp.org>
82112         Update to GNU gettext 0.17.
82113         * m4/intl.m4: Update to GNU gettext 0.17.
82114         * m4/po.m4: Likewise.
82115         * modules/gettext (Files): Remove m4/ulonglong.m4.
82116         (configure.ac): Require gettext infrastructure from version 0.17.
82118 2007-11-06  Bruno Haible  <bruno@clisp.org>
82120         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
82121         symbolic values are not defined in a public header.
82122         * lib/freadable.c (freadable) [QNX]: Likewise.
82123         * lib/freadahead.c (freadahead) [QNX]: Likewise.
82124         * lib/freading.c (freading) [QNX]: Likewise.
82125         * lib/fseterr.c (fseterr) [QNX]: Likewise.
82126         * lib/fwritable.c (fwritable) [QNX]: Likewise.
82127         * lib/fwriting.c (fwriting) [QNX]: Likewise.
82128         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
82129         Reported by Alain Magloire.
82131         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
82133 2007-11-05  Bruno Haible  <bruno@clisp.org>
82135         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
82136         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
82137         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
82138         Reported by Eric Blake.
82140 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82141             Bruno Haible  <bruno@clisp.org>
82143         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
82144         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
82145         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
82146         (malloc): Undefine also before including <stdlib.h>.
82147         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
82148         Needed on OSF/1 4.0.
82150 2007-11-05  Jim Meyering  <meyering@redhat.com>
82152         git-version-gen: sync from coreutils.
82153         * build-aux/git-version-gen: Add comments.
82154         Change the first '-' to '.' in the snapshot version string,
82155         e.g., 6.9-377-08144 -> 6.9.377-08144
82156         Remove first parameter.
82157         Don't declare a version "-dirty" merely because a time
82158         stamp has changed.
82160 2007-11-04  Bruno Haible  <bruno@clisp.org>
82162         * lib/lock.h: Protect all macro definitions containing an 'if'
82163         statement through a "do { ... } while (0)".
82164         * lib/tls.h: Likewise.
82166 2007-11-04  Bruno Haible  <bruno@clisp.org>
82168         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
82170 2007-11-04  Bruno Haible  <bruno@clisp.org>
82172         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
82173         * modules/fprintf-posix (Depends-on): Add nocrash.
82174         * modules/snprintf-posix (Depends-on): Likewise.
82175         * modules/sprintf-posix (Depends-on): Likewise.
82176         * modules/vasnprintf-posix (Depends-on): Likewise.
82177         * modules/vasprintf-posix (Depends-on): Likewise.
82178         * modules/vfprintf-posix (Depends-on): Likewise.
82179         * modules/vsnprintf-posix (Depends-on): Likewise.
82180         * modules/vsprintf-posix (Depends-on): Likewise.
82181         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
82182         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
82183         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
82184         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
82185         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
82186         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
82187         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
82189 2007-11-04  Bruno Haible  <bruno@clisp.org>
82191         * modules/nocrash: New file.
82192         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
82193         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
82195 2007-11-04  Bruno Haible  <bruno@clisp.org>
82197         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
82198         precision handling.
82199         * tests/test-vasprintf-posix.c (test_function): Likewise.
82200         * tests/test-snprintf-posix.h (test_function): Likewise.
82201         * tests/test-sprintf-posix.h (test_function): Likewise.
82203         Fix *printf behaviour for large precisions on mingw and BeOS.
82204         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
82205         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
82206         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
82207         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
82208         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82209         gl_PRINTF_PRECISION and test its result. Invoke
82210         gl_PREREQ_VASNPRINTF_PRECISION.
82211         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
82212         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82213         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82214         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82215         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82216         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82217         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82218         * doc/functions/fprintf.texi: Update.
82219         * doc/functions/printf.texi: Update.
82220         * doc/functions/snprintf.texi: Update.
82221         * doc/functions/sprintf.texi: Update.
82222         * doc/functions/vfprintf.texi: Update.
82223         * doc/functions/vprintf.texi: Update.
82224         * doc/functions/vsnprintf.texi: Update.
82225         * doc/functions/vsprintf.texi: Update.
82227 2007-11-04  Bruno Haible  <bruno@clisp.org>
82229         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
82231 2007-11-04  Bruno Haible  <bruno@clisp.org>
82233         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
82234         Reported by Sylvain Beucler <beuc@gnu.org>.
82236 2007-11-03  Bruno Haible  <bruno@clisp.org>
82238         * tests/test-fprintf-posix2.sh: New file.
82239         * tests/test-fprintf-posix2.c: New file.
82240         * modules/fprintf-posix-tests (Files): Add them.
82241         (TESTS): Add test-fprintf-posix2.sh.
82242         (configure.ac): Check for getrlimit and setrlimit.
82243         (check_PROGRAMS): Add test-fprintf-posix2.
82245         * tests/test-printf-posix2.sh: New file.
82246         * tests/test-printf-posix2.c: New file.
82247         * modules/printf-posix-tests (Files): Add them.
82248         (TESTS): Add test-printf-posix2.sh.
82249         (configure.ac): Check for getrlimit and setrlimit.
82250         (check_PROGRAMS): Add test-printf-posix2.
82252         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
82253         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
82254         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
82255         (decode_double): New function, copied from decode_long_double.
82256         (scale10_round_decimal_decoded): New function, extracted from
82257         scale10_round_decimal_long_double.
82258         (scale10_round_decimal_long_double): Use it.
82259         (scale10_round_decimal_double): New function.
82260         (floorlog10): New function.
82261         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
82262         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
82263         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
82264         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82265         gl_PRINTF_ENOMEM and test its result. Invoke
82266         gl_PREREQ_VASNPRINTF_ENOMEM.
82267         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
82268         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82269         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82270         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82271         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82272         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82273         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82274         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
82275         * modules/snprintf-posix (Depends-on): Likewise.
82276         * modules/sprintf-posix (Depends-on): Likewise.
82277         * modules/vasnprintf-posix (Depends-on): Likewise.
82278         * modules/vasprintf-posix (Depends-on): Likewise.
82279         * modules/vfprintf-posix (Depends-on): Likewise.
82280         * modules/vsnprintf-posix (Depends-on): Likewise.
82281         * modules/vsprintf-posix (Depends-on): Likewise.
82282         * doc/functions/fprintf.texi: Update.
82283         * doc/functions/printf.texi: Update.
82284         * doc/functions/snprintf.texi: Update.
82285         * doc/functions/sprintf.texi: Update.
82286         * doc/functions/vfprintf.texi: Update.
82287         * doc/functions/vprintf.texi: Update.
82288         * doc/functions/vsnprintf.texi: Update.
82289         * doc/functions/vsprintf.texi: Update.
82291 2007-11-03  Bruno Haible  <bruno@clisp.org>
82293         * modules/frexp-nolibm-tests: New file.
82295         * modules/frexp-nolibm: New file.
82296         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
82298 2007-11-03  Bruno Haible  <bruno@clisp.org>
82300         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
82301         value is C99 compliant.
82302         Needed for OSF/1 5.1.
82304 2007-11-03  Bruno Haible  <bruno@clisp.org>
82306         Fix out-of-memory handling of vasnprintf.
82307         * lib/printf-parse.c: Include <errno.h>.
82308         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
82309         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
82310         is already set.
82312 2007-11-02  Eric Blake  <ebb9@byu.net>
82314         Fix tests on cygwin.
82315         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
82317 2007-11-01  Bruno Haible  <bruno@clisp.org>
82319         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
82320         warning.
82321         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
82322         needed for POSIX compatibility.
82324 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
82326         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
82327         for compatibility with GNU.
82329 2007-11-01  Bruno Haible  <bruno@clisp.org>
82331         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
82332         (putenv): Renamed from rpl_putenv. Change argument type from
82333         'const char *' to 'char *'.
82334         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
82335         of defining putenv in config.h, just set REPLACE_PUTENV.
82336         * modules/putenv (Depends-on): Add stdlib.
82337         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
82338         (Include): Use <stdlib.h>.
82339         * lib/stdlib.in.h (putenv): New declaration.
82340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
82341         REPLACE_PUTENV.
82342         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
82343         REPLACE_PUTENV.
82344         Needed for MacOS X 10.5.0.
82345         Reported by Peter O'Gorman <peter@pogma.com>.
82347 2007-11-01  Jim Meyering  <meyering@redhat.com>
82349         Treat an empty date string exactly like "0".
82350         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
82351         if the remaining date string (to be parsed) is empty, use "0".
82352         Reported by Mischa Molhoek and discussed in this thread:
82353         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
82355 2007-10-31  Bruno Haible  <bruno@clisp.org>
82357         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
82358         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
82359         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
82360         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
82361         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
82362         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
82364 2007-10-31  Bruno Haible  <bruno@clisp.org>
82366         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
82367         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
82368         (AC_TYPE_LONG_LONG_INT): Use it.
82369         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
82370         it as well.
82371         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
82372         to m4/longlong.m4.
82373         * modules/stdint (Files): Remove m4/ulonglong.m4.
82374         * modules/strtoull (Files): Use m4/longlong.m4 instead of
82375         m4/ulonglong.m4.
82376         * modules/strtoumax (Files): Likewise.
82378 2007-10-30  Bruno Haible  <bruno@clisp.org>
82380         * modules/xvasprintf-posix: New file.
82381         Suggested by Eric Blake.
82383 2007-10-30  Bruno Haible  <bruno@clisp.org>
82385         * modules/xprintf-posix-tests: New file.
82386         * tests/test-xprintf-posix.sh: New file.
82387         * tests/test-xprintf-posix.c: New file.
82388         * tests/test-xfprintf-posix.c: New file.
82390         * modules/xprintf-posix: New file.
82392 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82394         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
82395         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
82396         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
82398 2007-10-29  Bruno Haible  <bruno@clisp.org>
82400         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
82401         contain the special marker '_cv_'.
82402         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
82403         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
82404         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
82405         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
82406         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
82407         Reported by Ralf Wildenhues.
82409 2007-10-29  Bruno Haible  <bruno@clisp.org>
82411         * gnulib-tool (func_import): When --lgpl is not specified, set
82412         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
82413         GPLv3.
82414         Reported by Simon Josefsson.
82416 2007-10-28  Bruno Haible  <bruno@clisp.org>
82418         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
82419         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
82420         HAVE_DECL_ISFINITE.
82421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
82422         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
82423         HAVE_DECL_ISFINITE.
82425 2007-10-28  Bruno Haible  <bruno@clisp.org>
82427         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
82428         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
82430 2007-10-28  Bruno Haible  <bruno@clisp.org>
82432         Fix link errors with Sun C 5.0 on Solaris 10.
82433         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
82434         function is declared but not present in the compiler's libm.
82435         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
82436         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
82437         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
82438         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
82439         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
82440         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
82441         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
82442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
82443         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
82444         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
82445         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
82446         HAVE_DECL_FLOORL.
82448 2007-10-28  Bruno Haible  <bruno@clisp.org>
82450         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
82451         gl_FUNC_FLOORL. Cache the result.
82452         (gl_FUNC_FLOORL): Use it.
82453         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
82454         gl_FUNC_CEILL. Cache the result.
82455         (gl_FUNC_CEILL): Use it.
82457         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
82458         gl_FUNC_FLOOR. Cache the result.
82459         (gl_FUNC_FLOOR): Use it.
82460         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
82461         gl_FUNC_CEIL. Cache the result.
82462         (gl_FUNC_CEIL): Use it.
82464         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
82465         gl_FUNC_FLOORF. Cache the result.
82466         (gl_FUNC_FLOORF): Use it.
82467         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
82468         gl_FUNC_CEILF. Cache the result.
82469         (gl_FUNC_CEILF): Use it.
82471 2007-10-28  Bruno Haible  <bruno@clisp.org>
82473         * gnulib-tool: Allow specifying the LGPL version number through
82474         --lgpl=2 or --lgpl=3.
82475         (func_usage): Document --lgpl with argument.
82476         Handle --lgpl=... arguments.
82477         (func_import): Recognize also gl_LGPL calls with an argument. When
82478         --lgpl=2 is used and the module's license is just LGPL, report an
82479         error. Set sed_transform_lib_file according to the lgpl variable. In
82480         the generated files, use --lgpl or gl_LGPL invocations with argument,
82481         if necessary.
82482         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
82483         an LGPv2+ license.
82484         * doc/gnulib-tool.texi (Modified imports): Update explanation of
82485         gl_LGPL macro.
82487 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82488             Bruno Haible  <bruno@clisp.org>
82490         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
82491         (u16_uctomb_aux): Likewise.
82492         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
82493         !HAVE_INLINE.
82494         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
82496 2007-10-28  Bruno Haible  <bruno@clisp.org>
82498         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
82499         Invoke AM_GETTEXT_OPTION if it exists.
82500         * modules/vasprintf: Likewise.
82501         * modules/verror: Likewise.
82502         * modules/xprintf: Likewise.
82503         * modules/xvasprintf: Likewise.
82505 2007-10-27  Ben Pfaff  <blp@gnu.org>
82507         * lib/math.in.h: Define isfinite macro and prototypes for
82508         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
82509         implementations.
82510         * m4/math_h.m4: New substitutions for isfinite module.
82511         * lib/isfinite.c: New file.
82512         * m4/isfinite.m4: New file.
82513         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
82514         * modules/isfinite: New file.
82515         * modules/isfinite-tests: New file.
82516         * tests/tests-isfinite.c: New file.
82517         * doc/functions/isfinite.texi: Mention isfinite module.
82518         * MODULES.html.sh: Mention new module.
82520 2007-10-27  Ben Pfaff  <blp@gnu.org>
82522         Ralf Wildenhues reported that Tru64 4.0D declares the round
82523         functions but does not have definitions.
82524         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
82525         cannot be found in any library, set the output variable to
82526         "missing" instead of "".
82527         * m4/round.m4: Also use our substitute if we cannot find round in
82528         any library, even if it is declared.
82529         * m4/roundf.m4: Likewise for roundf.
82530         * m4/roundl.m4: Likewise for roundl.
82531         * lib/math.in.h: Undefine roundf, round, roundl before defining
82532         their replacements, to allow for hypothetical systems where these
82533         may be defined as macros but not available in libraries.
82535 2007-10-27  Bruno Haible  <bruno@clisp.org>
82537         * doc/gnulib.texi: Invoke @firstparagraphindent.
82538         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
82539         changes in gnulib.
82540         (Source changes): New section.
82542 2007-10-26  Bruno Haible  <bruno@clisp.org>
82544         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
82545         borrowed from autoconf.
82547 2007-10-26  Bruno Haible  <bruno@clisp.org>
82549         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
82550         strerror returned the empty string. Needed on HP-UX 11.00.
82552 2007-10-24  Micah Cowan  <micah@cowan.name>
82554         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
82555         * build-aux/bootstrap: Remove support for now-unnecessary option,
82556         --cvs-user, and envvars CVS_USER, CVS_RSH.
82558 2007-10-24  Jim Meyering  <meyering@redhat.com>
82560         Avoid diagnostics from sha1sum when there is no cached checksum.
82561         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
82562         if the po.s1 file hasn't been created yet.
82564         * build-aux/bootstrap: Sync from coreutils:
82565         2007-10-24  Jim Meyering  <meyering@redhat.com>
82566         Get gnulib from the git repository, not from an obsolete cvs one.
82567         * build-aux/bootstrap: Suggestion from Micah Cowan.
82568         2007-10-04  Jim Meyering  <jim@meyering.net>
82569         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
82570         (update_po_files): Work also when there are no .po files in po/.
82572 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
82574         * README: Append ".git" to git and cg examples.
82575         Problem reported by Benoit Sigoure.
82577 2007-10-23  Micah Cowan  <micah@cowan.name>
82579         * users.txt: Add wget.
82581 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82583         Fix linking of some unistdio tests on FreeBSD.
82584         * modules/unistdio/u16-vsnprintf-tests
82585         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
82586         * modules/unistdio/u16-vsprintf-tests
82587         (test_u16_vsnprintf1_LDADD): Likewise.
82588         * modules/unistdio/u32-vsnprintf-tests
82589         (test_u32_vsnprintf1_LDADD): Likewise.
82590         * modules/unistdio/u32-vsprintf-tests
82591         (test_u32_vsprintf1_LDADD): Likewise.
82592         * modules/unistdio/u8-vsnprintf-tests
82593         (test_u8_vsnprintf1_LDADD): Likewise.
82594         * modules/unistdio/u8-vsprintf-tests
82595         (test_u8_vsprintf1_LDADD): Likewise.
82596         * modules/unistdio/ulc-vsnprintf-tests
82597         (test_ulc_vsnprintf1_LDADD): Likewise.
82598         * modules/unistdio/ulc-vsprintf-tests
82599         (test_ulc_vsprintf1_LDADD): Likewise.
82601         Fix linking of some uniconv tests on FreeBSD.
82602         * modules/uniconv/u16-conv-from-enc-tests
82603         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
82604         * modules/uniconv/u16-conv-to-enc-tests
82605         (test_u16_conv_to_enc_LDADD): Likewise.
82606         * modules/uniconv/u16-strconv-from-enc-tests
82607         (test_u16_strconv_from_enc_LDADD): Likewise.
82608         * modules/uniconv/u16-strconv-to-enc-tests
82609         (test_u16_strconv_to_enc_LDADD): Likewise.
82610         * modules/uniconv/u32-conv-from-enc-tests
82611         (test_u32_conv_from_enc_LDADD): Likewise.
82612         * modules/uniconv/u32-conv-to-enc-tests
82613         (test_u32_conv_to_enc_LDADD): Likewise.
82614         * modules/uniconv/u32-strconv-from-enc-tests
82615         (test_u32_strconv_from_enc_LDADD): Likewise.
82616         * modules/uniconv/u32-strconv-to-enc-tests
82617         (test_u32_strconv_to_enc_LDADD): Likewise.
82618         * modules/uniconv/u8-conv-from-enc-tests
82619         (test_u8_conv_from_enc_LDADD): Likewise.
82620         * modules/uniconv/u8-conv-to-enc-tests
82621         (test_u8_conv_to_enc_LDADD): Likewise.
82622         * modules/uniconv/u8-strconv-from-enc-tests
82623         (test_u8_strconv_from_enc_LDADD): Likewise.
82624         * modules/uniconv/u8-strconv-to-enc-tests
82625         (test_u8_strconv_to_enc_LDADD): Likewise.
82627 2007-10-22  Bruno Haible  <bruno@clisp.org>
82629         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
82630         size.
82632 2007-10-22  Eric Blake  <ebb9@byu.net>
82634         Tweak x*printf documentation.
82635         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
82636         variable name and comments.
82637         Suggested by Bruno Haible.
82639 2007-10-22  Bruno Haible  <bruno@clisp.org>
82641         * lib/acl.c (copy_acl): Fix file name in comment.
82643 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
82645         Fix Tru64 problem with stdbool.h.
82646         * lib/stdbool.in.h (false, true):
82647         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
82648         Don't declare as an enum in this situation; it runs afoul of Tru64.
82649         Problem reported by Steven M. Schweda in
82650         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
82652 2007-10-22  Eric Blake  <ebb9@byu.net>
82654         Also wrap vf?printf.
82655         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
82656         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
82657         (xvprintf, xvfprintf): New functions.
82659 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82661         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
82662         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
82664         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
82665         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
82667 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
82669         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
82670         by Bruno Haible.
82672 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82674         * lib/getloadavg.c
82675         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
82676         Undef `sys' after including sys/table.h, for Tru64 4.0D.
82678         * tests/test-i-ring.c: Work for C89.
82680 2007-10-22  Bruno Haible  <bruno@clisp.org>
82682         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
82683         -1u, in preprocessor expression, so that we don't test for the bug
82684         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
82685         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
82687 2007-10-22  Eric Blake  <ebb9@byu.net>
82689         * tests/test-yesno.sh: Silence stderr during test.
82691 2007-10-22  Simon Josefsson  <simon@josefsson.org>
82693         * modules/crypto/gc-camellia: New file.
82695         * m4/gc-camellia.m4: New file.
82697         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
82699         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
82701 2007-10-22  Simon Josefsson  <simon@josefsson.org>
82703         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
82704         --help to stdout.  Reported by sms@antinode.org (Steven
82705         M. Schweda).
82707 2007-10-22  Simon Josefsson  <simon@josefsson.org>
82709         * users.txt: Fix link to libksba.
82711 2007-10-21  Ben Pfaff  <blp@gnu.org>
82713         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
82714         round.c roundf implementation that depends on floorf and ceilf to
82715         be tested unconditionally.
82717 2007-10-21  Ben Pfaff  <blp@gnu.org>
82719         * m4/check-libm-func.m4: Removed.
82720         * m4/check-math-lib.m4: New file.
82721         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
82722         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
82723         definition and lack of AC_LIBOBJ([roundf]).
82724         * m4/roundl.m4: Ditto, and similarly for roundl.
82725         * modules/round: Reference new m4 file.
82726         * modules/roundf: Ditto.
82727         * modules/roundl: Ditto.
82728         * tests/test-round2.c (main): Use ROUND instead of round.
82729         Bug report from Bruno Haible.
82731 2007-10-21  Bruno Haible  <bruno@clisp.org>
82733         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
82734         context.
82736 2007-10-21  Bruno Haible  <bruno@clisp.org>
82738         * tests/test-wcwidth.c (main): Allow negative result for some control
82739         characters.
82741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
82742         Needed on OSF/1 5.1.
82744 2007-10-21  Bruno Haible  <bruno@clisp.org>
82746         * tests/test-floorf1.c: Include isnanf.h.
82747         (main): Use isnanf() instead of isnan().
82748         * tests/test-ceilf1.c: Include isnanf.h.
82749         (main): Use isnanf() instead of isnan().
82750         * tests/test-truncf1.c: Include isnanf.h.
82751         (main): Use isnanf() instead of isnan().
82752         * tests/test-roundf1.c: Include isnanf.h.
82753         (main): Use isnanf() instead of isnan().
82755 2007-10-21  Eric Blake  <ebb9@byu.net>
82757         * users.txt: Update URL for m4.
82759 2007-10-21  Bruno Haible  <bruno@clisp.org>
82761         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
82763 2007-10-21  Bruno Haible  <bruno@clisp.org>
82765         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
82766         Git's management files if the CVS files are not present.
82768 2007-10-20  Bruno Haible  <bruno@clisp.org>
82770         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
82771         gcc-3.4.x.
82773 2007-10-20  Ben Pfaff  <blp@gnu.org>
82775         * lib/math.in.h: Declare round, roundf, roundl if we are providing
82776         implementations.
82777         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
82778         * lib/round.c: New file.
82779         * lib/roundf.c: New file.
82780         * lib/roundl.c: New file.
82781         * m4/round.m4: New file.
82782         * m4/roundf.m4: New file.
82783         * m4/roundl.m4: New file.
82784         * m4/check-libm-func-m4: New file.
82785         * modules/math: Replace round, roundf, roundl related @VARS@ in
82786         math.in.h.
82787         * modules/round: New file.
82788         * modules/round-tests: New file.
82789         * modules/roundf: New file.
82790         * modules/roundf-tests: New file.
82791         * modules/roundl: New file.
82792         * modules/roundl-tests: New file.
82793         * tests/test-round1.c: New file.
82794         * tests/test-round2.c: New file.
82795         * tests/test-roundf1.c: New file.
82796         * tests/test-roundf2.c: New file.
82797         * tests/test-roundl.c: New file.
82798         * doc/functions/round.texi: Mention round module.
82799         * doc/functions/roundf.texi: Mention roundf module.
82800         * doc/functions/roundl.texi: Mention roundl module.
82801         * MODULES.html.sh: Mention new modules.
82802         Thanks to Bruno Haible for suggestions.
82804 2007-10-20  Jim Meyering  <meyering@redhat.com>
82806         * lib/xprintf.c: Include <config.h> unconditionally.
82808         Change xprintf's license to GPL.
82809         * modules/xprintf (License): s/LGPL/GPL/, since this module
82810         depends on modules (exit and exitfail) which are GPL.
82811         Suggestion from Bruno Haible.
82813         xprintf fixes.
82814         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
82815         Use a clearer diagnostic.
82816         Patch from Bruno Haible.
82818 2007-10-20  Bruno Haible  <bruno@clisp.org>
82820         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
82821         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
82822         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82824 2007-10-20  Bruno Haible  <bruno@clisp.org>
82826         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
82827         precision in the comparison result > x - 1 or similar.
82828         * tests/test-ceilf2.c (correct_result_p): Likewise.
82829         * tests/test-truncf2.c (correct_result_p): Likewise.
82830         * tests/test-trunc2.c (correct_result_p): Likewise.
82831         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82833 2007-10-20  Bruno Haible  <bruno@clisp.org>
82835         * modules/ceil: New file.
82836         * m4/ceil.m4: New file.
82837         * doc/functions/ceil.texi: Mention the 'ceil' module.
82839 2007-10-20  Bruno Haible  <bruno@clisp.org>
82841         * modules/floor: New file.
82842         * m4/floor.m4: New file.
82843         * doc/functions/floor.texi: Mention the 'floor' module.
82845 2007-10-20  Bruno Haible  <bruno@clisp.org>
82847         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
82848         of %a.
82849         * modules/floorf-tests (Depends-on): Likewise.
82850         * modules/truncf-tests (Depends-on): Likewise.
82851         * modules/trunc-tests (Depends-on): Likewise.
82852         Reported by Ben Pfaff.
82854 2007-10-19  Jim Meyering  <meyering@redhat.com>
82856         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
82857         Don't bother testing specific errno values.  Just test ferror.
82859         New module: xprintf
82860         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
82862 2007-10-19  Bruno Haible  <bruno@clisp.org>
82864         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
82865         syntax.
82866         * modules/javaexec (Makefile.am): Likewise.
82867         * modules/relocatable-prog (Makefile.am): Likewise.
82868         Suggested by Jim Meyering.
82870 2007-10-18  Bruno Haible  <bruno@clisp.org>
82872         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
82873         Reported by Jim Meyering.
82875 2007-10-18  Eric Blake  <ebb9@byu.net>
82877         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
82879 2007-10-18  Bruno Haible  <bruno@clisp.org>
82881         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
82882         the format string into writable memory. Needed in Fortify conditions.
82884 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
82885             Bruno Haible  <bruno@clisp.org>
82887         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
82888         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
82889         * modules/trim (Depends-on): Add mbchar.
82890         (configure.ac): Add gl_FUNC_MBRTOWC.
82891         (Makefile.am): Augment lib_SOURCES.
82893 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
82895         Modify glob.c to use fstatat and dirfd, to simplify it.
82896         Suggested by Eric Blake.
82897         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
82898         Don't include <stdbool.h>; not used.
82899         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
82900         (link_exists_p): Simplify implementation, since we can now assume
82901         dirfd and fstatat.
82902         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
82904 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82906         * gnulib-tool (func_get_dependencies): Fix sed script to
82907         match only tests.
82909 2007-10-17  Bruno Haible  <bruno@clisp.org>
82911         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
82912         allow locale names without encoding suffix.
82913         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
82914         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
82916 2007-10-16  Bruno Haible  <bruno@clisp.org>
82918         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
82919         * lib/getgroups.c (getgroups): Likewise.
82920         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
82922 2007-10-16  Bruno Haible  <bruno@clisp.org>
82924         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
82925         * modules/malloc-posix (License): Likewise.
82926         * modules/realloc-posix (License): Likewise.
82927         * modules/calloc-posix (License): Likewise.
82928         * modules/intprops (License): Change from GPL to LGPL, with
82929         Paul Eggert's approval.
82931 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
82933         Merge glibc changes into lib/glob.c.
82935         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
82936         2007-10-15 04:59:03 UTC.  Here are the changes:
82938         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
82940         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
82942         * lib/glob.c: Add some branch prediction throughout.
82944         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
82946         [BZ #5103]
82947         * lib/glob.c (glob): Recognize patterns starting \/.
82949         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
82951         [BZ #3996]
82952         * lib/glob.c (attribute_hidden): Define if not defined.
82953         (glob): Unescape dirname, filename or username when needed and not
82954         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
82955         is NULL.  Handle unescaped [ in pattern without closing ].
82956         Don't pass GLOB_CHECK down to recursive glob for directories.
82957         (__glob_pattern_type): New function.
82958         (__glob_pattern_p): Implement using __glob_pattern_type.
82959         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
82960         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
82961         Remove unreachable code.
82963         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
82965         * lib/glob.c (glob_in_dir): Add some comments and asserts to
82966         explain why there are no leaks.
82968         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
82970         [BZ #3253]
82971         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
82972         time, rather allocate increasingly bigger arrays of pointers, if
82973         possible with alloca, if too large with malloc.
82975 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
82977         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
82978         Problem reported by H.Merijn Brand in
82979         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
82980         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
82981         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
82983 2007-10-15  Bruno Haible  <bruno@clisp.org>
82985         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
82986         with explicit rpl_ prefix.
82987         * lib/fopen.c (fopen): Likewise.
82988         * lib/freopen.c (freopen): Likewise.
82989         * lib/iconv.c (iconv): Likewise.
82990         * lib/iconv_close.c (iconv_close): Likewise.
82992 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82994         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
82996 2007-10-15  Bruno Haible  <bruno@clisp.org>
82998         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
82999         <stddef.h> instead of <stdlib.h> since we only need NULL.
83000         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83002 2007-10-15  Bruno Haible  <bruno@clisp.org>
83004         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
83005         Replace paragraph talking about LIBOBJS.
83006         Reported by Colin Watson <cjwatson@debian.org>.
83008 2007-10-15  Bruno Haible  <bruno@clisp.org>
83010         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
83011         <stdlib.h> before using NULL.
83013 2007-10-15  Simon Josefsson  <simon@josefsson.org>
83015         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
83016         Reported by Albert Chin <china@thewrittenword.com>.
83018 2007-10-14  Bruno Haible  <bruno@clisp.org>
83020         * modules/iconv_open-utf-tests: New file.
83021         * tests/test-iconv-utf.c: New file.
83023         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
83024         * modules/iconv_open-utf: New file.
83025         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
83026         (iconv, iconv_close): New declarations.
83027         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
83028         be defined.
83029         (iconv_open): Add special handling of conversion between UTF-8 and
83030         UTF-{16,32}{BE,LE}.
83031         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
83032         * lib/iconv_close.c: New file.
83033         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
83034         gl_FUNC_ICONV_OPEN.
83035         (gl_FUNC_ICONV_OPEN): Use it.
83036         (gl_FUNC_ICONV_OPEN_UTF): New macro.
83037         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
83038         and REPLACE_ICONV_UTF.
83039         * modules/iconv_open (Depends-on): Add c-strcase.
83040         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
83041         ICONV_CONST.
83042         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
83044 2007-10-13  Albert Chin  <china@thewrittenword.com>
83045             Bruno Haible  <bruno@clisp.org>
83047         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
83048         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
83050 2007-10-13  Bruno Haible  <bruno@clisp.org>
83052         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
83053         defined, use the ISO C99 inline semantics.
83054         * lib/argp.h (ARGP_EI): Likewise.
83056 2007-10-13  Bruno Haible  <bruno@clisp.org>
83058         Handle 'inline' change in gcc 4.3.0.
83059         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
83060         argp_fmtstream_write, argp_fmtstream_set_lmargin,
83061         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
83062         argp_fmtstream_point): Disable 'extern' declaration if the function
83063         definition is going to be provided inline.
83064         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
83065         semantics, not the ISO C99 inline semantics.
83066         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
83067         'extern' declaration if the function definition is going to be provided
83068         inline.
83069         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
83070         the GNU C inline semantics, not the ISO C99 inline semantics. With
83071         GCC 4.2, avoid a warning.
83073 2007-10-13  Bruno Haible  <bruno@clisp.org>
83075         * lib/freading.h (freading): Enable the use of __freading for
83076         glibc >= 2.7.
83077         * lib/freading.c (freading): Likewise.
83079 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
83081         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
83082         "warning: C99 inline functions are not supported; using GNU89".
83084 2007-10-12  Bruno Haible  <bruno@clisp.org>
83086         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
83087         of 2.
83088         * tests/test-ceilf2.c: New file.
83089         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
83091         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
83092         * modules/ceilf-tests: Update.
83094 2007-10-12  Bruno Haible  <bruno@clisp.org>
83096         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
83097         of 2.
83098         * tests/test-floorf2.c: New file.
83099         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
83101         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
83102         * modules/floorf-tests: Update.
83104 2007-10-12  Bruno Haible  <bruno@clisp.org>
83106         * tests/test-trunc2.c: New file.
83107         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
83109         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
83110         * modules/trunc-tests: Update.
83112 2007-10-12  Bruno Haible  <bruno@clisp.org>
83114         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
83115         of 2.
83116         * tests/test-truncf2.c: New file.
83117         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
83119         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
83120         * modules/truncf-tests: Update.
83122 2007-10-11  Eric Blake  <ebb9@byu.net>
83124         Don't claim strerror is broken on Interix.
83125         * doc/functions/strerror.texi (strerror): Known broken systems are
83126         now Solaris 8, and not Interix.
83127         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
83128         Interix on cross-compile.
83129         Reported by Martin Koeppe in
83130         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
83132 2007-10-11  Bruno Haible  <bruno@clisp.org>
83134         * modules/i-ring-tests: New file.
83135         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
83136         instead of assert.
83138 2007-10-11  Bruno Haible  <bruno@clisp.org>
83140         * modules/filenamecat-tests: New file.
83141         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
83142         * lib/filenamecat.c: Remove test code.
83144 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
83146         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
83148         * lib/strerror.c: Include <string.h> always, to test interface,
83149         and to remove the need for the dummy.
83150         Include intprops.h to compute width instead of doing it ourselves
83151         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
83152         (strerror): Define it to return NULL if there's no system strerror.
83153         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
83154         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
83155         ancient pre-strerror Unix systems well any more.  Saying "unknown
83156         system error" is enough.
83157         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
83158         simpler strerror.c implementation.
83159         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
83160         Simplify the tests to reflect the simpler strerror implementation.
83161         * modules/strerror (Depends-on): Add intprops.
83163 2007-10-09  Eric Blake  <ebb9@byu.net>
83165         Silence test-fpending.
83166         * modules/fpending-tests (Files): Add wrapper script.
83167         * tests/test-fpending.sh: New file.
83169 2007-10-09  Bruno Haible  <bruno@clisp.org>
83171         * MODULES.html.sh (func_module): Don't create a hyperlink for
83172         function names like 'printf_frexp'.
83173         (Misc): Add crc, memxor.
83174         (Characteristics of floating types): New section.
83175         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
83176         isnanf-nolibm, signbit, trunc, truncf, truncl.
83177         (Enhancements for ISO C 99 functions): New subsection Input/output.
83178         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
83179         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
83180         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
83181         (Compatibility checks for POSIX:2001 functions): Add clock-time.
83182         (Enhancements for POSIX:2001 functions): Add chdir-long.
83183         (File system functions): Add areadlink, chdir-safer, read-file.
83184         Remove cycle-check.
83185         (File system as inode set): New section.
83186         (Date and time): Add gethrxtime.
83187         (Multithreading): Add openmp.
83188         (Internationalization functions): Add localename.
83189         (Unicode string functions): Add unistr/u*-mbsnlen.
83190         (Support for maintaining and releasing projects): Add git-version-gen.
83191         (Lone files): Remove directories.
83193 2007-10-08  Ben Pfaff  <blp@gnu.org>
83195         * lib/xmalloca.h: Fix typo in comment.
83197 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
83199         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
83200         when avoiding problems with integer overflow.  Use a portable test
83201         instead.
83203 2007-10-08  Simon Josefsson  <simon@josefsson.org>
83205         * modules/dummy (License): Change to LGPLv2+.
83206         * modules/float (License): Likewise
83207         * modules/realloc (License): Likewise
83208         * modules/stdlib (License): Likewise
83210 2007-10-07  Bruno Haible  <bruno@clisp.org>
83212         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
83213         * floor.c (TWO_MANT_DIG): Likewise.
83214         * ceil.c (TWO_MANT_DIG): Likewise.
83215         Reported by Ben Pfaff.
83217 2007-10-07  Bruno Haible  <bruno@clisp.org>
83219         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
83220         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
83221         * lib/frexp.c (FUNC): Likewise.
83222         * lib/printf-frexp.h (printf_frexp): Likewise.
83223         * lib/printf-frexpl.h (printf_frexpl): Likewise.
83224         * lib/printf-frexp.c (FUNC): Likewise.
83225         Suggested by Jim Meyering.
83227 2007-10-07  Jim Meyering  <meyering@redhat.com>
83229         Make xnanosleep's integer overflow test more robust.
83230         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
83231         so that gcc-4.3.0 doesn't optimize away this test for overflow.
83233 2007-10-07  Bruno Haible  <bruno@clisp.org>
83235         * NEWS: Mention the license change.
83237         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
83238         abbreviations in the modules files.
83240         Change copyright notice from GPLv2+ to GPLv3+.
83241         * README: Change copyright notice.
83242         * MODULES.html.sh: Likewise.
83243         * build-aux/bootstrap.conf: Likewise.
83244         * build-aux/config.libpath: Likewise.
83245         * build-aux/csharpcomp.sh.in: Likewise.
83246         * build-aux/csharpexec.sh.in: Likewise.
83247         * build-aux/install-reloc: Likewise.
83248         * build-aux/javacomp.sh.in: Likewise.
83249         * build-aux/javaexec.sh.in: Likewise.
83250         * build-aux/ldd.sh.in: Likewise.
83251         * build-aux/reloc-ldflags: Likewise.
83252         * build-aux/relocatable.sh.in: Likewise.
83253         * build-aux/x-to-1.in: Likewise.
83254         * check-module: Likewise.
83255         * config/srclistvars.sh: Likewise.
83256         * gnulib-tool: Likewise.
83257         * lib/acl-internal.h: Likewise.
83258         * lib/acl.c: Likewise.
83259         * lib/acl.h: Likewise.
83260         * lib/acl_entries.c: Likewise.
83261         * lib/areadlink-with-size.c: Likewise.
83262         * lib/areadlink.c: Likewise.
83263         * lib/areadlink.h: Likewise.
83264         * lib/argmatch.c: Likewise.
83265         * lib/argmatch.h: Likewise.
83266         * lib/argp-ba.c: Likewise.
83267         * lib/argp-eexst.c: Likewise.
83268         * lib/argp-fmtstream.c: Likewise.
83269         * lib/argp-fmtstream.h: Likewise.
83270         * lib/argp-fs-xinl.c: Likewise.
83271         * lib/argp-help.c: Likewise.
83272         * lib/argp-namefrob.h: Likewise.
83273         * lib/argp-parse.c: Likewise.
83274         * lib/argp-pin.c: Likewise.
83275         * lib/argp-pv.c: Likewise.
83276         * lib/argp-pvh.c: Likewise.
83277         * lib/argp-xinl.c: Likewise.
83278         * lib/argp.h: Likewise.
83279         * lib/at-func.c: Likewise.
83280         * lib/atanl.c: Likewise.
83281         * lib/backupfile.c: Likewise.
83282         * lib/backupfile.h: Likewise.
83283         * lib/basename.c: Likewise.
83284         * lib/binary-io.h: Likewise.
83285         * lib/byteswap.in.h: Likewise.
83286         * lib/c-stack.c: Likewise.
83287         * lib/c-stack.h: Likewise.
83288         * lib/c-strcasestr.c: Likewise.
83289         * lib/c-strcasestr.h: Likewise.
83290         * lib/c-strstr.c: Likewise.
83291         * lib/c-strstr.h: Likewise.
83292         * lib/c-strtod.c: Likewise.
83293         * lib/calloc.c: Likewise.
83294         * lib/canon-host.c: Likewise.
83295         * lib/canon-host.h: Likewise.
83296         * lib/canonicalize-lgpl.c: Likewise.
83297         * lib/canonicalize.c: Likewise.
83298         * lib/canonicalize.h: Likewise.
83299         * lib/ceil.c: Likewise.
83300         * lib/ceilf.c: Likewise.
83301         * lib/ceill.c: Likewise.
83302         * lib/chdir-long.c: Likewise.
83303         * lib/chdir-long.h: Likewise.
83304         * lib/chdir-safer.c: Likewise.
83305         * lib/chdir-safer.h: Likewise.
83306         * lib/chown.c: Likewise.
83307         * lib/classpath.c: Likewise.
83308         * lib/classpath.h: Likewise.
83309         * lib/clean-temp.c: Likewise.
83310         * lib/clean-temp.h: Likewise.
83311         * lib/cloexec.c: Likewise.
83312         * lib/close-stream.c: Likewise.
83313         * lib/closein.c: Likewise.
83314         * lib/closein.h: Likewise.
83315         * lib/closeout.c: Likewise.
83316         * lib/closeout.h: Likewise.
83317         * lib/concat-filename.c: Likewise.
83318         * lib/copy-file.c: Likewise.
83319         * lib/copy-file.h: Likewise.
83320         * lib/count-one-bits.h: Likewise.
83321         * lib/crc.c: Likewise.
83322         * lib/crc.h: Likewise.
83323         * lib/creat-safer.c: Likewise.
83324         * lib/csharpcomp.c: Likewise.
83325         * lib/csharpcomp.h: Likewise.
83326         * lib/csharpexec.c: Likewise.
83327         * lib/csharpexec.h: Likewise.
83328         * lib/cycle-check.c: Likewise.
83329         * lib/cycle-check.h: Likewise.
83330         * lib/diacrit.c: Likewise.
83331         * lib/diacrit.h: Likewise.
83332         * lib/diffseq.h: Likewise.
83333         * lib/dirchownmod.c: Likewise.
83334         * lib/dirent.in.h: Likewise.
83335         * lib/dirfd.c: Likewise.
83336         * lib/dirfd.h: Likewise.
83337         * lib/dirname.c: Likewise.
83338         * lib/dirname.h: Likewise.
83339         * lib/dummy.c: Likewise.
83340         * lib/dup-safer.c: Likewise.
83341         * lib/dup2.c: Likewise.
83342         * lib/eealloc.h: Likewise.
83343         * lib/error.c: Likewise.
83344         * lib/error.h: Likewise.
83345         * lib/euidaccess.c: Likewise.
83346         * lib/exclude.c: Likewise.
83347         * lib/exclude.h: Likewise.
83348         * lib/execute.c: Likewise.
83349         * lib/execute.h: Likewise.
83350         * lib/exitfail.c: Likewise.
83351         * lib/exitfail.h: Likewise.
83352         * lib/expl.c: Likewise.
83353         * lib/fatal-signal.c: Likewise.
83354         * lib/fatal-signal.h: Likewise.
83355         * lib/fbufmode.c: Likewise.
83356         * lib/fbufmode.h: Likewise.
83357         * lib/fchdir.c: Likewise.
83358         * lib/fchmodat.c: Likewise.
83359         * lib/fchownat.c: Likewise.
83360         * lib/fcntl--.h: Likewise.
83361         * lib/fcntl-safer.h: Likewise.
83362         * lib/fcntl.in.h: Likewise.
83363         * lib/fd-safer.c: Likewise.
83364         * lib/fflush.c: Likewise.
83365         * lib/file-has-acl.c: Likewise.
83366         * lib/file-set.c: Likewise.
83367         * lib/file-type.c: Likewise.
83368         * lib/file-type.h: Likewise.
83369         * lib/fileblocks.c: Likewise.
83370         * lib/filemode.c: Likewise.
83371         * lib/filemode.h: Likewise.
83372         * lib/filename.h: Likewise.
83373         * lib/filenamecat.c: Likewise.
83374         * lib/filenamecat.h: Likewise.
83375         * lib/findprog.c: Likewise.
83376         * lib/findprog.h: Likewise.
83377         * lib/float.in.h: Likewise.
83378         * lib/floor.c: Likewise.
83379         * lib/floorf.c: Likewise.
83380         * lib/floorl.c: Likewise.
83381         * lib/fopen-safer.c: Likewise.
83382         * lib/fopen.c: Likewise.
83383         * lib/fpending.c: Likewise.
83384         * lib/fpending.h: Likewise.
83385         * lib/fprintf.c: Likewise.
83386         * lib/fprintftime.h: Likewise.
83387         * lib/fpucw.h: Likewise.
83388         * lib/fpurge.c: Likewise.
83389         * lib/fpurge.h: Likewise.
83390         * lib/freadable.c: Likewise.
83391         * lib/freadable.h: Likewise.
83392         * lib/freadahead.c: Likewise.
83393         * lib/freadahead.h: Likewise.
83394         * lib/freading.c: Likewise.
83395         * lib/freading.h: Likewise.
83396         * lib/free.c: Likewise.
83397         * lib/freopen.c: Likewise.
83398         * lib/frexp.c: Likewise.
83399         * lib/frexpl.c: Likewise.
83400         * lib/fseek.c: Likewise.
83401         * lib/fseterr.c: Likewise.
83402         * lib/fseterr.h: Likewise.
83403         * lib/fstatat.c: Likewise.
83404         * lib/fstrcmp.c: Likewise.
83405         * lib/fstrcmp.h: Likewise.
83406         * lib/fsusage.c: Likewise.
83407         * lib/fsusage.h: Likewise.
83408         * lib/ftell.c: Likewise.
83409         * lib/ftello.c: Likewise.
83410         * lib/fts-cycle.c: Likewise.
83411         * lib/fts.c: Likewise.
83412         * lib/fts_.h: Likewise.
83413         * lib/full-read.c: Likewise.
83414         * lib/full-read.h: Likewise.
83415         * lib/full-write.c: Likewise.
83416         * lib/full-write.h: Likewise.
83417         * lib/fwritable.c: Likewise.
83418         * lib/fwritable.h: Likewise.
83419         * lib/fwriteerror.c: Likewise.
83420         * lib/fwriteerror.h: Likewise.
83421         * lib/fwriting.c: Likewise.
83422         * lib/fwriting.h: Likewise.
83423         * lib/gcd.c: Likewise.
83424         * lib/gcd.h: Likewise.
83425         * lib/getcwd.c: Likewise.
83426         * lib/getdate.h: Likewise.
83427         * lib/getdate.y: Likewise.
83428         * lib/getdomainname.c: Likewise.
83429         * lib/getdomainname.h: Likewise.
83430         * lib/getgroups.c: Likewise.
83431         * lib/gethostname.c: Likewise.
83432         * lib/gethrxtime.c: Likewise.
83433         * lib/gethrxtime.h: Likewise.
83434         * lib/getloadavg.c: Likewise.
83435         * lib/getndelim2.c: Likewise.
83436         * lib/getndelim2.h: Likewise.
83437         * lib/getnline.c: Likewise.
83438         * lib/getnline.h: Likewise.
83439         * lib/getopt.c: Likewise.
83440         * lib/getopt.in.h: Likewise.
83441         * lib/getopt1.c: Likewise.
83442         * lib/getopt_int.h: Likewise.
83443         * lib/getpagesize.h: Likewise.
83444         * lib/getsubopt.c: Likewise.
83445         * lib/gettime.c: Likewise.
83446         * lib/getugroups.c: Likewise.
83447         * lib/getugroups.h: Likewise.
83448         * lib/getusershell.c: Likewise.
83449         * lib/gl_anyavltree_list1.h: Likewise.
83450         * lib/gl_anyavltree_list2.h: Likewise.
83451         * lib/gl_anyhash_list1.h: Likewise.
83452         * lib/gl_anyhash_list2.h: Likewise.
83453         * lib/gl_anylinked_list1.h: Likewise.
83454         * lib/gl_anylinked_list2.h: Likewise.
83455         * lib/gl_anyrbtree_list1.h: Likewise.
83456         * lib/gl_anyrbtree_list2.h: Likewise.
83457         * lib/gl_anytree_list1.h: Likewise.
83458         * lib/gl_anytree_list2.h: Likewise.
83459         * lib/gl_anytree_oset.h: Likewise.
83460         * lib/gl_anytreehash_list1.h: Likewise.
83461         * lib/gl_anytreehash_list2.h: Likewise.
83462         * lib/gl_array_list.c: Likewise.
83463         * lib/gl_array_list.h: Likewise.
83464         * lib/gl_array_oset.c: Likewise.
83465         * lib/gl_array_oset.h: Likewise.
83466         * lib/gl_avltree_list.c: Likewise.
83467         * lib/gl_avltree_list.h: Likewise.
83468         * lib/gl_avltree_oset.c: Likewise.
83469         * lib/gl_avltree_oset.h: Likewise.
83470         * lib/gl_avltreehash_list.c: Likewise.
83471         * lib/gl_avltreehash_list.h: Likewise.
83472         * lib/gl_carray_list.c: Likewise.
83473         * lib/gl_carray_list.h: Likewise.
83474         * lib/gl_linked_list.c: Likewise.
83475         * lib/gl_linked_list.h: Likewise.
83476         * lib/gl_linkedhash_list.c: Likewise.
83477         * lib/gl_linkedhash_list.h: Likewise.
83478         * lib/gl_list.c: Likewise.
83479         * lib/gl_list.h: Likewise.
83480         * lib/gl_oset.c: Likewise.
83481         * lib/gl_oset.h: Likewise.
83482         * lib/gl_rbtree_list.c: Likewise.
83483         * lib/gl_rbtree_list.h: Likewise.
83484         * lib/gl_rbtree_oset.c: Likewise.
83485         * lib/gl_rbtree_oset.h: Likewise.
83486         * lib/gl_rbtreehash_list.c: Likewise.
83487         * lib/gl_rbtreehash_list.h: Likewise.
83488         * lib/gl_sublist.c: Likewise.
83489         * lib/gl_sublist.h: Likewise.
83490         * lib/group-member.c: Likewise.
83491         * lib/group-member.h: Likewise.
83492         * lib/hard-locale.c: Likewise.
83493         * lib/hard-locale.h: Likewise.
83494         * lib/hash-pjw.c: Likewise.
83495         * lib/hash-pjw.h: Likewise.
83496         * lib/hash-triple.c: Likewise.
83497         * lib/hash.c: Likewise.
83498         * lib/hash.h: Likewise.
83499         * lib/human.c: Likewise.
83500         * lib/human.h: Likewise.
83501         * lib/i-ring.c: Likewise.
83502         * lib/i-ring.h: Likewise.
83503         * lib/idcache.c: Likewise.
83504         * lib/imaxabs.c: Likewise.
83505         * lib/imaxdiv.c: Likewise.
83506         * lib/inet_pton.c: Likewise.
83507         * lib/inet_pton.h: Likewise.
83508         * lib/intprops.h: Likewise.
83509         * lib/inttostr.c: Likewise.
83510         * lib/inttostr.h: Likewise.
83511         * lib/inttypes.in.h: Likewise.
83512         * lib/isapipe.c: Likewise.
83513         * lib/isdir.c: Likewise.
83514         * lib/isnan.c: Likewise.
83515         * lib/isnan.h: Likewise.
83516         * lib/isnanf.c: Likewise.
83517         * lib/isnanf.h: Likewise.
83518         * lib/isnanl-nolibm.h: Likewise.
83519         * lib/isnanl.c: Likewise.
83520         * lib/isnanl.h: Likewise.
83521         * lib/javacomp.c: Likewise.
83522         * lib/javacomp.h: Likewise.
83523         * lib/javaexec.c: Likewise.
83524         * lib/javaexec.h: Likewise.
83525         * lib/javaversion.c: Likewise.
83526         * lib/javaversion.h: Likewise.
83527         * lib/javaversion.java: Likewise.
83528         * lib/lbrkprop.h: Likewise.
83529         * lib/lchmod.h: Likewise.
83530         * lib/lchown.c: Likewise.
83531         * lib/ldexpl.c: Likewise.
83532         * lib/linebreak.c: Likewise.
83533         * lib/linebreak.h: Likewise.
83534         * lib/linebuffer.c: Likewise.
83535         * lib/linebuffer.h: Likewise.
83536         * lib/locale.in.h: Likewise.
83537         * lib/logl.c: Likewise.
83538         * lib/long-options.c: Likewise.
83539         * lib/long-options.h: Likewise.
83540         * lib/lstat.c: Likewise.
83541         * lib/lstat.h: Likewise.
83542         * lib/math.in.h: Likewise.
83543         * lib/mbchar.c: Likewise.
83544         * lib/mbchar.h: Likewise.
83545         * lib/mbfile.h: Likewise.
83546         * lib/mbiter.h: Likewise.
83547         * lib/mbscasecmp.c: Likewise.
83548         * lib/mbscasestr.c: Likewise.
83549         * lib/mbschr.c: Likewise.
83550         * lib/mbscspn.c: Likewise.
83551         * lib/mbslen.c: Likewise.
83552         * lib/mbsncasecmp.c: Likewise.
83553         * lib/mbsnlen.c: Likewise.
83554         * lib/mbspbrk.c: Likewise.
83555         * lib/mbspcasecmp.c: Likewise.
83556         * lib/mbsrchr.c: Likewise.
83557         * lib/mbssep.c: Likewise.
83558         * lib/mbsspn.c: Likewise.
83559         * lib/mbsstr.c: Likewise.
83560         * lib/mbstok_r.c: Likewise.
83561         * lib/mbswidth.c: Likewise.
83562         * lib/mbswidth.h: Likewise.
83563         * lib/mbuiter.h: Likewise.
83564         * lib/memcasecmp.c: Likewise.
83565         * lib/memcasecmp.h: Likewise.
83566         * lib/memchr.c: Likewise.
83567         * lib/memcmp.c: Likewise.
83568         * lib/memcoll.c: Likewise.
83569         * lib/memcoll.h: Likewise.
83570         * lib/memcpy.c: Likewise.
83571         * lib/memrchr.c: Likewise.
83572         * lib/mkancesdirs.c: Likewise.
83573         * lib/mkdir-p.c: Likewise.
83574         * lib/mkdir-p.h: Likewise.
83575         * lib/mkdir.c: Likewise.
83576         * lib/mkdirat.c: Likewise.
83577         * lib/mkdtemp.c: Likewise.
83578         * lib/mkstemp-safer.c: Likewise.
83579         * lib/mkstemp.c: Likewise.
83580         * lib/modechange.c: Likewise.
83581         * lib/modechange.h: Likewise.
83582         * lib/mountlist.c: Likewise.
83583         * lib/mountlist.h: Likewise.
83584         * lib/mpsort.c: Likewise.
83585         * lib/nanosleep.c: Likewise.
83586         * lib/obstack.c: Likewise.
83587         * lib/obstack.h: Likewise.
83588         * lib/open-safer.c: Likewise.
83589         * lib/open.c: Likewise.
83590         * lib/openat-die.c: Likewise.
83591         * lib/openat-priv.h: Likewise.
83592         * lib/openat-proc.c: Likewise.
83593         * lib/openat.c: Likewise.
83594         * lib/openat.h: Likewise.
83595         * lib/pagealign_alloc.c: Likewise.
83596         * lib/pagealign_alloc.h: Likewise.
83597         * lib/physmem.c: Likewise.
83598         * lib/physmem.h: Likewise.
83599         * lib/pipe-safer.c: Likewise.
83600         * lib/pipe.c: Likewise.
83601         * lib/pipe.h: Likewise.
83602         * lib/posixtm.c: Likewise.
83603         * lib/posixtm.h: Likewise.
83604         * lib/posixver.c: Likewise.
83605         * lib/printf-frexp.c: Likewise.
83606         * lib/printf-frexp.h: Likewise.
83607         * lib/printf-frexpl.c: Likewise.
83608         * lib/printf-frexpl.h: Likewise.
83609         * lib/printf.c: Likewise.
83610         * lib/progname.c: Likewise.
83611         * lib/progname.h: Likewise.
83612         * lib/progreloc.c: Likewise.
83613         * lib/putenv.c: Likewise.
83614         * lib/quote.c: Likewise.
83615         * lib/quote.h: Likewise.
83616         * lib/quotearg.c: Likewise.
83617         * lib/quotearg.h: Likewise.
83618         * lib/raise.c: Likewise.
83619         * lib/readline.c: Likewise.
83620         * lib/readline.h: Likewise.
83621         * lib/readlink.c: Likewise.
83622         * lib/readtokens.c: Likewise.
83623         * lib/readtokens.h: Likewise.
83624         * lib/readtokens0.c: Likewise.
83625         * lib/readtokens0.h: Likewise.
83626         * lib/readutmp.c: Likewise.
83627         * lib/readutmp.h: Likewise.
83628         * lib/realloc.c: Likewise.
83629         * lib/relocwrapper.c: Likewise.
83630         * lib/rename-dest-slash.c: Likewise.
83631         * lib/rename.c: Likewise.
83632         * lib/rmdir.c: Likewise.
83633         * lib/rpmatch.c: Likewise.
83634         * lib/safe-read.c: Likewise.
83635         * lib/safe-read.h: Likewise.
83636         * lib/safe-write.c: Likewise.
83637         * lib/safe-write.h: Likewise.
83638         * lib/same-inode.h: Likewise.
83639         * lib/same.c: Likewise.
83640         * lib/same.h: Likewise.
83641         * lib/save-cwd.c: Likewise.
83642         * lib/save-cwd.h: Likewise.
83643         * lib/savedir.c: Likewise.
83644         * lib/savedir.h: Likewise.
83645         * lib/savewd.c: Likewise.
83646         * lib/savewd.h: Likewise.
83647         * lib/search.in.h: Likewise.
83648         * lib/setenv.c: Likewise.
83649         * lib/setenv.h: Likewise.
83650         * lib/settime.c: Likewise.
83651         * lib/sh-quote.c: Likewise.
83652         * lib/sh-quote.h: Likewise.
83653         * lib/sig2str.c: Likewise.
83654         * lib/sig2str.h: Likewise.
83655         * lib/signal.in.h: Likewise.
83656         * lib/signbitd.c: Likewise.
83657         * lib/signbitf.c: Likewise.
83658         * lib/signbitl.c: Likewise.
83659         * lib/sigprocmask.c: Likewise.
83660         * lib/sincosl.c: Likewise.
83661         * lib/sleep.c: Likewise.
83662         * lib/sprintf.c: Likewise.
83663         * lib/sqrtl.c: Likewise.
83664         * lib/stat-time.h: Likewise.
83665         * lib/stdio--.h: Likewise.
83666         * lib/stdio-safer.h: Likewise.
83667         * lib/stdlib--.h: Likewise.
83668         * lib/stdlib-safer.h: Likewise.
83669         * lib/stdlib.in.h: Likewise.
83670         * lib/stpcpy.c: Likewise.
83671         * lib/stpncpy.c: Likewise.
83672         * lib/strchrnul.c: Likewise.
83673         * lib/strcspn.c: Likewise.
83674         * lib/strerror.c: Likewise.
83675         * lib/strftime.c: Likewise.
83676         * lib/strftime.h: Likewise.
83677         * lib/striconveh.c: Likewise.
83678         * lib/striconveh.h: Likewise.
83679         * lib/striconveha.c: Likewise.
83680         * lib/striconveha.h: Likewise.
83681         * lib/stripslash.c: Likewise.
83682         * lib/strnlen1.c: Likewise.
83683         * lib/strnlen1.h: Likewise.
83684         * lib/strtod.c: Likewise.
83685         * lib/strtoimax.c: Likewise.
83686         * lib/strtok_r.c: Likewise.
83687         * lib/strtol.c: Likewise.
83688         * lib/strtoll.c: Likewise.
83689         * lib/strtoul.c: Likewise.
83690         * lib/strtoull.c: Likewise.
83691         * lib/sysexits.in.h: Likewise.
83692         * lib/tempname.c: Likewise.
83693         * lib/tempname.h: Likewise.
83694         * lib/timespec.h: Likewise.
83695         * lib/tls.c: Likewise.
83696         * lib/tls.h: Likewise.
83697         * lib/tmpdir.c: Likewise.
83698         * lib/tmpdir.h: Likewise.
83699         * lib/tmpfile-safer.c: Likewise.
83700         * lib/tmpfile.c: Likewise.
83701         * lib/trigl.c: Likewise.
83702         * lib/trigl.h: Likewise.
83703         * lib/trim.c: Likewise.
83704         * lib/trim.h: Likewise.
83705         * lib/trunc.c: Likewise.
83706         * lib/truncf.c: Likewise.
83707         * lib/truncl.c: Likewise.
83708         * lib/tsearch.c: Likewise.
83709         * lib/unicodeio.c: Likewise.
83710         * lib/unicodeio.h: Likewise.
83711         * lib/unistd--.h: Likewise.
83712         * lib/unistd-safer.h: Likewise.
83713         * lib/unistdio/ulc-fprintf.c: Likewise.
83714         * lib/unistdio/ulc-vfprintf.c: Likewise.
83715         * lib/unlinkdir.c: Likewise.
83716         * lib/unlinkdir.h: Likewise.
83717         * lib/unlocked-io.h: Likewise.
83718         * lib/unsetenv.c: Likewise.
83719         * lib/userspec.c: Likewise.
83720         * lib/utime.c: Likewise.
83721         * lib/utimecmp.c: Likewise.
83722         * lib/utimecmp.h: Likewise.
83723         * lib/utimens.c: Likewise.
83724         * lib/verify.h: Likewise.
83725         * lib/verror.c: Likewise.
83726         * lib/verror.h: Likewise.
83727         * lib/version-etc-fsf.c: Likewise.
83728         * lib/version-etc.c: Likewise.
83729         * lib/version-etc.h: Likewise.
83730         * lib/vfprintf.c: Likewise.
83731         * lib/vprintf.c: Likewise.
83732         * lib/vsprintf.c: Likewise.
83733         * lib/w32spawn.h: Likewise.
83734         * lib/wait-process.c: Likewise.
83735         * lib/wait-process.h: Likewise.
83736         * lib/wcwidth.c: Likewise.
83737         * lib/write-any-file.c: Likewise.
83738         * lib/xalloc-die.c: Likewise.
83739         * lib/xalloc.h: Likewise.
83740         * lib/xasprintf.c: Likewise.
83741         * lib/xgetcwd.c: Likewise.
83742         * lib/xgetcwd.h: Likewise.
83743         * lib/xgetdomainname.c: Likewise.
83744         * lib/xgetdomainname.h: Likewise.
83745         * lib/xgethostname.c: Likewise.
83746         * lib/xmalloc.c: Likewise.
83747         * lib/xmalloca.c: Likewise.
83748         * lib/xmalloca.h: Likewise.
83749         * lib/xmemcoll.c: Likewise.
83750         * lib/xnanosleep.c: Likewise.
83751         * lib/xreadlink.c: Likewise.
83752         * lib/xreadlink.h: Likewise.
83753         * lib/xsetenv.c: Likewise.
83754         * lib/xsetenv.h: Likewise.
83755         * lib/xstriconv.c: Likewise.
83756         * lib/xstriconv.h: Likewise.
83757         * lib/xstrndup.c: Likewise.
83758         * lib/xstrndup.h: Likewise.
83759         * lib/xstrtod.c: Likewise.
83760         * lib/xstrtod.h: Likewise.
83761         * lib/xstrtol-error.c: Likewise.
83762         * lib/xstrtol.c: Likewise.
83763         * lib/xstrtol.h: Likewise.
83764         * lib/xtime.h: Likewise.
83765         * lib/xvasprintf.c: Likewise.
83766         * lib/xvasprintf.h: Likewise.
83767         * lib/yesno.c: Likewise.
83768         * lib/yesno.h: Likewise.
83769         * posix-modules: Likewise.
83770         * tests/test-alloca-opt.c: Likewise.
83771         * tests/test-arcfour.c: Likewise.
83772         * tests/test-arctwo.c: Likewise.
83773         * tests/test-argmatch.c: Likewise.
83774         * tests/test-argp-2.sh: Likewise.
83775         * tests/test-argp.c: Likewise.
83776         * tests/test-arpa_inet.c: Likewise.
83777         * tests/test-array_list.c: Likewise.
83778         * tests/test-array_oset.c: Likewise.
83779         * tests/test-atexit.c: Likewise.
83780         * tests/test-avltree_list.c: Likewise.
83781         * tests/test-avltree_oset.c: Likewise.
83782         * tests/test-avltreehash_list.c: Likewise.
83783         * tests/test-base64.c: Likewise.
83784         * tests/test-binary-io.c: Likewise.
83785         * tests/test-byteswap.c: Likewise.
83786         * tests/test-c-ctype.c: Likewise.
83787         * tests/test-c-strcasecmp.c: Likewise.
83788         * tests/test-c-strcasestr.c: Likewise.
83789         * tests/test-c-strncasecmp.c: Likewise.
83790         * tests/test-c-strstr.c: Likewise.
83791         * tests/test-canonicalize-lgpl.c: Likewise.
83792         * tests/test-canonicalize.c: Likewise.
83793         * tests/test-carray_list.c: Likewise.
83794         * tests/test-ceilf.c: Likewise.
83795         * tests/test-ceill.c: Likewise.
83796         * tests/test-count-one-bits.c: Likewise.
83797         * tests/test-crc.c: Likewise.
83798         * tests/test-dirname.c: Likewise.
83799         * tests/test-fbufmode.c: Likewise.
83800         * tests/test-fcntl.c: Likewise.
83801         * tests/test-fflush.c: Likewise.
83802         * tests/test-floorf.c: Likewise.
83803         * tests/test-floorl.c: Likewise.
83804         * tests/test-fopen.c: Likewise.
83805         * tests/test-fprintf-posix.c: Likewise.
83806         * tests/test-fprintf-posix.h: Likewise.
83807         * tests/test-fpurge.c: Likewise.
83808         * tests/test-freadable.c: Likewise.
83809         * tests/test-freadahead.c: Likewise.
83810         * tests/test-freading.c: Likewise.
83811         * tests/test-freopen.c: Likewise.
83812         * tests/test-frexp.c: Likewise.
83813         * tests/test-frexpl.c: Likewise.
83814         * tests/test-fseek.c: Likewise.
83815         * tests/test-fseeko.c: Likewise.
83816         * tests/test-fseterr.c: Likewise.
83817         * tests/test-fstrcmp.c: Likewise.
83818         * tests/test-ftell.c: Likewise.
83819         * tests/test-ftello.c: Likewise.
83820         * tests/test-fwritable.c: Likewise.
83821         * tests/test-fwriting.c: Likewise.
83822         * tests/test-getaddrinfo.c: Likewise.
83823         * tests/test-getpass.c: Likewise.
83824         * tests/test-gettimeofday.c: Likewise.
83825         * tests/test-hmac-md5.c: Likewise.
83826         * tests/test-hmac-sha1.c: Likewise.
83827         * tests/test-iconv.c: Likewise.
83828         * tests/test-iconvme.c: Likewise.
83829         * tests/test-inttypes.c: Likewise.
83830         * tests/test-isnan.c: Likewise.
83831         * tests/test-isnanf.c: Likewise.
83832         * tests/test-isnanl-nolibm.c: Likewise.
83833         * tests/test-isnanl.c: Likewise.
83834         * tests/test-isnanl.h: Likewise.
83835         * tests/test-ldexpl.c: Likewise.
83836         * tests/test-linked_list.c: Likewise.
83837         * tests/test-linkedhash_list.c: Likewise.
83838         * tests/test-locale.c: Likewise.
83839         * tests/test-localename.c: Likewise.
83840         * tests/test-lock.c: Likewise.
83841         * tests/test-lseek.c: Likewise.
83842         * tests/test-malloca.c: Likewise.
83843         * tests/test-math.c: Likewise.
83844         * tests/test-mbscasecmp.c: Likewise.
83845         * tests/test-mbscasestr1.c: Likewise.
83846         * tests/test-mbscasestr2.c: Likewise.
83847         * tests/test-mbscasestr3.c: Likewise.
83848         * tests/test-mbscasestr4.c: Likewise.
83849         * tests/test-mbschr.c: Likewise.
83850         * tests/test-mbscspn.c: Likewise.
83851         * tests/test-mbsncasecmp.c: Likewise.
83852         * tests/test-mbspbrk.c: Likewise.
83853         * tests/test-mbspcasecmp.c: Likewise.
83854         * tests/test-mbsrchr.c: Likewise.
83855         * tests/test-mbsspn.c: Likewise.
83856         * tests/test-mbsstr1.c: Likewise.
83857         * tests/test-mbsstr2.c: Likewise.
83858         * tests/test-mbsstr3.c: Likewise.
83859         * tests/test-md5.c: Likewise.
83860         * tests/test-memmem.c: Likewise.
83861         * tests/test-netinet_in.c: Likewise.
83862         * tests/test-open.c: Likewise.
83863         * tests/test-printf-frexp.c: Likewise.
83864         * tests/test-printf-frexpl.c: Likewise.
83865         * tests/test-printf-posix.c: Likewise.
83866         * tests/test-printf-posix.h: Likewise.
83867         * tests/test-rbtree_list.c: Likewise.
83868         * tests/test-rbtree_oset.c: Likewise.
83869         * tests/test-rbtreehash_list.c: Likewise.
83870         * tests/test-read-file.c: Likewise.
83871         * tests/test-rijndael.c: Likewise.
83872         * tests/test-search.c: Likewise.
83873         * tests/test-signbit.c: Likewise.
83874         * tests/test-sleep.c: Likewise.
83875         * tests/test-snprintf-posix.c: Likewise.
83876         * tests/test-snprintf-posix.h: Likewise.
83877         * tests/test-snprintf.c: Likewise.
83878         * tests/test-sprintf-posix.c: Likewise.
83879         * tests/test-sprintf-posix.h: Likewise.
83880         * tests/test-stat-time.c: Likewise.
83881         * tests/test-stdbool.c: Likewise.
83882         * tests/test-stdint.c: Likewise.
83883         * tests/test-stdio.c: Likewise.
83884         * tests/test-stdlib.c: Likewise.
83885         * tests/test-stpncpy.c: Likewise.
83886         * tests/test-strcasestr.c: Likewise.
83887         * tests/test-striconv.c: Likewise.
83888         * tests/test-striconveh.c: Likewise.
83889         * tests/test-striconveha.c: Likewise.
83890         * tests/test-string.c: Likewise.
83891         * tests/test-sys_select.c: Likewise.
83892         * tests/test-sys_socket.c: Likewise.
83893         * tests/test-sys_stat.c: Likewise.
83894         * tests/test-sys_time.c: Likewise.
83895         * tests/test-sysexits.c: Likewise.
83896         * tests/test-time.c: Likewise.
83897         * tests/test-tls.c: Likewise.
83898         * tests/test-trunc.c: Likewise.
83899         * tests/test-truncf.c: Likewise.
83900         * tests/test-truncl.c: Likewise.
83901         * tests/test-unistd.c: Likewise.
83902         * tests/test-vasnprintf-posix.c: Likewise.
83903         * tests/test-vasnprintf-posix2.c: Likewise.
83904         * tests/test-vasnprintf.c: Likewise.
83905         * tests/test-vasprintf-posix.c: Likewise.
83906         * tests/test-vasprintf.c: Likewise.
83907         * tests/test-verify.c: Likewise.
83908         * tests/test-vfprintf-posix.c: Likewise.
83909         * tests/test-vprintf-posix.c: Likewise.
83910         * tests/test-vsnprintf-posix.c: Likewise.
83911         * tests/test-vsnprintf.c: Likewise.
83912         * tests/test-vsprintf-posix.c: Likewise.
83913         * tests/test-wchar.c: Likewise.
83914         * tests/test-wctype.c: Likewise.
83915         * tests/test-wcwidth.c: Likewise.
83916         * tests/test-xstrtol.c: Likewise.
83917         * tests/test-xvasprintf.c: Likewise.
83918         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
83919         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
83920         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
83921         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
83922         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
83923         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
83924         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
83925         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
83926         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
83927         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
83928         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
83929         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
83930         * tests/uniname/test-uninames.c: Likewise.
83931         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
83932         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
83933         * tests/unistdio/test-u16-printf1.h: Likewise.
83934         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
83935         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
83936         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
83937         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
83938         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
83939         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
83940         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
83941         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
83942         * tests/unistdio/test-u32-printf1.h: Likewise.
83943         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
83944         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
83945         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
83946         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
83947         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
83948         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
83949         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
83950         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
83951         * tests/unistdio/test-u8-printf1.h: Likewise.
83952         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
83953         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
83954         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
83955         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
83956         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
83957         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
83958         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
83959         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
83960         * tests/unistdio/test-ulc-printf1.h: Likewise.
83961         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
83962         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
83963         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
83964         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
83965         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
83966         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
83967         * tests/uniwidth/test-u16-strwidth.c: Likewise.
83968         * tests/uniwidth/test-u16-width.c: Likewise.
83969         * tests/uniwidth/test-u32-strwidth.c: Likewise.
83970         * tests/uniwidth/test-u32-width.c: Likewise.
83971         * tests/uniwidth/test-u8-strwidth.c: Likewise.
83972         * tests/uniwidth/test-u8-width.c: Likewise.
83973         * tests/uniwidth/test-uc_width.c: Likewise.
83974         * config/srclist-update: Likewise.
83975         (fixlicense): Update to GPLv3+.
83977         Change copyright notice from LGPLv2.1+ to LGPLv3+.
83978         * tests/test-tsearch.c: Change copyright notice.
83980         Change copyright notice from LGPLv2.0+ to LGPLv3+.
83981         * lib/c-strcaseeq.h: Change copyright notice.
83982         * lib/streq.h: Likewise.
83983         * lib/uniconv.h: Likewise.
83984         * lib/uniconv/u-conv-from-enc.h: Likewise.
83985         * lib/uniconv/u-conv-to-enc.h: Likewise.
83986         * lib/uniconv/u-strconv-from-enc.h: Likewise.
83987         * lib/uniconv/u-strconv-to-enc.h: Likewise.
83988         * lib/uniconv/u16-conv-from-enc.c: Likewise.
83989         * lib/uniconv/u16-conv-to-enc.c: Likewise.
83990         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
83991         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
83992         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
83993         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
83994         * lib/uniconv/u32-conv-from-enc.c: Likewise.
83995         * lib/uniconv/u32-conv-to-enc.c: Likewise.
83996         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
83997         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
83998         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
83999         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
84000         * lib/uniconv/u8-conv-from-enc.c: Likewise.
84001         * lib/uniconv/u8-conv-to-enc.c: Likewise.
84002         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
84003         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
84004         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
84005         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
84006         * lib/uniname.h: Likewise.
84007         * lib/uniname/uniname.c: Likewise.
84008         * lib/unistdio.h: Likewise.
84009         * lib/unistdio/u-asnprintf.h: Likewise.
84010         * lib/unistdio/u-asprintf.h: Likewise.
84011         * lib/unistdio/u-printf-args.c: Likewise.
84012         * lib/unistdio/u-printf-args.h: Likewise.
84013         * lib/unistdio/u-printf-parse.h: Likewise.
84014         * lib/unistdio/u-snprintf.h: Likewise.
84015         * lib/unistdio/u-sprintf.h: Likewise.
84016         * lib/unistdio/u-vasprintf.h: Likewise.
84017         * lib/unistdio/u-vsnprintf.h: Likewise.
84018         * lib/unistdio/u-vsprintf.h: Likewise.
84019         * lib/unistdio/u16-asnprintf.c: Likewise.
84020         * lib/unistdio/u16-asprintf.c: Likewise.
84021         * lib/unistdio/u16-printf-parse.c: Likewise.
84022         * lib/unistdio/u16-snprintf.c: Likewise.
84023         * lib/unistdio/u16-sprintf.c: Likewise.
84024         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
84025         * lib/unistdio/u16-u16-asprintf.c: Likewise.
84026         * lib/unistdio/u16-u16-snprintf.c: Likewise.
84027         * lib/unistdio/u16-u16-sprintf.c: Likewise.
84028         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
84029         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
84030         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
84031         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
84032         * lib/unistdio/u16-vasnprintf.c: Likewise.
84033         * lib/unistdio/u16-vasprintf.c: Likewise.
84034         * lib/unistdio/u16-vsnprintf.c: Likewise.
84035         * lib/unistdio/u16-vsprintf.c: Likewise.
84036         * lib/unistdio/u32-asnprintf.c: Likewise.
84037         * lib/unistdio/u32-asprintf.c: Likewise.
84038         * lib/unistdio/u32-printf-parse.c: Likewise.
84039         * lib/unistdio/u32-snprintf.c: Likewise.
84040         * lib/unistdio/u32-sprintf.c: Likewise.
84041         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
84042         * lib/unistdio/u32-u32-asprintf.c: Likewise.
84043         * lib/unistdio/u32-u32-snprintf.c: Likewise.
84044         * lib/unistdio/u32-u32-sprintf.c: Likewise.
84045         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
84046         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
84047         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
84048         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
84049         * lib/unistdio/u32-vasnprintf.c: Likewise.
84050         * lib/unistdio/u32-vasprintf.c: Likewise.
84051         * lib/unistdio/u32-vsnprintf.c: Likewise.
84052         * lib/unistdio/u32-vsprintf.c: Likewise.
84053         * lib/unistdio/u8-asnprintf.c: Likewise.
84054         * lib/unistdio/u8-asprintf.c: Likewise.
84055         * lib/unistdio/u8-printf-parse.c: Likewise.
84056         * lib/unistdio/u8-snprintf.c: Likewise.
84057         * lib/unistdio/u8-sprintf.c: Likewise.
84058         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
84059         * lib/unistdio/u8-u8-asprintf.c: Likewise.
84060         * lib/unistdio/u8-u8-snprintf.c: Likewise.
84061         * lib/unistdio/u8-u8-sprintf.c: Likewise.
84062         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
84063         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
84064         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
84065         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
84066         * lib/unistdio/u8-vasnprintf.c: Likewise.
84067         * lib/unistdio/u8-vasprintf.c: Likewise.
84068         * lib/unistdio/u8-vsnprintf.c: Likewise.
84069         * lib/unistdio/u8-vsprintf.c: Likewise.
84070         * lib/unistdio/ulc-asnprintf.c: Likewise.
84071         * lib/unistdio/ulc-asprintf.c: Likewise.
84072         * lib/unistdio/ulc-printf-parse.c: Likewise.
84073         * lib/unistdio/ulc-snprintf.c: Likewise.
84074         * lib/unistdio/ulc-sprintf.c: Likewise.
84075         * lib/unistdio/ulc-vasnprintf.c: Likewise.
84076         * lib/unistdio/ulc-vasprintf.c: Likewise.
84077         * lib/unistdio/ulc-vsnprintf.c: Likewise.
84078         * lib/unistdio/ulc-vsprintf.c: Likewise.
84079         * lib/unistr.h: Likewise.
84080         * lib/unistr/u-cpy-alloc.h: Likewise.
84081         * lib/unistr/u-cpy.h: Likewise.
84082         * lib/unistr/u-endswith.h: Likewise.
84083         * lib/unistr/u-move.h: Likewise.
84084         * lib/unistr/u-set.h: Likewise.
84085         * lib/unistr/u-startswith.h: Likewise.
84086         * lib/unistr/u-stpcpy.h: Likewise.
84087         * lib/unistr/u-stpncpy.h: Likewise.
84088         * lib/unistr/u-strcat.h: Likewise.
84089         * lib/unistr/u-strcpy.h: Likewise.
84090         * lib/unistr/u-strcspn.h: Likewise.
84091         * lib/unistr/u-strdup.h: Likewise.
84092         * lib/unistr/u-strlen.h: Likewise.
84093         * lib/unistr/u-strncat.h: Likewise.
84094         * lib/unistr/u-strncpy.h: Likewise.
84095         * lib/unistr/u-strnlen.h: Likewise.
84096         * lib/unistr/u-strpbrk.h: Likewise.
84097         * lib/unistr/u-strspn.h: Likewise.
84098         * lib/unistr/u-strstr.h: Likewise.
84099         * lib/unistr/u-strtok.h: Likewise.
84100         * lib/unistr/u16-check.c: Likewise.
84101         * lib/unistr/u16-chr.c: Likewise.
84102         * lib/unistr/u16-cmp.c: Likewise.
84103         * lib/unistr/u16-cpy-alloc.c: Likewise.
84104         * lib/unistr/u16-cpy.c: Likewise.
84105         * lib/unistr/u16-endswith.c: Likewise.
84106         * lib/unistr/u16-mblen.c: Likewise.
84107         * lib/unistr/u16-mbsnlen.c: Likewise.
84108         * lib/unistr/u16-mbtouc-aux.c: Likewise.
84109         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
84110         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
84111         * lib/unistr/u16-mbtouc.c: Likewise.
84112         * lib/unistr/u16-mbtoucr.c: Likewise.
84113         * lib/unistr/u16-move.c: Likewise.
84114         * lib/unistr/u16-next.c: Likewise.
84115         * lib/unistr/u16-prev.c: Likewise.
84116         * lib/unistr/u16-set.c: Likewise.
84117         * lib/unistr/u16-startswith.c: Likewise.
84118         * lib/unistr/u16-stpcpy.c: Likewise.
84119         * lib/unistr/u16-stpncpy.c: Likewise.
84120         * lib/unistr/u16-strcat.c: Likewise.
84121         * lib/unistr/u16-strchr.c: Likewise.
84122         * lib/unistr/u16-strcmp.c: Likewise.
84123         * lib/unistr/u16-strcpy.c: Likewise.
84124         * lib/unistr/u16-strcspn.c: Likewise.
84125         * lib/unistr/u16-strdup.c: Likewise.
84126         * lib/unistr/u16-strlen.c: Likewise.
84127         * lib/unistr/u16-strmblen.c: Likewise.
84128         * lib/unistr/u16-strmbtouc.c: Likewise.
84129         * lib/unistr/u16-strncat.c: Likewise.
84130         * lib/unistr/u16-strncmp.c: Likewise.
84131         * lib/unistr/u16-strncpy.c: Likewise.
84132         * lib/unistr/u16-strnlen.c: Likewise.
84133         * lib/unistr/u16-strpbrk.c: Likewise.
84134         * lib/unistr/u16-strrchr.c: Likewise.
84135         * lib/unistr/u16-strspn.c: Likewise.
84136         * lib/unistr/u16-strstr.c: Likewise.
84137         * lib/unistr/u16-strtok.c: Likewise.
84138         * lib/unistr/u16-to-u32.c: Likewise.
84139         * lib/unistr/u16-to-u8.c: Likewise.
84140         * lib/unistr/u16-uctomb-aux.c: Likewise.
84141         * lib/unistr/u16-uctomb.c: Likewise.
84142         * lib/unistr/u32-check.c: Likewise.
84143         * lib/unistr/u32-chr.c: Likewise.
84144         * lib/unistr/u32-cmp.c: Likewise.
84145         * lib/unistr/u32-cpy-alloc.c: Likewise.
84146         * lib/unistr/u32-cpy.c: Likewise.
84147         * lib/unistr/u32-endswith.c: Likewise.
84148         * lib/unistr/u32-mblen.c: Likewise.
84149         * lib/unistr/u32-mbsnlen.c: Likewise.
84150         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
84151         * lib/unistr/u32-mbtouc.c: Likewise.
84152         * lib/unistr/u32-mbtoucr.c: Likewise.
84153         * lib/unistr/u32-move.c: Likewise.
84154         * lib/unistr/u32-next.c: Likewise.
84155         * lib/unistr/u32-prev.c: Likewise.
84156         * lib/unistr/u32-set.c: Likewise.
84157         * lib/unistr/u32-startswith.c: Likewise.
84158         * lib/unistr/u32-stpcpy.c: Likewise.
84159         * lib/unistr/u32-stpncpy.c: Likewise.
84160         * lib/unistr/u32-strcat.c: Likewise.
84161         * lib/unistr/u32-strchr.c: Likewise.
84162         * lib/unistr/u32-strcmp.c: Likewise.
84163         * lib/unistr/u32-strcpy.c: Likewise.
84164         * lib/unistr/u32-strcspn.c: Likewise.
84165         * lib/unistr/u32-strdup.c: Likewise.
84166         * lib/unistr/u32-strlen.c: Likewise.
84167         * lib/unistr/u32-strmblen.c: Likewise.
84168         * lib/unistr/u32-strmbtouc.c: Likewise.
84169         * lib/unistr/u32-strncat.c: Likewise.
84170         * lib/unistr/u32-strncmp.c: Likewise.
84171         * lib/unistr/u32-strncpy.c: Likewise.
84172         * lib/unistr/u32-strnlen.c: Likewise.
84173         * lib/unistr/u32-strpbrk.c: Likewise.
84174         * lib/unistr/u32-strrchr.c: Likewise.
84175         * lib/unistr/u32-strspn.c: Likewise.
84176         * lib/unistr/u32-strstr.c: Likewise.
84177         * lib/unistr/u32-strtok.c: Likewise.
84178         * lib/unistr/u32-to-u16.c: Likewise.
84179         * lib/unistr/u32-to-u8.c: Likewise.
84180         * lib/unistr/u32-uctomb.c: Likewise.
84181         * lib/unistr/u8-check.c: Likewise.
84182         * lib/unistr/u8-chr.c: Likewise.
84183         * lib/unistr/u8-cmp.c: Likewise.
84184         * lib/unistr/u8-cpy-alloc.c: Likewise.
84185         * lib/unistr/u8-cpy.c: Likewise.
84186         * lib/unistr/u8-endswith.c: Likewise.
84187         * lib/unistr/u8-mblen.c: Likewise.
84188         * lib/unistr/u8-mbsnlen.c: Likewise.
84189         * lib/unistr/u8-mbtouc-aux.c: Likewise.
84190         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
84191         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
84192         * lib/unistr/u8-mbtouc.c: Likewise.
84193         * lib/unistr/u8-mbtoucr.c: Likewise.
84194         * lib/unistr/u8-move.c: Likewise.
84195         * lib/unistr/u8-next.c: Likewise.
84196         * lib/unistr/u8-prev.c: Likewise.
84197         * lib/unistr/u8-set.c: Likewise.
84198         * lib/unistr/u8-startswith.c: Likewise.
84199         * lib/unistr/u8-stpcpy.c: Likewise.
84200         * lib/unistr/u8-stpncpy.c: Likewise.
84201         * lib/unistr/u8-strcat.c: Likewise.
84202         * lib/unistr/u8-strchr.c: Likewise.
84203         * lib/unistr/u8-strcmp.c: Likewise.
84204         * lib/unistr/u8-strcpy.c: Likewise.
84205         * lib/unistr/u8-strcspn.c: Likewise.
84206         * lib/unistr/u8-strdup.c: Likewise.
84207         * lib/unistr/u8-strlen.c: Likewise.
84208         * lib/unistr/u8-strmblen.c: Likewise.
84209         * lib/unistr/u8-strmbtouc.c: Likewise.
84210         * lib/unistr/u8-strncat.c: Likewise.
84211         * lib/unistr/u8-strncmp.c: Likewise.
84212         * lib/unistr/u8-strncpy.c: Likewise.
84213         * lib/unistr/u8-strnlen.c: Likewise.
84214         * lib/unistr/u8-strpbrk.c: Likewise.
84215         * lib/unistr/u8-strrchr.c: Likewise.
84216         * lib/unistr/u8-strspn.c: Likewise.
84217         * lib/unistr/u8-strstr.c: Likewise.
84218         * lib/unistr/u8-strtok.c: Likewise.
84219         * lib/unistr/u8-to-u16.c: Likewise.
84220         * lib/unistr/u8-to-u32.c: Likewise.
84221         * lib/unistr/u8-uctomb-aux.c: Likewise.
84222         * lib/unistr/u8-uctomb.c: Likewise.
84223         * lib/unitypes.h: Likewise.
84224         * lib/uniwidth.h: Likewise.
84225         * lib/uniwidth/cjk.h: Likewise.
84226         * lib/uniwidth/u16-strwidth.c: Likewise.
84227         * lib/uniwidth/u16-width.c: Likewise.
84228         * lib/uniwidth/u32-strwidth.c: Likewise.
84229         * lib/uniwidth/u32-width.c: Likewise.
84230         * lib/uniwidth/u8-strwidth.c: Likewise.
84231         * lib/uniwidth/u8-width.c: Likewise.
84232         * lib/uniwidth/width.c: Likewise.
84234 2007-10-07  Bruno Haible  <bruno@clisp.org>
84236         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
84237         The file is still under LGPL (see modules/inttypes).
84239 2007-10-06  Bruno Haible  <bruno@clisp.org>
84241         * modules/trunc (Dependencies): Add 'extensions'.
84242         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
84243         Reported by Ben Pfaff <blp@gnu.org>.
84245 2007-10-06  Bruno Haible  <bruno@clisp.org>
84247         * modules/freopen-tests: New file.
84248         * tests/test-freopen.c: New file.
84250         * modules/fopen-tests: New file.
84251         * tests/test-fopen.c: New file.
84253         * modules/fopen: New file.
84254         * lib/fopen.c: New file.
84255         * m4/fopen.m4: New file.
84256         * modules/freopen: New file.
84257         * lib/freopen.c: New file.
84258         * m4/freopen.m4: New file.
84259         * lib/stdio.in.h (fopen, freopen): New declarations.
84260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
84261         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
84262         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
84263         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
84264         * doc/functions/fopen.texi: Mention the 'fopen' module.
84265         * doc/functions/freopen.texi: Mention the 'freopen' module.
84267 2007-10-06  Bruno Haible  <bruno@clisp.org>
84269         * modules/open-tests: New file.
84270         * tests/test-open.c: New file.
84272         * modules/open: New file.
84273         * lib/open.c: New file.
84274         * m4/open.m4: New file.
84275         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
84276         lib/open.c does.
84277         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
84278         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
84279         macros.
84280         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
84281         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
84282         REPLACE_OPEN.
84283         * doc/functions/open.texi: Mention the 'open' module.
84285 2007-10-04  Bruno Haible  <bruno@clisp.org>
84287         * modules/ceill-tests: New file.
84288         * tests/test-ceill.c: New file.
84290         * modules/ceill: New file.
84291         * lib/ceill.c: Replace entire file.
84292         * m4/ceill.m4: New file.
84293         * lib/math.in.h (ceill): Replace declaration.
84294         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
84295         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
84296         * doc/functions/ceill.texi: Mention the 'ceill' module.
84297         * modules/mathl (Files): Remove lib/ceill.c.
84298         (Depends-on): Add ceill.
84300 2007-10-04  Bruno Haible  <bruno@clisp.org>
84302         * modules/ceilf-tests: New file.
84303         * tests/test-ceilf.c: New file.
84305         * modules/ceilf: New file.
84306         * lib/ceil.c: New file.
84307         * lib/ceilf.c: New file.
84308         * m4/ceilf.m4: New file.
84309         * lib/math.in.h (ceilf): New declaration.
84310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
84311         HAVE_DECL_CEILF.
84312         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
84313         HAVE_DECL_CEILF.
84314         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
84316 2007-10-04  Bruno Haible  <bruno@clisp.org>
84318         * modules/floorl-tests: New file.
84319         * tests/test-floorl.c: New file.
84321         * modules/floorl: New file.
84322         * lib/floorl.c: Replace entire file.
84323         * m4/floorl.m4: New file.
84324         * lib/math.in.h (floorl): Replace declaration.
84325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
84326         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
84327         * doc/functions/floorl.texi: Mention the 'floorl' module.
84328         * modules/mathl (Files): Remove lib/floorl.c.
84329         (Depends-on): Add floorl.
84331 2007-10-04  Bruno Haible  <bruno@clisp.org>
84333         * modules/floorf-tests: New file.
84334         * tests/test-floorf.c: New file.
84336         * modules/floorf: New file.
84337         * lib/floor.c: New file.
84338         * lib/floorf.c: New file.
84339         * m4/floorf.m4: New file.
84340         * lib/math.in.h (floorf): New declaration.
84341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
84342         HAVE_DECL_FLOORF.
84343         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
84344         HAVE_DECL_FLOORF.
84345         * doc/functions/floorf.texi: Mention the 'floorf' module.
84347 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
84348             Bruno Haible  <bruno@clisp.org>
84350         Advertise for the Git server instead of the CVS server.
84351         * doc/gnulib-intro.texi (Steady Development): Mention the Git
84352         repository instead of the CVS one.
84353         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
84354         about all VCS systems generically.
84355         * doc/gnulib.texi (Introduction): Capitalize `Git'.
84357 2007-10-04  Bruno Haible  <bruno@clisp.org>
84359         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
84360         means.
84361         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
84363 2007-10-04  Bruno Haible  <bruno@clisp.org>
84365         * modules/truncl-tests: New file.
84366         * tests/test-truncl.c: New file.
84368         * modules/truncl: New file.
84369         * lib/truncl.c: New file.
84370         * m4/truncl.m4: New file.
84371         * lib/math.in.h (truncl): New declaration.
84372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
84373         HAVE_DECL_TRUNCL.
84374         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
84375         HAVE_DECL_TRUNCL.
84376         * doc/functions/truncl.texi: Mention the 'truncl' module.
84378 2007-10-04  Bruno Haible  <bruno@clisp.org>
84380         * modules/truncf-tests: New file.
84381         * tests/test-truncf.c: New file.
84383         * modules/truncf: New file.
84384         * lib/trunc.c: Make paramerizable through USE_* macros.
84385         * lib/truncf.c: New file.
84386         * m4/truncf.m4: New file.
84387         * lib/math.in.h (truncf): New declaration.
84388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
84389         HAVE_DECL_TRUNCF.
84390         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
84391         HAVE_DECL_TRUNCF.
84392         * doc/functions/truncf.texi: Mention the 'truncf' module.
84394 2007-10-03  Bruno Haible  <bruno@clisp.org>
84396         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
84397         augmentation also for tests modules.
84398         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
84399         * modules/atexit-tests (Makefile.am): Likewise.
84400         * modules/binary-io-tests (Makefile.am): Likewise.
84401         * modules/c-strcase-tests (Makefile.am): Likewise.
84402         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
84403         * modules/canonicalize-tests (Makefile.am): Likewise.
84404         * modules/closein-tests (Makefile.am): Likewise.
84405         * modules/fprintf-posix-tests (Makefile.am): Likewise.
84406         * modules/freadahead-tests (Makefile.am): Likewise.
84407         * modules/fseek-tests (Makefile.am): Likewise.
84408         * modules/fseeko-tests (Makefile.am): Likewise.
84409         * modules/ftell-tests (Makefile.am): Likewise.
84410         * modules/ftello-tests (Makefile.am): Likewise.
84411         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
84412         * modules/isnanl-tests (Makefile.am): Likewise.
84413         * modules/lseek-tests (Makefile.am): Likewise.
84414         * modules/mbscasecmp-tests (Makefile.am): Likewise.
84415         * modules/mbscasestr-tests (Makefile.am): Likewise.
84416         * modules/mbschr-tests (Makefile.am): Likewise.
84417         * modules/mbscspn-tests (Makefile.am): Likewise.
84418         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
84419         * modules/mbspbrk-tests (Makefile.am): Likewise.
84420         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
84421         * modules/mbsrchr-tests (Makefile.am): Likewise.
84422         * modules/mbsspn-tests (Makefile.am): Likewise.
84423         * modules/mbsstr-tests (Makefile.am): Likewise.
84424         * modules/printf-posix-tests (Makefile.am): Likewise.
84425         * modules/snprintf-posix-tests (Makefile.am): Likewise.
84426         * modules/sprintf-posix-tests (Makefile.am): Likewise.
84427         * modules/tsearch-tests (Makefile.am): Likewise.
84428         * modules/uniname/uniname-tests (Makefile.am): Likewise.
84429         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
84430         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
84431         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
84432         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
84433         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
84434         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
84435         * modules/vprintf-posix-tests (Makefile.am): Likewise.
84436         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
84437         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
84438         * modules/xstrtoimax-tests (Makefile.am): Likewise.
84439         * modules/xstrtol-tests (Makefile.am): Likewise.
84440         * modules/xstrtoumax-tests (Makefile.am): Likewise.
84441         * modules/yesno-tests (Makefile.am): Likewise.
84443 2007-10-03  Bruno Haible  <bruno@clisp.org>
84445         * modules/trunc-tests: New file.
84446         * tests/test-trunc.c: New file.
84448         * modules/trunc: New file.
84449         * lib/trunc.c: New file.
84450         * m4/trunc.m4: New file.
84451         * lib/math.in.h (trunc): New declaration.
84452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
84453         HAVE_DECL_TRUNC.
84454         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
84455         HAVE_DECL_TRUNC.
84456         * doc/functions/trunc.texi: Mention the 'trunc' module.
84458 2007-10-03  Bruno Haible  <bruno@clisp.org>
84460         * tests/test-fpending.c: New file, mostly copied
84461         from coreutils/lib/t-fpending.c.
84462         * modules/fpending-tests: New file.
84464 2007-10-03  Bruno Haible  <bruno@clisp.org>
84466         Port the stdio extensions to QNX (untested).
84467         * lib/fseterr.c (fseterr): Add support for QNX.
84468         * lib/fbufmode.c (fbufmode): Likewise.
84469         * lib/freadable.c (freadable): Likewise.
84470         * lib/fwritable.c (fwritable): Likewise.
84471         * lib/freading.c (freading): Likewise.
84472         * lib/fwriting.c (fwriting): Likewise.
84473         * lib/freadahead.c (freadahed): Likewise.
84474         * lib/fpurge.c (fpurge): Likewise.
84475         * lib/fseeko.c (rpl_fseeko): Likewise.
84477 2007-10-03  Bruno Haible  <bruno@clisp.org>
84478             Jim Meyering  <jim@meyering.net>
84479             Eric Blake  <ebb9@byu.net>
84481         * doc/relocatable.texi: Use @command instead of @program.
84483 2007-10-02  Jim Meyering  <jim@meyering.net>
84485         Perform one more "_.h" -> ".in.h" substitution.
84486         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
84487         instead of unistd_.h here, too.
84489 2007-10-01  Bruno Haible  <bruno@clisp.org>
84491         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
84492         Needed for the alloca-opt module.
84494 2007-09-30  Bruno Haible  <bruno@clisp.org>
84496         * lib/alloca.in.h: Renamed from lib/alloca_.h.
84497         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
84498         alloca_.h.
84499         * lib/argz.in.h: Renamed from lib/argz_.h.
84500         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
84501         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
84502         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
84503         byteswap_.h.
84504         * lib/dirent.in.h: Renamed from lib/dirent_.h.
84505         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
84506         dirent_.h.
84507         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
84508         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
84509         fcntl_.h.
84510         * lib/float.in.h: Renamed from lib/float_.h.
84511         * modules/float (Files, Makefile.am): Use float.in.h instead of
84512         float_.h.
84513         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
84514         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
84515         fnmatch_.h.
84516         * lib/getopt.in.h: Renamed from lib/getopt_.h.
84517         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
84518         getopt_.h.
84519         * lib/glob.in.h: Renamed from lib/glob_.h.
84520         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
84521         * lib/iconv.in.h: Renamed from lib/iconv_.h.
84522         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
84523         iconv_.h.
84524         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
84525         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
84526         inttypes_.h.
84527         * lib/locale.in.h: Renamed from lib/locale_.h.
84528         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
84529         locale_.h.
84530         * lib/math.in.h: Renamed from lib/math_.h.
84531         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
84532         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
84533         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
84534         of netinet_in_.h. Add dependency.
84535         * lib/poll.in.h: Renamed from lib/poll_.h.
84536         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
84537         * lib/search.in.h: Renamed from lib/search_.h.
84538         * modules/search (Files, Makefile.am): Use search.in.h instead of
84539         search_.h.
84540         * lib/signal.in.h: Renamed from lib/signal_.h.
84541         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
84542         _signal.h.
84543         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
84544         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
84545         stdbool_.h.
84546         * lib/stdint.in.h: Renamed from lib/stdint_.h.
84547         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
84548         stdint_.h.
84549         * lib/stdio.in.h: Renamed from lib/stdio_.h.
84550         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
84551         stdio_.h.
84552         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
84553         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
84554         stdlib_.h.
84555         * lib/string.in.h: Renamed from lib/string_.h.
84556         * modules/string (Files, Makefile.am): Use string.in.h instead of
84557         string_.h.
84558         * doc/gnulib-tool.texi (Initial import): Update.
84559         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
84560         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
84561         of sys_select_.h. Add dependency.
84562         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
84563         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
84564         of sys_socket_.h.
84565         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
84566         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
84567         sys_stat_.h.
84568         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
84569         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
84570         sys_time_.h.
84571         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
84572         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
84573         sysexits_.h.
84574         * lib/time.in.h: Renamed from lib/time_.h.
84575         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
84576         * lib/unistd.in.h: Renamed from lib/unistd_.h.
84577         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
84578         unistd_.h.
84579         * lib/wchar.in.h: Renamed from lib/wchar_.h.
84580         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
84581         wchar_.h.
84582         * lib/wctype.in.h: Renamed from lib/wctype_.h.
84583         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
84584         wctype_.h.
84585         * build-aux/bootstrap (slurp): Update.
84586         * lib/.cppi-disable: Update.
84588 2007-09-30  Bruno Haible  <bruno@clisp.org>
84590         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
84591         Needed on BeOS.
84593 2007-09-30  Bruno Haible  <bruno@clisp.org>
84595         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
84597 2007-09-29  Bruno Haible  <bruno@clisp.org>
84599         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
84601 2007-09-29  Bruno Haible  <bruno@clisp.org>
84603         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
84604         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
84605         * build-aux/install-reloc: Compile also areadlink.c.
84606         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
84608 2007-09-29  Bruno Haible  <bruno@clisp.org>
84610         * gnulib-tool (func_emit_initmacro_done): Indentation.
84612 2007-09-29  Bruno Haible  <bruno@clisp.org>
84614         * README: Add CVS checkout update instructions.
84615         Info from Bob Proulx <bob@proulx.com>.
84617 2007-09-28  Eric Blake  <ebb9@byu.net>
84619         Provide move-if-change.
84620         * build-aux/move-if-change: New file, based on best practice
84621         rather than any canonical upstream location.
84623 2007-09-28  Jim Meyering  <jim@meyering.net>
84625         Fix canonicalize loop-detection corner case.
84626         Do not attempt to stat the symlink values stored via seen_triple.
84627         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
84628         on linux-2.6.18, (but not 2.6.22).
84629         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
84630         triple_compare.  The former compares dev,ino,filename, while the latter
84631         would actually stat dirname(filename) when dev and ino were equal.
84632         * lib/hash-triple.c: Install <string.h>.
84633         (STREQ): Define.
84634         (triple_compare_ino_str): New function.
84635         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
84637 2007-09-28  Eric Blake  <ebb9@byu.net>
84639         Enforce that AC_REPLACE_FUNCS files exist.
84640         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
84641         override check for typos.
84643         Fix test-closein on Solaris 10.
84644         * tests/test-closein.c (main): Don't assume stdin can be inherited
84645         closed on all systems.
84646         * tests/test-closein.sh: Likewise.
84647         Reported by Piotr Tarnowski.
84649 2007-09-28  Jim Meyering  <jim@meyering.net>
84651         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
84653 2007-09-27  Jim Meyering  <jim@meyering.net>
84655         canonicalize: Avoid a false-positive cycle failure.
84656         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
84657         Sort.  Remove cycle-check.
84658         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
84659         not cycle-check.h.
84660         (seen_triple): New function.
84661         (canonicalize_filename_mode): Use it instead of cycle-check.
84662         * tests/test-canonicalize.c: Add a test for this bug.
84663         * tests/test-canonicalize.sh: Set up and run the test.
84665         New module, file-set, from coreutils.
84666         * modules/file-set: Define it.
84667         * lib/file-set.c, lib/file-set.h: Implement.
84669         New module, hash-triple, from coreutils.
84670         * modules/hash-triple: Define it.
84671         * lib/hash-triple.c, lib/hash-triple.h: Implement.
84673 2007-09-25  Eric Blake  <ebb9@byu.net>
84675         Fix strerror on Interix.
84676         * lib/string_.h (strerror): Declare replacement.
84677         * doc/functions/strerror.texi (strerror): Document the Interix
84678         shortcoming.
84679         * modules/string (Makefile.am): Support new hooks.
84680         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
84681         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
84682         gl_FUNC_STRERROR_SEPARATE.
84683         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
84684         * lib/strerror.c (rpl_strerror): Provide replacement.
84685         * modules/strerror (Depends-on): Add string.
84686         (configure.ac): Detect use of module.
84687         * tests/test-strerror.c: New file.
84688         * modules/strerror-tests: New test module.
84689         * modules/argp (Depends-on): Add strerror.
84690         * modules/error (Depends-on): Likewise.
84691         Reported by Martin Koeppe.
84693 2007-09-24  Bruno Haible  <bruno@clisp.org>
84695         * README: Update git instructions.
84697 2007-09-24  Eric Blake  <ebb9@byu.net>
84699         Revert fpending breakage from 2007-09-08.
84700         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
84701         __fpending.c.
84703 2007-09-24  Jim Meyering  <jim@meyering.net>
84705         filenamecat.c: Add a test.
84706         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
84707         showing how the function works when DIR is the empty string.
84709 2007-09-21  Simon Josefsson  <simon@josefsson.org>
84711         * tests/test-canonicalize.sh: Turn on executable bit.
84713 2007-09-19  Eric Blake  <ebb9@byu.net>
84715         * README: Update CVS instructions.
84717 2007-09-18  Bruno Haible  <bruno@clisp.org>
84719         * modules/areadlink: New file.
84720         * lib/areadlink.h (areadlink): New declaration.
84721         * lib/areadlink.c: New file, based on lib/xreadlink.c.
84723 2007-09-17  Jim Meyering  <jim@meyering.net>
84725         * lib/savewd.c (ESTALE) [!defined]: Define.
84726         Reported to be required on Interix by Martin Koeppe.
84728 2007-09-17  Bruno Haible  <bruno@clisp.org>
84730         * gnulib-tool (func_version): Use $version.
84732 2007-09-16  Bruno Haible  <bruno@clisp.org>
84734         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
84735         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
84736         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
84737         Reported by Greg Schafer <gschafer@zip.com.au>.
84739 2007-09-15  Bruno Haible  <bruno@clisp.org>
84741         * gnulib-tool (sed): Try a little harder to make bash understand the
84742         alias.
84743         Reported by Bruce Korb <bruce.korb@gmail.com>.
84745 2007-09-13  Eric Blake  <ebb9@byu.net>
84747         * ChangeLog: Remove conflict markers.
84749 2007-09-13  Simon Josefsson  <simon@josefsson.org>
84751         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
84752         Reported by Bruno Haible <bruno@clisp.org>.
84754 2007-09-12  Bruno Haible  <bruno@clisp.org>
84756         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
84757         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
84758         is not defined.
84760 2007-09-12  Eric Blake  <ebb9@byu.net>
84762         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
84763         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
84764         Autoconf definition.
84765         * modules/euidaccess (Depends-on): Add extensions, for
84766         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
84767         * modules/fnmatch (Depends-on): Likewise.
84768         * modules/getaddrinfo (Depends-on): Likewise.
84769         * modules/getdelim (Depends-on): Likewise.
84770         * modules/getline (Depends-on): Likewise.
84771         * modules/getsubopt (Depends-on): Likewise.
84772         * modules/gettext (Depends-on): Likewise.
84773         * modules/group-member (Depends-on): Likewise.
84774         * modules/mbchar (Depends-on): Likewise.
84775         * modules/memmem (Depends-on): Likewise.
84776         * modules/mempcpy (Depends-on): Likewise.
84777         * modules/memrchr (Depends-on): Likewise.
84778         * modules/pagealign_alloc (Depends-on): Likewise.
84779         * modules/readutmp (Depends-on): Likewise.
84780         * modules/stpcpy (Depends-on): Likewise.
84781         * modules/stpncpy (Depends-on): Likewise.
84782         * modules/strchrnul (Depends-on): Likewise.
84783         * modules/strndup (Depends-on): Likewise.
84784         * modules/strsep (Depends-on): Likewise.
84785         * modules/strverscmp (Depends-on): Likewise.
84786         * modules/vasprintf (Depends-on): Likewise.
84787         * modules/wcwidth (Depends-on): Likewise.
84788         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
84789         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
84790         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
84791         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
84792         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
84793         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
84794         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
84795         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
84796         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
84797         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
84798         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
84799         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
84800         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
84801         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
84802         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
84803         * m4/readutmp.m4 (gl_READUTMP): Likewise.
84804         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
84805         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
84806         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
84807         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
84808         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
84809         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
84810         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
84811         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
84812         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
84813         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
84814         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
84815         so that lock.m4 can be used in gettext without extensions module.
84817 2007-09-11  Bruno Haible  <bruno@clisp.org>
84819         * m4/isc-posix.m4: Remove file.
84820         Suggested by Eric Blake.
84822 2007-09-11  Eric Blake  <ebb9@byu.net>
84824         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
84826 2007-09-10  Bruno Haible  <bruno@clisp.org>
84828         * posix-modules: Fix typo in error message.
84829         Reported by Matt <mkraai@beckman.com>.
84831 2007-09-09  Bruno Haible  <bruno@clisp.org>
84833         * doc/functions/getdelim.texi: Update list of platforms lacking the
84834         function.
84835         * doc/functions/getline.texi: Likewise.
84837 2007-09-09  Jim Meyering  <jim@meyering.net>
84839         * lib/hash.c (hash_initialize): Detect calloc failure.
84840         Reported by Bruno Haible.
84842 2007-09-09  Bruno Haible  <bruno@clisp.org>
84844         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
84845         malloc or realloc fails.
84847 2007-09-09  Bruno Haible  <bruno@clisp.org>
84849         * modules/getcwd (Depends-on): Add malloc-posix.
84850         * modules/glob (Depends-on): Likewise.
84851         * modules/putenv (Depends-on): Likewise.
84852         * modules/strdup (Depends-on): Likewise.
84853         * modules/getdelim (Depends-on): Add realloc-posix.
84854         * modules/read-file (Depends-on): Likewise.
84856 2007-09-09  Bruno Haible  <bruno@clisp.org>
84858         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
84859         (gl_FUNC_MALLOC_POSIX): Require it.
84860         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
84861         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
84862         * modules/realloc (Files): Add m4/malloc.m4.
84863         * modules/calloc (Files): Likewise.
84865 2007-09-09  Bruno Haible  <bruno@clisp.org>
84867         * modules/malloc-posix: New file.
84868         * modules/malloc (Depends-on): Add malloc-posix.
84869         * lib/malloc.c: Include errno.h.
84870         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
84871         and a POSIX-compatible malloc into a single function. Set ENOMEM
84872         when returning NULL.
84873         * m4/malloc.m4: New file.
84874         * doc/functions/malloc.texi: Mention the malloc-posix module.
84875         * lib/stdlib_.h (malloc): New declaration.
84876         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
84877         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
84878         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
84879         and HAVE_MALLOC_POSIX.
84881 2007-09-09  Bruno Haible  <bruno@clisp.org>
84883         * modules/realloc-posix: New file.
84884         * modules/realloc (Depends-on): Add realloc-posix.
84885         * lib/realloc.c: Include errno.h.
84886         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
84887         and a POSIX-compatible realloc into a single function. Set ENOMEM
84888         when returning NULL.
84889         * m4/realloc.m4: New file.
84890         * doc/functions/realloc.texi: Mention the realloc-posix module.
84891         * lib/stdlib_.h (realloc): New declaration.
84892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
84893         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
84894         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
84895         and HAVE_REALLOC_POSIX.
84897 2007-09-09  Bruno Haible  <bruno@clisp.org>
84899         * modules/calloc-posix: New file.
84900         * modules/calloc (Depends-on): Add calloc-posix.
84901         * lib/calloc.c: Include errno.h.
84902         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
84903         and a POSIX-compatible calloc into a single function. Set ENOMEM
84904         when returning NULL.
84905         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
84906         * doc/functions/calloc.texi: Mention the calloc-posix module.
84907         * lib/stdlib_.h (calloc): New declaration.
84908         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
84909         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
84910         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
84911         and HAVE_CALLOC_POSIX.
84913 2007-09-09  Bruno Haible  <bruno@clisp.org>
84915         Allow for modules to show an arbitrary notice.
84916         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
84917         * gnulib-tool: New option --extract-notice.
84918         (func_usage): Document it.
84919         (sed_extract_prog): Update.
84920         (func_get_notice): New function.
84921         (func_modules_notice): New function.
84922         (func_import, func_create_testdir): Invoke it.
84923         Suggested by Jim Meyering.
84925 2007-09-09  Bruno Haible  <bruno@clisp.org>
84927         * gnulib-tool: New options --verbose, --quiet.
84928         (func_usage): Document them.
84929         (verbose): New variable.
84930         (func_execute_command): New function.
84931         (func_import): Don't show the module list and the file list if
84932         $verbose < 0.
84933         (func_create_testdir): Likewise. Use func_execute_command.
84934         (func_create_megatestdir): Use func_execute_command.
84936 2007-09-08  Bruno Haible  <bruno@clisp.org>
84938         * gnulib-tool (func_import): Prefer rsync over wget when available,
84939         for fetching the PO files.
84941 2007-09-08  Bruno Haible  <bruno@clisp.org>
84943         * posix-modules: New file. Portions copied from gnulib-tool.
84944         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
84946 2007-09-08  Jim Meyering  <jim@meyering.net>
84948         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
84949         * lib/fpending.h: Rename from __fpending.h.
84950         * lib/fpending.c: Rename from __fpending.c.
84951         Include "fpending.h", not "__fpending.h".
84952         * lib/__fpending.h, lib/__fpending.c: Remove files.
84953         * modules/fpending (Files): Reflect new file names.
84954         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
84956 2007-09-08  Bruno Haible  <bruno@clisp.org>
84958         * m4/inttypes-h.m4: Remove stub file.
84960 2007-09-07  Simon Josefsson  <simon@josefsson.org>
84962         * doc/headers/stdint.texi: Discuss #include_next issue.
84964 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84966         * build-aux/bootstrap: Remove obsolete comment about wget --help.
84968 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84970         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
84971         in variable name.
84973 2007-09-03  Jim Meyering  <jim@meyering.net>
84975         New module: git-version-gen.
84976         * modules/git-version-gen: New file.
84978         Import changes from coreutils for bootstrap script.
84980         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
84982         bootstrap: uses rsync to download the .po files
84983         * build-aux/bootstrap (po_download_command_format): New global.
84984         (download_po_files): Use rsync.
84985         (update_po_files): Don't remove .po files after download,
84986         so future rsync runs can take advantage of the copies.
84988         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
84990         Solve the unnecessary-.po-file-regeneration problem once and for all.
84991         * build-aux/bootstrap (download_po_files): New function, renamed from
84992         get_translations.  Now, downloads, but doesn't update LINGUAS.
84993         (update_po_files): New function.
84995         bootstrap: Ignore more.
84996         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
84997         uniwidth to e.g., lib/.gitignore.
84998         (slurp): Handle the sys_stat_.h -> sys mapping, too.
85000         * build-aux/bootstrap: New setting: vc_ignore.
85001         (insert_sorted_if_absent): Create $file if absent.
85002         Adapt to new, possibly empty, list: $vc_ignore.
85004         bootstrap: generate more ignorable names
85005         * build-aux/bootstrap (slurp): When generating ignorable names,
85006         also map .sin to .sed, .gperf to .c, and .y to .c.
85008 2007-09-03  Jim Meyering  <jim@meyering.net>
85010         * build-aux/git-version-gen: New file, from coreutils.  For details, see
85011         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
85013 2007-09-02  Bruno Haible  <bruno@clisp.org>
85015         Fix mis-recognition of 'mcs' on QNX 6.
85016         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
85017         output contains the string "Mono".
85018         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
85019         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
85021 2007-09-01  Bruno Haible  <bruno@clisp.org>
85023         Fix collision between uniwidth/* and linebreak modules.
85024         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
85025         u32_width): Remove declarations.
85026         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
85027         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
85028         streq3, streq2, streq1, streq0): Remove functions.
85029         (STREQ): Remove macro.
85030         (is_cjk_encoding): Remove function.
85031         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
85032         (uc_width, u8_width, u16_width, u32_width): Remove functions.
85033         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
85034         * NEWS: Document the change.
85036 2007-09-01  Bruno Haible  <bruno@clisp.org>
85038         * lib/streq.h: Add double-inclusion guard.
85040 2007-09-01  Karl Berry  <karl@gnu.org>
85042         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
85044 2007-08-28  Jim Meyering  <jim@meyering.net>
85046         Rename mreadlink_with_size to areadlink_with_size.
85047         * NEWS: Document the change.
85048         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
85049         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
85050         * lib/mreadlink.h: Rename this to...
85051         * lib/areadlink.h: ...this.
85052         * modules/mreadlink-with-size: Rename this to...
85053         * modules/areadlink-with-size: ...this.
85054         * lib/canonicalize.c: Reflect the renaming.
85055         * modules/canonicalize: Likewise.
85057 2007-08-26  Bruno Haible  <bruno@clisp.org>
85059         * gnulib-tool (func_import): When deciding which files to remove,
85060         consider also dangling symbolic links.
85061         Reported by Eric Blake.
85063 2007-08-26  Bruno Haible  <bruno@clisp.org>
85065         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
85067 2007-08-23  Simon Josefsson  <simon@josefsson.org>
85069         * lib/readline.c: Don't include getline.h, the prototype is now
85070         found in stdio.h.
85072 2007-08-23  Jim Meyering  <jim@meyering.net>
85074         Getdelim touchup.
85075         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
85076         around the funlockfile call, since funlockfile never sets errno.
85077         Don't set errno upon failed realloc.
85079 2007-08-22  Eric Blake  <ebb9@byu.net>
85081         Getline touchups.
85082         * lib/getdelim.c (getdelim): Revert regression that required *n to
85083         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
85084         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
85085         getdelim, rather than whether implementation is missing.
85086         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
85087         * lib/stdio_.h (getline): Also declare if replacement is
85088         required.
85089         * doc/functions/getdelim.texi: New file.
85090         * doc/functions/getline.texi: Likewise.
85091         * doc/gnulib.texi (Function Substitutes): Add new files.
85092         Reported by Bruno Haible.
85094 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
85096         * users.txt: Add Guile.
85098 2007-08-22  Eric Blake  <ebb9@byu.net>
85100         * tests/test-getdelim.c (main): Use remove, not unlink.
85101         * tests/test-getline.c (main): Likewise.
85103         Move getline and getdelim into stdio.h, per POSIX 200x.
85104         * modules/getline (Files): Remove getline.h.
85105         (Depends-on): Add stdio.
85106         (configure.ac): Add module indicator.
85107         * modules/getdelim (Files): Remove getdelim.h.
85108         (Depends-on): Add stdio.
85109         (configure.ac): Add module indicator.
85110         * modules/stdio (Makefile.am): Work with new indicators.
85111         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
85112         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
85113         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
85114         * lib/getdelim.h: Delete.
85115         * lib/getline.h: Delete.
85116         * lib/stdio_.h (getdelim, getline): Declare.
85117         * modules/getdelim-tests: New module.
85118         * modules/getline-tests: Likewise.
85119         * tests/test-getdelim.c: New file.
85120         * tests/test-getline.c: Likewise.
85121         * NEWS: Document the change.
85122         * lib/getline.c: Update choice of header.
85123         * lib/csharpcomp.c: Likewise.
85124         * lib/getpass.c: Likewise.
85125         * lib/javacomp.c: Likewise.
85126         * lib/javaversion.c: Likewise.
85127         * lib/yesno.c: Likewise.
85128         * lib/getdelim.c: Likewise.
85129         (getdelim): Set errno on failure, and avoid memory leak.
85131 2007-08-19  Bruno Haible  <bruno@clisp.org>
85133         * modules/closein (Depends-on): Add freadahead.
85134         * lib/closein.c: Include freadahead.h.
85135         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
85136         is zero.
85138 2007-08-19  Bruno Haible  <bruno@clisp.org>
85140         * modules/freadahead-tests: New file.
85141         * tests/test-freadahead.sh: New file.
85142         * tests/test-freadahead.c: New file.
85144         * modules/freadahead: New file.
85145         * lib/freadahead.h: New file.
85146         * lib/freadahead.c: New file.
85147         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
85148         fbufmode, fpurge, freadable, fwritable.
85150 2007-08-19  Eric Blake  <ebb9@byu.net>
85152         Test yesno in combination with closein.
85153         * lib/yesno.c (yesno): Document use of stdin.
85154         * modules/yesno-tests (Files): New module.
85155         * tests/test-yesno.c (main): New file.
85156         * tests/test-yesno.sh: Likewise.
85158 2007-08-19  Bruno Haible  <bruno@clisp.org>
85160         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
85161         * lib/fseeko.c (rpl_fseeko): Likewise.
85162         * lib/fseterr.c (fseterr): Likewise.
85164 2007-08-19  Bruno Haible  <bruno@clisp.org>
85166         * tests/test-lseek.c (main): Disable a test for BeOS.
85167         * doc/functions/lseek.texi: Document the BeOS bug.
85169 2007-08-19  Bruno Haible  <bruno@clisp.org>
85170             Eric Blake  <ebb9@byu.net>
85172         * lib/lseek.c: Include <sys/stat.h>.
85173         (rpl_lseek): Add workaround code also for Unix platforms.
85174         Needed for BeOS.
85175         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
85176         * doc/functions/lseek.texi: Document BeOS definiency.
85178 2007-08-18  Bruno Haible  <bruno@clisp.org>
85180         * modules/fstrcmp-tests: New file.
85181         * tests/test-fstrcmp.c: New file.
85183 2007-08-18  Bruno Haible  <bruno@clisp.org>
85185         * modules/fstrcmp: New file, from GNU gettext with modifications.
85186         * lib/fstrcmp.h: New file, from GNU gettext.
85187         * lib/fstrcmp.c: New file, from GNU gettext.
85188         * MODULES.html.sh (String handling): Add fstrcmp.
85190 2007-08-18  Bruno Haible  <bruno@clisp.org>
85192         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
85193         'bool'.
85194         (diag, compareseq): Remove const from the ctxt argument.
85195         (USE_HEURISTIC): Undefine at the end.
85197 2007-08-18  Jim Meyering  <jim@meyering.net>
85199         New file: lib/idcache.h
85200         * NEWS: Mention the addition.
85201         * modules/idcache (Files): Add lib/idcache.h
85202         * lib/idcache.c: Include "idcache.h".
85203         Don't include <sys/types.h>.
85204         Add a FIXME comment.
85205         Move file-scoped "static" declarations to the top.
85206         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
85208 2007-08-17  Bruno Haible  <bruno@clisp.org>
85209         and Paul Eggert  <eggert@cs.ucla.edu>
85211         * MODULES.html.sh: Add diffseq.
85212         * modules/diffseq: New file.
85213         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
85214         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
85216 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85218         Import changes from coreutils for bootstrap script.
85220         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
85222         * build-aux/bootstrap (slurp): Work even in environments where
85223         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
85224         current code does not slurp files whose names start with ".", and
85225         this looks like it might be a troublesome area.
85227         2007-07-11  Jim Meyering  <jim@meyering.net>
85229         If there's a GPL vN copyright comment, require that N == 3.
85231         2007-07-08  Jim Meyering  <jim@meyering.net>
85233         Run the coreutils-specific code only if tests/Makefile.am.in exists.
85234         * build-aux/bootstrap (mam_template): Move definition out of loop.
85236         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
85238         * build-aux/bootstrap (symlink_to_dir): Rename function from
85239         symlink_to_gnulib.  Add a directory parameter.  Update all
85240         callers.
85241         (cp_mark_as_generated): Also check for -- and link to -- files in
85242         gl/.
85244         2007-07-08  Jim Meyering  <jim@meyering.net>
85246         Adapt to deeper hierarchy in gnulib.
85247         * build-aux/bootstrap (symlink_to_dir): If the destination
85248         directory doesn't exist, create it. This is required at least for
85249         "lib/uniwidth/cjk.h".
85251         2007-05-15  Jim Meyering  <jim@meyering.net>
85253         * build-aux/bootstrap: Now that generated Makefile.am files
85254         are no longer under version control, they must be created at
85255         bootstrap time.
85257 2007-08-14  Ben Pfaff  <blp@gnu.org>
85259         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
85261 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
85263         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
85264         given the changes below.
85265         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
85266         even on hosts that have padding bits beyond the supported 64.
85268 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
85270         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
85271         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
85272         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
85273         depends on it.
85274         (xstrtol_error): Remove.
85275         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
85276         but with a different signature.
85277         (ATTRIBUTE_NORETURN, __attribute__): New macros.
85278         * lib/xstrtol-error.c: Include exitfail.h.
85279         (xstrtol_fatal): New function, with a different signature from the
85280         old xstrtol_error, so that the caller need not worry about passing
85281         in an exit status, or about storage management of the option argument.
85282         (xstrtol_error): Now a static function.  Redo signature to
85283         implement xstrtol_fatal.  Output the correct number of hyphens in
85284         front of the option so that the caller need not worry about
85285         storage management.
85286         (N_): New macro.
85287         (_): Remove; not used now.
85288         * modules/xstrtol: Depend on getopt.
85289         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
85290         of old STRTOL_FATAL_ERROR macro.
85291         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
85292         of test program.
85293         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
85294         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
85296 2007-08-08  Eric Blake  <ebb9@byu.net>
85298         * lib/xstrtol-error.c: Add missing include.
85300         Move xstrtol messages into gnulib domain, when --pobase is used.
85301         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
85302         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
85303         * modules/xstrtol (Files): Distribute new file.
85304         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
85305         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
85306         * tests/test-xstrtol.c: ...into new file.
85307         * tests/test-xstrtoul.c: Also test xstrtoul.
85308         * tests/test-xstrtoimax.c: Also test xstrtoimax.
85309         * tests/test-xstrtoumax.c: Also test xstrtoumax.
85310         * tests/test-xstrtol.sh: Drive the tests.
85311         * tests/test-xstrtoimax.sh: Likewise.
85312         * tests/test-xstrtoumax.sh: Likewise.
85313         * modules/xstrtol-tests: New module.
85314         * modules/xstrtoimax-tests: Likewise.
85315         * modules/xstrtoumax-tests: Likewise.
85317 2007-08-08  Jim Meyering  <jim@meyering.net>
85319         New function: mfile_name_concat.
85320         * lib/filenamecat.c (mfile_name_concat): New function, just like
85321         file_name_concat, but return NULL upon failure rather than exiting
85322         with a diagnostic.
85323         * lib/filenamecat.h: Declare it.
85325 2007-08-07  Bruno Haible  <bruno@clisp.org>
85327         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
85328         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
85329         warning from gcc.
85330         Reported by Eric Blake.
85332 2007-08-07  Simon Josefsson  <simon@josefsson.org>
85334         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
85335         * modules/crypto/arcfour (License): Likewise.
85336         * modules/crypto/des-tests (License): Likewise.
85337         * modules/crypto/gc-arctwo-tests (License): Likewise.
85338         * modules/crypto/gc-des-tests (License): Likewise.
85339         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
85340         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
85341         * modules/crypto/gc-md2-tests (License): Likewise.
85342         * modules/crypto/gc-md4-tests (License): Likewise.
85343         * modules/crypto/gc-md5-tests (License): Likewise.
85344         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
85345         * modules/crypto/gc-rijndael-tests (License): Likewise.
85346         * modules/crypto/gc-sha1-tests (License): Likewise.
85347         * modules/crypto/gc-tests (License): Likewise.
85348         * modules/crypto/hmac-md5 (License): Likewise.
85349         * modules/crypto/hmac-sha1 (License): Likewise.
85350         * modules/crypto/md2-tests (License): Likewise.
85351         * modules/crypto/md4-tests (License): Likewise.
85352         * modules/crypto/md5 (License): Likewise.
85353         * modules/crypto/rijndael (License): Likewise.
85354         * modules/crypto/sha1 (License): Likewise.
85355         * modules/memxor (License): Likewise.
85357 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85358         and Bruno Haible  <bruno@clisp.org>
85360         * NEWS: Describe interface changes to human, xstrtol.
85361         * lib/human.h: Include <xstrtol.h>.
85362         (human_options): Return enum strtol_error, not int.  Remove
85363         bool arg; take int * instead.
85364         * lib/human.c: Don't include "gettext.h".
85365         (_): Remove; no longer used.
85366         Don't include <xstrtol.h>, since human.h does it.
85367         (human_options): Adjust to abovementioned interface changes.
85368         Do not report error to stderr; that's now the caller's
85369         responsibility.
85370         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
85371         interface change.
85372         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
85373         Str, Argument_type_string.  All uses changed.  Put " argument"
85374         in diagnostics to make them clearer.  Change wording of suffix
85375         message for clarity.
85376         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
85377         Argument_type_string.
85378         (STRTOL_FATAL_WARN): Remove; no longer used.
85379         * modules/human (Depends-on): Remove gettext-h.
85381 2007-08-06  Simon Josefsson  <simon@josefsson.org>
85383         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
85385 2007-07-31  Bruno Haible  <bruno@clisp.org>
85387         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
85388         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
85389         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
85391 2007-07-31  Bruno Haible  <bruno@clisp.org>
85393         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
85394         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
85396 2007-07-30  Bruno Haible  <bruno@clisp.org>
85398         * modules/base64 (License): Use the synonymous term "LGPLv2+".
85399         * modules/c-ctype (License): Likewise.
85400         * modules/c-strcase (License): Likewise.
85401         * modules/check-version (License): Likewise.
85402         * modules/iconv (License): Likewise.
85403         * modules/iconv_open (License): Likewise.
85404         * modules/read-file (License): Likewise.
85405         * modules/striconv (License): Likewise.
85406         * modules/strverscmp (License): Likewise.
85407         * modules/vasprintf (License): Likewise.
85408         * modules/crypto/des (License): Likewise.
85409         * modules/crypto/gc (License): Likewise.
85410         * modules/crypto/gc-arcfour (License): Likewise.
85411         * modules/crypto/gc-arctwo (License): Likewise.
85412         * modules/crypto/gc-des (License): Likewise.
85413         * modules/crypto/gc-hmac-md5 (License): Likewise.
85414         * modules/crypto/gc-hmac-sha1 (License): Likewise.
85415         * modules/crypto/gc-md2 (License): Likewise.
85416         * modules/crypto/gc-md4 (License): Likewise.
85417         * modules/crypto/gc-md5 (License): Likewise.
85418         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
85419         * modules/crypto/gc-random (License): Likewise.
85420         * modules/crypto/gc-rijndael (License): Likewise.
85421         * modules/crypto/gc-sha1 (License): Likewise.
85422         * modules/crypto/md2 (License): Likewise.
85423         * modules/crypto/md4 (License): Likewise.
85425 2007-07-30  Jim Meyering  <jim@meyering.net>
85427         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
85428         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
85429         it has valid stat data.  This bug would cause du not to count the
85430         sizes of inaccessible directories.
85431         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
85432         in <http://bugzilla.redhat.com/250077>.
85434 2007-07-25  Peter O'Gorman  <peter@pogma.com>
85435             Bruno Haible  <bruno@clisp.org>
85437         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
85438         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
85439         #include_next, gives a diagnostic about it, but reports no error in
85440         the exit code.
85441         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
85443 2007-07-24  Ben Pfaff  <blp@gnu.org>
85445         Improve name: "count-one-bits" is better than "popcount".
85446         * MODULES.html.sh: Update name.
85447         * lib/popcount.h: Renamed lib/count-one-bits.h.
85448         (popcount): Renamed count_one_bits.
85449         (popcountl): Renamed count_one_bits_l.
85450         (popcountll): Renamed count_one_bits_ll.
85451         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
85452         * modules/popcount: Renamed module/count-one-bits.
85453         * modules/popcount-tests: Renamed module/count-one-bits-tests.
85454         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
85456 2007-07-23  Ben Pfaff  <blp@gnu.org>
85458         * lib/popcount.h (popcount32): Reduce size of constants, to allow
85459         better code generation, and add U to large constants to avoid
85460         warnings, in non-GCC case.
85461         Suggested by Bruno Haible.
85463 2007-07-23  Ben Pfaff  <blp@gnu.org>
85465         * lib/popcount.h: Use verify_true instead of if...abort.
85466         * modules/popcount: Depend on verify module.
85467         Suggested by Jim Meyering.
85469 2007-07-23  Bruno Haible  <bruno@clisp.org>
85471         * gnulib-tool (func_import): Create a .cvsignore file also when the
85472         directory is not yet in CVS but the toplevel directory is. When
85473         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
85474         Reported by Karl Berry.
85476 2007-07-22  Ben Pfaff  <blp@gnu.org>
85478         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
85479         case.
85480         Suggested by Eric Blake.
85482 2007-07-22  Ben Pfaff  <blp@gnu.org>
85484         New module: popcount.
85485         * MODULES.html.sh: Add popcount.
85486         * modules/popcount: New file.
85487         * modules/popcount-tests: New file.
85488         * tests/test-popcount.c: New file.
85489         * lib/popcount.h: New file.
85490         * m4/popcount.m4: New file.
85492 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
85494         * build-aux/announce-gen: Update to GPLv3.
85496         * build-aux/config.guess: Update from config.
85498 2007-07-21  Bruno Haible  <bruno@clisp.org>
85500         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
85501         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
85503 2007-07-20  Jim Meyering  <jim@meyering.net>
85505         * check-module: Diagnose a self-dependency.
85507 2007-07-19  Bruno Haible  <bruno@clisp.org>
85509         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
85510         empty.
85511         Reported by Eric Blake.
85513 2007-07-18  Bruno Haible  <bruno@clisp.org>
85515         * gnulib-tool: New options --po-base, --po-domain.
85516         (func_usage): Document them.
85517         (pobase, po_domain): New variables.
85518         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
85519         DEFAULT_TEXT_DOMAIN.
85520         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
85521         (func_import): Consider pobase and po_domain. Create a po/ directory.
85522         (func_create_testdir): Set pobase and po_domain to empty.
85523         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
85524         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
85526 2007-07-18  Bruno Haible  <bruno@clisp.org>
85528         * gnulib-tool (func_get_automake_snippet): Synthesize also an
85529         EXTRA_DIST augmentation for files in build-aux/.
85531 2007-07-16  Bruno Haible  <bruno@clisp.org>
85533         * modules/lseek (License): Use the synonymous term "LGPLv2+".
85534         * modules/getdelim (License): Likewise.
85536 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85538         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
85539         * modules/d-type (License): Likewise.
85540         * modules/extensions (License): Likewise.
85541         * modules/fnmatch (License): Likewise.
85542         * modules/fseeko (License): Likewise.
85543         * modules/getaddrinfo (License): Likewise.
85544         * modules/getline (License): Likewise.
85545         * modules/getlogin_r (License): Likewise.
85546         * modules/getpass (License): Likewise.
85547         * modules/gettimeofday (License): Likewise.
85548         * modules/glob (License): Likewise.
85549         * modules/inet_ntop (License): Likewise.
85550         * modules/malloc (License): Likewise.
85551         * modules/malloca (License): Likewise.
85552         * modules/memmem (License): Likewise.
85553         * modules/mempcpy (License): Likewise.
85554         * modules/memset (License): Likewise.
85555         * modules/minmax (License): Likewise.
85556         * modules/mktime (License): Likewise.
85557         * modules/netinet_in (License): Likewise.
85558         * modules/pathmax (License): Likewise.
85559         * modules/poll (License): Likewise.
85560         * modules/regex (License): Likewise.
85561         * modules/snprintf (License): Likewise.
85562         * modules/stdbool (License): Likewise.
85563         * modules/stdint (License): Likewise.
85564         * modules/stdio (License): Likewise.
85565         * modules/strcase (License): Likewise.
85566         * modules/strcasestr (License): Likewise.
85567         * modules/strdup (License): Likewise.
85568         * modules/string (License): Likewise.
85569         * modules/strndup (License): Likewise.
85570         * modules/strnlen (License): Likewise.
85571         * modules/strpbrk (License): Likewise.
85572         * modules/strptime (License): Likewise.
85573         * modules/strsep (License): Likewise.
85574         * modules/sys_select (License): Likewise.
85575         * modules/sys_socket (License): Likewise.
85576         * modules/sys_stat (License): Likewise.
85577         * modules/sys_time (License): Likewise.
85578         * modules/time (License): Likewise.
85579         * modules/time_r (License): Likewise.
85580         * modules/timegm (License): Likewise.
85581         * modules/unistd (License): Likewise.
85582         * modules/vsnprintf (License): Likewise.
85583         * modules/wctype (License): Likewise.
85585 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85587         * modules/argz (License): LGPLv2+.
85589 2007-07-15  Karl Berry  <karl@gnu.org>
85591         * doc/gnulib.texi: revise node structure per new fdl.texi.
85593 2007-07-14  Bruno Haible  <bruno@clisp.org>
85595         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
85596         the output file.
85597         * lib/uniname/uninames.h: Regenerated.
85599 2007-07-14  Karl Berry  <karl@gnu.org>
85601         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
85602         omitting sectioning and index commands.
85604 2007-07-13  Bruno Haible  <bruno@clisp.org>
85606         New gnulib-tool option --more-symlinks.
85607         * gnulib-tool (func_usage): Document --more-symlinks.
85608         (do_copyrights): New variable.
85609         Recognize option --more-symlinks.
85610         (func_import): Don't add a copyright notice transform to
85611         sed_transform_lib_file if do_copyrights is empty.
85613 2007-07-13  Bruno Haible  <bruno@clisp.org>
85615         * lib/vasnprintf.c (decimal_point_char): Define also if
85616         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
85617         && !NEED_PRINTF_DIRECTIVE_A.
85618         Reported by Clemens Koller <clemens.koller@anagramm.de> via
85619         Gary V. Vaughan <gary@gnu.org>.
85621 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
85623         * lib/inttypes_.h: Undo previous change, since it was fixed
85624         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
85626 2007-07-13  Bruno Haible  <bruno@clisp.org>
85628         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
85629         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
85631 2007-07-13  Jim Meyering  <jim@meyering.net>
85633         df: Don't fail for Tru64's "file-on-file mount".
85634         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
85635         so we fall through and use statfs instead.  Details here:
85636         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
85637         Reported by Albert Chin.
85639 2007-07-13  Bruno Haible  <bruno@clisp.org>
85641         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
85642         * modules/configmake (License): Likewise.
85643         * modules/gettext (License): Likewise.
85644         * modules/gettext-h (License): Likewise.
85645         * modules/include_next (License): Likewise.
85646         * modules/link-warning (License): Likewise.
85647         * modules/localcharset (License): Likewise.
85648         * modules/localename (License): Likewise.
85649         * modules/lock (License): Likewise.
85650         * modules/relocatable-lib-lgpl (License): Likewise.
85651         * modules/size_max (License): Likewise.
85652         * modules/vasnprintf (License): Likewise.
85653         * modules/wchar (License): Likewise.
85654         * modules/xsize (License): Likewise.
85656 2007-07-13  Bruno Haible  <bruno@clisp.org>
85658         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
85659         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
85661 2007-07-12  Bruno Haible  <bruno@clisp.org>
85663         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
85664         in the modules files.
85666 2007-07-11  Karl Berry  <karl@gnu.org>
85668         * MODULES.html.sh (func_module): use
85669          sed -e '\|^'"${includefile}"'$|d'
85670          instead of /.../d, to avoid errors on $includefile's containing /.
85672 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
85674         * gnulib-tool (func_import): Avoid duplication of --avoid
85675         statements
85676         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
85677         names to `_' in variable names.
85679 2007-07-10  Eric Blake  <ebb9@byu.net>
85681         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
85682         * NEWS: Document this change.
85684 2007-07-08  Bruno Haible  <bruno@clisp.org>
85686         Update to Unicode 5.0.
85687         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
85688         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
85689         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
85690         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
85691         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
85692         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
85693         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
85694         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
85695         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
85696         U+10A3F, U+1D242..U+1D244.
85697         (nonspacing_table_ind): Update.
85698         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
85699         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
85701 2007-07-08  Bruno Haible  <bruno@clisp.org>
85703         Update to Unicode 5.0.
85704         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
85705         code transform. Extend the name index field of unicode_name_to_code and
85706         unicode_code_to_name from 16 to 24 bits.
85707         * lib/uniname/uniname.c (unicode_character_name,
85708         unicode_name_character): Add the range 0x12xxx to the code transform.
85709         * lib/uniname/uninames.h: Regenerated.
85710         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
85712 2007-07-07  Bruno Haible  <bruno@clisp.org>
85714         * modules/wcwidth-tests: New file.
85715         * tests/test-wcwidth.c: New file.
85717         Work around MacOS X wcwidth() bug.
85718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
85719         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
85720         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
85721         original wcwidth in non-UTF-8 locales.
85722         * modules/wcwidth (Depends-on): Add localcharset, streq,
85723         uniwidth/width.
85724         * doc/functions/wcwidth.texi: Update.
85726 2007-07-07  Bruno Haible  <bruno@clisp.org>
85728         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
85729         (wcwidth): New declaration.
85730         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
85731         macros.
85732         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
85733         here. Prepare for creating <wchar.h> unconditionally.
85734         * modules/wchar (Depends-on): Add link-warning.
85735         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
85736         REPLACE_WCWIDTH, and GL_LINK_WARNING.
85737         * lib/wcwidth.h: Remove file.
85738         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
85739         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
85740         * modules/wcwidth (Files): Remove lib/wcwidth.h.
85741         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
85742         (Include): Replace wcwidth.h with <wchar.h>.
85743         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
85744         * lib/mbchar.h: Don't include wcwidth.h.
85745         * lib/mbswidth.c: Likewise.
85746         * NEWS: Mention the change.
85748 2007-07-07  Bruno Haible  <bruno@clisp.org>
85750         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
85751         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
85752         definition with an external declaration.
85753         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
85754         defined as a function. Remove AC_C_INLINE requirement.
85755         * modules/wcwidth (Files): Add lib/wcwidth.c.
85756         (Makefile.am): Remove redundant statement.
85758 2007-07-07  Bruno Haible  <bruno@clisp.org>
85760         * MODULES.html.sh (Unicode string functions): Add the new modules.
85762         * tests/uniwidth/test-u32-strwidth.c: New file.
85763         * modules/uniwidth/u32-strwidth-tests: New file.
85765         * lib/uniwidth/u32-strwidth.c: New file.
85766         * modules/uniwidth/u32-strwidth: New file.
85768         * tests/uniwidth/test-u16-strwidth.c: New file.
85769         * modules/uniwidth/u16-strwidth-tests: New file.
85771         * lib/uniwidth/u16-strwidth.c: New file.
85772         * modules/uniwidth/u16-strwidth: New file.
85774         * tests/uniwidth/test-u8-strwidth.c: New file.
85775         * modules/uniwidth/u8-strwidth-tests: New file.
85777         * lib/uniwidth/u8-strwidth.c: New file.
85778         * modules/uniwidth/u8-strwidth: New file.
85780         * tests/uniwidth/test-u32-width.c: New file.
85781         * modules/uniwidth/u32-width-tests: New file.
85783         * lib/uniwidth/u32-width.c: New file.
85784         * modules/uniwidth/u32-width: New file.
85786         * tests/uniwidth/test-u16-width.c: New file.
85787         * modules/uniwidth/u16-width-tests: New file.
85789         * lib/uniwidth/u16-width.c: New file.
85790         * modules/uniwidth/u16-width: New file.
85792         * tests/uniwidth/test-u8-width.c: New file.
85793         * modules/uniwidth/u8-width-tests: New file.
85795         * lib/uniwidth/u8-width.c: New file.
85796         * modules/uniwidth/u8-width: New file.
85798         * tests/uniwidth/test-uc_width.c: New file.
85799         * modules/uniwidth/width-tests: New file.
85801         * lib/uniwidth/width.c: New file, from GNU libiconv.
85802         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
85803         * modules/uniwidth/width: New file.
85805         * lib/uniwidth.h: New file, from GNU libiconv.
85806         * modules/uniwidth/base: New file.
85808 2007-07-07  Bruno Haible  <bruno@clisp.org>
85810         * lib/uniname.h: New file, from GNU gettext.
85811         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
85812         * lib/uniname/uninames.h: New file, from GNU gettext.
85813         * lib/uniname/uniname.c: New file, from GNU gettext.
85814         * tests/uniname/test-uninames.sh: New file.
85815         * tests/uniname/test-uninames.c: New file, from GNU gettext.
85816         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
85817         * modules/uniname/base: New file.
85818         * modules/uniname/uniname: New file.
85819         * modules/uniname/uniname-tests: New file.
85820         * MODULES.html.sh (Unicode string functions): Add the new modules.
85822 2007-07-06  Bruno Haible  <bruno@clisp.org>
85824         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
85826 2007-07-06  Bruno Haible  <bruno@clisp.org>
85828         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
85829         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
85830         includes <cygwin/sys_time.h> which includes <sys/select.h> which
85831         include <sys/time.h>.
85832         Reported by Eric Blake.
85834 2007-07-06  Eric Blake  <ebb9@byu.net>
85836         Fix testing canonicalize on cygwin.
85837         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
85838         Revert patch from 2007-06-19.
85839         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
85840         canonicalize module is also in use.
85841         * tests/test-canonicalize.c: New file.
85842         * tests/test-canonicalize.sh: Likewise.
85843         * modules/canonicalize-tests: Likewise.
85845 2007-07-06  Jim Meyering  <jim@meyering.net>
85847         * lib/getugroups.c (getugroups): Detect getgrent failure.
85848         Adjust comment to reflect reality: this function may return -1.
85850 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
85852         * build-aux/bootstrap (TP_URL,get_translations): Update to use
85853         the new TP address.
85854         (usage): Fix typo
85855         (gnulib_mk): New variable.
85857 2007-07-05  Jim Meyering  <jim@meyering.net>
85859         Don't let endgrent clobber errno, no matter how improbable.
85860         * lib/getugroups.c (getugroups): Save and restore errno around
85861         endgrent call.
85863         Close the group DB even when failing with 2^31 or more members.
85864         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
85866 2007-07-04  Jim Meyering  <jim@meyering.net>
85868         * lib/getugroups.h: New file.
85869         * lib/getugroups.c: Include "getugroups.h".
85870         Remove uses of "register" keyword.
85871         Move local variable, "cp", down into scope where used.
85872         Give "username" parameter the "const" attribute.
85873         * modules/getugroups (Files): Add lib/getugroups.h
85875 2007-07-04  Karl Berry  <karl@gnu.org>
85877         * MODULES.html.sh (func_all_modules): Complete rename of
85878         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
85880 2007-07-02  Bruno Haible  <bruno@clisp.org>
85882         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
85883         mode, when inttypes.h comes from gnulib.
85884         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
85886 2007-07-02  Simon Josefsson  <simon@josefsson.org>
85888         * NEWS: Mention lgpl module name change.
85890         * modules/lgpl-2.1: Renamed from lgpl.
85892         * NEWS: Mention gpl module name change.
85894         * modules/gpl-3.0: New file, based on gpl-2.0.
85896         * modules/gpl-2.0: Renamed from gpl.
85898         * modules/gpl: Fix filename, doc/gpl.texi is now found at
85899         doc/gpl-2.0.texi.
85901 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
85903         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
85904         #define __STDC_LIMIT_MACROS temporarily while including
85905         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
85906         Problem reported by Joel E. Denny in
85907         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
85909 2007-07-01  Bruno Haible  <bruno@clisp.org>
85911         * lib/unistdio.h: New file.
85912         * lib/unistdio/u-asnprintf.h: New file.
85913         * lib/unistdio/u-asprintf.h: New file.
85914         * lib/unistdio/u-printf-args.c: New file.
85915         * lib/unistdio/u-printf-args.h: New file.
85916         * lib/unistdio/u-printf-parse.h: New file.
85917         * lib/unistdio/u-snprintf.h: New file.
85918         * lib/unistdio/u-sprintf.h: New file.
85919         * lib/unistdio/u-vasprintf.h: New file.
85920         * lib/unistdio/u-vsnprintf.h: New file.
85921         * lib/unistdio/u-vsprintf.h: New file.
85922         * lib/unistdio/ulc-asnprintf.c: New file.
85923         * lib/unistdio/ulc-asprintf.c: New file.
85924         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
85925         * lib/unistdio/ulc-printf-parse.c: New file.
85926         * lib/unistdio/ulc-snprintf.c: New file.
85927         * lib/unistdio/ulc-sprintf.c: New file.
85928         * lib/unistdio/ulc-vasnprintf.c: New file.
85929         * lib/unistdio/ulc-vasprintf.c: New file.
85930         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
85931         * lib/unistdio/ulc-vsnprintf.c: New file.
85932         * lib/unistdio/ulc-vsprintf.c: New file.
85933         * lib/unistdio/u8-asnprintf.c: New file.
85934         * lib/unistdio/u8-asprintf.c: New file.
85935         * lib/unistdio/u8-printf-parse.c: New file.
85936         * lib/unistdio/u8-snprintf.c: New file.
85937         * lib/unistdio/u8-sprintf.c: New file.
85938         * lib/unistdio/u8-vasnprintf.c: New file.
85939         * lib/unistdio/u8-vasprintf.c: New file.
85940         * lib/unistdio/u8-vsnprintf.c: New file.
85941         * lib/unistdio/u8-vsprintf.c: New file.
85942         * lib/unistdio/u8-u8-asnprintf.c: New file.
85943         * lib/unistdio/u8-u8-asprintf.c: New file.
85944         * lib/unistdio/u8-u8-snprintf.c: New file.
85945         * lib/unistdio/u8-u8-sprintf.c: New file.
85946         * lib/unistdio/u8-u8-vasnprintf.c: New file.
85947         * lib/unistdio/u8-u8-vasprintf.c: New file.
85948         * lib/unistdio/u8-u8-vsnprintf.c: New file.
85949         * lib/unistdio/u8-u8-vsprintf.c: New file.
85950         * lib/unistdio/u16-asnprintf.c: New file.
85951         * lib/unistdio/u16-asprintf.c: New file.
85952         * lib/unistdio/u16-printf-parse.c: New file.
85953         * lib/unistdio/u16-snprintf.c: New file.
85954         * lib/unistdio/u16-sprintf.c: New file.
85955         * lib/unistdio/u16-vasnprintf.c: New file.
85956         * lib/unistdio/u16-vasprintf.c: New file.
85957         * lib/unistdio/u16-vsnprintf.c: New file.
85958         * lib/unistdio/u16-vsprintf.c: New file.
85959         * lib/unistdio/u16-u16-asnprintf.c: New file.
85960         * lib/unistdio/u16-u16-asprintf.c: New file.
85961         * lib/unistdio/u16-u16-snprintf.c: New file.
85962         * lib/unistdio/u16-u16-sprintf.c: New file.
85963         * lib/unistdio/u16-u16-vasnprintf.c: New file.
85964         * lib/unistdio/u16-u16-vasprintf.c: New file.
85965         * lib/unistdio/u16-u16-vsnprintf.c: New file.
85966         * lib/unistdio/u16-u16-vsprintf.c: New file.
85967         * lib/unistdio/u32-asnprintf.c: New file.
85968         * lib/unistdio/u32-asprintf.c: New file.
85969         * lib/unistdio/u32-printf-parse.c: New file.
85970         * lib/unistdio/u32-snprintf.c: New file.
85971         * lib/unistdio/u32-sprintf.c: New file.
85972         * lib/unistdio/u32-vasnprintf.c: New file.
85973         * lib/unistdio/u32-vasprintf.c: New file.
85974         * lib/unistdio/u32-vsnprintf.c: New file.
85975         * lib/unistdio/u32-vsprintf.c: New file.
85976         * lib/unistdio/u32-u32-asnprintf.c: New file.
85977         * lib/unistdio/u32-u32-asprintf.c: New file.
85978         * lib/unistdio/u32-u32-snprintf.c: New file.
85979         * lib/unistdio/u32-u32-sprintf.c: New file.
85980         * lib/unistdio/u32-u32-vasnprintf.c: New file.
85981         * lib/unistdio/u32-u32-vasprintf.c: New file.
85982         * lib/unistdio/u32-u32-vsnprintf.c: New file.
85983         * lib/unistdio/u32-u32-vsprintf.c: New file.
85984         * tests/unistdio/test-ulc-asnprintf1.c: New file.
85985         * tests/unistdio/test-ulc-asnprintf1.h: New file.
85986         * tests/unistdio/test-ulc-printf1.h: New file.
85987         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
85988         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
85989         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
85990         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
85991         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
85992         * tests/unistdio/test-ulc-vasprintf1.c: New file.
85993         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
85994         * tests/unistdio/test-ulc-vsprintf1.c: New file.
85995         * tests/unistdio/test-u8-asnprintf1.c: New file.
85996         * tests/unistdio/test-u8-asnprintf1.h: New file.
85997         * tests/unistdio/test-u8-printf1.h: New file.
85998         * tests/unistdio/test-u8-vasnprintf1.c: New file.
85999         * tests/unistdio/test-u8-vasnprintf2.c: New file.
86000         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
86001         * tests/unistdio/test-u8-vasnprintf3.c: New file.
86002         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
86003         * tests/unistdio/test-u8-vasprintf1.c: New file.
86004         * tests/unistdio/test-u8-vsnprintf1.c: New file.
86005         * tests/unistdio/test-u8-vsprintf1.c: New file.
86006         * tests/unistdio/test-u16-asnprintf1.c: New file.
86007         * tests/unistdio/test-u16-asnprintf1.h: New file.
86008         * tests/unistdio/test-u16-printf1.h: New file.
86009         * tests/unistdio/test-u16-vasnprintf1.c: New file.
86010         * tests/unistdio/test-u16-vasnprintf2.c: New file.
86011         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
86012         * tests/unistdio/test-u16-vasnprintf3.c: New file.
86013         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
86014         * tests/unistdio/test-u16-vasprintf1.c: New file.
86015         * tests/unistdio/test-u16-vsnprintf1.c: New file.
86016         * tests/unistdio/test-u16-vsprintf1.c: New file.
86017         * tests/unistdio/test-u32-asnprintf1.c: New file.
86018         * tests/unistdio/test-u32-asnprintf1.h: New file.
86019         * tests/unistdio/test-u32-printf1.h: New file.
86020         * tests/unistdio/test-u32-vasnprintf1.c: New file.
86021         * tests/unistdio/test-u32-vasnprintf2.c: New file.
86022         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
86023         * tests/unistdio/test-u32-vasnprintf3.c: New file.
86024         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
86025         * tests/unistdio/test-u32-vasprintf1.c: New file.
86026         * tests/unistdio/test-u32-vsnprintf1.c: New file.
86027         * tests/unistdio/test-u32-vsprintf1.c: New file.
86028         * modules/unistdio/base: New file.
86029         * modules/unistdio/u-printf-args: New file.
86030         * modules/unistdio/ulc-asnprintf: New file.
86031         * modules/unistdio/ulc-asprintf: New file.
86032         * modules/unistdio/ulc-fprintf: New file.
86033         * modules/unistdio/ulc-printf-parse: New file.
86034         * modules/unistdio/ulc-snprintf: New file.
86035         * modules/unistdio/ulc-sprintf: New file.
86036         * modules/unistdio/ulc-vasnprintf: New file.
86037         * modules/unistdio/ulc-vasprintf: New file.
86038         * modules/unistdio/ulc-vfprintf: New file.
86039         * modules/unistdio/ulc-vsnprintf: New file.
86040         * modules/unistdio/ulc-vsprintf: New file.
86041         * modules/unistdio/u8-asnprintf: New file.
86042         * modules/unistdio/u8-asprintf: New file.
86043         * modules/unistdio/u8-printf-parse: New file.
86044         * modules/unistdio/u8-snprintf: New file.
86045         * modules/unistdio/u8-sprintf: New file.
86046         * modules/unistdio/u8-vasnprintf: New file.
86047         * modules/unistdio/u8-vasprintf: New file.
86048         * modules/unistdio/u8-vsnprintf: New file.
86049         * modules/unistdio/u8-vsprintf: New file.
86050         * modules/unistdio/u8-u8-asnprintf: New file.
86051         * modules/unistdio/u8-u8-asprintf: New file.
86052         * modules/unistdio/u8-u8-snprintf: New file.
86053         * modules/unistdio/u8-u8-sprintf: New file.
86054         * modules/unistdio/u8-u8-vasnprintf: New file.
86055         * modules/unistdio/u8-u8-vasprintf: New file.
86056         * modules/unistdio/u8-u8-vsnprintf: New file.
86057         * modules/unistdio/u8-u8-vsprintf: New file.
86058         * modules/unistdio/u16-asnprintf: New file.
86059         * modules/unistdio/u16-asprintf: New file.
86060         * modules/unistdio/u16-printf-parse: New file.
86061         * modules/unistdio/u16-snprintf: New file.
86062         * modules/unistdio/u16-sprintf: New file.
86063         * modules/unistdio/u16-vasnprintf: New file.
86064         * modules/unistdio/u16-vasprintf: New file.
86065         * modules/unistdio/u16-vsnprintf: New file.
86066         * modules/unistdio/u16-vsprintf: New file.
86067         * modules/unistdio/u16-u16-asnprintf: New file.
86068         * modules/unistdio/u16-u16-asprintf: New file.
86069         * modules/unistdio/u16-u16-snprintf: New file.
86070         * modules/unistdio/u16-u16-sprintf: New file.
86071         * modules/unistdio/u16-u16-vasnprintf: New file.
86072         * modules/unistdio/u16-u16-vasprintf: New file.
86073         * modules/unistdio/u16-u16-vsnprintf: New file.
86074         * modules/unistdio/u16-u16-vsprintf: New file.
86075         * modules/unistdio/u32-asnprintf: New file.
86076         * modules/unistdio/u32-asprintf: New file.
86077         * modules/unistdio/u32-printf-parse: New file.
86078         * modules/unistdio/u32-snprintf: New file.
86079         * modules/unistdio/u32-sprintf: New file.
86080         * modules/unistdio/u32-vasnprintf: New file.
86081         * modules/unistdio/u32-vasprintf: New file.
86082         * modules/unistdio/u32-vsnprintf: New file.
86083         * modules/unistdio/u32-vsprintf: New file.
86084         * modules/unistdio/u32-u32-asnprintf: New file.
86085         * modules/unistdio/u32-u32-asprintf: New file.
86086         * modules/unistdio/u32-u32-snprintf: New file.
86087         * modules/unistdio/u32-u32-sprintf: New file.
86088         * modules/unistdio/u32-u32-vasnprintf: New file.
86089         * modules/unistdio/u32-u32-vasprintf: New file.
86090         * modules/unistdio/u32-u32-vsnprintf: New file.
86091         * modules/unistdio/u32-u32-vsprintf: New file.
86092         * modules/unistdio/ulc-asnprintf-tests: New file.
86093         * modules/unistdio/ulc-vasnprintf-tests: New file.
86094         * modules/unistdio/ulc-vasprintf-tests: New file.
86095         * modules/unistdio/ulc-vsnprintf-tests: New file.
86096         * modules/unistdio/ulc-vsprintf-tests: New file.
86097         * modules/unistdio/u8-asnprintf-tests: New file.
86098         * modules/unistdio/u8-vasnprintf-tests: New file.
86099         * modules/unistdio/u8-vasprintf-tests: New file.
86100         * modules/unistdio/u8-vsnprintf-tests: New file.
86101         * modules/unistdio/u8-vsprintf-tests: New file.
86102         * modules/unistdio/u16-asnprintf-tests: New file.
86103         * modules/unistdio/u16-vasnprintf-tests: New file.
86104         * modules/unistdio/u16-vasprintf-tests: New file.
86105         * modules/unistdio/u16-vsnprintf-tests: New file.
86106         * modules/unistdio/u16-vsprintf-tests: New file.
86107         * modules/unistdio/u32-asnprintf-tests: New file.
86108         * modules/unistdio/u32-vasnprintf-tests: New file.
86109         * modules/unistdio/u32-vasprintf-tests: New file.
86110         * modules/unistdio/u32-vsnprintf-tests: New file.
86111         * modules/unistdio/u32-vsprintf-tests: New file.
86112         * MODULES.html.sh (Unicode string functions): Add the new modules.
86114 2007-07-01  Bruno Haible  <bruno@clisp.org>
86116         * lib/sprintf.c (sprintf): Limit the available length estimation,
86117         to avoid address wraparound.
86118         * lib/vsprintf.c (vsprintf): Likewise.
86119         * modules/sprintf-posix (Dependencies): Add stdint.
86120         * modules/vsprintf-posix (Dependencies): Likewise.
86122 2007-07-01  Bruno Haible  <bruno@clisp.org>
86124         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
86125         Windows PATH as well. Conservative double-quoting. Comments.
86127 2007-07-01  Bruno Haible  <bruno@clisp.org>
86128             Eric Blake  <ebb9@byu.net>
86129             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86131         * gnulib-tool (self_abspathname): Fix algorithm to cope with
86132         empty components in $PATH, denoting '.'.
86134 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86136         * gnulib-tool: Fix indentation.
86137         (func_create_megatestdir): Likewise.
86138         Report by Bruno Haible.
86140 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86142         Sync from Automake.
86143         * build-aux/gnupload: Fix shell portability issues with for loops.
86144         Report by Karl Berry.
86146 2007-06-29  Simon Josefsson  <simon@josefsson.org>
86148         * build-aux/maint.mk (POURL): Use translationproject.org.
86150 2007-06-27  Simon Josefsson  <simon@josefsson.org>
86151             Bruno Haible  <bruno@clisp.org>
86153         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
86154         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
86155         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
86156         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
86157         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
86159 2007-06-27  Bruno Haible  <bruno@clisp.org>
86161         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
86162         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
86164 2007-06-26  Karl Berry  <karl@gnu.org>
86166         * MODULES.html.sh: remove xreadlink-with-size.
86168 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86170         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
86171         method that I hope also handles the double-include problem noted
86172         by Bruno Haible in
86173         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
86175 2007-06-23  Bruno Haible  <bruno@clisp.org>
86177         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
86178         Don't let the 'mostlyclean' target fail if the last subdirectory could
86179         not be removed.
86180         Reported by Karl Berry.
86182 2007-06-23  Bruno Haible  <bruno@clisp.org>
86184         * gnulib-tool (echo): Add a speedier workaround for ksh.
86185         * tests/test-echo.sh: Likewise.
86187 2007-06-23  Bruno Haible  <bruno@clisp.org>
86189         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
86190         * tests/test-echo.sh: Likewise.
86192 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86194         * gnulib-tool (IFS): Initialize early, so we don't set it to
86195         empty later.
86196         (self_abspathname): Rewrite algorithm to set it, reindent.
86197         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
86198         (func_create_megatestdir): Merge some sed scripts.
86200 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86202         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
86203         exposed by Sun Studio 11 cc on Solaris 8.
86205 2007-06-22  Bruno Haible  <bruno@clisp.org>
86207         * gnulib-tool (echo): Ensure the echo primitive does not interpret
86208         backslashes.
86209         * tests/test-echo.sh: New file.
86211 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86213         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
86214         simplify `sed_replace_build_aux' scripts, they are portable but
86215         echoing them with `echo' is not.
86216         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
86218 2007-06-21  Karl Berry  <karl@gnu.org>
86220         * config/srclist.txt: guess we can't handle the licenses via
86221         srclist at the moment.
86223 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
86225         * MODULES.html.sh: Add include_next.
86226         * modules/include_next: New file.
86228 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
86230         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
86231         INCLUDE_NEXT.
86232         (gl_CHECK_NEXT_HEADERS): New macro.
86233         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
86234         the obsolescent gl_ABSOLUTE_HEADER.
86235         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
86236         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
86237         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
86238         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
86239         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
86240         * m4/math_h.m4 (gl_MATH_H): Likewise.
86241         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
86242         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
86243         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
86244         * m4/stdint.m4 (gl_STDINT_H): Likewise.
86245         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
86246         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
86247         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
86248         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
86249         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
86250         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
86251         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
86252         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
86253         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
86254         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
86255         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
86256         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
86257         * m4/inttypes.m4 (gl_INTTYPES_H): Define
86258         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
86259         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
86260         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
86261         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
86262         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
86263         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
86264         * lib/float_.h: Likewise.
86265         * lib/inttypes_.h: Likewise.
86266         * lib/math_.h: Likewise.
86267         * lib/search_.h: Likewise.
86268         * lib/signal_.h: Likewise.
86269         * lib/stdint_.h: Likewise.
86270         * lib/stdio_.h: Likewise.
86271         * lib/stdlib_.h: Likewise.
86272         * lib/string_.h: Likewise.
86273         * lib/sys_stat_.h: Likewise.
86274         * lib/sys_time_.h: Likewise.
86275         * lib/time_.h: Likewise.
86276         * lib/unistd_.h: Likewise.
86277         * lib/wchar_.h: Likewise.
86278         * lib/wctype_.h: Likewise.
86279         * lib/dirent_.h: Likewise.
86280         * lib/iconv_.h: Likewise.
86281         * lib/locale_.h: Likewise.
86282         * lib/netinet_in_.h: Likewise.
86283         * lib/sys_select_.h: Likewise.
86284         * lib/sys_socket_.h: Likewise.
86285         * lib/sysexits_.h: Likewise.
86286         * modules/fcntl (Depends-on): Depend on include_next, not
86287         absolute_header.
86288         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
86289         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
86290         * modules/fchdir: Likewise.
86291         * modules/float: Likewise.
86292         * modules/iconv_open: Likewise.
86293         * modules/inttypes: Likewise.
86294         * modules/locale: Likewise.
86295         * modules/math: Likewise.
86296         * modules/netinet_in: Likewise.
86297         * modules/search: Likewise.
86298         * modules/signal: Likewise.
86299         * modules/stdint: Likewise.
86300         * modules/stdio: Likewise.
86301         * modules/stdlib: Likewise.
86302         * modules/string: Likewise.
86303         * modules/sys_select: Likewise.
86304         * modules/sys_socket: Likewise.
86305         * modules/sys_stat: Likewise.
86306         * modules/sys_time: Likewise.
86307         * modules/sysexits: Likewise.
86308         * modules/time: Likewise.
86309         * modules/unistd: Likewise.
86310         * modules/wchar: Likewise.
86311         * modules/wctype: Likewise.
86312         * modules/sys_stat: Change maintainer to "all".
86313         * modules/unistd: Likewise.
86315 2007-06-20  Karl Berry  <karl@gnu.org>
86317         * config/srclist.txt: track www changes in license files.
86319 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
86321         * build-aux/bootstrap: Remove stray dot.
86322         Make sure build_aux settings are honored when linking
86323         gnulib_extra_files.
86325 2007-06-19  Eric Blake  <ebb9@byu.net>
86327         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
86328         Allow compilation on cygwin.
86330 2007-06-19  Jim Meyering  <jim@meyering.net>
86332         xreadlink-with-size: Remove module.  No longer used.
86333         Ex-callers now use xreadlink or mreadlink-with-size.
86334         * modules/xreadlink-with-size: Remove module.
86335         * lib/xreadlink-with-size.c: Remove file.
86336         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
86337         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
86338         just before the function definition *is* accurate.
86340         Eliminate one way canonicalize_filename_mode could exit.
86341         * lib/canonicalize.c (canonicalize_filename_mode):
86342         Use mreadlink_with_size, not xreadlink_with_size.
86344 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
86346         Detect porting problems to FreeBSD/arm, which has time_t wider than
86347         long int.  Original problem reported for GNU diff by Xin Li in
86348         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
86349         * modules/getdate (Depends-on): Add intprops, verify.
86350         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
86351         is an integer type no wider than long int.
86353 2007-06-18  Jim Meyering  <jim@meyering.net>
86355         New module: mreadlink-with-size.
86356         * MODULES.html.sh: Add mreadlink-with-size.
86357         * modules/mreadlink-with-size: New module
86358         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
86359         not xreadlink-with-size.
86360         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
86362 2007-06-16  Bruno Haible  <bruno@clisp.org>
86364         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
86365         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
86366         Reported by Gary V. Vaughan <gary@gnu.org>.
86368 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
86370         Revamp lchown so that it lives in unistd.h where it belongs.
86371         * lib/lchown.h: Remove.
86372         * lib/dirchownmod.c: Don't include lib/lchown.h.
86373         * lib/fchownat.c: Likewise.
86374         * lib/openat.c: Likewise.
86375         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
86376         does not follow symlinks.
86377         (EOPNOTSUPP): Define if not defined.
86378         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
86379         is defined to 0.
86380         (lchown): New decl.
86381         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
86382         Do not check for lchown decl.
86383         Set REPLACE_LCHOWN.
86384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
86385         REPLACE_LCHOWN.
86386         * modules/chown: Make it clear it follows symlinks.
86387         * modules/lchown: Make it clear it doesn't follow symlinks.
86388         (Files): Remove lib/lchown.h
86389         (Depends-on): Add unistd.
86390         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
86391         (Include): Include <unistd.h>, not "lchown.h".
86392         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
86393         REPLACE_LCHOWN.
86395 2007-06-15  Jim Meyering  <jim@meyering.net>
86397         Change license (GPL to LGPL) of fsusage and dependents.
86398         * modules/fsusage (License): Change to LGPL.
86399         * modules/full-read (License): Likewise.
86400         * modules/full-write (License): Likewise.
86401         * modules/safe-read (License): Likewise.
86402         * modules/safe-write (License): Likewise.
86404 2007-06-14  Ben Pfaff  <blp@gnu.org>
86406         Missing part of allocsa -> malloca transition.
86407         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
86408         gl_MALLOCA.
86410 2007-06-12  Bruno Haible  <bruno@clisp.org>
86412         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
86413         to ia64, x86_64, i386.
86414         Reported by Eric Blake.
86416 2007-06-12  Bruno Haible  <bruno@clisp.org>
86418         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
86419         cross-compiling to x86_64.
86421 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
86423         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
86424         glitch reported by Ralf Wildenhues in
86425         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
86427         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
86428         Vin Shelton.
86430 2007-06-11  Bruno Haible  <bruno@clisp.org>
86432         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
86433         replacement string.
86434         Reported by Eric Blake.
86436 2007-06-10  Bruno Haible  <bruno@clisp.org>
86438         Prepare vasnprintf code for use with Unicode strings.
86439         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
86440         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
86441         TYPE_U32_STRING.
86442         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
86443         a_u32_string variants.
86444         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
86445         * lib/printf-args.c: Don't include config.h and the specification
86446         header if PRINTF_FETCHARGS is already defined.
86447         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
86448         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
86449         TYPE_U16_STRING, TYPE_U32_STRING.
86450         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
86451         u16_directive, u16_directives, u32_directive, u32_directives): New
86452         types.
86453         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
86454         New declarations.
86455         * lib/printf-parse.c: Don't include config.h and the specification
86456         header if PRINTF_PARSE is already defined. Eliminate the set of
86457         parameters for WIDE_CHAR_VERSION; the user of this file must provide
86458         them now. Include c-ctype.h.
86459         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
86460         directive and CHAR_T_ONLY_ASCII.
86461         * lib/vasnprintf.c: Don't include config.h and the specification header
86462         if VASNPRINTF is already defined.
86463         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
86464         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
86465         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
86466         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
86467         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
86468         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
86469         code accordingly.
86470         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
86471         pad_ourselves also in this case, with the 'c' and 's' directives, and
86472         with a different notion of "width".
86473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
86475 2007-06-10  Bruno Haible  <bruno@clisp.org>
86477         * modules/unistr/u32-mbsnlen: New file.
86478         * lib/unistr/u32-mbsnlen.c: New file.
86480         * modules/unistr/u16-mbsnlen: New file.
86481         * lib/unistr/u16-mbsnlen.c: New file.
86483         * modules/unistr/u8-mbsnlen: New file.
86484         * lib/unistr/u8-mbsnlen.c: New file.
86486         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
86487         declarations.
86489 2007-06-10  Bruno Haible  <bruno@clisp.org>
86491         * lib/string_.h (mbsnlen): New declaration.
86492         * lib/mbsnlen.c: New file.
86493         * m4/mbsnlen.m4: New file.
86494         * modules/mbsnlen: New file.
86495         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
86496         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
86497         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
86499 2007-06-10  Bruno Haible  <bruno@clisp.org>
86501         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
86503 2007-06-10  Bruno Haible  <bruno@clisp.org>
86505         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
86506         * lib/mbuiter.h: Likewise.
86508 2007-06-10  Bruno Haible  <bruno@clisp.org>
86510         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
86511         declaration.
86513 2007-06-10  Karl Berry  <karl@gnu.org>
86515         * config/srclist.txt: remove gettext entries, Bruno prefers
86516         to update individually.
86518 2007-06-10  Bruno Haible  <bruno@clisp.org>
86520         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
86521         'maxlen'. Ensure only length + width bytes are allocated, not
86522         length + 1 + width.
86524 2007-06-09  Bruno Haible  <bruno@clisp.org>
86526         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
86527         (CHAR_T): Remove macro.
86528         (VASNPRINTF): Update.
86530 2007-06-09  Bruno Haible  <bruno@clisp.org>
86532         * MODULES.html.sh (Unicode string functions): Add the new modules.
86534         * modules/uniconv/u32-conv-to-enc: New file.
86535         * lib/uniconv/u32-conv-to-enc.c: New file.
86536         * modules/uniconv/u32-conv-to-enc-tests: New file.
86537         * tests/uniconv/test-u32-conv-to-enc.c: New file.
86539         * modules/uniconv/u16-conv-to-enc: New file.
86540         * lib/uniconv/u16-conv-to-enc.c: New file.
86541         * lib/uniconv/u-conv-to-enc.h: New file.
86542         * modules/uniconv/u16-conv-to-enc-tests: New file.
86543         * tests/uniconv/test-u16-conv-to-enc.c: New file.
86545         * modules/uniconv/u8-conv-to-enc: New file.
86546         * lib/uniconv/u8-conv-to-enc.c: New file.
86547         * modules/uniconv/u8-conv-to-enc-tests: New file.
86548         * tests/uniconv/test-u8-conv-to-enc.c: New file.
86550         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
86551         u32_conv_to_encoding): New declarations.
86553 2007-06-09  Bruno Haible  <bruno@clisp.org>
86555         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
86557 2007-06-09  Bruno Haible  <bruno@clisp.org>
86559         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
86560         * modules/malloca: Renamed from modules/allocsa, updated.
86561         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
86562         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
86563         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
86564         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
86565         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
86566         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
86567         * modules/xmalloca: Renamed from modules/xallocsa, updated.
86568         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
86569         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
86570         * modules/c-strcasestr (Depends-on): Update.
86571         * lib/c-strcasestr.c: Update.
86572         * modules/c-strstr (Depends-on): Update.
86573         * lib/c-strstr.c: Update.
86574         * modules/canonicalize-lgpl (Depends-on): Update.
86575         * lib/canonicalize-lgpl.c: Update.
86576         * modules/clean-temp (Depends-on): Update.
86577         * lib/clean-temp.c: Update.
86578         * modules/csharpcomp (Depends-on): Update.
86579         * lib/csharpcomp.c: Update.
86580         * modules/csharpexec (Depends-on): Update.
86581         * lib/csharpexec.c: Update.
86582         * modules/javacomp (Depends-on): Update.
86583         * lib/javacomp.c: Update.
86584         * modules/javaexec (Depends-on): Update.
86585         * lib/javaexec.c: Update.
86586         * modules/mbscasestr (Depends-on): Update.
86587         * lib/mbscasestr.c: Update.
86588         * modules/mbsstr (Depends-on): Update.
86589         * lib/mbsstr.c: Update.
86590         * modules/setenv (Depends-on): Update.
86591         * lib/setenv.c: Update.
86592         * modules/strcasestr (Depends-on): Update.
86593         * lib/strcasestr.c: Update.
86594         * modules/striconveha (Depends-on): Update.
86595         * lib/striconveha.c: Update.
86596         * modules/relocatable-prog-wrapper (Files): Update.
86597         * lib/relocwrapper.c: Update.
86598         * build-aux/install-reloc: Update.
86599         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
86601 2007-06-08  Bruno Haible  <bruno@clisp.org>
86603         Port to uClibc.
86604         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
86605         * lib/fpurge.c (fpurge): Likewise.
86606         * lib/freading.c (freading): Likewise.
86607         * lib/fseeko.c (rpl_fseeko): Likewise.
86608         * lib/fseterr.c (fseterr): Likewise.
86609         * lib/fwriting.c (fwriting): Likewise.
86610         * tests/test-fflush.c (main): Avoid a failure on uClibc.
86612 2007-06-08  Bruno Haible  <bruno@clisp.org>
86614         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
86615         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
86616         * modules/gettext (Files): Add m4/intlmacosx.m4.
86618 2007-06-07  Bruno Haible  <bruno@clisp.org>
86620         * modules/localename-tests: New file.
86621         * tests/test-localename.c: New file.
86623         New module 'localename'.
86624         * lib/localename.h: New file.
86625         * lib/localename.c: New file, from GNU gettext.
86626         * m4/localename.m4: New file.
86627         * modules/localename: New file.
86629 2007-06-07  Bruno Haible  <bruno@clisp.org>
86631         Work around the lack of <wchar.h> on some builds of uClibc.
86632         * doc/headers/wchar.texi: Update.
86633         * lib/wchar_.h: Include <wchar.h> only if it exists.
86634         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
86635         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
86636         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
86637         doesn't exist.
86638         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
86639         * modules/mbfile (Depends-on): Add wchar.
86640         * modules/mbiter (Depends-on): Likewise.
86641         * modules/mbuiter (Depends-on): Likewise.
86642         Reported by Simon Josefsson.
86644 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86646         Work around problem reported by Steven M. Schweda in
86647         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
86648         Tru64 5.1B with the Compaq compiler environment installed declares
86649         an 'isblank' function but does not define it in the C library.
86650         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
86651         * lib/regex_internal.h (isblank): Likewise.
86652         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
86653         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
86655 2007-06-05  Bruno Haible  <bruno@clisp.org>
86657         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
86658         ia64.
86659         * modules/printf-safe: New file.
86660         * modules/fprintf-posix (Depends-on): Add printf-safe.
86661         * modules/printf-posix (Depends-on): Likewise.
86662         * modules/snprintf-posix (Depends-on): Likewise.
86663         * modules/sprintf-posix (Depends-on): Likewise.
86664         * modules/vasnprintf-posix (Depends-on): Likewise.
86665         * modules/vasprintf-posix (Depends-on): Likewise.
86666         * modules/vfprintf-posix (Depends-on): Likewise.
86667         * modules/vprintf-posix (Depends-on): Likewise.
86668         * modules/vsnprintf-posix (Depends-on): Likewise.
86669         * modules/vsprintf-posix (Depends-on): Likewise.
86670         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
86671         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
86672         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
86673         "no" on i386, x86_64, ia64.
86674         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
86675         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
86676         on i386, x86_64, ia64.
86677         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
86678         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
86679         on i386, x86_64, ia64.
86680         * tests/test-vasnprintf-posix.c: Include float.h.
86681         (LDBL80_WORDS): New macro.
86682         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
86683         on i386, x86_64, ia64.
86684         * tests/test-vasprintf-posix.c: Include float.h.
86685         (LDBL80_WORDS): New macro.
86686         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
86687         on i386, x86_64, ia64.
86688         * tests/test-snprintf-posix.c: Include float.h.
86689         * tests/test-sprintf-posix.c: Likewise.
86690         * tests/test-vsnprintf-posix.c: Likewise.
86691         * tests/test-vsprintf-posix.c: Likewise.
86693 2007-06-05  Bruno Haible  <bruno@clisp.org>
86695         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
86696         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
86697         non-IEEE numbers on i386, x86_64, ia64.
86698         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
86699         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
86700         * tests/test-isnanl.h: Include float.h.
86701         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
86703 2007-06-05  Bruno Haible  <bruno@clisp.org>
86705         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
86706         also the %a / %A. Handle the %a / %A code before this extra handling.
86708 2007-06-05  Bruno Haible  <bruno@clisp.org>
86710         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
86711         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
86713 2007-06-05  Bruno Haible  <bruno@clisp.org>
86715         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
86716         typo in variable name.
86718 2007-06-05  Eric Blake  <ebb9@byu.net>
86720         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
86721         Reported by Simon Josefsson.
86723 2007-06-04  Bruno Haible  <bruno@clisp.org>
86725         Avoid test failures on some PowerPC platforms.
86726         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
86727         Define differently for PowerPC.
86728         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
86729         Reported by Gary V. Vaughan <gary@gnu.org>.
86731 2007-06-02  Bruno Haible  <bruno@clisp.org>
86733         Fix test-stdint failure on FreeBSD/ia64.
86734         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
86735         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
86736         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
86737         * doc/headers/stdint.texi: Update.
86739 2007-06-01  Bruno Haible  <bruno@clisp.org>
86741         * tests/test-binary-io.c (main): Pass a third argument to open().
86742         Reported by Gary V. Vaughan <gary@gnu.org>.
86744 2007-06-01  Bruno Haible  <bruno@clisp.org>
86746         * doc/functions/frexpl.texi: Update for mingw.
86748 2007-06-01  Bruno Haible  <bruno@clisp.org>
86750         * tests/test-lseek.c (main): Disable test of errno for invalid third
86751         argument.
86752         * doc/functions/lseek.texi: Update.
86753         Reported by Gary V. Vaughan <gary@gnu.org>.
86755 2007-05-28  Bruno Haible  <bruno@clisp.org>
86757         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
86759 2007-05-31  Eric Blake  <ebb9@byu.net>
86761         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
86762         cross compiling.
86764 2007-05-30  Eric Blake  <ebb9@byu.net>
86765         and Bruno Haible  <bruno@clisp.org>
86767         Work around mingw test failures exposed by m4-1.4.9b.
86768         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
86769         * tests/test-unistd.c: Disable uid_t and git_t tests for the
86770         moment.
86772 2007-05-30  Bruno Haible  <bruno@clisp.org>
86774         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
86775         assuming that they are closed. Needed on HP-UX 11.
86777 2007-05-29  Bruno Haible  <bruno@clisp.org>
86779         Fix a problem with #include_next.
86780         * lib/dirent_.h: Split the double-inclusion guard.
86781         * lib/fcntl_.h: Likewise.
86782         * lib/float_.h: Likewise.
86783         * lib/iconv_.h: Likewise.
86784         * lib/inttypes_.h: Likewise.
86785         * lib/locale_.h: Likewise.
86786         * lib/math_.h: Likewise.
86787         * lib/netinet_in_.h: Likewise.
86788         * lib/search_.h: Likewise.
86789         * lib/signal_.h: Likewise.
86790         * lib/stdint_.h: Likewise.
86791         * lib/stdio_.h: Likewise.
86792         * lib/stdlib_.h: Likewise.
86793         * lib/string_.h: Likewise.
86794         * lib/sys_select_.h: Likewise.
86795         * lib/sys_socket_.h: Likewise.
86796         * lib/sys_stat_.h: Likewise.
86797         * lib/sys_time_.h: Likewise.
86798         * lib/sysexits_.h: Likewise.
86799         * lib/time_.h: Likewise.
86800         * lib/unistd_.h: Likewise.
86801         * lib/wchar_.h: Likewise.
86802         * lib/wctype_.h: Likewise.
86804 2007-05-29  Bruno Haible  <bruno@clisp.org>
86806         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
86807         for the moment.
86809 2007-05-29  Bruno Haible  <bruno@clisp.org>
86811         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
86812         invocation.
86813         Reported by Eric Blake.
86815 2007-05-29  Bruno Haible  <bruno@clisp.org>
86817         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
86818         compiling case.
86820 2007-05-29  Eric Blake  <ebb9@byu.net>
86821             Bruno Haible  <bruno@clisp.org>
86823         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
86824         cross compiles.
86826 2007-05-28  Eric Blake  <ebb9@byu.net>
86828         * modules/closein-tests (test_closein_LDADD): Support test on
86829         cygwin with libtool.
86831 2007-05-28  Bruno Haible  <bruno@clisp.org>
86833         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
86834         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
86835         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
86836         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
86837         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
86838         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
86839         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
86840         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
86841         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
86843 2007-05-28  Eric Blake  <ebb9@byu.net>
86845         Unconditionally include <config.h> in unit tests.
86846         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
86847         * tests/test-allocsa.c, tests/test-arcfour.c,
86848         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
86849         tests/test-array_list.c, tests/test-array_oset.c,
86850         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
86851         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
86852         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
86853         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
86854         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
86855         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
86856         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
86857         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
86858         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
86859         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
86860         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
86861         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
86862         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
86863         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
86864         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
86865         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
86866         test-md5.c, test-memmem.c, test-printf-posix.c,
86867         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
86868         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
86869         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
86870         test-strcasestr.c, test-striconv.c, test-striconveh.c,
86871         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
86872         test-vasnprintf-posix2.c, test-vasnprintf.c,
86873         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
86874         test-vfprintf-posix.c, test-vprintf-posix.c,
86875         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
86876         test-xvasprintf.c: Likewise.
86878 2007-05-28  Bruno Haible  <bruno@clisp.org>
86880         * gnulib-tool (func_import): Remember the --with-tests command-line
86881         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
86882         Reported by Eric Blake.
86884 2007-05-28  Bruno Haible  <bruno@clisp.org>
86886         * modules/ftell-tests: New file.
86887         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
86888         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
86890         * lib/ftell.c: New file.
86891         * modules/ftell: New file.
86892         * m4/ftell.m4: New file.
86893         * doc/functions/ftell.texi: Update.
86894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
86895         REPLACE_FTELL.
86896         * lib/stdio_.h (rpl_ftell): New declaration.
86897         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
86898         REPLACE_FTELL.
86900 2007-05-28  Eric Blake  <ebb9@byu.net>
86902         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
86904 2007-05-28  Bruno Haible  <bruno@clisp.org>
86906         * modules/fseek-tests: New file.
86907         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
86908         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
86910         * lib/fseek.c: New file.
86911         * modules/fseek: New file.
86912         * m4/fseek.m4: New file.
86913         * doc/functions/fseek.texi: Update.
86914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
86915         REPLACE_FSEEK.
86916         * lib/stdio_.h (rpl_fseek): New declaration.
86917         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
86918         REPLACE_FSEEK.
86920 2007-05-28  Bruno Haible  <bruno@clisp.org>
86922         * lib/stdio_.h (fflush): More comments.
86924 2007-05-28  Bruno Haible  <bruno@clisp.org>
86926         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
86927         runtime test.
86929 2007-05-28  Eric Blake  <ebb9@byu.net>
86931         Improve lseek module.
86932         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
86933         * lib/unistd_.h (lseek): Scale back link warning message.
86934         * tests/test-lseek.c: Beef up test.
86935         * tests/test-lseek.sh: Exercise more facets of lseek.
86936         Reported by Bruno Haible.
86938 2007-05-28  Bruno Haible  <bruno@clisp.org>
86940         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
86941         to define.
86943 2007-05-27  Bruno Haible  <bruno@clisp.org>
86945         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
86947 2007-05-27  Bruno Haible  <bruno@clisp.org>
86949         * modules/openmp: New file.
86950         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
86951         Noah Misch.
86953 2007-05-26  Bruno Haible  <bruno@clisp.org>
86955         * modules/chdir-long (Depends-on): Add fchdir.
86956         * modules/chdir-safer (Depends-on): Likewise.
86957         * modules/fts (Depends-on): Likewise.
86958         * modules/fts-lgpl (Depends-on): Likewise.
86959         * modules/openat (Depends-on): Likewise.
86960         * modules/savewd (Depends-on): Likewise.
86962 2007-05-24  Eric Blake  <ebb9@byu.net>
86964         Fix lseek on mingw.
86965         * modules/lseek: New module.
86966         * m4/lseek.m4: New file.
86967         * lib/lseek.c: New file.
86968         * modules/lseek-tests: New file.
86969         * tests/test-lseek.c: New file.
86970         * tests/test-lseek.sh: New file.
86971         * MODULES.html.sh: Document lseek module.
86972         * modules/fflush (Depends-on): Add lseek, fseeko.
86973         * modules/fseeko (Depends-on): Likewise.
86974         * modules/ftello (Depends-on): Likewise.
86975         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
86976         broken.
86977         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
86978         broken.
86979         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
86980         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
86981         * lib/ftello.c (rpl_ftello): Likewise.
86982         * tests/test-fseeko.c (main): Test this.
86983         * tests/test-fseeko.sh: Likewise.
86984         * tests/test-ftello.c (main): Likewise.
86985         * tests/test-ftello.sh: Likewise.
86986         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
86987         implies replacing fseek.
86988         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
86989         HAVE_FTELLO.
86990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
86991         * modules/unistd (Makefile.am): Likewise.
86992         * lib/unistd_.h (lseek): Declare a replacement.
86993         * doc/functions/lseek.texi (lseek): Document this fix.
86994         * doc/functions/fseek.texi (fseek): Likewise.
86995         * doc/functions/ftell.texi (ftell): Likewise.
86997 2007-05-24  Bruno Haible  <bruno@clisp.org>
86999         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
87000         in the printed representation of a NaN.
87001         * tests/test-vasprintf-posix.c (test_function): Likewise.
87002         * tests/test-snprintf-posix.h (test_function): Likewise.
87003         * tests/test-sprintf-posix.h (test_function): Likewise.
87004         Reported by Eric Blake.
87006 2007-05-23  Eric Blake  <ebb9@byu.net>
87008         Fix fseeko/ftello on cygwin 1.5.24.
87009         * doc/functions/fseeko.texi (fseeko): Document the fix.
87010         * doc/functions/ftello.texi (ftello): Document the fix.
87011         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
87012         * doc/functions/stdout.text (stdout): New file.
87013         * doc/functions/stderr.text (stderr): New file.
87014         * doc/gnulib.texi (Function Substitutes): Use new files.
87015         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
87016         prior to 1.7.0.
87017         * tests/test-ftello.c (main): Likewise for ftello.
87018         * tests/test-fseeko.sh: New file.
87019         * tests/test-ftello.sh: New file.
87020         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
87021         with seekable stdin.
87022         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
87023         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
87024         (gl_REPLACE_FSEEKO): New macro.
87025         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
87026         * modules/fseeko (Files): Distribute fseeko.c.
87027         * modules/ftello (Files): Distribute ftello.c.
87028         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
87029         mode.
87030         * lib/ftello.c (rpl_ftello): New file.
87031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
87032         fseeko, ftello.
87033         (gl_STDIN_LARGE_OFFSET): New macro.
87034         * modules/stdio (Makefile.am): Perform the replacement.
87035         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
87037 2007-05-23  Bruno Haible  <bruno@clisp.org>
87039         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
87040         GNULIB_POSIXCHECK is defined.
87042 2007-05-21  Bruno Haible  <bruno@clisp.org>
87044         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
87045         Check also the output for NaN arguments. When cross-compiling, guess
87046         no on IRIX.
87047         * lib/vasnprintf.c: Update comments.
87048         * tests/test-vasnprintf-posix.c (strisnan): New function.
87049         (test_function): Use it.
87050         * tests/test-vasprintf-posix.c (strisnan): New function.
87051         (test_function): Use it.
87052         * tests/test-snprintf-posix.h (strisnan): New function.
87053         (test_function): Use it.
87054         * tests/test-sprintf-posix.h (strisnan): New function.
87055         (test_function): Use it.
87056         Reported by Eric Blake.
87058 2007-05-20  Bruno Haible  <bruno@clisp.org>
87060         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
87061         numbers that fails on BeOS.
87062         * doc/functions/frexpl.texi: Update.
87064 2007-05-20  Jim Meyering  <jim@meyering.net>
87066         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
87067         forced upon us by glibc-2.6.
87069 2007-05-20  Bruno Haible  <bruno@clisp.org>
87071         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
87072         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
87073         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
87074         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
87075         NEED_PRINTF_INFINITE.
87076         (is_infinitel): New function.
87077         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
87078         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
87079         gl_PREREQ_VASNPRINTF_INFINITE.
87080         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
87081         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
87082         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
87083         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
87084         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
87085         gl_PREREQ_VASNPRINTF_INFINITE.
87086         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
87087         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
87088         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
87089         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
87090         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
87091         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
87092         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
87093         * doc/functions/fprintf.texi: Update.
87094         * doc/functions/printf.texi: Update.
87095         * doc/functions/snprintf.texi: Update.
87096         * doc/functions/sprintf.texi: Update.
87097         * doc/functions/vfprintf.texi: Update.
87098         * doc/functions/vprintf.texi: Update.
87099         * doc/functions/vsnprintf.texi: Update.
87100         * doc/functions/vsprintf.texi: Update.
87102 2007-05-20  Bruno Haible  <bruno@clisp.org>
87104         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
87105         was not found in libc.
87106         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
87108 2007-05-20  Bruno Haible  <bruno@clisp.org>
87110         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
87111         printed as "-nan" instead of "nan".
87112         * tests/test-vasprintf-posix.c (test_function): Likewise.
87113         * tests/test-snprintf-posix.h (test_function): Likewise.
87114         * tests/test-sprintf-posix.h (test_function): Likewise.
87115         Needed for HP-UX 11.
87117 2007-05-20  Jim Meyering  <jim@meyering.net>
87119         Fix buggy test for the fchownat-deref bug.
87120         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
87121         symlink required for the run-test.  Without it, this test would
87122         always declare that fchownat doesn't work, and client code would
87123         unnecessarily use the replacement function with fixed libc.
87124         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
87125         Reported by Greg Schafer.
87127 2007-05-19  Bruno Haible  <bruno@clisp.org>
87129         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
87130         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
87131         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
87132         Needed for IRIX 6.5 and Solaris 2.5.1.
87134 2007-05-19  Bruno Haible  <bruno@clisp.org>
87136         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
87137         (test_function): Skip tests involving -0.0 on platforms where
87138         -0.0 = 0.0.
87139         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
87140         (test_function): Skip tests involving -0.0 on platforms where
87141         -0.0 = 0.0.
87142         * tests/test-snprintf-posix.h (have_minus_zero): New function.
87143         (test_function): Skip tests involving -0.0 on platforms where
87144         -0.0 = 0.0.
87145         * tests/test-sprintf-posix.h (have_minus_zero): New function.
87146         (test_function): Skip tests involving -0.0 on platforms where
87147         -0.0 = 0.0.
87148         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
87149         tests.
87150         * tests/test-printf-posix.h (test_function): Likewise.
87151         * tests/test-printf-posix.output: Remove all -0.0 related results.
87152         Needed for IRIX 6.5.
87154 2007-05-19  Bruno Haible  <bruno@clisp.org>
87156         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
87157         printed as "nan0x7fffffff" instead of "nan".
87158         * tests/test-vasprintf-posix.c (test_function): Likewise.
87159         * tests/test-snprintf-posix.h (test_function): Likewise.
87160         * tests/test-sprintf-posix.h (test_function): Likewise.
87161         * tests/test-fprintf-posix.h (NaN): Remove macro.
87162         (test_function): Remove all NaN related tests.
87163         * tests/test-printf-posix.h (NaN): Remove macro.
87164         (test_function): Remove all NaN related tests.
87165         * tests/test-printf-posix.output: Remove all NaN related results.
87166         Needed for IRIX 6.5.
87168 2007-05-19  Bruno Haible  <bruno@clisp.org>
87170         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
87171         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
87173 2007-05-19  Bruno Haible  <bruno@clisp.org>
87175         * lib/float_.h: New file.
87176         * m4/float_h.m4: New file.
87177         * modules/float: New file.
87178         * modules/isnanl (Dependencies): Add float.
87179         * modules/isnanl-nolibm (Dependencies): Likewise.
87180         * modules/mathl (Dependencies): Likewise.
87181         * modules/printf-frexpl (Dependencies): Likewise.
87182         * modules/signbit (Dependencies): Likewise.
87183         * modules/vasnprintf (Dependencies): Likewise.
87184         * doc/headers/float.texi: Update.
87186 2007-05-19  Jim Meyering  <jim@meyering.net>
87188         * lib/utimens.c (gl_futimens): Rename from futimens,
87189         now that glibc-2.6 declares futimens.
87190         * lib/utimens.h: Likewise.
87192 2007-05-19  Bruno Haible  <bruno@clisp.org>
87194         Avoid test failures on mingw.
87195         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
87196         * tests/test-printf-posix.sh: Likewise.
87197         * tests/test-vfprintf-posix.sh: Likewise.
87198         * tests/test-vprintf-posix.sh: Likewise.
87200 2007-05-19  Bruno Haible  <bruno@clisp.org>
87202         Fix *printf result for NaN, Inf, -0.0 on mingw.
87203         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
87204         * lib/vasnprintf.c: Include math.h and isnan.h.
87205         (is_infinite_or_zero): New function.
87206         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
87207         values in the %f, %F, %e, %E, %g, %G directives.
87208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
87209         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
87210         gl_PRINTF_INFINITE and test its result. Invoke
87211         gl_PREREQ_VASNPRINTF_INFINITE.
87212         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
87213         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
87214         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
87215         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
87216         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
87217         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
87218         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
87219         * doc/functions/fprintf.texi: Update.
87220         * doc/functions/printf.texi: Update.
87221         * doc/functions/snprintf.texi: Update.
87222         * doc/functions/sprintf.texi: Update.
87223         * doc/functions/vfprintf.texi: Update.
87224         * doc/functions/vprintf.texi: Update.
87225         * doc/functions/vsnprintf.texi: Update.
87226         * doc/functions/vsprintf.texi: Update.
87228 2007-05-19  Bruno Haible  <bruno@clisp.org>
87230         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
87231         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
87232         Instead of multiplying with 10^k, set extra_zeroes to k.
87233         (scale10_round_long_double): Remove function.
87235 2007-05-18  Bruno Haible  <bruno@clisp.org>
87237         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
87238         introduced on 2007-05-06.
87240 2007-05-18  Bruno Haible  <bruno@clisp.org>
87242         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
87243         %g directives.
87244         * tests/test-vasprintf-posix.c (test_function): Likewise.
87245         * tests/test-snprintf-posix.h (test_function): Likewise.
87246         * tests/test-sprintf-posix.h (test_function): Likewise.
87248 2007-05-18  Bruno Haible  <bruno@clisp.org>
87250         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
87251         (strmatch): New function.
87252         (test_function): Test the %f directive on numbers of various exponents.
87253         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
87254         (strmatch): New function.
87255         (test_function): Test the %f directive on numbers of various exponents.
87256         * tests/test-snprintf-posix.h (strmatch): New function.
87257         (test_function): Test the %f directive on numbers of various exponents.
87258         * tests/test-sprintf-posix.h (strmatch): New function.
87259         (test_function): Test the %f directive on numbers of various exponents.
87260         * tests/test-snprintf-posix.c (SIZEOF): New macro.
87261         * tests/test-sprintf-posix.c (SIZEOF): New macro.
87262         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
87263         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
87265 2007-05-18  Bruno Haible  <bruno@clisp.org>
87267         Add support for 'long double' number output.
87268         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
87269         * lib/vasnprintf.c: Include math.h and float+.h.
87270         (mp_limb_t): New type.
87271         (GMP_LIMB_BITS): New macro.
87272         (mp_twolimb_t): New type.
87273         (GMP_TWOLIMB_BITS): New macro.
87274         (mpn_t): New type.
87275         (multiply, divide, convert_to_decimal, decode_long_double,
87276         scale10_round_long_double, scale10_round_decimal_long_double,
87277         floorlog10l): New functions.
87278         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
87279         for the %f, %F, %e, %E, %g, %G directives.
87280         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
87281         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
87282         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
87283         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
87284         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
87285         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
87286         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
87287         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
87288         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
87289         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
87290         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
87291         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
87292         * modules/snprintf-posix (Depends-on): Likewise.
87293         * modules/sprintf-posix (Depends-on): Likewise.
87294         * modules/vasnprintf-posix (Depends-on): Likewise.
87295         * modules/vasprintf-posix (Depends-on): Likewise.
87296         * modules/vfprintf-posix (Depends-on): Likewise.
87297         * modules/vsnprintf-posix (Depends-on): Likewise.
87298         * modules/vsprintf-posix (Depends-on): Likewise.
87299         * modules/vasnprintf (Files): Add lib/float+.h.
87300         * doc/functions/fprintf.texi: Update.
87301         * doc/functions/printf.texi: Update.
87302         * doc/functions/snprintf.texi: Update.
87303         * doc/functions/sprintf.texi: Update.
87304         * doc/functions/vfprintf.texi: Update.
87305         * doc/functions/vprintf.texi: Update.
87306         * doc/functions/vsnprintf.texi: Update.
87307         * doc/functions/vsprintf.texi: Update.
87309 2007-05-18  Bruno Haible  <bruno@clisp.org>
87311         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
87313 2007-05-18  Bruno Haible  <bruno@clisp.org>
87315         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
87316         for printing 64-bit integers. Needed for mingw.
87318 2007-05-18  Bruno Haible  <bruno@clisp.org>
87320         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
87321         gl_FUNC_FREXPL_WORKS.
87322         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
87324 2007-05-18  Bruno Haible  <bruno@clisp.org>
87326         * modules/frexpl-nolibm-tests: New file.
87328         * modules/frexpl-nolibm: New file.
87329         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
87331 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87333         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
87334         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
87335         GCC 4.2, which otherwise issues a lot of warnings.
87336         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
87337         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
87338         Likewise.
87339         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
87340         * modules/iconv_open (iconv.h): Likewise.
87341         * modules/locale (locale.h): Likewise.
87342         * modules/netinet_in (netinet/in.h): Likewise.
87343         * modules/sys_select (sys_select.h): Likewise.
87344         * modules/sys_socket (sys/socket.h): Likewise.
87345         * modules/sys_stat (sys/stat.h): Likewise.
87346         * modules/sysexits (sysexits.h): Likewise.
87347         * modules/unistd (unistd.h): Likewise.
87349 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87351         * modules/closein-tests (Makefile.am): Distribute
87352         `test-closein.sh'.
87354 2007-05-17  Bruno Haible  <bruno@clisp.org>
87356         * tests/test-printf-posix.output: Renamed from
87357         tests/test-fprintf-posix.out.
87358         * modules/fprintf-posix-tests: Update.
87359         * modules/printf-posix-tests: Update.
87360         * modules/vfprintf-posix-tests: Update.
87361         * modules/vprintf-posix-tests: Update.
87362         * tests/test-fprintf-posix.sh: Update.
87363         * tests/test-printf-posix.sh: Update.
87364         * tests/test-vfprintf-posix.sh: Update.
87365         * tests/test-vprintf-posix.sh: Update.
87366         Reported by Ralf Wildenhues.
87368 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87370         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
87371         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
87372         GCC 4.2, which otherwise issues a lot of warnings.
87373         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
87374         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
87375         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
87376         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
87377         it should no longer be needed.
87378         * lib/string_.h: Likewise.
87379         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
87380         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
87381         * modules/inttypes (inttypes.h): Likewise.
87382         * modules/math (math.h): Likewise.
87383         * modules/search (search.h): Likewise.
87384         * modules/signal (signal.h): Likewise.
87385         * modules/stdint (stdint.h): Likewise.
87386         * modules/stdio (stdio.h): Likewise.
87387         * modules/stdlib (stdlib.h): Likewise.
87388         * modules/string (string.h): Likewise.
87389         * modules/sys_time (sys/time.h): Likewise.
87390         * modules/time (time.h): Likewise.
87391         * modules/wchar (wchar.h): Likewise.
87392         * modules/wctype (wtype.h): Likewise.
87394 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
87396         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
87398 2007-05-13  Bruno Haible  <bruno@clisp.org>
87400         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
87401         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
87402         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
87403         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
87404         (gl_PREREQ_STRTOK_R): Don't require it here.
87406 2007-05-13  Bruno Haible  <bruno@clisp.org>
87408         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
87409         when used in C++ mode.
87411 2007-05-12  Bruno Haible  <bruno@clisp.org>
87413         * lib/linebuffer.h: Tweak doc.
87414         * lib/linebuffer.c: Likewise.
87416 2007-05-12  James Youngman  <jay@gnu.org>
87418         * lib/linebuffer.c (readlinebuffer_delim): New function,
87419         like readlinebuffer, but use a caller-specified delimiter.
87420         (readlinebuffer): Just call readlinebuffer_delim with '\n'
87421         as the delimiter.
87422         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
87424 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
87426         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
87427         * modules/openat (Files): Remove openat-die.c.
87428         (Depends-on): Add openat-die.
87429         * modules/openat-die: New module.
87431 2007-05-06  Bruno Haible  <bruno@clisp.org>
87433         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
87434         Update with info about Cygwin.
87435         * doc/functions/fprintf.texi: Update.
87436         * doc/functions/printf.texi: Update.
87437         * doc/functions/snprintf.texi: Update.
87438         * doc/functions/sprintf.texi: Update.
87439         * doc/functions/vfprintf.texi: Update.
87440         * doc/functions/vprintf.texi: Update.
87441         * doc/functions/vsnprintf.texi: Update.
87442         * doc/functions/vsprintf.texi: Update.
87443         Reported by Eric Blake.
87445 2007-05-06  Bruno Haible  <bruno@clisp.org>
87447         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
87448         padding ourselves for the floating-point directives.
87449         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
87450         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
87451         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
87452         gl_PRINTF_FLAG_ZERO and test its result. Invoke
87453         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
87454         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
87455         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
87456         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
87457         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
87458         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
87459         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
87460         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
87461         * tests/test-snprintf-posix.h (test_function): Also check the width
87462         and some flags in the %f directive.
87463         * tests/test-sprintf-posix.h (test_function): Likewise.
87464         * tests/test-vasnprintf-posix.c (test_function): Likewise.
87465         * tests/test-vasprintf-posix.c (test_function): Likewise.
87466         * doc/functions/fprintf.texi: Update.
87467         * doc/functions/printf.texi: Update.
87468         * doc/functions/snprintf.texi: Update.
87469         * doc/functions/sprintf.texi: Update.
87470         * doc/functions/vfprintf.texi: Update.
87471         * doc/functions/vprintf.texi: Update.
87472         * doc/functions/vsnprintf.texi: Update.
87473         * doc/functions/vsprintf.texi: Update.
87475 2007-05-06  Bruno Haible  <bruno@clisp.org>
87477         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
87478         pass the ' flag character to sprintf or snprintf.
87479         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
87480         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
87481         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
87482         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
87483         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
87484         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
87485         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
87486         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
87487         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
87488         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
87489         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
87490         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
87491         * tests/test-snprintf-posix.h (test_function): Also check the grouping
87492         flag.
87493         * tests/test-sprintf-posix.h (test_function): Likewise.
87494         * tests/test-vasnprintf-posix.c (test_function): Likewise.
87495         * tests/test-vasprintf-posix.c (test_function): Likewise.
87496         * doc/functions/fprintf.texi: Update.
87497         * doc/functions/printf.texi: Update.
87498         * doc/functions/snprintf.texi: Update.
87499         * doc/functions/sprintf.texi: Update.
87500         * doc/functions/vfprintf.texi: Update.
87501         * doc/functions/vprintf.texi: Update.
87502         * doc/functions/vsnprintf.texi: Update.
87503         * doc/functions/vsprintf.texi: Update.
87505 2007-05-01  Bruno Haible  <bruno@clisp.org>
87507         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
87509 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
87511         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
87512         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
87514 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
87516         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
87517         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
87518         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
87520 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
87522         * lib/argp-help.c (struct hol_entry): New member `ord'.
87523         (HOL_ENTRY_PTRCMP): Use ord for comparison
87524         (hol_sort): Initialize ord.
87526 2007-05-01  Bruno Haible  <bruno@clisp.org>
87528         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
87529         Reported by Eric Blake.
87530         * doc/gnulib.texi (Function Substitutes): Update.
87532 2007-05-01  Bruno Haible  <bruno@clisp.org>
87534         * doc/functions.texi: Remove file, now redundant through
87535         doc/functions/*.texi.
87537 2007-05-01  Bruno Haible  <bruno@clisp.org>
87539         * modules/argp (Depends-on): Add sleep.
87541 2007-05-01  Bruno Haible  <bruno@clisp.org>
87543         * modules/sleep-tests: New file.
87544         * tests/test-sleep.c: New file.
87546         * modules/sleep: New file.
87547         * lib/sleep.c: New file.
87548         * m4/sleep.m4: New file.
87549         * lib/unistd_.h (sleep): New declaration.
87550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
87551         HAVE_SLEEP.
87552         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
87553         * doc/functions/sleep.texi: Document the sleep module.
87555 2007-05-01  Bruno Haible  <bruno@clisp.org>
87557         * lib/sigprocmask.h: Remove file.
87558         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
87559         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
87560         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
87561         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
87562         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
87563         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
87564         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
87565         HAVE_SIGSET_T as a shell variable.
87566         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
87567         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
87568         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
87569         (Depends-on): Add signal. Remove verify.
87570         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
87571         (Include): Mention <signal.h> instead of sigprocmask.h.
87572         * NEWS: Mention the change.
87573         * lib/fatal-signal.c: Don't include sigprocmask.h.
87575 2007-05-01  Bruno Haible  <bruno@clisp.org>
87577         * modules/signal: New file.
87578         * lib/signal_.h: New file.
87579         * m4/signal_h.m4: New file.
87581 2007-05-01  Bruno Haible  <bruno@clisp.org>
87583         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
87584         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
87585         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
87586         HAVE_WCTYPE_CTMP_BUG into wctype.h.
87588 2007-05-01  Bruno Haible  <bruno@clisp.org>
87590         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
87591         configure time.
87592         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
87593         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
87594         * modules/sys_stat (Makefile.am): Substitute their values into
87595         sys/stat.h.
87597 2007-05-01  Bruno Haible  <bruno@clisp.org>
87599         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
87600         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
87601         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
87603 2007-05-01  Bruno Haible  <bruno@clisp.org>
87605         * doc/header/assert.texi: Undo last change: don't mention the gnulib
87606         'assert' module here.
87608 2007-05-01  Bruno Haible  <bruno@clisp.org>
87610         * doc/functions/*.texi: New files.
87611         * doc/functions/google-ranking.txt: New file.
87612         * doc/gnulib.texi (Function Substitutes): New chapter.
87613         (ctime, inet_ntoa): Remove sections.
87614         * doc/ctime.texi: Remove file.
87615         * doc/inet_ntoa.texi: Remove file.
87616         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
87617         dependencies.
87618         (%.info): New rule, specifying a --reference-limit.
87620 2007-05-01  Bruno Haible  <bruno@clisp.org>
87622         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
87624 2007-05-01  Bruno Haible  <bruno@clisp.org>
87626         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
87627         the portability of 'mkdir' to mingw systems.
87629 2007-05-01  Bruno Haible  <bruno@clisp.org>
87631         * doc/headers/google-ranking.txt: New file.
87633 2007-04-30  Eric Blake  <ebb9@byu.net>
87635         Prefer fseeko to fseek.
87636         * modules/getpass (Depends-on): Add fseeko.
87637         * lib/getpass.c (getpass): Use fseeko, not fseek.
87639 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
87641         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
87642         assumes the sorting is stable, while most qsort implementations
87643         are not.  Use argument addresses to ensure they never compare as
87644         equal.
87646         * tests/test-argp-2.sh (usage-indent test): Fix output
87647         (func_compare): Restore diff options
87648         * tests/test-argp.c: Restore #include "progname.h"
87650 2007-04-29  Bruno Haible  <bruno@clisp.org>
87652         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
87653         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
87654         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
87655         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
87656         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
87657         (configure.ac): Define CHECK_SNPRINTF_POSIX.
87658         (TESTS, check_PROGRAMS): Add test-snprintf.
87659         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
87660         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
87661         (TESTS, check_PROGRAMS): Add test-vsnprintf.
87662         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
87663         assertions that fail on HP-UX, OSF/1, or IRIX.
87664         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
87666 2007-04-29  Bruno Haible  <bruno@clisp.org>
87668         * MODULES.html.sh (posix_functions): Remove 'contents'.
87670 2007-04-29  Karl Berry  <karl@gnu.org>
87672         * config/srclist.txt (gendocs_template_min): new entry.
87674 2007-04-29  Bruno Haible  <bruno@clisp.org>
87676         Work around fpurge bug on BSD systems.
87677         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
87678         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
87679         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
87680         fpurge to rpl_fpurge if the system already has this function.
87681         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
87682         the case where the system already has this function. Correct invariants
87683         on BSD systems.
87684         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
87685         BSD systems.
87687 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
87689         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
87690         proposed by Sven Verdoolaege.
87692         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
87693         options.
87694         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
87695         (usage and help tests): Update
87697 2007-04-29  Bruno Haible  <bruno@clisp.org>
87699         * tests/test-fflush.c (main): Use a file of size 17, not 10.
87700         Print more information in case of failure. Disable a test on BeOS.
87702 2007-04-29  Bruno Haible  <bruno@clisp.org>
87704         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
87705         This helps debugging on systems on which no gdb is available.
87707 2007-04-29  Bruno Haible  <bruno@clisp.org>
87709         * lib/freading.h: Improve comments.
87710         * lib/fwriting.h: Likewise.
87711         * tests/test-freading.c (main): Don't check freading immediately after
87712         repositioning. Needed for glibc.
87714 2007-04-29  Bruno Haible  <bruno@clisp.org>
87716         * lib/freading.c (freading): Trivial simplification.
87718 2007-04-28  Bruno Haible  <bruno@clisp.org>
87720         * tests/test-fwriting.c (main): Also test the interaction between
87721         fflush and fwriting.
87722         * modules/fwriting-tests (Depends-on): Add fflush.
87724         * tests/test-freading.c (main): Also test the interaction between
87725         fflush and freading.
87726         * modules/freading-tests (Depends-on): Add fflush.
87728 2007-04-28  Bruno Haible  <bruno@clisp.org>
87730         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
87731         fseeko and ftello.
87732         Suggested by Eric Blake.
87734 2007-04-28  Jim Meyering  <jim@meyering.net>
87736         Avoid false-negative in gl_STDINT_H's C99 conformance test.
87737         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
87738         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
87740 2007-04-27  Eric Blake  <ebb9@byu.net>
87742         * doc/headers/assert.texi (assert.h): Document assert module use.
87744 2007-04-27  Bruno Haible  <bruno@clisp.org>
87746         * doc/headers/*.texi: New files.
87747         * doc/gnulib.texi (Header File Substitutes): New chapter.
87748         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
87749         dependencies.
87750         (standards.info ,standards.html, standards.dvi): Update dependencies.
87751         (mostlyclean, clean): New targets.
87753 2007-04-27  Bruno Haible  <bruno@clisp.org>
87755         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
87756         * modules/sysexits (Files, Makefile.am): Update.
87758         * lib/sys_socket_.h: Renamed from lib/socket_.h.
87759         * modules/sys_socket (Files, Makefile.am): Update.
87761         * lib/sys_stat_.h: Renamed from lib/stat_.h.
87762         * modules/sys_stat (Files, Makefile.am): Update.
87764 2007-04-27  Eric Blake  <ebb9@byu.net>
87766         * lib/freading.h: Improve comments.
87767         * lib/fwriting.h: Likewise.
87768         * lib/fflush.c: Likewise.
87770         Fix closein for mingw.
87771         * modules/closein-tests: Add tests for closein.
87772         * tests/test-closein.c: New file.
87773         * tests/test-closein.sh: Likewise.
87774         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
87775         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
87777 2007-04-27  Bruno Haible  <bruno@clisp.org>
87779         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
87780         version is < 6.
87781         * lib/math_.h [__DECC]: Likewise.
87782         * lib/stdio_.h [__DECC]: Likewise.
87783         * lib/stdlib_.h [__DECC]: Likewise.
87784         * lib/string_.h [__DECC]: Likewise.
87785         * lib/time_.h [__DECC]: Likewise.
87786         * lib/wchar_.h [__DECC]: Likewise.
87787         * lib/wctype_.h [__DECC]: Likewise.
87789 2007-04-27  Bruno Haible  <bruno@clisp.org>
87791         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
87793 2007-04-27  Bruno Haible  <bruno@clisp.org>
87795         * lib/fflush.c: Add comments.
87796         * modules/fpurge-tests (Depends-on): Add fflush.
87797         * modules/freadable-tests (Depends-on): Likewise.
87798         * modules/fwritable-tests (Depends-on): Likewise.
87800 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
87802         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
87803         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
87804         Report by Bruno Haible <bruno@clisp.org>.
87806 2007-04-26  Eric Blake  <ebb9@byu.net>
87808         Fix fflush on mingw.
87809         * modules/fflush (Depends-on): Add freading.
87810         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
87811         but unread data.
87813 2007-04-26  Eric Blake  <ebb9@byu.net>
87814         and Bruno Haible  <bruno@clisp.org>
87816         Implement freading and fwriting.
87817         * lib/freading.c: New file.
87818         * lib/freading.h: Likewise.
87819         * m4/freading.m4: Likewise.
87820         * modules/freading: Likewise.
87821         * modules/freading-tests: Likewise.
87822         * tests/test-freading.c: Likewise.
87823         * lib/fwriting.c: New file.
87824         * lib/fwriting.h: Likewise.
87825         * m4/fwriting.m4: Likewise.
87826         * modules/fwriting: Likewise.
87827         * modules/fwriting-tests: Likewise.
87828         * tests/test-fwriting.c: Likewise.
87829         * MODULES.html.sh (File stream based Input/Output): Mention them.
87831 2007-04-26  Bruno Haible  <bruno@clisp.org>
87833         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
87834         'long' when we assume it.
87835         Suggested by Eric Blake.
87837 2007-04-26  Bruno Haible  <bruno@clisp.org>
87839         Ensure fseeko, ftello are declared on glibc systems.
87840         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
87841         * modules/fseeko (configure.ac-early): Likewise.
87842         * modules/ftello (configure.ac-early): Likewise.
87843         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
87844         AC_FUNC_FSEEKO for this.
87845         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
87846         (gl_CHECK_FSEEKO): Remove macro.
87848 2007-04-26  Bruno Haible  <bruno@clisp.org>
87850         * tests/test-fflush.c (main): Also check the ftell result after
87851         fflush and fseek/fseeko.
87852         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
87853         file descriptor position cache in the stream.
87854         * lib/fseeko.c (rpl_fseeko): Likewise.
87856 2007-04-26  Bruno Haible  <bruno@clisp.org>
87858         * modules/fflush-tests (Depends-on): Add fseeko.
87860 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
87861             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87863         * lib/argz_.h: ensure error_t definition is obtained in same
87864         mechanism system argz.h would have.
87865         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
87866         argz facilities are known bad.  Err on the side of caution if
87867         cross-compiling.
87869 2007-04-25  Eric Blake  <ebb9@byu.net>
87871         * lib/fpurge.c (includes): Use stdlib.h for free.
87872         * tests/test-fflush.c (main): Also test fflush-fseeko.
87874 2007-04-25  Bruno Haible  <bruno@clisp.org>
87876         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
87877         * lib/fseeko.c: New file.
87878         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
87879         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
87880         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
87881         gl_FUNC_FSEEKO.
87882         (gl_FUNC_FSEEKO): Invoke it.
87883         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
87884         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
87885         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
87887 2007-04-25  Bruno Haible  <bruno@clisp.org>
87889         * modules/fflush (Depends-on): Add ftello.
87891 2007-04-25  Bruno Haible  <bruno@clisp.org>
87893         * modules/ftello-tests: New file.
87894         * tests/test-ftello.c: New file.
87896         * modules/ftello: New file.
87897         * m4/ftello.m4: New file.
87898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
87899         HAVE_FTELLO.
87900         * lib/stdio_.h (ftello): New declaration.
87901         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
87902         HAVE_FTELLO.
87904 2007-04-25  Bruno Haible  <bruno@clisp.org>
87906         * modules/fseeko-tests: New file.
87907         * tests/test-fseeko.c: New file.
87909         * modules/fseeko: New file.
87910         * m4/fseeko.m4: New file.
87911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
87912         HAVE_FSEEKO.
87913         * lib/stdio_.h (fseeko): New declaration.
87914         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
87915         HAVE_FSEEKO.
87917 2007-04-25  Bruno Haible  <bruno@clisp.org>
87919         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
87921 2007-04-25  Bruno Haible  <bruno@clisp.org>
87923         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
87924         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
87925         * tests/test-unistd.c: Likewise.
87926         * tests/test-fcntl.c: Likewise.
87928 2007-04-23  Eric Blake  <ebb9@byu.net>
87930         * lib/fflush.c: Fix missing include.
87931         Reported by Bruno Haible.
87933 2007-04-23  Bruno Haible  <bruno@clisp.org>
87935         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
87936         Reported by Eric Blake.
87938 2007-04-23  Bruno Haible  <bruno@clisp.org>
87940         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
87942 2007-04-23  Bruno Haible  <bruno@clisp.org>
87944         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
87946 2007-04-23  Bruno Haible  <bruno@clisp.org>
87948         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
87949         Needed on HP-UX 11.
87951 2007-04-16  Eric Blake  <ebb9@byu.net>
87953         Make fflush rely on fpurge.
87954         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
87955         open coding all variants.
87956         * modules/fflush (Depends-on): Add fpurge and unistd.
87957         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
87958         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
87960         Fix --with-tests compilation on cygwin.
87961         * modules/argmatch-tests (Makefile.am): List gnulib library first
87962         in LDADD.
87963         * modules/argp-tests (Makefile.am): Likewise.
87964         * modules/array-list-tests (Makefile.am): Likewise.
87965         * modules/array-oset-tests (Makefile.am): Likewise.
87966         * modules/avltree-list-tests (Makefile.am): Likewise.
87967         * modules/avltree-oset-tests (Makefile.am): Likewise.
87968         * modules/avltreehash-list-tests (Makefile.am): Likewise.
87969         * modules/carray-list-tests (Makefile.am): Likewise.
87970         * modules/dirname-tests (Makefile.am): Likewise.
87971         * modules/frexp-tests (Makefile.am): Likewise.
87972         * modules/isnanl-tests (Makefile.am): Likewise.
87973         * modules/linked-list-tests (Makefile.am): Likewise.
87974         * modules/linkedhash-list-tests (Makefile.am): Likewise.
87975         * modules/lock-tests (Makefile.am): Likewise.
87976         * modules/rbtree-list-tests (Makefile.am): Likewise.
87977         * modules/rbtree-oset-tests (Makefile.am): Likewise.
87978         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
87979         * modules/tls-tests (Makefile.am): Likewise.
87980         * modules/tsearch-tests (Makefile.am): Likewise.
87981         * modules/xvasprintf-tests (Makefile.am): Likewise.
87983         Fix fpurge for cygwin.
87984         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
87985         value.
87986         * modules/fpurge-tests (Depends-on): Clean up trash.
87988 2007-04-16  Simon Josefsson  <simon@josefsson.org>
87990         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
87992         * m4/autobuild.m4: Re-indent.
87994 2007-04-13  Bruno Haible  <bruno@clisp.org>
87996         * modules/fpurge-tests: New file.
87997         * tests/test-fpurge.c: New file.
87999         * modules/fpurge: New file.
88000         * lib/fpurge.h: New file.
88001         * lib/fpurge.c: New file.
88002         * m4/fpurge.m4: New file.
88004 2007-04-13  Bruno Haible  <bruno@clisp.org>
88006         * modules/fbufmode-tests: New file.
88007         * tests/test-fbufmode.c: New file.
88009         * modules/fbufmode: New file.
88010         * lib/fbufmode.h: New file.
88011         * lib/fbufmode.c: New file.
88012         * m4/fbufmode.m4: New file.
88014 2007-04-13  Bruno Haible  <bruno@clisp.org>
88016         * modules/fwritable-tests: New file.
88017         * tests/test-fwritable.c: New file.
88019         * modules/fwritable: New file.
88020         * lib/fwritable.h: New file.
88021         * lib/fwritable.c: New file.
88022         * m4/fwritable.m4: New file.
88024 2007-04-13  Bruno Haible  <bruno@clisp.org>
88026         * modules/freadable-tests: New file.
88027         * tests/test-freadable.c: New file.
88029         * modules/freadable: New file.
88030         * lib/freadable.h: New file.
88031         * lib/freadable.c: New file.
88032         * m4/freadable.m4: New file.
88034 2007-04-13  Bruno Haible  <bruno@clisp.org>
88036         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
88037         MOSTLYCLEANFILES.
88039 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88041         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
88042         gzip bootstrap.conf to avoid dragging in i18n machinery.
88043         (gnulib_tool_option): Use it.
88045 2007-04-13  Bruno Haible  <bruno@clisp.org>
88047         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
88048         %F directives.
88049         * tests/test-vasprintf-posix.c (test_function): Likewise.
88050         * tests/test-snprintf-posix.h (test_function): Likewise.
88051         * tests/test-sprintf-posix.h (test_function): Likewise.
88052         * tests/test-fprintf-posix.h (test_function): Likewise.
88053         * tests/test-printf-posix.h (test_function): Likewise.
88054         * tests/test-fprintf-posix.out: Likewise.
88056 2007-04-13  Bruno Haible  <bruno@clisp.org>
88058         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
88059         * modules/tls-tests (configure.ac): Likewise.
88060         Reported by Arto C. Nirkko <anirkko@insel.ch>.
88062 2007-04-13  Bruno Haible  <bruno@clisp.org>
88064         * lib/tls.c (glthread_tls_get): Fix return type.
88065         Patch by Arto C. Nirkko <anirkko@insel.ch>.
88067 2007-04-12  Eric Blake  <ebb9@byu.net>
88069         * modules/gettime (Depends-on): Remove gettime.
88070         Reported by Dmitry V. Levin.
88072 2007-04-12  Bruno Haible  <bruno@clisp.org>
88074         * modules/fflush (Include): Mention <stdio.h>.
88075         * modules/strtoimax (Include): Mention <inttypes.h>.
88076         * modules/strtoumax (Include): Likewise.
88078 2007-04-12  Eric Blake  <ebb9@byu.net>
88080         * .cvsignore: New file.
88081         * .gitignore: Likewise.
88083 2007-04-12  Bruno Haible  <bruno@clisp.org>
88085         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
88086         not before, since $(LDADD) often contains libgnu.a.
88087         * modules/striconv-tests (test_striconv_LDADD): Likewise.
88088         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
88089         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
88090         Needed on Cygwin.
88092 2007-04-12  Eric Blake  <ebb9@byu.net>
88094         Work around glibc's failure to flush stdin on fclose.
88095         * lib/closein.c (close_stdin): Flush stdin before closing.
88097         Work around glibc's failure to reset seekable stdin on exit.
88098         * modules/closein: New module.
88099         * lib/closein.c: New file.
88100         * lib/closein.h: Likewise.
88101         * m4/closein.m4: Likewise.
88102         * MODULES.html.sh (File stream based Input/Output): Document it.
88104 2007-04-12  Simon Josefsson  <simon@josefsson.org>
88106         * gnulib-tool: Rename generated 'autobuild' script to
88107         'do-autobuild' in --create-megatestdir output.
88109         * doc/gnulib.texi (Build robot for gnulib): Fix.
88111 2007-04-12  Simon Josefsson  <simon@josefsson.org>
88113         * modules/sysexits (Depends-on): Add absolute-header.
88115 2007-04-12  Eric Blake  <ebb9@byu.net>
88117         No need to preserve errno on success.
88118         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
88119         Reported by Bruno Haible.
88121 2007-04-12  Simon Josefsson  <simon@josefsson.org>
88123         * MODULES.html.sh (Support for maintaining and releasing
88124         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
88126 2007-04-12  Simon Josefsson  <simon@josefsson.org>
88128         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
88130 2007-04-12  Simon Josefsson  <simon@josefsson.org>
88132         * modules/autobuild: New module.
88134         * m4/autobuild.m4: New file.
88136 2007-04-11  Bruno Haible  <bruno@clisp.org>
88138         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
88139         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
88140         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
88141         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
88142         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88143         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88144         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88145         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88146         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88147         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88148         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
88149         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88150         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88151         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
88152         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88153         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88154         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
88155         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88156         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88157         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
88158         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88159         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88160         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
88161         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88162         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88163         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
88164         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88165         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88166         Reported by Eric Blake.
88168 2007-04-11  Bruno Haible  <bruno@clisp.org>
88170         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
88172 2007-04-10  Bruno Haible  <bruno@clisp.org>
88174         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
88175         for NaN and Infinity. Needed on FreeBSD 6.1.
88176         * tests/test-vasnprintf-posix.c (test_function): Undo last change
88177         regarding results for "%010a" of Infinity and NaN.
88178         * tests/test-vasprintf-posix.c (test_function): Likewise.
88179         * tests/test-snprintf-posix.h (test_function): Likewise.
88180         * tests/test-sprintf-posix.h (test_function): Likewise.
88181         * tests/test-fprintf-posix.h (test_function): Likewise.
88182         * tests/test-printf-posix.h (test_function): Likewise.
88183         * tests/test-fprintf-posix.out: Likewise.
88185 2007-04-10  Bruno Haible  <bruno@clisp.org>
88187         * modules/locale-tests: New file.
88188         * tests/test-locale.c: New file.
88190         * modules/locale: New file.
88191         * lib/locale_.h: New file.
88192         * m4/locale_h.m4: New file.
88194 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
88195             Bruno Haible  <bruno@clisp.org>
88197         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
88198         be determined, test for availability of the copysignf, copysign,
88199         copysignl functions.
88200         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
88201         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
88202         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
88204 2007-04-09  Eric Blake  <ebb9@byu.net>
88206         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
88207         * modules/stdio (Makefile.am): Support fflush.
88208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
88209         * modules/fflush: New file.
88210         * lib/fflush.c: Likewise.
88211         * m4/fflush.m4: Likewise.
88212         * modules/fflush-tests: New test.
88213         * tests/test-fflush.c: Likewise.
88214         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
88216 2007-04-06  Bruno Haible  <bruno@clisp.org>
88218         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
88219         (VASNPRINTF): Use signbit for faster determination whether to print a
88220         minus sign.
88221         * modules/vasnprintf (Files): Remove lib/float+.h.
88222         * modules/fprintf-posix (Depends-on): Add signbit.
88223         * modules/snprintf-posix (Depends-on): Likewise.
88224         * modules/sprintf-posix (Depends-on): Likewise.
88225         * modules/vasnprintf-posix (Depends-on): Likewise.
88226         * modules/vasprintf-posix (Depends-on): Likewise.
88227         * modules/vfprintf-posix (Depends-on): Likewise.
88228         * modules/vsnprintf-posix (Depends-on): Likewise.
88229         * modules/vsprintf-posix (Depends-on): Likewise.
88231 2007-04-06  Bruno Haible  <bruno@clisp.org>
88233         * tests/test-frexp.c (main): Test also the sign bit of zero results.
88234         * tests/test-frexpl.c (main): Likewise.
88235         * tests/test-ldexpl.c (main): Likewise.
88236         * modules/frexp-tests (Depends-on): Add signbit.
88237         * modules/frexpl-tests (Depdends-on): Likewise.
88238         * modules/ldexpl-tests (Depdends-on): Likewise.
88240 2007-04-06  Bruno Haible  <bruno@clisp.org>
88242         * modules/signbit-tests: New file.
88243         * tests/test-signbit.c: New file.
88245         * modules/signbit: New file.
88246         * lib/signbitf.c: New file.
88247         * lib/signbitd.c: New file.
88248         * lib/signbitl.c: New file.
88249         * m4/signbit.m4: New file.
88250         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
88251         (signbit): New macro.
88252         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
88253         REPLACE_SIGNBIT.
88254         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
88255         REPLACE_FREXPL into math.h.
88257 2007-04-06  Bruno Haible  <bruno@clisp.org>
88259         * modules/isnanf-nolibm-tests: New file.
88260         * tests/test-isnanf.c: New file.
88262         * modules/isnanf-nolibm: New file.
88263         * lib/isnanf.h: New file.
88264         * lib/isnanf.c: New file.
88265         * lib/isnan.c: Consider the USE_FLOAT macro.
88266         * m4/isnanf.m4: New file.
88268 2007-04-06  Bruno Haible  <bruno@clisp.org>
88270         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
88271         (Link): New section.
88273         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
88275 2007-04-06  Bruno Haible  <bruno@clisp.org>
88277         Assume the 'long double' type.
88278         * m4/longdouble.m4: Remove file.
88279         * config/srclist.txt: Don't mention longdouble.m4.
88280         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
88281         * lib/float+.h: Likewise.
88282         * lib/frexp.c: Likewise.
88283         * lib/printf-args.h: Likewise.
88284         * lib/printf-args.c: Likewise.
88285         * lib/printf-frexp.c: Likewise.
88286         * lib/printf-parse.c: Likewise.
88287         * lib/vasnprintf.c: Likewise.
88288         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
88289         * m4/intl.m4: Likewise.
88290         * m4/isnanl.m4: Likewise.
88291         * m4/printf.m4: Likewise.
88292         * m4/printf-frexpl.m4: Likewise.
88293         * m4/vasnprintf.m4: Likewise.
88294         * modules/allocsa (Files): Remove m4/longdouble.m4.
88295         * modules/gettext (Files): Likewise.
88296         * modules/relocatable-prog-wrapper (Files): Likewise.
88297         * modules/vasnprintf (Files): Likewise.
88298         * modules/isnanl (Files): Likewise.
88299         (Include): Simplify.
88300         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
88301         (Include): Simplify.
88302         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
88303         (Include): Simplify.
88304         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
88305         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
88306         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
88307         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
88308         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
88309         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
88310         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
88311         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
88312         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
88313         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
88314         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
88315         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
88316         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
88317         * tests/test-isnanl.c: Likewise.
88318         * tests/test-snprintf-posix.h: Likewise.
88319         * tests/test-sprintf-posix.h: Likewise.
88320         * tests/test-vasnprintf-posix.c: Likewise.
88321         * tests/test-vasnprintf-posix2.c: Likewise.
88322         * tests/test-vasprintf-posix.c: Likewise.
88324 2007-04-06  Bruno Haible  <bruno@clisp.org>
88326         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
88327         * lib/math_.h [__DECC]: Include the overridden include file through
88328         #include_next, outside the double-inclusion guard.
88329         * lib/stdio_.h [__DECC]: Likewise.
88330         * lib/stdlib_.h [__DECC]: Likewise.
88331         * lib/string_.h [__DECC]: Likewise.
88332         * lib/time_.h [__DECC]: Likewise.
88333         * lib/wchar_.h [__DECC]: Likewise.
88334         * lib/wctype_.h [__DECC]: Likewise.
88335         * lib/inttypes_.h [__DECC]: Likewise.
88336         Reported by Albert Chin <china@thewrittenword.com> in
88337         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
88339 2007-04-04  Eric Blake  <ebb9@byu.net>
88341         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
88342         1.5.x.
88344 2007-04-04  Bruno Haible  <bruno@clisp.org>
88346         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
88347         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
88349 2007-04-04  Bruno Haible  <bruno@clisp.org>
88351         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
88352         results for "%010a" of Infinity and NaN.
88353         * tests/test-vasprintf-posix.c (test_function): Likewise.
88354         * tests/test-snprintf-posix.h (test_function): Likewise.
88355         * tests/test-sprintf-posix.h (test_function): Likewise.
88356         * tests/test-fprintf-posix.h (test_function): Remove these tests.
88357         * tests/test-printf-posix.h (test_function): Likewise.
88358         * tests/test-fprintf-posix.out: Update.
88359         Needed for FreeBSD 6.1.
88361 2007-04-04  Bruno Haible  <bruno@clisp.org>
88363         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
88364         directly used by the gnulib modules nor by gnulib-tool.
88366 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88368         * DEPENDENCIES: Give overall description of version dependency
88369         desirability.  Use more-typical names for apps.
88370         Add shell, coreutils, diffutils, grep, tar, gzip.
88372 2007-04-04  Simon Josefsson  <simon@josefsson.org>
88374         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
88376 2007-04-04  Karl Berry  <karl@gnu.org>
88378         * MODULES.html.sh (func_module): missing '.
88380 2007-04-03  Bruno Haible  <bruno@clisp.org>
88382         * modules/argmatch-tests (Makefile.am): New variable
88383         test_argmatch_LDADD.
88384         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
88385         * modules/array-list-tests (Makefile.am): New variable
88386         test_array_list_LDADD.
88387         * modules/array-oset-tests (Makefile.am): New variable
88388         test_array_oset_LDADD.
88389         * modules/avltree-list-tests (Makefile.am): New variable
88390         test_avltree_list_LDADD.
88391         * modules/avltree-oset-tests (Makefile.am): New variable
88392         test_avltree_oset_LDADD.
88393         * modules/avltreehash-list-tests (Makefile.am): New variable
88394         test_avltreehash_list_LDADD.
88395         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
88396         test_canonicalize_lgpl_LDADD.
88397         * modules/carray-list-tests (Makefile.am): New variable
88398         test_carray_list_LDADD.
88399         * modules/dirname-tests (Makefile.am): New variable
88400         test_dirname_LDADD.
88401         * modules/linked-list-tests (Makefile.am): New variable
88402         test_linked_list_LDADD.
88403         * modules/linkedhash-list-tests (Makefile.am): New variable
88404         test_linkedhash_list_LDADD.
88405         * modules/rbtree-list-tests (Makefile.am): New variable
88406         test_rbtree_list_LDADD.
88407         * modules/rbtree-oset-tests (Makefile.am): New variable
88408         test_rbtree_oset_LDADD.
88409         * modules/rbtreehash-list-tests (Makefile.am): New variable
88410         test_rbtreehash_list_LDADD.
88411         * modules/xvasprintf-tests (Makefile.am): New variable
88412         test_xvasprintf_LDADD.
88413         Reported by Eric Blake.
88415 2007-04-03  Eric Blake  <ebb9@byu.net>
88417         * DEPENDENCIES: Weaken m4 requirements.
88419 2007-04-03  Bruno Haible  <bruno@clisp.org>
88421         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
88422         * modules/isnanl-tests (configure.ac): Likewise.
88424 2007-04-03  Ben Pfaff  <blp@gnu.org>
88426         * modules/iconv_open: Add $(srcdir)/ to source directory
88427         references in Makefile fragments that call gperf, to fix VPATH
88428         builds.
88430 2007-04-03  Bruno Haible  <bruno@clisp.org>
88432         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
88433         * lib/ldexpl.c: Undo last change.
88435 2007-04-03  Bruno Haible  <bruno@clisp.org>
88437         * modules/printf-frexpl (Depends-on): Undo last change.
88438         (Files): Add m4/ldexpl.m4.
88440 2007-04-03  Bruno Haible  <bruno@clisp.org>
88442         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
88443         * modules/isnanl (Link): New section.
88445         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
88446         * modules/frexp (Link): New section.
88448         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
88449         * modules/frexpl (Link): New section.
88451         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
88452         * modules/ldexpl (Link): New section.
88454 2007-04-03  Bruno Haible  <bruno@clisp.org>
88456         * modules/TEMPLATE-EXTENDED: New file.
88457         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
88459 2007-04-03  Bruno Haible  <bruno@clisp.org>
88461         * DEPENDENCIES: New file.
88462         Suggested by Simon Josefsson.
88464 2007-04-03  Bruno Haible  <bruno@clisp.org>
88466         * doc/gnulib.texi: Escape @.
88468 2007-04-03  James Youngman  <jay@gnu.org>
88469         and Paul Eggert  <eggert@cs.ucla.edu>
88471         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
88472         birthtime on all systems that have birthtime, not just those which
88473         use st_birthtimensec rather than st_birthtim.  Putting zero in
88474         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
88475         that the birth time is not available for files on an NFS mount.
88477 2007-04-03  Simon Josefsson  <simon@josefsson.org>
88479         * modules/memxor: Move back from crypto/, suggested by Bruno.
88480         * modules/crypto/hmac-sha1: Fix memxor dependency.
88482         * modules/crypto/gc: Moved from ../.
88484 2007-04-02  Eric Blake  <ebb9@byu.net>
88486         * lib/ldexpl.c (includes): Avoid libm.
88488         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
88490 2007-04-02  Bruno Haible  <bruno@clisp.org>
88492         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
88493         on IRIX.
88495 2007-04-02  Bruno Haible  <bruno@clisp.org>
88497         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
88498         x86 or x86_64 platforms running MacOS X.
88499         Reported by Ryan Schmidt <@ryandesign.com>.
88501 2007-04-02  Bruno Haible  <bruno@clisp.org>
88503         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
88504         i386.
88506 2007-04-01  Simon Josefsson  <simon@josefsson.org>
88508         * modules/crypto/arcfour: Moved from ../.
88509         * modules/crypto/arcfour-tests: Moved from ../.
88510         * modules/crypto/arctwo: Moved from ../.
88511         * modules/crypto/arctwo-tests: Moved from ../.
88512         * modules/crypto/des: Moved from ../.
88513         * modules/crypto/des-tests: Moved from ../.
88514         * modules/crypto/gc-arcfour: Moved from ../.
88515         * modules/crypto/gc-arcfour-tests: Moved from ../.
88516         * modules/crypto/gc-arctwo: Moved from ../.
88517         * modules/crypto/gc-arctwo-tests: Moved from ../.
88518         * modules/crypto/gc-des: Moved from ../.
88519         * modules/crypto/gc-des-tests: Moved from ../.
88520         * modules/crypto/gc-hmac-md5: Moved from ../.
88521         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
88522         * modules/crypto/gc-hmac-sha1: Moved from ../.
88523         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
88524         * modules/crypto/gc-md2: Moved from ../.
88525         * modules/crypto/gc-md2-tests: Moved from ../.
88526         * modules/crypto/gc-md4: Moved from ../.
88527         * modules/crypto/gc-md4-tests: Moved from ../.
88528         * modules/crypto/gc-md5: Moved from ../.
88529         * modules/crypto/gc-md5-tests: Moved from ../.
88530         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
88531         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
88532         * modules/crypto/gc-random: Moved from ../.
88533         * modules/crypto/gc-rijndael: Moved from ../.
88534         * modules/crypto/gc-rijndael-tests: Moved from ../.
88535         * modules/crypto/gc-sha1: Moved from ../.
88536         * modules/crypto/gc-sha1-tests: Moved from ../.
88537         * modules/crypto/gc-tests: Moved from ../.
88538         * modules/crypto/hmac-md5: Moved from ../.
88539         * modules/crypto/hmac-md5-tests: Moved from ../.
88540         * modules/crypto/hmac-sha1: Moved from ../.
88541         * modules/crypto/hmac-sha1-tests: Moved from ../.
88542         * modules/crypto/md2: Moved from ../.
88543         * modules/crypto/md2-tests: Moved from ../.
88544         * modules/crypto/md4: Moved from ../.
88545         * modules/crypto/md4-tests: Moved from ../.
88546         * modules/crypto/md5: Moved from ../.
88547         * modules/crypto/md5-tests: Moved from ../.
88548         * modules/crypto/memxor: Moved from ../.
88549         * modules/crypto/rijndael: Moved from ../.
88550         * modules/crypto/rijndael-tests: Moved from ../.
88551         * modules/crypto/sha1: Moved from ../.
88553 2007-03-30  James Youngman  <jay@gnu.org>
88555         * tests/test-stat-time.c (prepare_test): use chmod() rather than
88556         rename() to change the ctime of a file (because ctime is unaffected
88557         by rename on jfs2 on AIX 5.1).
88558         (main): Start by doing cleanup, in case a previous run failed leaving
88559         test files behind.
88561 2007-03-31  Bruno Haible  <bruno@clisp.org>
88563         Support old proprietary implementations of iconv.
88564         * modules/iconv_open: New file.
88565         * lib/iconv_.h: New file.
88566         * m4/iconv_h.m4: New file.
88567         * lib/iconv_open.c: New file.
88568         * lib/iconv_open-aix.gperf: New file.
88569         * lib/iconv_open-hpux.gperf: New file.
88570         * lib/iconv_open-irix.gperf: New file.
88571         * lib/iconv_open-osf.gperf: New file.
88572         * m4/iconv_open.m4: New file.
88573         * modules/linebreak (Depends-on): Add iconv_open.
88574         * modules/striconv (Depends-on): Likewise.
88575         * modules/striconveh (Depends-on): Likewise.
88576         * modules/unicodeio (Depends-on): Likewise.
88577         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
88578         (iconv_t)(-1).
88579         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
88580         conversion if cd is (iconv_t)(-1).
88581         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
88582         is not possible.
88584 2007-03-31  Bruno Haible  <bruno@clisp.org>
88586         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
88587         work on Solaris either. Protect also second use of "autodetect_jp".
88589 2007-03-31  Bruno Haible  <bruno@clisp.org>
88591         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
88592         the function is not present.
88594 2007-03-31  Bruno Haible  <bruno@clisp.org>
88596         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
88597         the function is not present.
88599 2007-03-31  Bruno Haible  <bruno@clisp.org>
88601         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
88602         a bug in HP-UX iconv_open().
88604 2007-03-31  Bruno Haible  <bruno@clisp.org>
88606         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
88607         (Mathematics <math.h>): New section, add fpieee.
88608         (Input/output <stdio.h>): Add fseterr.
88609         (Mathematics <math.h>): New section, add printf-frexp.
88610         (Container data structures): Add sublist.
88611         (Core language properties): Add fpucw, inline.
88612         (Functions for greatest-width integer types <inttypes.h>): Add
88613         imaxabs, imaxdiv, inttypes.
88614         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
88615         isnanl-nolibm, ldexp.
88616         (Mathematics <math.h>): New section, add printf-frexpl.
88617         (Support for systems lacking POSIX:2001): Add fprintf-posix,
88618         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
88619         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
88620         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
88621         (Unicode string functions): Add unistr/u*-mbtoucr.
88622         (Java): Add javacomp-script, javaexec-script.
88623         (C#): Add csharpcomp-script, csharpexec-script.
88624         (Support for building libraries and executables): Add havelib,
88625         relocatable-*.
88626         (Support for maintaining and releasing projects): Renamed from
88627         'Support for maintaining and release projects'. Add announce-gen.
88629 2007-03-31  Bruno Haible  <bruno@clisp.org>
88631         * README: Talk primarily about git.
88632         (git and CVS): Renamed from CVS.
88633         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
88634         gnulib is available through git.
88635         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
88637 2007-03-30  Bruno Haible  <bruno@clisp.org>
88639         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
88640         * lib/poll_.h: Likewise.
88641         * lib/stat_.h: Likewise.
88642         * lib/sys_time_.h: Likewise.
88643         * lib/sysexit_.h: Likewise.
88644         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
88645         * lib/stdbool_.h: Likewise.
88646         * lib/byteswap_.h: Add double-inclusion guard.
88648 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
88650         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
88652 2007-03-30  Karl Berry  <karl@gnu.org>
88654         * config/srclist-update: double space after USA in the license
88655         substitution, since that's how it's usually (?) written.
88657 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
88659         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
88660         reported by Bruno Haible.
88662 2007-03-29  Bruno Haible  <bruno@clisp.org>
88664         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
88665         a bug in AIX iconv().
88667 2007-03-29  Bruno Haible  <bruno@clisp.org>
88669         * modules/ldexpl-tests: New file.
88670         * tests/test-ldexpl.c: New file.
88672 2007-03-29  Bruno Haible  <bruno@clisp.org>
88674         * lib/ldexpl.c: Include fpucw.h.
88675         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
88676         multiplication.
88677         * modules/ldexpl (Depends-on): Add fpucw.
88679 2007-03-29  Bruno Haible  <bruno@clisp.org>
88681         * modules/ldexpl: New file.
88682         * m4/ldexpl.m4: New file.
88683         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
88684         set.
88685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
88686         REPLACE_LDEXPL.
88687         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
88688         REPLACE_LDEXPL.
88689         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
88690         gl_FUNC_LDEXPL_WORKS.
88691         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
88692         * modules/mathl (Files): Remove lib/ldexpl.c.
88693         (Depends-on): Add ldexpl.
88695 2007-03-29  Bruno Haible  <bruno@clisp.org>
88697         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
88699 2007-03-29  Bruno Haible  <bruno@clisp.org>
88701         * tests/test-striconveh.c (main): Don't assume that a direct conversion
88702         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
88703         and possibly also HP-UX.
88704         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
88705         work on AIX, IRIX, HP-UX, OSF/1.
88706         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
88707         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
88708         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
88709         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
88710         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
88711         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
88713 2007-03-29  Bruno Haible  <bruno@clisp.org>
88715         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
88717 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
88719         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
88720         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
88722 2007-03-29  Eric Blake  <ebb9@byu.net>
88724         * lib/acl-internal.h: Remove redundant include.
88725         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
88726         Cygwin when a file is locked.
88728 2007-03-29  Bruno Haible  <bruno@clisp.org>
88730         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
88731         file.
88732         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
88734 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
88736         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
88737         try to remove a parent directory if the child couldn't be removed
88738         (except for the first rmdir, which could fail because the child
88739         doesn't exist).  Problem reported by Jeff Blaine in
88740         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
88742 2007-03-28  Bruno Haible  <bruno@clisp.org>
88744         * lib/striconveh.c (utf8conv_carefully): New function.
88745         (mem_cd_iconveh_internal): Invoke it.
88747 2007-03-28  Bruno Haible  <bruno@clisp.org>
88749         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
88750         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
88751         input.
88752         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
88753         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
88754         unistr/u8-uctomb.
88756 2007-03-28  Bruno Haible  <bruno@clisp.org>
88758         * modules/unistr/u8-mbtoucr: New file.
88759         * lib/unistr/u8-mbtoucr.c: New file.
88760         * modules/unistr/u16-mbtoucr: New file.
88761         * lib/unistr/u16-mbtoucr.c: New file.
88762         * modules/unistr/u16-mbtoucr: New file.
88763         * lib/unistr/u16-mbtoucr.c: New file.
88764         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
88766 2007-03-27  Simon Josefsson  <simon@josefsson.org>
88767             Bruno Haible  <bruno@clisp.org>
88769         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
88770         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
88771         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
88773         * m4/stdio_h.m4: Add stubs for vasprintf too.
88775         * modules/stdio: Support vasprintf in sed command.
88777         * modules/vasprintf: Depend on stdio for prototypes.  Remove
88778         vasprintf.h.  Add stdio module indicator.
88780         * lib/stdio_.h: Declare asprintf and vasprintf, based on
88781         vasprintf.h.
88783         * lib/vasprintf.h: File removed.
88785         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
88786         * lib/vasprintf.c: Ditto.
88787         * lib/xvasprintf.c: Ditto.
88788         * tests/test-vasprintf-posix.c: Ditto.
88789         * tests/test-vasprintf.c: Ditto.
88791 2007-03-27  Bruno Haible  <bruno@clisp.org>
88793         Make vasnprintf multithread-safe.
88794         * lib/vasnprintf.c (decimal_point_char): New function.
88795         (VASNPRINTF): Use it.
88796         Suggested by Simon Josefsson.
88798 2007-03-27  Eric Blake  <ebb9@byu.net>
88800         Support sub-second birthtime on cygwin.
88801         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
88802         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
88803         (get_stat_birthtime): Also work with st_birthtim.
88805 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
88807         * lib/stat-time.h (USE_BIRTHTIME): Remove.
88808         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
88809         (get_stat_birthtime_ns): Do not try to use "spare" fields.
88810         (get_stat_birthtime_ns): Simplify compile-time tests.
88811         (get_stat_birthtime): Change the API to look like
88812         get_stat_mtime etc., except return a negative tv_nsec on error.
88813         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
88814         Don't check for "spare" fields.
88815         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
88816         or for struct stat.st_birthtime, as these tests aren't used.
88817         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
88819 2007-03-27  Bruno Haible  <bruno@clisp.org>
88821         * lib/stat-time.h: Include <sys/stat.h>.
88823 2007-03-27  James Youngman  <jay@gnu.org>
88825         * lib/stat-time.h (get_stat_birthtime): New function for
88826           retrieving st_birthtime as provided by UFS2 (hence *BSD).
88827         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
88828           and its variants.
88829         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
88830         * modules/stat-time-test: New file.
88831         * tests/test-stat-time.c: New test, devised by Bruno Haible.
88833 2007-03-26  Bruno Haible  <bruno@clisp.org>
88835         Better support of signalling NaNs.
88836         * lib/atanl.c: Include isnanl.h.
88837         (atanl): Perform test for NaN at the beginning of the function and
88838         through a call to isnanl.
88839         * lib/cosl.c: Include isnanl.h.
88840         (cosl): Perform test for NaN at the beginning of the function and
88841         through a call to isnanl.
88842         * lib/ldexpl.c: Include isnanl.h.
88843         (ldexpl): Perform test for NaN through a call to isnanl.
88844         * lib/logl.c: Include isnanl.h.
88845         (logl): Perform test for NaN at the beginning of the function and
88846         through a call to isnanl.
88847         * lib/sinl.c: Include isnanl.h.
88848         (sinl): Perform test for NaN at the beginning of the function and
88849         through a call to isnanl.
88850         * lib/sqrtl.c: Include isnanl.h.
88851         (sqrtl): Perform test for NaN at the beginning of the function and
88852         through a call to isnanl.
88853         * lib/tanl.c: Include isnanl.h.
88854         (tanl): Perform test for NaN at the beginning of the function and
88855         through a call to isnanl.
88856         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
88857         * modules/mathl (Depends-on): Add isnanl.
88859 2007-03-26  Eric Blake  <ebb9@byu.net>
88861         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
88862         regression in logic sense of previous patch.
88864 2007-03-26  Bruno Haible  <bruno@clisp.org>
88866         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
88867         unportable shell command "if ! ...".
88868         Reported by Ralf Wildenhues.
88870 2007-03-25  Bruno Haible  <bruno@clisp.org>
88872         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
88873         <sysexits.h> file, and only add EX_CONFIG.
88874         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
88875         absolute file name and whether it is sufficient. Substitute also
88876         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
88877         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
88878         ABSOLUTE_SYSEXITS_H into sysexits.h.
88880 2007-03-25  Bruno Haible  <bruno@clisp.org>
88882         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
88883         hints is NULL.
88885 2007-03-25  Bruno Haible  <bruno@clisp.org>
88887         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
88888         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
88890 2007-03-25  Bruno Haible  <bruno@clisp.org>
88892         * lib/vasnprintf.c: Include langinfo.h.
88893         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
88894         multithread-safe.
88895         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
88896         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
88897         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88898         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88899         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88900         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88901         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88902         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
88903         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88904         Reported by Simon Josefsson.
88906 2007-03-25  Bruno Haible  <bruno@clisp.org>
88908         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
88909         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
88910         * modules/vasnprintf (Depends-on): Add stdint.
88912 2007-03-25  Bruno Haible  <bruno@clisp.org>
88914         * modules/fpieee: New file.
88915         * m4/fpieee.m4: New file.
88916         * modules/isnan-nolibm (Depends-on): Add fpieee.
88917         * modules/isnanl-nolibm (Depends-on): Add fpieee.
88918         * modules/isnanl (Depends-on): Add fpieee.
88920 2007-03-25  Bruno Haible  <bruno@clisp.org>
88922         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
88924 2007-03-25  Bruno Haible  <bruno@clisp.org>
88926         Avoid test failures on IRIX 6.5.
88927         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
88928         (main): Use it.
88929         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
88930         macros.
88931         (main): Use them.
88933 2007-03-25  Bruno Haible  <bruno@clisp.org>
88935         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
88936         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
88937         exists but doesn't work.
88938         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
88939         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
88940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
88941         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
88942         math.h.
88944 2007-03-25  Bruno Haible  <bruno@clisp.org>
88946         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
88947         returns inf. Needed on IRIX 6.5.
88949 2007-03-25  Bruno Haible  <bruno@clisp.org>
88951         * tests/test-frexpl.c: Include isnanl-nolibm.h.
88952         (main): Use isnanl instead of x != x idiom.
88953         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
88955         * tests/test-frexp.c: Include isnan.h.
88956         (main): Use isnan instead of x != x idiom.
88957         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
88959 2007-03-25  Bruno Haible  <bruno@clisp.org>
88961         * tests/test-frexp.c (NaN): New function/macro.
88962         (main): Use it instead of 0.0 / 0.0.
88963         * tests/test-isnan.c (NaN): New function/macro.
88964         (main): Use it instead of 0.0 / 0.0.
88965         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
88966         (test_function): Use it instead of 0.0 / 0.0.
88967         * tests/test-vasprintf-posix.c (NaN): New function/macro.
88968         (test_function): Use it instead of 0.0 / 0.0.
88969         * tests/test-snprintf-posix.h (NaN): New function/macro.
88970         (test_function): Use it instead of 0.0 / 0.0.
88971         * tests/test-sprintf-posix.h (NaN): New function/macro.
88972         (test_function): Use it instead of 0.0 / 0.0.
88973         * tests/test-fprintf-posix.h (NaN): New function/macro.
88974         (test_function): Use it instead of 0.0 / 0.0.
88975         * tests/test-printf-posix.h (NaN): New function/macro.
88976         (test_function): Use it instead of 0.0 / 0.0.
88978         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
88980 2007-03-25  Bruno Haible  <bruno@clisp.org>
88982         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
88984 2007-03-25  Bruno Haible  <bruno@clisp.org>
88986         * lib/regexec.c (merge_state_with_log): Make static.
88988 2007-03-25  Bruno Haible  <bruno@clisp.org>
88990         * lib/trigl.c (kernel_rem_pio2): Make static.
88992 2007-03-25  Bruno Haible  <bruno@clisp.org>
88994         * lib/sincosl.c (sincosl_table): Make static.
88996 2007-03-25  Bruno Haible  <bruno@clisp.org>
88998         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
88999         if the compiler does not support C99.
89001 2007-03-25  Bruno Haible  <bruno@clisp.org>
89003         * modules/time (Makefile.am): Ensure all rule action lines start with a
89004         tab.
89006 2007-03-24  Bruno Haible  <bruno@clisp.org>
89008         * modules/tsearch-tests: New file.
89009         * tests/test-tsearch.sh: New file.
89010         * tests/test-tsearch.c: New file, mostly copied from glibc.
89012         * modules/search-tests: New file.
89013         * tests/test-search.c: New file.
89015         * modules/search: New file.
89016         * lib/search_.h: New file, incorporating lib/tsearch.h.
89017         * m4/search_h.m4: New file.
89018         * lib/tsearch.h: Remove file.
89019         * lib/tsearch.c: Include search.h instead of tsearch.h.
89020         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
89021         HAVE_TSEARCH.
89022         * modules/tsearch (Files): Remove lib/tsearch.h.
89023         (Depends-on): Add search.
89024         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
89025         (Include): Change tsearch.h into search.h.
89027 2007-03-24  Bruno Haible  <bruno@clisp.org>
89029         * modules/fpucw: New file.
89030         * lib/fpucw.h: New file.
89031         * lib/frexp.c: Include fpucw.h.
89032         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
89033         (FUNC): Use them.
89034         * lib/printf-frexp.c: Include fpucw.h.
89035         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
89036         (FUNC): Use them.
89037         * lib/vasnprintf.c: Include fpucw.h.
89038         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
89039         'long double' calculations.
89040         * tests/test-frexpl.c: Include fpucw.h.
89041         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
89042         * tests/test-printf-frexpl.c: Include fpucw.h.
89043         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
89044         * modules/frexpl (Depends-on): Add fpucw.
89045         * modules/printf-frexpl (Depends-on): Likewise.
89046         * modules/fprintf-posix (Depends-on): Likewise.
89047         * modules/snprintf-posix (Depends-on): Likewise.
89048         * modules/sprintf-posix (Depends-on): Likewise.
89049         * modules/vasnprintf-posix (Depends-on): Likewise.
89050         * modules/vasprintf-posix (Depends-on): Likewise.
89051         * modules/vfprintf-posix (Depends-on): Likewise.
89052         * modules/vsnprintf-posix (Depends-on): Likewise.
89053         * modules/vsprintf-posix (Depends-on): Likewise.
89054         * modules/frexpl-tests (Depends-on): Likewise.
89055         * modules/printf-frexpl-tests (Depends-on): Likewise.
89057 2007-03-24  Bruno Haible  <bruno@clisp.org>
89059         * lib/float+.h: New file.
89060         * lib/isnan.c: Include float+.h.
89061         (SIZE): New macro.
89062         (FUNC): Compare only SIZE bytes of the value.
89063         * lib/vasnprintf.c: Include float+.h.
89064         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
89065         SIZEOF_LDBL or SIZEOF_DBL bytes.
89066         * modules/isnan-nolibm (Files): Add lib/float+.h.
89067         * modules/isnanl-nolibm (Files): Add lib/float+.h.
89068         * modules/isnanl (Files): Add lib/float+.h.
89069         * modules/vasnprintf (Files): Add lib/float+.h.
89071 2007-03-24  Bruno Haible  <bruno@clisp.org>
89073         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
89074         include isnanl-nolibm.h.
89076 2007-03-24  Bruno Haible  <bruno@clisp.org>
89078         * tests/test-read-file.c (main): Don't produce spurious output for
89079         expected situations. Make the test fail if it encountered unexpected
89080         results.
89082 2007-03-24  Bruno Haible  <bruno@clisp.org>
89084         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
89085         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
89087 2007-03-24  Bruno Haible  <bruno@clisp.org>
89089         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
89091 2007-03-24  Bruno Haible  <bruno@clisp.org>
89093         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
89094         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
89096         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
89097         * modules/utf8-ucs4: Turn into a symbolic link to module
89098         unistr/u8-mbtouc.
89100         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
89101         utf8-ucs4-unsafe.
89102         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
89103         unistr/u8-mbtouc-unsafe.
89105         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
89106         * modules/utf16-ucs4: Turn into a symbolic link to module
89107         unistr/u16-mbtouc.
89109         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
89110         utf16-ucs4-unsafe.
89111         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
89112         unistr/u16-mbtouc-unsafe.
89114         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
89115         * modules/ucs4-utf8: Turn into a symbolic link to module
89116         unistr/u8-ubtomb.
89118         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
89119         * modules/ucs4-utf16: Turn into a symbolic link to module
89120         unistr/u16-ubtomb.
89122 2007-03-24  Bruno Haible  <bruno@clisp.org>
89124         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
89125         Enable the function only if HAVE_INLINE.
89126         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
89127         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
89128         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
89129         Enable the function only if HAVE_INLINE.
89130         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
89131         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
89132         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
89133         Enable the function only if HAVE_INLINE.
89134         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
89135         Enable the function only if HAVE_INLINE.
89136         * modules/utf8-ucs4: Update.
89137         * modules/utf8-ucs4-unsafe: Update.
89138         * modules/utf16-ucs4: Update.
89139         * modules/utf16-ucs4-unsafe: Update.
89140         * modules/ucs4-utf8: Update.
89141         * modules/ucs4-utf16: Update.
89143 2007-03-24  Bruno Haible  <bruno@clisp.org>
89145         * lib/utf8-ucs4.h: Remove file.
89146         * lib/utf8-ucs4-unsafe.h: Remove file.
89147         * lib/utf16-ucs4.h: Remove file.
89148         * lib/utf16-ucs4-unsafe.h: Remove file.
89149         * lib/ucs4-utf8.h: Remove file.
89150         * lib/ucs4-utf16.h: Remove file.
89151         * lib/unistr.h: Include their previous contents.
89152         * m4/utf-ucs4.m4: Remove file.
89153         * m4/ucs4-utf.m4: Remove file.
89154         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
89155         (Depends-on): Add unistr/base.
89156         (configure.ac): Remove gl_UTF_UCS4.
89157         (Makefile.am): Update.
89158         (Include): Change to unistr.h.
89159         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
89160         (Depends-on): Add unistr/base.
89161         (configure.ac): Remove gl_UTF_UCS4.
89162         (Makefile.am): Update.
89163         (Include): Change to unistr.h.
89164         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
89165         (Depends-on): Add unistr/base.
89166         (configure.ac): Remove gl_UTF_UCS4.
89167         (Makefile.am): Update.
89168         (Include): Change to unistr.h.
89169         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
89170         (Depends-on): Add unistr/base.
89171         (configure.ac): Remove gl_UTF_UCS4.
89172         (Makefile.am): Update.
89173         (Include): Change to unistr.h.
89174         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
89175         (Depends-on): Add unistr/base.
89176         (configure.ac): Remove gl_UCS4_UTF.
89177         (Makefile.am): Update.
89178         (Include): Change to unistr.h.
89179         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
89180         (Depends-on): Add unistr/base.
89181         (configure.ac): Remove gl_UCS4_UTF.
89182         (Makefile.am): Update.
89183         (Include): Change to unistr.h.
89184         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
89185         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
89186         utf8-ucs4-unsafe.h.
89187         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
89188         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
89189         utf16-ucs4-unsafe.h.
89190         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
89191         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
89192         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
89193         * lib/unistr/u8-strchr.c: Likewise.
89194         * lib/unistr/u8-strrchr.c: Likewise.
89195         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
89196         * lib/unistr/u16-strchr.c: Likewise.
89197         * lib/unistr/u16-strrchr.c: Likewise.
89198         * lib/striconveh.c: Update.
89199         * lib/linebreak.c: Update.
89201 2007-03-24  Bruno Haible  <bruno@clisp.org>
89203         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
89204         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
89206 2007-03-22  Bruno Haible  <bruno@clisp.org>
89208         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
89210 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
89212         * MODULES.html.sh (File system functions): New module write-any-file.
89213         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
89214         * m4/write-any-file.m4: New files.
89216 2007-03-23  Eric Blake  <ebb9@byu.net>
89218         * gnulib-tool: Rearrange space-tab sequences, since some editors
89219         like to eat them.
89221 2007-03-23  Eric Blake  <ebb9@byu.net>
89223         * lib/version-etc.c (version_etc_va): Update license wording to
89224         be more concise.  Recommended by Richard Stallman.
89226 2007-03-22  Bruno Haible  <bruno@clisp.org>
89228         * lib/poll.c (MSG_PEEK): New fallback definition.
89230 2007-03-22  Bruno Haible  <bruno@clisp.org>
89232         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
89233         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
89234         (main): Update.
89235         Fixes a compilation error on BeOS.
89237 2007-03-22  Bruno Haible  <bruno@clisp.org>
89239         * modules/frexpl-tests: New file.
89240         * tests/test-frexpl.c: New file.
89242         * modules/frexpl: New file.
89243         * m4/frexpl.m4: New file.
89244         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
89245         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
89246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
89247         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
89248         (Depends-on): Add frexpl. Remove isnanl-nolibm.
89249         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
89251 2007-03-22  Bruno Haible  <bruno@clisp.org>
89253         * lib/frexpl.c: Share code with lib/frexp.c.
89254         * modules/mathl (Files): Add lib/frexp.c.
89255         (Depends-on): Add isnanl-nolibm.
89257 2007-03-22  Bruno Haible  <bruno@clisp.org>
89259         * modules/printf-frexp (Files): Add m4/frexp.m4.
89260         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
89261         only if the found frexp function actually works.
89263 2007-03-22  Bruno Haible  <bruno@clisp.org>
89265         * lib/frexp.c: Remove older implementation that uses divisions.
89267 2007-03-21  Bruno Haible  <bruno@clisp.org>
89269         * modules/frexp-tests: New file.
89270         * tests/test-frexp.c: New file.
89272         * modules/frexp: New file.
89273         * lib/frexp.c: New file.
89274         * m4/frexp.m4: New file.
89275         * lib/math_.h (frexp): New declaration.
89276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
89277         REPLACE_FREXP.
89278         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
89280 2007-03-21  Bruno Haible  <bruno@clisp.org>
89282         * modules/isnanl-tests: New file.
89283         * tests/test-isnanl.c: New file.
89285         * modules/isnanl: New file.
89286         * lib/isnanl.h: New file.
89287         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
89288         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
89289         gl_FUNC_ISNANL_WORKS.
89290         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
89291         New macros.
89293 2007-03-21  Bruno Haible  <bruno@clisp.org>
89295         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
89296         lib/isnanl.h.
89297         (Include): Update.
89298         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
89299         * lib/vasnprintf.c: Update.
89300         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
89301         tests/test-isnanl.h, remove tests/test-isnanl.c.
89302         (Makefile.am): Update.
89303         * tests/test-isnanl-nolibm.c: New file.
89304         * tests/test-isnanl.h: New file.
89305         * tests/test-isnanl.c: Remove file.
89307 2007-03-21  Jim Meyering  <jim@meyering.net>
89309         When trying to open ".", treat ESTALE like EACCES.
89310         * lib/savewd.c (savewd_save): Resort to forking not just upon
89311         failure with EACCES, but also when errno is ESTALE.
89313 2007-03-20  Bruno Haible  <bruno@clisp.org>
89315         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
89316         Needed on AIX 5.1. Reported by Matthew Woehlke.
89318 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
89320         Suggestions by Bruno Haible:
89321         * lib/acl-internal.h: Include "gettext.h" rather than rolling
89322         our own.
89323         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
89324         * modules/acl (Depends-on): Add gettext.
89326 2007-03-19  Bruno Haible  <bruno@clisp.org>
89328         * modules/iconvme: Remove file.
89329         * lib/iconvme.h: Remove file.
89330         * lib/iconvme.c: Remove file.
89331         * m4/iconvme.m4: Remove file.
89333 2007-03-19  Bruno Haible  <bruno@clisp.org>
89335         * doc/relocatable-maint.texi: Break long shell script line.
89336         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
89338 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
89340         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
89341         handle file_has_acl.
89342         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
89343         * lib/acl.c: Move header inclusions and related macro defns into
89344         lib/acl-internal.h.
89345         (S_ISLNK): Remove defn, since that's now done for us.
89346         (file_has_acl): Move to lib/file-has-acl.c.
89347         Call acl_trivial if available.  This is the crucial part of the fix.
89348         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
89349         shared within the library.  Rewrite a bit, partly to make it compatible
89350         with the GNU coding style.
89351         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
89352         Remove unnecessary double-quotes.
89353         Don't test for acl_to_text; the build will catch that.
89354         Replace acl_entries if it doesn't exist and it is needed.
89355         Check for -lsec and acl_trivial (as used on Solaris 10).
89356         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
89357         lib/file-has-acl.c.
89358         (Depends-on): Add sys_stat, for S_ISLNK.
89360 2007-03-19  Ben Pfaff  <blp@gnu.org>
89362         * doc/gnulib.texi: Fix typos.
89363         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
89365 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
89367         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
89368         If size is zero here, buf must be zero.
89370 2007-03-19  Simon Josefsson  <simon@josefsson.org>
89372         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
89373         <bruno@clisp.org>.
89375 2007-03-18  Bruno Haible  <bruno@clisp.org>
89377         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
89378         Suggested by Eric Blake.
89380 2007-03-18  Ben Pfaff  <blp@gnu.org>
89382         * doc/relocatable.texi: Recommend using as prefix a directory
89383         that does not exist and will never be created.  Based on
89384         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
89385         and others.
89387 2007-03-17  Bruno Haible  <bruno@clisp.org>
89389         * lib/fchownat.c: Include lchown.h.
89391 2007-03-17  Bruno Haible  <bruno@clisp.org>
89393         Fix endless loop when the given allocated size was > INT_MAX.
89394         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
89395         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
89396         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
89397         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
89398         * lib/sprintf.c (sprintf): Likewise.
89400 2007-03-17  Bruno Haible  <bruno@clisp.org>
89402         * tests/test-argp-2.sh (func_compare): Output a context diff.
89404 2007-03-17  Bruno Haible  <bruno@clisp.org>
89406         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
89407         locale's decimal-point character.
89409 2007-03-17  Bruno Haible  <bruno@clisp.org>
89411         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
89412         before comparing it. Needed because on some platforms (e.g. x86) a
89413         'long double' occupies less bytes than sizeof (long double).
89415 2007-03-17  Bruno Haible  <bruno@clisp.org>
89417         * tests/test-crc.c (main): Make printf statements 64-bit clean.
89418         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
89419         * tests/test-getaddrinfo.c (simple): Likewise.
89420         * tests/test-read-file.c (main): Likewise.
89422 2007-03-17  Bruno Haible  <bruno@clisp.org>
89424         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
89426 2007-03-17  Bruno Haible  <bruno@clisp.org>
89428         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
89429         unused variable.
89431 2007-03-17  Bruno Haible  <bruno@clisp.org>
89433         * tests/test-c-strcasecmp.c: Include c-strcase.h.
89434         * tests/test-c-strncasecmp.c: Likewise.
89436 2007-03-17  Bruno Haible  <bruno@clisp.org>
89438         * modules/stdlib (Depends-on): Add unistd.
89439         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
89440         Needed for MacOS X 10.3.
89442 2007-03-17  Bruno Haible  <bruno@clisp.org>
89444         * lib/unistr/u-strdup.h: Include <stdlib.h>.
89446 2007-03-17  Bruno Haible  <bruno@clisp.org>
89448         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
89450 2007-03-17  Bruno Haible  <bruno@clisp.org>
89452         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
89453         to reflect files copied from gnulib (with or without modifications).
89454         Suggested by Jim Meyering.
89456 2007-03-17  Eric Blake  <ebb9@byu.net>
89458         * NEWS: Document stdlib change from 2007-02-18.
89460 2007-03-17  Jim Meyering  <jim@meyering.net>
89462         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
89463         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
89464         someone uses a name containing shell meta-characters.
89465         Reported by Alfred M. Szmidt.
89467         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
89469 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
89471         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
89472         and copy gettext configuration files only if configure.ac contains
89473         a use of AM_GNU_GETTEXT_VERSION.
89475 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
89477         * build-aux/bootstrap (gnulib_name): New variable.
89478         (gnulib_tool_options): Use it.
89480 2007-03-13  Simon Josefsson  <simon@josefsson.org>
89482         * tests/test-des.c: Use new namespace.
89484 2007-03-15  Bruno Haible  <bruno@clisp.org>
89486         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
89487         Reported by James Youngman <jay@gnu.org>.
89489 2007-03-15  Bruno Haible  <bruno@clisp.org>
89491         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
89492         declared prototype. Needed with cc on OSF/1 5.1.
89494 2007-03-15  Bruno Haible  <bruno@clisp.org>
89496         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
89497         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
89498         (struct gl_list_implementation): Add dispose_fn argument to the
89499         'create_empty', 'create' methods.
89500         (struct gl_list_impl_base): Add field 'dispose_fn'.
89501         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
89502         argument.
89503         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
89504         dispose_fn argument.
89505         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
89506         dispose_fn on the dropped values.
89507         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
89508         dispose_fn argument.
89509         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
89510         dropped values.
89511         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
89512         (gl_tree_remove_node): Call dispose_fn on the dropped value.
89513         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
89514         (gl_tree_remove_node): Call dispose_fn on the dropped value.
89515         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
89516         argument.
89517         (gl_tree_list_free): Call dispose_fn on the dropped values.
89518         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
89519         the dropped values.
89520         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
89521         Add dispose_fn argument.
89522         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
89523         Call dispose_fn on the dropped values.
89524         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
89525         Add dispose_fn argument.
89526         (gl_sublist_create): Initialize the 'dispose_fn' field.
89527         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
89528         * tests/test-array_list.c (main): Update.
89529         * tests/test-carray_list.c (main): Update.
89530         * tests/test-avltree_list.c (main): Update.
89531         * tests/test-rbtree_list.c (main): Update.
89532         * tests/test-avltreehash_list.c (main): Update.
89533         * tests/test-rbtreehash_list.c (main): Update.
89534         * tests/test-linked_list.c (main): Update.
89535         * tests/test-linkedhash_list.c (main): Update.
89536         * tests/test-array_oset.c (main): Update.
89538 2007-03-15  Bruno Haible  <bruno@clisp.org>
89540         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
89541         (gl_oset_create_empty): Add dispose_fn argument.
89542         (struct gl_oset_implementation): Add dispose_fn argument to
89543         'create_empty' method.
89544         (struct gl_oset_impl_base): Add dispose_fn field.
89545         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
89546         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
89547         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
89548         values.
89549         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
89550         (gl_tree_oset_free): Call dispose_fn on the dropped values.
89551         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
89552         dropped value.
89553         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
89554         dropped value.
89555         * tests/test-array_oset.c (main): Update.
89556         * tests/test-avltree_oset.c (main): Update.
89557         * tests/test-rbtree_oset.c (main): Update.
89558         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
89560 2007-03-13  Bruno Haible  <bruno@clisp.org>
89562         * tests/test-stdbool.c (i): Update after last patch.
89564 2007-03-12  Bruno Haible  <bruno@clisp.org>
89566         * lib/quotearg.c: Include <wctype.h> early, before the definition of
89567         the iswprint macro. Needed on Solaris 2.5.1.
89569 2007-03-12  Bruno Haible  <bruno@clisp.org>
89571         * tests/test-printf-frexp.c (main): Declare x as volatile.
89573 2007-03-12  Simon Josefsson  <simon@josefsson.org>
89575         * doc/gnulib.texi (Build robot for gnulib): New section.
89577 2007-03-12  Jim Meyering  <jim@meyering.net>
89579         * build-aux/bootstrap: New file.
89580         * build-aux/bootstrap.conf: New file, from coreutils.
89582 2007-03-11  Bruno Haible  <bruno@clisp.org>
89584         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
89586 2007-03-12  Simon Josefsson  <simon@josefsson.org>
89588         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
89589         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
89590         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
89592 2007-03-11  Bruno Haible  <bruno@clisp.org>
89594         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
89595         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
89597 2007-03-11  Bruno Haible  <bruno@clisp.org>
89599         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
89600         formula. Needed for SunPRO C 5.0.
89602 2007-03-11  Bruno Haible  <bruno@clisp.org>
89604         * modules/long-options (Depends-on): Add getopt.
89606 2007-03-11  Bruno Haible  <bruno@clisp.org>
89608         * modules/modechange (Depends-on): Add stdbool.
89610 2007-03-11  Bruno Haible  <bruno@clisp.org>
89612         * modules/i-ring (Depends-on): Add stdbool.
89614 2007-03-11  Bruno Haible  <bruno@clisp.org>
89616         * modules/gc-des (Depends-on): Add stdbool.
89618 2007-03-11  Bruno Haible  <bruno@clisp.org>
89620         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
89622 2007-03-11  Bruno Haible  <bruno@clisp.org>
89624         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
89626 2007-03-11  Bruno Haible  <bruno@clisp.org>
89628         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
89630 2007-03-11  Bruno Haible  <bruno@clisp.org>
89632         * lib/vasnprintf.c (sprintf): Undefine.
89634 2007-03-11  Bruno Haible  <bruno@clisp.org>
89636         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
89637         initializers in SunPRO C and Compaq C compilers.
89639 2007-03-11  Bruno Haible  <bruno@clisp.org>
89641         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
89642         decrementing code ANSI C compliant.
89644 2007-03-11  Bruno Haible  <bruno@clisp.org>
89646         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
89647         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
89649 2007-03-11  Bruno Haible  <bruno@clisp.org>
89651         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
89652         <stdbool.h> substitute doesn't pass.
89654 2007-03-11  Bruno Haible  <bruno@clisp.org>
89656         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
89658 2007-03-11  Bruno Haible  <bruno@clisp.org>
89660         * gnulib-tool (func_create_megatestdir): Create also an autobuild
89661         script, for submission to autobuild.josefsson.org.
89663 2007-03-10  Bruno Haible  <bruno@clisp.org>
89665         * modules/canonicalize-lgpl-tests: New file.
89666         * tests/test-canonicalize-lgpl.sh: New file.
89667         * tests/test-canonicalize-lgpl.c: New file.
89669         * modules/c-strcase-tests: New file.
89670         * tests/test-c-strcase.sh: New file.
89671         * tests/test-c-strcasecmp.c: New file.
89672         * tests/test-c-strncasecmp.c: New file.
89674         * modules/atexit-tests: New file.
89675         * tests/test-atexit.sh: New file.
89676         * tests/test-atexit.c: New file.
89678 2007-03-10  Bruno Haible  <bruno@clisp.org>
89680         * tests/test-binary-io.sh: Use temporary filenames that are not so
89681         likely to clash with those of other tests (in a parallel make).
89682         * tests/test-binary-io.c: Likewise.
89684 2007-03-10  Bruno Haible  <bruno@clisp.org>
89686         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
89687         fallback; use #error instead.
89688         Suggested by Simon Josefsson.
89690 2007-03-10  Bruno Haible  <bruno@clisp.org>
89692         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
89693         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
89694         first and the last.
89696 2007-03-10  Bruno Haible  <bruno@clisp.org>
89698         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
89700 2007-03-10  Bruno Haible  <bruno@clisp.org>
89702         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
89703         "make distcheck".
89704         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
89705         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
89706         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
89708 2007-03-10  Bruno Haible  <bruno@clisp.org>
89710         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
89711         variable.
89712         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
89713         variable.
89715 2007-03-09  Eric Blake  <ebb9@byu.net>
89716         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
89718         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
89719         types are not being provided by gnulib.
89720         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
89721         types are supported.
89723 2007-03-10  Bruno Haible  <bruno@clisp.org>
89725         * lib/stdio_.h (__attribute__): New macro.
89726         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
89727         vsprintf): Specify __attribute__ __format__ for GCC.
89728         Suggested by Eric Blake.
89730 2007-03-09  Bruno Haible  <bruno@clisp.org>
89732         * modules/printf-posix-tests: New file.
89733         * tests/test-printf-posix.sh: New file.
89734         * tests/test-printf-posix.c: New file.
89736         * modules/printf-posix: New file.
89737         * lib/printf.c: New file.
89738         * m4/printf-posix-rpl.m4: New file.
89739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
89740         REPLACE_PRINTF.
89741         * lib/stdio_.h (printf): New declaration.
89742         (format, __format__, ____printf____, ____scanf____, ____strftime____,
89743         ____strfmon____): New macros.
89744         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
89745         REPLACE_PRINTF.
89747 2007-03-09  Bruno Haible  <bruno@clisp.org>
89749         * tests/test-vasnprintf-posix2.sh: New file.
89750         * tests/test-vasnprintf-posix2.c: New file.
89751         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
89752         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
89753         (Makefile.am): Activate test-vasnprintf-posix2.sh.
89755         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
89756         a locale dependent decimal point, rather than always '.'.
89758 2007-03-09  Eric Blake  <ebb9@byu.net>
89760         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
89761         spite of platforms like Tandem/NSK that define it to -1.
89763 2007-03-08  Bruno Haible  <bruno@clisp.org>
89765         * modules/vprintf-posix-tests: New file.
89766         * tests/test-vprintf-posix.sh: New file.
89767         * tests/test-vprintf-posix.c: New file.
89768         * tests/test-printf-posix.h: New file.
89770         * modules/vprintf-posix: New file.
89771         * lib/vprintf.c: New file.
89772         * m4/vprintf-posix.m4: New file.
89773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
89774         REPLACE_VPRINTF.
89775         * lib/stdio_.h (vprintf): New declaration.
89776         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
89777         REPLACE_VPRINTF.
89779 2007-03-08  Bruno Haible  <bruno@clisp.org>
89781         * modules/fprintf-posix-tests: New file.
89782         * tests/test-fprintf-posix.sh: New file.
89783         * tests/test-fprintf-posix.c: New file.
89785         * modules/fprintf-posix: New file.
89786         * lib/fprintf.c: New file.
89787         * m4/fprintf-posix.m4: New file.
89788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
89789         REPLACE_FPRINTF.
89790         * lib/stdio_.h (fprintf): New declaration.
89791         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
89792         REPLACE_FPRINTF.
89794 2007-03-08  Bruno Haible  <bruno@clisp.org>
89796         * modules/vfprintf-posix-tests: New file.
89797         * tests/test-vfprintf-posix.sh: New file.
89798         * tests/test-vfprintf-posix.c: New file.
89799         * tests/test-fprintf-posix.h: New file.
89800         * tests/test-fprintf-posix.out: New file.
89802         * modules/vfprintf-posix: New file.
89803         * lib/vfprintf.c: New file.
89804         * m4/vfprintf-posix.m4: New file.
89805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
89806         REPLACE_VFPRINTF.
89807         * lib/stdio_.h (vfprintf): New declaration.
89808         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
89809         REPLACE_VFPRINTF.
89811 2007-03-08  Bruno Haible  <bruno@clisp.org>
89813         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
89815 2007-03-08  Bruno Haible  <bruno@clisp.org>
89817         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
89818         instead of 'expr' invocations.
89819         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
89820         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
89821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
89822         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
89823         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
89824         Suggested by Paul Eggert.
89826 2007-03-08  Bruno Haible  <bruno@clisp.org>
89828         * modules/fseterr-tests: New file.
89829         * tests/test-fseterr.c: New file.
89831         * modules/fseterr: New file.
89832         * lib/fseterr.h: New file.
89833         * lib/fseterr.c: New file.
89835 2007-03-08  Bruno Haible  <bruno@clisp.org>
89837         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
89838         * lib/getopt_.h: Likewise.
89839         * lib/mbswidth.h: Likewise.
89840         * lib/setenv.h: Likewise.
89841         * lib/vasnprintf.h: Likewise.
89842         * lib/vasprintf.h: Likewise.
89843         * lib/verror.h: Likewise.
89844         * lib/xsetenv.h: Likewise.
89845         * lib/xvasprintf.h: Likewise.
89847 2007-03-08  Jim Meyering  <jim@meyering.net>
89849         * users.txt: Add parted.
89851         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
89853 2007-03-07  Bruno Haible  <bruno@clisp.org>
89855         * m4/printf.m4: Make the shell script snippets copy&pastable.
89857 2007-03-02  Bruno Haible  <bruno@clisp.org>
89859         * lib/netinet_in_.h: New file.
89860         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
89861         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
89862         * modules/netinet_in (Files): Add lib/netinet_in_.h.
89863         (Depends-on): Add absolute-header.
89864         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
89865         into netinet/in.h.
89867 2007-03-03  Bruno Haible  <bruno@clisp.org>
89869         * lib/sys_select_.h: New file.
89870         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
89871         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
89872         * modules/sys_select (Files): Add lib/sys_select_.h.
89873         (Depends-on): Add absolute-header.
89874         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
89875         into sys/select.h.
89877 2007-03-02  Bruno Haible  <bruno@clisp.org>
89879         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
89880         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
89881         values.
89882         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
89883         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
89884         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
89885         * modules/sys_socket (Depends-on): Add absolute-header.
89886         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
89887         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
89888         (Include): Remove requirement of inclusion of <sys/types.h>.
89890 2007-03-02  Bruno Haible  <bruno@clisp.org>
89892         * lib/byteswap_.h (bswap_32): Fix formula.
89894 2007-03-06  Bruno Haible  <bruno@clisp.org>
89896         * modules/sprintf-posix-tests: New file.
89897         * tests/test-sprintf-posix.c: New file.
89899         * modules/sprintf-posix: New file.
89900         * lib/sprintf.c: New file.
89901         * m4/sprintf-posix.m4: New file.
89902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
89903         REPLACE_SPRINTF.
89904         * lib/stdio_.h (sprintf): New declaration.
89905         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
89906         REPLACE_SPRINTF.
89908 2007-03-06  Bruno Haible  <bruno@clisp.org>
89910         * modules/vsprintf-posix-tests: New file.
89911         * tests/test-vsprintf-posix.c: New file.
89912         * tests/test-sprintf-posix.h: New file.
89914         * modules/vsprintf-posix: New file.
89915         * lib/vsprintf.c: New file.
89916         * m4/vsprintf-posix.m4: New file.
89917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
89918         REPLACE_VSPRINTF.
89919         * lib/stdio_.h (vsprintf): New declaration.
89920         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
89921         REPLACE_VSPRINTF.
89923 2007-03-06  Bruno Haible  <bruno@clisp.org>
89925         * modules/vsnprintf (Depend-on): Remove minmax.
89927 2007-03-06  Bruno Haible  <bruno@clisp.org>
89929         * modules/snprintf-posix-tests: New file.
89930         * tests/test-snprintf-posix.c: New file.
89932         * modules/snprintf-posix: New file.
89933         * m4/snprintf-posix.m4: New file.
89934         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
89935         gl_FUNC_SNPRINTF.
89936         (gl_FUNC_SNPRINTF): Invoke it.
89937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
89938         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
89939         is set.
89940         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
89942 2007-03-06  Bruno Haible  <bruno@clisp.org>
89944         * modules/vsnprintf-posix-tests: New file.
89945         * tests/test-vsnprintf-posix.c: New file.
89946         * tests/test-snprintf-posix.h: New file.
89948         * modules/vsnprintf-posix: New file.
89949         * m4/vsnprintf-posix.m4: New file.
89950         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
89951         gl_FUNC_VSNPRINTF.
89952         (gl_FUNC_VSNPRINTF): Invoke it.
89953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
89954         * lib/stdio_.h (vsnprintf): Define as a replacement if
89955         REPLACE_VSNPRINTF is set.
89956         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
89958 2007-03-06  Bruno Haible  <bruno@clisp.org>
89960         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
89961         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
89963 2007-03-06  Bruno Haible  <bruno@clisp.org>
89965         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
89966         (asinl): Declare also if HAVE_DECL_ASINL is set.
89967         (atanl): Declare also if HAVE_DECL_ATANL is set.
89968         (ceill): Declare also if HAVE_DECL_CEILL is set.
89969         (cosl): Declare also if HAVE_DECL_COSL is set.
89970         (expl): Declare also if HAVE_DECL_EXPL is set.
89971         (floorl): Declare also if HAVE_DECL_FLOORL is set.
89972         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
89973         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
89974         (logl): Declare also if HAVE_DECL_LOGL is set.
89975         (sinl): Declare also if HAVE_DECL_SINL is set.
89976         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
89977         (tanl): Declare also if HAVE_DECL_TANL is set.
89978         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
89979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
89980         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
89981         declaration of frexpl, ldexpl.
89982         * modules/printf-frexpl (Depends-on): Add math.
89983         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
89985 2007-03-05  Bruno Haible  <bruno@clisp.org>
89987         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
89988         frexpl and ldexpl are declared.
89989         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
89991 2007-03-05  Bruno Haible  <bruno@clisp.org>
89993         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
89994         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
89996 2007-03-05  Bruno Haible  <bruno@clisp.org>
89998         * lib/stdio_.h: Include <stddef.h>.
90000 2007-03-05  Bruno Haible  <bruno@clisp.org>
90002         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
90004 2007-03-05  Bruno Haible  <bruno@clisp.org>
90006         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
90007         NetBSD 4, from Ralf Wildenhues.
90009 2007-03-04  Bruno Haible  <bruno@clisp.org>
90011         * lib/vasprintf.h: Update #if logic for the case when the functions
90012         exist but are overridden.
90014 2007-03-04  Bruno Haible  <bruno@clisp.org>
90016         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
90017         implementations: glibc-2.4 and MacOS X 10.3.
90018         * tests/test-vasnprintf-posix.c (test_function): Test also the case
90019         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
90020         * tests/test-vasprintf-posix.c (test_function): Likewise.
90022 2007-03-04  Bruno Haible  <bruno@clisp.org>
90024         * modules/vasprintf-posix-tests: New file.
90025         * tests/test-vasprintf-posix.c: New file.
90027         * modules/vasprintf-posix: New file.
90028         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
90029         defined.
90030         * m4/vasprintf-posix.m4: New file.
90031         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
90032         gl_FUNC_VASPRINTF.
90033         (gl_FUNC_VASPRINTF): Invoke it.
90034         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
90035         here.
90036         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
90038 2007-03-04  Bruno Haible  <bruno@clisp.org>
90040         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
90041         REPLACE_GETTIMEOFDAY.
90042         * modules/sys_time (Makefile.am): Likewise.
90043         * m4/sys_time_h.m4: Likewise.
90044         * m4/gettimeofday.m4: Likewise.
90046 2007-03-04  Bruno Haible  <bruno@clisp.org>
90048         * modules/vasnprintf-posix-tests: New file.
90049         * tests/test-vasnprintf-posix.c: New file.
90051         * modules/vasnprintf-posix: New file.
90052         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
90053         printf-frexpl.h.
90054         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
90055         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
90056         REPLACE_VASNPRINTF is defined.
90057         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
90058         gl_FUNC_VASNPRINTF.
90059         (gl_FUNC_VASNPRINTF): Invoke it.
90060         * m4/vasnprintf-posix.m4: New file.
90061         * m4/printf.m4: New file.
90063 2007-03-04  Bruno Haible  <bruno@clisp.org>
90065         Compile progreloc.c only if --enable-relocatable is specified.
90066         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
90067         if --enable-relocatable was specified.
90068         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
90069         lib_SOURCES.
90071 2007-03-04  Jim Meyering  <jim@meyering.net>
90073         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
90074         Use it consistently, rather than enumerating errno constants.
90076 2007-03-04  Bruno Haible  <bruno@clisp.org>
90078         * modules/xvasprintf-tests: New file.
90079         * tests/test-xvasprintf.c: New file.
90081         * modules/vasprintf-tests: New file.
90082         * tests/test-vasprintf.c: New file.
90084         * modules/vasnprintf-tests: New file.
90085         * tests/test-vasnprintf.c: New file.
90087         * modules/vsnprintf-tests: New file.
90088         * tests/test-vsnprintf.c: New file.
90090         * modules/snprintf-tests: New file.
90091         * tests/test-snprintf.c: New file.
90093 2007-03-04  Bruno Haible  <bruno@clisp.org>
90095         Compile relocatable.c only if --enable-relocatable is specified.
90096         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
90097         gl_RELOCATABLE_LIBRARY.
90098         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
90099         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
90100         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
90101         gl_RELOCATABLE_LIBRARY.
90102         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
90103         (Makefile.am): Remove lib_SOURCES.
90104         * modules/relocatable-lib-lgpl (configure.ac): Invoke
90105         gl_RELOCATABLE_LIBRARY.
90106         (Makefile.am): Remove lib_SOURCES.
90107         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
90108         always.
90109         * modules/relocatable-prog-wrapper (configure.ac): Invoke
90110         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
90112 2007-03-04  Bruno Haible  <bruno@clisp.org>
90114         * modules/argmatch-tests: New file.
90115         * tests/test-argmatch.c: New file.
90117         * tests/test-allocsa.c (main): Halve the number of loop runs.
90119         * modules/alloca-opt-tests: New file.
90120         * tests/test-alloca-opt.c: New file.
90122 2007-03-04  Jim Meyering  <jim@meyering.net>
90124         Work around difference between Linux ACLs and Solaris 10 ZFS.
90125         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
90126         for EINVAL.
90128 2007-03-03  Bruno Haible  <bruno@clisp.org>
90130         * modules/relocatable-prog (Depends-on): Add back progreloc's
90131         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
90133 2007-03-03  Bruno Haible  <bruno@clisp.org>
90135         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
90136         * modules/relocatable-lib: New file.
90138 2007-03-03  Bruno Haible  <bruno@clisp.org>
90140         * modules/relocatable-prog: Renamed from modules/relocatable.
90141         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
90143 2007-03-03  Bruno Haible  <bruno@clisp.org>
90145         * modules/relocatable-script (Files): Add doc/relocatable.texi,
90146         m4/relocatable-lib.m4.
90147         (Depends-on): Remove 'relocatable'.
90148         (configure.ac): Add gl_RELOCATABLE_NOP.
90150 2007-03-03  Bruno Haible  <bruno@clisp.org>
90152         * modules/relocatable-prog-wrapper: New file.
90153         * modules/relocatable (Depends-on): Add it. Remove all other
90154         dependencies except progname.
90155         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
90157         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
90158         (gl_FUNC_STRERROR): Nop.
90159         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
90161         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
90162         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
90164         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
90165         (gl_FUNC_READLINK): Update.
90167         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
90169 2007-03-03  Bruno Haible  <bruno@clisp.org>
90171         * lib/xreadlink.c: Include <unistd.h> unconditionally.
90172         * modules/xreadlink (Depends-on): Add unistd.
90173         * modules/xreadlink-with-size (Depends-on): Likewise.
90175 2007-03-03  Bruno Haible  <bruno@clisp.org>
90177         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
90178         extracted from gt_FUNC_SETENV.
90179         (gt_FUNC_SETENV): Remove macro.
90180         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
90181         remove gt_FUNC_SETENV.
90183 2007-03-03  Bruno Haible  <bruno@clisp.org>
90185         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
90186         ENABLE_RELOCATABLE here.
90187         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
90189 2007-03-03  Bruno Haible  <bruno@clisp.org>
90191         * modules/rbtreehash-list-tests (Depends-on): Add progname.
90192         * tests/test-rbtreehash_list.c: Include progname.h.
90193         (main): Call set_program_name.
90195         * modules/rbtree-oset-tests (Depends-on): Add progname.
90196         * tests/test-rbtree_oset.c: Include progname.h.
90197         (main): Call set_program_name.
90199         * modules/rbtree-list-tests (Depends-on): Add progname.
90200         * tests/test-rbtree_list.c: Include progname.h.
90201         (main): Call set_program_name.
90203         * modules/linked-list-tests (Depends-on): Add progname.
90204         * tests/test-linked_list.c: Include progname.h.
90205         (main): Call set_program_name.
90207 2007-03-03  Bruno Haible  <bruno@clisp.org>
90209         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
90210         All uses of __restrict changed to _Restrict_.
90211         * lib/glob_.h (__restrict): Remove macro.
90213 2007-03-02  Bruno Haible  <bruno@clisp.org>
90215         * modules/gettext (configure.ac): Require gettext infrastructure
90216         from version 0.16.1.
90218 2007-03-02  Bruno Haible  <bruno@clisp.org>
90220         * modules/linkedhash-list-tests (Depends-on): Add progname.
90221         * tests/test-linkedhash_list.c: Include progname.h.
90222         (main): Call set_program_name.
90224         * modules/carray-list-tests (Depends-on): Add progname.
90225         * tests/test-carray_list.c: Include progname.h.
90226         (main): Call set_program_name.
90228         * modules/avltreehash-list-tests (Depends-on): Add progname.
90229         * tests/test-avltreehash_list.c: Include progname.h.
90230         (main): Call set_program_name.
90232         * modules/avltree-oset-tests (Depends-on): Add progname.
90233         * tests/test-avltree_oset.c: Include progname.h.
90234         (main): Call set_program_name.
90236         * modules/avltree-list-tests (Depends-on): Add progname.
90237         * tests/test-avltree_list.c: Include progname.h.
90238         (main): Call set_program_name.
90240         * modules/array-oset-tests (Depends-on): Add progname.
90241         * tests/test-array_oset.c: Include progname.h.
90242         (main): Call set_program_name.
90244         * modules/array-list-tests (Depends-on): Add progname.
90245         * tests/test-array_list.c: Include progname.h.
90246         (main): Call set_program_name.
90248         * modules/argp-tests (Depends-on): Add progname.
90249         * tests/test-argp.c: Include argp.h first. Include progname.h.
90250         (main): Call set_program_name.
90252 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
90254         * doc/gnulib-tool.texi (Initial import): Reword description of
90255         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
90256         limited effect even if defined after the first system include.
90258 2007-03-01  Bruno Haible  <bruno@clisp.org>
90260         * build-aux/config.libpath: Update to libtool-1.5.22.
90261         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
90263 2007-03-01  Bruno Haible  <bruno@clisp.org>
90265         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
90266         foo_CFLAGS.
90267         Reported by Ralf Wildenhues.
90269 2007-03-01  Bruno Haible  <bruno@clisp.org>
90271         * build-aux/install-reloc: Remove object files left over by some
90272         compilers.
90273         Reported by Ralf Wildenhues.
90275 2007-03-01  Bruno Haible  <bruno@clisp.org>
90277         * build-aux/install-reloc: Break long lines.
90279 2007-03-01  Bruno Haible  <bruno@clisp.org>
90281         * doc/relocatable.texi: Document that it may not work on OpenBSD.
90282         Reported by Ralf Wildenhues.
90284 2007-03-01  Bruno Haible  <bruno@clisp.org>
90286         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
90287         include ordering constraints.
90289 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
90291         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
90292         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
90293         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
90294         as another example.
90295         * lib/time_.h: Fix misspelling.
90296         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
90297         Require gl_HEADER_TIME_H_DEFAULTS.
90298         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
90299         * m4/time_r.m4 (gl_TIME_R): Likewise.
90300         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
90302 2007-03-01  Bruno Haible  <bruno@clisp.org>
90304         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
90305         * m4/utimens.m4 (gl_UTIMENS): Likewise.
90307 2007-03-01  Jim Meyering  <jim@meyering.net>
90309         * modules/xreadlink (Maintainer): Add my name.
90310         * modules/xreadlink-with-size (Depends-on): Alphabetize.
90312 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
90313             Bruno Haible  <bruno@clisp.org>
90315         * build-aux/install-reloc: Compile also c-ctype.c.
90316         * build-aux/relocatable.sh.in: New file.
90317         * doc/relocatable.texi: New file.
90318         * doc/relocatable-maint.texi: New file.
90319         * doc/gnulib.texi: Include relocatable-maint.texi.
90320         * lib/progreloc.c: Include unistd.h unconditionally.
90321         * lib/relocwrapper.c: Include unistd.h unconditionally.
90322         Include c-ctype.h.
90323         (add_dotbin): Use c_tolower.
90324         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
90325         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
90326         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
90327         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
90328         to m4/relocatable-lib.m4.
90329         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
90330         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
90331         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
90332         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
90333         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
90334         * modules/relocatable: New file.
90335         * modules/relocatable-lib: New file.
90336         * modules/relocatable-script: New file.
90338 2007-02-28  Bruno Haible  <bruno@clisp.org>
90340         Import --enable-relocatable infrastructure.
90341         * build-aux/config.libpath: New file, from GNU gettext.
90342         * build-aux/install-reloc: New file, from GNU gettext.
90343         * build-aux/reloc-ldflags: New file, from GNU gettext.
90344         * lib/relocatable.h: New file, from GNU gettext.
90345         * lib/relocatable.c: New file, from GNU gettext.
90346         * lib/relocwrapper.c: New file, from GNU gettext.
90347         * m4/relocatable.m4: New file, from GNU gettext.
90349 2007-02-28  Bruno Haible  <bruno@clisp.org>
90351         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
90353         * modules/xreadlink: New file, from GNU gettext with modifications.
90354         * lib/xreadlink.c: New file, from GNU gettext.
90355         * lib/xreadlink.h: Add comments.
90356         (xreadlink): New declaration.
90358         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
90359         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
90360         lib/xreadlink-with-size.c.
90361         (configure.ac): Remove gl_XREADLINK invocation.
90362         (Makefile.am): Augment lib_SOURCES.
90363         * m4/xreadlink.m4: Remove file.
90364         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
90365         (xreadlink_with_size): Renamed from xreadink.
90366         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
90367         * modules/canonicalize (Depends-on): Replace xreadlink with
90368         xreadlink-with-size.
90369         * lib/canonicalize.c (canonicalize_filename_mode): Update.
90371 2007-02-25  Jim Meyering  <jim@meyering.net>
90373         * build-aux/announce-gen: When complaining about excess arguments,
90374         list them.
90376 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
90378         * README: Document signed integer overflow situation more
90379         accurately.
90381 2007-02-25  Bruno Haible  <bruno@clisp.org>
90383         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
90384         'a' or 'A' conversion.
90386 2007-02-25  Bruno Haible  <bruno@clisp.org>
90388         * modules/filename: Renamed from modules/pathname.
90389         (Files): Replace lib/pathname.h with lib/filename.h. Replace
90390         lib/concatpath.c with lib/concat-filename.c.
90391         (Makefile.am): Update.
90392         (Include): Replace pathname.h with filename.h.
90393         * lib/filename.h: Renamed from lib/pathname.h.
90394         (concatenated_filename): Renamed from concatenated_pathname.
90395         * lib/concat-filename.c: Renamed from lib/concatpath.c.
90396         (concatenated_filename): Renamed from concatenated_pathname.
90397         * lib/findprog.c: Include filename.h instead of pathname.h.
90398         (find_in_path): Update.
90399         * lib/javacomp.c: Include filename.h instead of pathname.h.
90400         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
90401         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
90402         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
90403         is_oldgcj_14_13_usable, is_javac_usable): Update.
90404         * lib/javaexec.c: Include filename.h instead of pathname.h.
90405         (execute_java_class): Update.
90406         * modules/findprog: Update.
90407         * modules/javacomp: Update.
90408         * modules/javaexec: Update.
90409         * MODULES.html.sh (File system functions): Add 'filename', remove
90410         'pathname'.
90412 2007-02-25  Bruno Haible  <bruno@clisp.org>
90414         * modules/printf-frexpl-tests: New file.
90415         * tests/test-printf-frexpl.c: New file.
90417         * modules/printf-frexpl: New file.
90418         * lib/printf-frexpl.h: New file.
90419         * lib/printf-frexpl.c: New file.
90420         * m4/printf-frexpl.m4: New file.
90422 2007-02-25  Bruno Haible  <bruno@clisp.org>
90424         * modules/printf-frexp-tests: New file.
90425         * tests/test-printf-frexp.c: New file.
90427         * modules/printf-frexp: New file.
90428         * lib/printf-frexp.h: New file.
90429         * lib/printf-frexp.c: New file.
90430         * m4/printf-frexp.m4: New file.
90432 2007-02-25  Bruno Haible  <bruno@clisp.org>
90434         Assume automake >= 1.10 for the tests.
90435         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
90436         * modules/arctwo-tests: Likewise.
90437         * modules/argp-tests: Likewise.
90438         * modules/avltree-list-tests: Likewise.
90439         * modules/avltree-oset-tests: Likewise.
90440         * modules/avltreehash-list-tests: Likewise.
90441         * modules/carray-list-tests: Likewise.
90442         * modules/crc-tests: Likewise.
90443         * modules/des-tests: Likewise.
90444         * modules/gc-arcfour-tests: Likewise.
90445         * modules/gc-arctwo-tests: Likewise.
90446         * modules/gc-des-tests: Likewise.
90447         * modules/gc-hmac-md5-tests: Likewise.
90448         * modules/gc-hmac-sha1-tests: Likewise.
90449         * modules/gc-md2-tests: Likewise.
90450         * modules/gc-md4-tests: Likewise.
90451         * modules/gc-md5-tests: Likewise.
90452         * modules/gc-pbkdf2-sha1-tests: Likewise.
90453         * modules/gc-rijndael-tests: Likewise.
90454         * modules/gc-sha1-tests: Likewise.
90455         * modules/gc-tests: Likewise.
90456         * modules/getaddrinfo-tests: Likewise.
90457         * modules/hmac-md5-tests: Likewise.
90458         * modules/hmac-sha1-tests: Likewise.
90459         * modules/linked-list-tests: Likewise.
90460         * modules/linkedhash-list-tests: Likewise.
90461         * modules/lock-tests: Likewise.
90462         * modules/md2-tests: Likewise.
90463         * modules/md4-tests: Likewise.
90464         * modules/md5-tests: Likewise.
90465         * modules/rbtree-list-tests: Likewise.
90466         * modules/rbtree-oset-tests: Likewise.
90467         * modules/rbtreehash-list-tests: Likewise.
90468         * modules/read-file-tests: Likewise.
90469         * modules/rijndael-tests: Likewise.
90470         * modules/stdint-tests: Likewise.
90471         * modules/tls-tests: Likewise.
90473 2007-02-24  Bruno Haible  <bruno@clisp.org>
90475         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
90476         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
90477         function; instead check whether isnan with a double argument links.
90478         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
90479         function; instead check whether isnan with a 'long double' argument
90480         links.
90481         Reported by Eric Blake <ebb9@byu.net>.
90483 2007-02-24  Bruno Haible  <bruno@clisp.org>
90485         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
90486         defined.
90487         * lib/isnanl.c: Remove all code. Just include isnan.c.
90488         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
90490 2007-02-25  Jim Meyering  <jim@meyering.net>
90492         Avoid conflicting types for 'unsetenv' on FreeBSD.
90493         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
90494         conflicting with FreeBSD's (5.0 and 6.1) function declaration
90495         in stdlib.h.
90497 2007-02-24  Bruno Haible  <bruno@clisp.org>
90499         * modules/isnanl-nolibm-tests: New file.
90500         * tests/test-isnanl.c: New file.
90502         * modules/isnanl-nolibm: New file.
90503         * lib/isnanl.h: New file.
90504         * lib/isnanl.c: New file.
90505         * m4/isnanl.m4: New file.
90507 2007-02-24  Bruno Haible  <bruno@clisp.org>
90509         * modules/isnan-nolibm-tests: New file.
90510         * tests/test-isnan.c: New file.
90512         * modules/isnan-nolibm: New file.
90513         * lib/isnan.h: New file.
90514         * lib/isnan.c: New file.
90515         * m4/isnan.m4: New file.
90517 2007-02-24  Bruno Haible  <bruno@clisp.org>
90519         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
90520         assume that an exponent fits in 20 bits.
90522 2007-02-24  Jim Meyering  <jim@meyering.net>
90524         * m4/regex.m4: Update the description of the configure-time option,
90525         --without-included-regex, to state accurately what the defaults are,
90526         and perhaps to give people an idea why using this option is risky.
90528 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
90530         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
90531         loops on small arguments.  This attempts to avoid the problem
90532         Bruno Haible reported for AIX 4.3.2 in
90533         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
90535 2007-02-23  Bruno Haible  <bruno@clisp.org>
90537         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
90538         Needed for help2man.
90540 2007-02-23  Karl Berry  <karl@gnu.org>
90542         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
90543         exists, foo.h should be cvs-ignored, not committed.
90545 2007-02-23  Eric Blake  <ebb9@byu.net>
90547         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
90548         * lib/stat-time.h (includes): Likewise.
90549         * lib/utimecmp.c (includes): Likewise.
90550         * lib/utimens.h (includes): Likewise.
90551         * lib/getdate.y (includes): Also include "timespec.h" for use
90552         internal to the module.
90553         * modules/utimens (Depends-on): Revert yesterday's patch.
90554         * modules/nanosleep (Depends-on): Add missing dependency.
90556 2007-02-22  Bruno Haible  <bruno@clisp.org>
90558         * lib/glob.c: Don't include getlogin_r.h.
90560 2007-02-22  Jim Meyering  <jim@meyering.net>
90562         * modules/utimens (Depends-on): Add timespec, required for
90563         utimens.h's inclusion of timespec.h.
90565 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
90567         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
90568         long unreadable paths in GNU/Linux.  Problem reported by Andreas
90569         Schwab in
90570         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
90571         I'll try to think of a better way to fix the Solaris problem.
90573         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
90574         like glibc; on Solaris 10, it fails with errno == EINVAL.
90575         POSIX says the behavior is unspecified if the first argument is NULL,
90576         so play it safe and never pass NULL to the system getcwd.
90578 2007-02-21  Jim Meyering  <jim@meyering.net>
90580         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
90581         of gettimeofday.  It would conflict with the one now always
90582         provided via sys_time_.h.  Reported by Matthew Woehlke, as
90583         an IRIX 6.5 build failure.
90585 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
90587         Minor fixups to port to Solaris 10 with Sun C 5.8.
90588         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
90589         * modules/getcwd (Depends-on): Add dirfd.
90590         * lib/putenv.c (putenv): #undef it.
90591         (rpl_putenv): New decl.
90592         (malloc, free): Include <stdlib.h> rather than prototyping separately.
90594 2007-02-20  Bruno Haible  <bruno@clisp.org>
90596         * modules/stdio-tests: New file.
90597         * tests/test-stdio.c: New file.
90599         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
90600         (Depends-on): Add stdio.
90601         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
90602         (Include): Use <stdio.h> instead of vsnprintf.h.
90603         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
90604         HAVE_DECL_VSNPRINTF.
90605         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
90607         * modules/snprintf (Files): Remove lib/snprintf.h.
90608         (Depends-on): Add stdio.
90609         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
90610         (Include): Use <stdio.h> instead of snprintf.h.
90611         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
90612         HAVE_DECL_SNPRINTF.
90613         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
90614         * lib/getaddrinfo.c: Likewise.
90616         * modules/stdio: New file.
90617         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
90618         * lib/snprintf.h: Remove file.
90619         * lib/vsnprintf.h: Remove file.
90620         * lib/.cppi-disable: Remove snprintf.h.
90621         * m4/stdio_h.m4: New file.
90622         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
90624 2007-02-20  Jim Meyering  <jim@meyering.net>
90626         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
90627         used by e.g., mingw.  From Bruno Haible.
90629 2007-02-19  Bruno Haible  <bruno@clisp.org>
90631         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
90632         warnings.
90633         Reported by Ben Pfaff <blp@cs.stanford.edu>.
90635 2007-02-19  Bruno Haible  <bruno@clisp.org>
90637         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
90638         from mingw users.
90640 2007-02-19  Bruno Haible  <bruno@clisp.org>
90642         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
90643         warnings.
90644         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
90646 2007-02-19  Jim Meyering  <jim@meyering.net>
90648         Don't use FD after a successful "fdopendir (fd)".
90649         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
90650         Reset it by calling dirfd on the just-obtained DIR*.
90652         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
90653         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
90655 2007-02-18  Bruno Haible  <bruno@clisp.org>
90657         * lib/readlink.c: Include <unistd.h>.
90658         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
90659         HAVE_READLINK.
90660         * modules/readlink (Depends-on): Add unistd.
90661         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90662         (Include): Add <unistd.h>.
90664         * lib/getlogin_r.h: Remove file.
90665         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
90666         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
90667         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
90668         HAVE_DECL_GETLOGIN_R.
90669         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
90670         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90671         (Include): Use <unistd.h> instead of getlogin_r.h.
90673         * lib/getcwd.h: Remove file.
90674         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
90675         * lib/xgetcwd.c: Likewise.
90676         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
90677         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
90678         * modules/getcwd (Files): Remove lib/getcwd.h.
90679         (Depends-on): Add unistd.
90680         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90681         (Include): Use <unistd.h> instad of getcwd.h.
90683         * lib/ftruncate.c: Include <unistd.h> first.
90684         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
90685         Set HAVE_FTRUNCATE.
90686         * modules/ftruncate (Depends-on): Add unistd.
90687         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90689         * lib/fchdir.c: Include <unistd.h> first.
90690         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
90691         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
90692         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
90693         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90694         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
90696         * lib/dup2.c: Include <unistd.h> first.
90697         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
90698         HAVE_DUP2.
90699         * modules/dup2 (Depends-on): Add unistd.
90700         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90702         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
90703         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
90704         REPLACE_CHOWN. Don't define chown as a macro here.
90705         * modules/chown (Depends-on): Add unistd.
90706         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90708         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
90709         Add definition for GL_LINK_WARNING.
90710         (chown, dup2): New declarations.
90711         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
90712         link warning.
90713         (ftruncate): New declaration.
90714         (getcwd): New declaration, taken from old getcwd.h.
90715         (getlogin_r): New declaration, taken from old getlogin_r.h.
90716         (readlink): New declaration.
90717         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
90718         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
90719         (gl_PREREQ_UNISTD): Remove macro.
90720         (gl_UNISTD_MODULE_INDICATOR): New macro.
90721         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
90722         many new variables. Don't set UNISTD_H.
90723         * modules/unistd (Description): Change.
90724         (Depends-on): Add link-warning.
90725         (configure.ac): Update.
90726         (Makefile.am): Create unistd.h always. Substitute many new variables
90727         into it.
90729 2007-02-18  Bruno Haible  <bruno@clisp.org>
90731         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
90732         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
90733         HAVE_GETSUBOPT.
90734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
90735         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
90736         * lib/getsubopt.h: Remove file.
90737         * modules/getsubopt (Files): Remove lib/getsubopt.h.
90738         (Depends-on): Add stdlib.
90739         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90740         (Includes): Use <stdlib.h> instead of getsubopt.h.
90741         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
90742         Set HAVE_GETSUBOPT.
90743         * lib/getsubopt.c: Don't include getsubopt.h.
90745 2007-02-18  Bruno Haible  <bruno@clisp.org>
90747         * modules/fchdir (Depends-on): Add dup2.
90749 2007-02-18  Bruno Haible  <bruno@clisp.org>
90751         * lib/stdlib_.h: Handle glibc's special invocation convention
90752         specially.
90754 2007-02-18  Bruno Haible  <bruno@clisp.org>
90756         * modules/stdlib-tests: New file.
90757         * tests/test-stdlib.c: New file.
90759         * modules/mkstemp (Files): Remove lib/mkstemp.h.
90760         (Depends-on): Add stdlib.
90761         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90762         (Includes): Use <stdlib.h> instead of mkstemp.h.
90763         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
90764         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
90765         * lib/mkstemp.c: Don't include mkstemp.h.
90766         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
90767         * lib/stdlib--.h: Don't include mkstemp.h.
90769         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
90770         (Depends-on): Add stdlib.
90771         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90772         (Includes): Use <stdlib.h> instead of mkdtemp.h.
90773         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
90774         HAVE_MKDTEMP.
90775         * lib/mkdtemp.c: Don't include mkdtemp.h.
90776         * lib/clean-temp.c: Don't include mkdtemp.h.
90778         * modules/exit (Files): Remove lib/exit.h.
90779         (Depends-on): Add stdlib.
90780         (Makefile.am): Remove lib_SOURCES.
90781         (Include): Use <stdlib.h> instead of exit.h.
90782         * lib/argmatch.c: Don't include exit.h.
90783         * lib/execute.c: Likewise.
90784         * lib/pagealign_alloc.c: Likewise.
90785         * lib/pipe.c: Likewise.
90786         * lib/wait-process.c: Likewise.
90787         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
90788         * lib/exitfail.c: Likewise.
90789         * lib/savewd.c: Likewise.
90790         * lib/xsetenv.c: Likewise.
90792         * modules/stdlib: New file.
90793         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
90794         and extra comments about mkstemp().
90795         * lib/exit.h: Remove file.
90796         * lib/mkdtemp.h: Remove file.
90797         * lib/mkstemp.h: Remove file.
90798         * m4/stdlib_h.m4: New file.
90799         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
90801 2007-02-18  Bruno Haible  <bruno@clisp.org>
90803         * modules/math-tests: New file.
90804         * tests/test-math.c: New file.
90806         * modules/math: New file.
90807         * modules/mathl (Files): Remove lib/mathl.h.
90808         (Depends-on): Add math.
90809         (Makefile.am): Don't mention mathl.h.
90810         (Include): Use <math.h> instead of mathl.h.
90811         * lib/math_.h: New file.
90812         * lib/mathl.h: Remove file.
90813         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
90814         mathl.h.
90815         * lib/asinl.c: Likewise.
90816         * lib/atanl.c: Likewise.
90817         * lib/ceill.c: Likewise.
90818         * lib/cosl.c: Likewise.
90819         * lib/expl.c: Likewise.
90820         * lib/floorl.c: Likewise.
90821         * lib/frexpl.c: Likewise.
90822         * lib/ldexpl.c: Likewise.
90823         * lib/logl.c: Likewise.
90824         * lib/sincosl.c: Likewise.
90825         * lib/sinl.c: Likewise.
90826         * lib/sqrtl.c: Likewise.
90827         * lib/tanl.c: Likewise.
90828         * lib/trigl.c: Likewise.
90829         * m4/math_h.m4: New file.
90830         * MODULES.html.sh (Mathematics): Add math.
90832 2007-02-17  Bruno Haible  <bruno@clisp.org>
90834         * modules/wctype-tests: New file.
90835         * tests/test-wctype.c: New file.
90837         * modules/wchar-tests: New file.
90838         * tests/test-wchar.c: New file.
90840         * modules/unistd-tests: New file.
90841         * tests/test-unistd.c: New file.
90843         * modules/time-tests: New file.
90844         * tests/test-time.c: New file.
90846         * modules/sysexits-tests: New file.
90847         * tests/test-sysexits.c: New file.
90849         * modules/sys_time-tests: New file.
90850         * tests/test-sys_time.c: New file.
90852         * modules/sys_stat-tests: New file.
90853         * tests/test-sys_stat.c: New file.
90855         * modules/sys_socket-tests: New file.
90856         * tests/test-sys_socket.c: New file.
90858         * modules/sys_select-tests: New file.
90859         * tests/test-sys_select.c: New file.
90861         * modules/string-tests: New file.
90862         * tests/test-string.c: New file.
90864         * modules/stdbool-tests: New file.
90865         * tests/test-stdbool.c: New file.
90867         * modules/netinet_in-tests: New file.
90868         * tests/test-netinet_in.c: New file.
90870         * modules/inttypes-tests: New file.
90871         * tests/test-inttypes.c: New file.
90873         * modules/fcntl-tests: New file.
90874         * tests/test-fcntl.c: New file.
90876         * modules/byteswap-tests: New file.
90877         * tests/test-byteswap.c: New file.
90879         * modules/arpa_inet-tests: New file.
90880         * tests/test-arpa_inet.c: New file.
90882 2007-02-17  Bruno Haible  <bruno@clisp.org>
90884         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
90885         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
90886         if the corresponding module is not enabled. Emit link warnings if
90887         the function is used nevertheless.
90888         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
90889         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
90890         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
90891         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
90892         * modules/inttypes (Depends-on): Add link-warning.
90893         (Makefile.am): Copy the contents of build-aux/link-warning.h into
90894         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
90895         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
90896         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
90897         * modules/imaxdiv (configure.ac): Likewise.
90898         * modules/strtoimax (configure.ac): Likewise.
90899         * modules/strtoumax (configure.ac): Likewise.
90901 2007-02-17  Bruno Haible  <bruno@clisp.org>
90903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
90904         gl_STRING_MODULE_INDICATOR_DEFAULTS.
90905         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
90906         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
90908 2007-02-17  Bruno Haible  <bruno@clisp.org>
90910         * modules/link-warning: New file.
90911         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
90912         * lib/string_.h (GL_LINK_WARNING): Remove definition.
90913         * modules/string (Depends-on): Add link-warning.
90914         (Makefile.am): Copy the contents of build-aux/link-warning.h into
90915         string.h.
90916         * MODULES.html.sh (Support for building libraries and executables): Add
90917         link-warning.
90919 2007-02-17  Bruno Haible  <bruno@clisp.org>
90921         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
90922         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
90923         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
90924         long lines.
90926 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
90927             Bruno Haible  <bruno@clisp.org>
90929         * modules/tmpfile: New file.
90930         * lib/tmpfile.c: New file.
90931         * m4/tmpfile.m4: New file.
90932         * MODULES.html.sh (func_all_modules): New section "Input/output".
90934 2007-02-15  Bruno Haible  <bruno@clisp.org>
90936         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
90937         (supports_delete_on_close): New function.
90938         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
90940 2007-02-14  Bruno Haible  <bruno@clisp.org>
90942         * modules/mbspcasecmp-tests: New file.
90943         * tests/test-mbspcasecmp.sh: New file.
90944         * tests/test-mbspcasecmp.c: New file.
90946         New module mbspcasecmp.
90947         * modules/mbspcasecmp: New file.
90948         * lib/mbspcasecmp.c: New file.
90949         * lib/string_.h (strncasecmp): Change warning message.
90950         (mbspcasecmp): New declaration.
90951         * m4/mbspcasecmp.m4: New file.
90952         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90953         GNULIB_MBSPCASECMP.
90954         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
90955         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
90957 2007-02-14  Bruno Haible  <bruno@clisp.org>
90959         * modules/mbsncasecmp-tests: New file.
90960         * tests/test-mbsncasecmp.sh: New file.
90961         * tests/test-mbsncasecmp.c: New file.
90963         New module mbsncasecmp.
90964         * modules/mbsncasecmp: New file.
90965         * lib/mbsncasecmp.c: New file.
90966         * lib/string_.h (mbsncasecmp): New declaration.
90967         * m4/mbsncasecmp.m4: New file.
90968         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90969         GNULIB_MBSNCASECMP.
90970         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
90971         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
90973 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
90975         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
90976         Verify that it doesn't overlap with our flags.
90977         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
90978         do not have the desired effect in multibyte locales; instead, use
90979         mbscasecmp.
90980         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
90981         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
90982         we don't require GNU fnmatch ourselves (if our users require it, they
90983         should do so explicitly).
90985         Fix regex code so it doesn't rely on strcasecmp.
90986         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
90987         Otherwise, include gnulib's langinfo.h.
90988         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
90989         undesirable behavior in non-C locales.  Instead, rely on localecharset.
90990         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
90991         * modules/regex (FILES): Remove m4/codeset.m4.
90992         (Depends-on): Add localcharset.  Remove strcase.
90994 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90996         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
90997         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
90999 2007-02-13  Bruno Haible  <bruno@clisp.org>
91001         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
91002         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91004 2007-02-12  Bruno Haible  <bruno@clisp.org>
91006         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
91007         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
91008         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
91009         time warning rather than a link error.
91011 2007-02-12  Bruno Haible  <bruno@clisp.org>
91013         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
91014         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
91015         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91017 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
91019         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
91020         args, not 2.
91022 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
91024         New module 'time', so that apps can include <time.h> as per
91025         POSIX and GNU instead of separate include files like time_r.h
91026         and timegm.h.  This implementation tries out a simpler approach
91027         for replacing decls in standard include files (as compared to
91028         the string module), somewhat as an experiment.
91030         * config/srclist.txt: Comment out mktime.c for now.
91031         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
91032         since it doesn't apply any more.  Use generic wording instead.
91033         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
91034         'time'.
91035         * lib/time_.h, m4/time_h.m4, modules/time: New files.
91036         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
91037         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
91038         Don't include <sys/types.h>; no longer needed since we assume C89.
91039         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
91040         * lib/strftime.c: Likewise.
91041         * lib/time_r.c: Likewise.
91042         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
91043         * lib/nanosleep.c: Include <time.h> first, to check interface.
91044         * lib/strptime.c: Likewise.
91045         * lib/time_r.c: Likewise.
91046         * lib/timegm.c: Likewise.
91047         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
91048         needed.
91049         * lib/timegm.c: Don't include timegm.h; no longer needed.
91050         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
91051         time.h now handles any problems in that area.
91052         (struct timespec, nanosleep): Remove; time.h now arranges for these.
91053         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
91054         that time.h defines struct timespec.
91055         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
91056         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
91057         handles that.
91058         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
91059         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
91060         needed.  Set REPLACE_LOCALTIME.
91061         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
91062         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
91063         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
91064         nanosleep; time_h.m4 now does that.  Don't require
91065         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
91066         module handles this now.
91067         * modules/getdate (Depends-on): Remove timespec.  Add time.
91068         * modules/nanosleep (Depends-on): Likewise.
91069         * modules/stat-time (Depends-on): Likewise.
91070         * modules/nanosleep (Include): Include time.h, not timespec.h.
91071         * modules/strptime (Files): Remove lib/strptime.h.
91072         (Depends-on): Add extensions, time.
91073         (Include): Include time.h, not strptime.h.
91074         * modules/time_r (Files): Remove lib/time_r.h.
91075         (Depends-on): Add time.
91076         (Include): Include time.h, not time_r.h.
91077         * modules/timegm: Likewise.
91078         * modules/timespec (Description): Now does timespec-related decls
91079         of our own, instead of struct timespec itself.
91080         (Depends-on): Add time; remove extensions.
91081         (Maintainer): Add self.
91082         * modules/utimecmp (Depends-on): Add time; remove timespec.
91083         * modules/utimens (Depends-on): Likewise.
91084         * modules/xnanosleep (Depends-on): Likewise.
91086 2007-02-11  Bruno Haible  <bruno@clisp.org>
91088         * lib/c-strstr.c: Include allocsa.h.
91089         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
91090         * lib/c-strcasestr.c: Include allocsa.h.
91091         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
91092         * lib/strcasestr.c: Include allocsa.h.
91093         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
91094         * lib/mbsstr.c: Include allocsa.h.
91095         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
91096         allocsa/freesa instead of malloc/free.
91097         * lib/mbscasestr.c: Include allocsa.h.
91098         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
91099         allocsa/freesa instead of malloc/free.
91100         * modules/c-strstr (Depends-on): Add allocsa.
91101         * modules/c-strcasestr (Depends-on): Likewise.
91102         * modules/strcasestr (Depends-on): Likewise.
91103         * modules/mbsstr (Depends-on): Likewise.
91104         * modules/mbscasestr (Depends-on): Likewise.
91106 2007-02-11  Bruno Haible  <bruno@clisp.org>
91108         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
91110         * modules/mbsspn-tests: New file.
91111         * tests/test-mbsspn.sh: New file.
91112         * tests/test-mbsspn.c: New file.
91114 2007-02-11  Bruno Haible  <bruno@clisp.org>
91116         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
91118         * modules/mbspbrk-tests: New file.
91119         * tests/test-mbspbrk.sh: New file.
91120         * tests/test-mbspbrk.c: New file.
91122 2007-02-11  Bruno Haible  <bruno@clisp.org>
91124         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
91125         unneeded cast.
91127         * modules/mbscspn-tests: New file.
91128         * tests/test-mbscspn.sh: New file.
91129         * tests/test-mbscspn.c: New file.
91131 2007-02-11  Bruno Haible  <bruno@clisp.org>
91133         * modules/mbscasecmp-tests: New file.
91134         * tests/test-mbscasecmp.sh: New file.
91135         * tests/test-mbscasecmp.c: New file.
91137 2007-02-11  Bruno Haible  <bruno@clisp.org>
91139         Ensure O(n) worst-case complexity of mbscasestr.
91140         * lib/mbscasestr.c: Include stdbool.h.
91141         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
91142         functions.
91143         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
91144         the bookkeeping indicates that it's worth it.
91145         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
91147         * modules/mbscasestr-tests: New file.
91148         * tests/test-mbscasestr1.c: New file.
91149         * tests/test-mbscasestr2.sh: New file.
91150         * tests/test-mbscasestr2.c: New file.
91151         * tests/test-mbscasestr3.sh: New file.
91152         * tests/test-mbscasestr3.c: New file.
91153         * tests/test-mbscasestr4.sh: New file.
91154         * tests/test-mbscasestr4.c: New file.
91155         * m4/locale-tr.m4: New file.
91157 2007-02-11  Bruno Haible  <bruno@clisp.org>
91159         Ensure O(n) worst-case complexity of mbsstr.
91160         * lib/mbsstr.c: Include stdbool.h.
91161         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
91162         functions.
91163         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
91164         bookkeeping indicates that it's worth it.
91165         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
91167         * modules/mbsstr-tests: New file.
91168         * tests/test-mbsstr1.c: New file.
91169         * tests/test-mbsstr2.sh: New file.
91170         * tests/test-mbsstr2.c: New file.
91171         * tests/test-mbsstr3.sh: New file.
91172         * tests/test-mbsstr3.c: New file.
91173         * m4/locale-fr.m4: New file.
91175 2007-02-11  Bruno Haible  <bruno@clisp.org>
91177         * lib/mbsrchr.c (mbsrchr): Fix bug.
91179         * modules/mbsrchr-tests: New file.
91180         * tests/test-mbsrchr.sh: New file.
91181         * tests/test-mbsrchr.c: New file.
91183 2007-02-11  Bruno Haible  <bruno@clisp.org>
91185         * lib/mbschr.c (mbschr): Fix bug.
91187         * modules/mbschr-tests: New file.
91188         * tests/test-mbschr.sh: New file.
91189         * tests/test-mbschr.c: New file.
91190         * m4/locale-zh.m4: New file.
91192 2007-02-11  Bruno Haible  <bruno@clisp.org>
91194         Support for copying multibyte string iterators.
91195         * lib/mbiter.h: Include <string.h>.
91196         (mbiter_multi_copy): New function.
91197         (mbi_copy): New macro.
91198         * lib/mbuiter.h: Include <string.h>.
91199         (mbuiter_multi_copy): New function.
91200         (mbui_copy): New macro.
91202 2007-02-11  Bruno Haible  <bruno@clisp.org>
91204         New module mbslen.
91205         * modules/mbslen: New file.
91206         * lib/mbslen.c: New file.
91207         * lib/string_.h (mbslen): New declaration.
91208         * m4/mbslen.m4: New file.
91209         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
91210         GNULIB_MBSLEN.
91211         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
91212         * MODULES.html.sh (Internationalization functions): Add mbslen.
91214 2007-02-11  Bruno Haible  <bruno@clisp.org>
91216         Ensure O(n) worst-case complexity of strcasestr substitute.
91217         * lib/strcasestr.c: Include stdbool.h.
91218         (knuth_morris_pratt): New function.
91219         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
91220         bookkeeping indicates that it's worth it.
91221         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
91223         * modules/strcasestr-tests: New file.
91224         * tests/test-strcasestr.c: New file.
91226 2007-02-11  Bruno Haible  <bruno@clisp.org>
91228         Ensure O(n) worst-case complexity of c_strcasestr.
91229         * lib/c-strcasestr.c: Include stdbool.h, string.h.
91230         (knuth_morris_pratt): New function.
91231         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
91232         the bookkeeping indicates that it's worth it.
91233         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
91235         * modules/c-strcasestr-tests: New file.
91236         * tests/test-c-strcasestr.c: New file.
91238 2007-02-11  Bruno Haible  <bruno@clisp.org>
91240         Ensure O(n) worst-case complexity of c_strstr.
91241         * lib/c-strstr.c: Include stdbool.h, string.h.
91242         (knuth_morris_pratt): New function.
91243         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
91244         bookkeeping indicates that it's worth it.
91245         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
91247         * lib/c-strstr.c: Complete rewrite for maintainability.
91249         * modules/c-strstr-tests: New file.
91250         * tests/test-c-strstr.c: New file.
91252 2007-02-11  Bruno Haible  <bruno@clisp.org>
91254         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
91255         5.2.1 and earlier, whereby \055 was treated just like the range
91256         delimiter '-'.
91257         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
91259 2007-02-08  Bruno Haible  <bruno@clisp.org>
91261         * modules/regex (Depends-on): Add stdbool.
91262         Reported by Dalibor Topic <robilad@kaffe.org>.
91264 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
91266         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
91267         Prefer returning from main to exiting from it.
91268         Remove unnecessary parens after sizeof.
91270 2007-02-05  Bruno Haible  <bruno@clisp.org>
91272         New module mbssep.
91273         * modules/mbssep: New file.
91274         * lib/mbssep.c: New file.
91275         * lib/string_.h (strsep): Add a conditional link warning.
91276         (mbssep): New declaration.
91277         * m4/mbssep.m4: New file.
91278         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
91279         GNULIB_MBSSEP.
91280         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
91281         * MODULES.html.sh (Internationalization functions): Add mbssep.
91283 2007-02-05  Bruno Haible  <bruno@clisp.org>
91285         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
91286         Optimize search in case of 1 delimiter.
91288 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
91290         * lib/acl.h: Include sys/types.h before sys/acl.h.
91292 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
91294         Merge upstream fix for glibc bugzilla #3957:
91296         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
91298         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
91299         bit for RE_HAT_LISTS_NOT_NEWLINE.
91300         (build_charclass_op): Remove bogus comment.
91302 2007-02-05  Simon Josefsson  <simon@josefsson.org>
91304         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
91306 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
91308         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
91309         * lib/memmem.c [!defined _LIBC]: Include config.h.
91311 2007-02-04  Bruno Haible  <bruno@clisp.org>
91313         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
91314         warning message.
91316 2007-02-04  Bruno Haible  <bruno@clisp.org>
91318         New module mbstok_r.
91319         * modules/mbstok_r: New file.
91320         * lib/mbstok_r.c: New file.
91321         * lib/string_.h (strtok_r): Change argument names to match the
91322         comments. Add a conditional link warning.
91323         (mbstok_r): New declaration.
91324         * m4/mbstok_r.m4: New file.
91325         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
91326         GNULIB_MBSTOK_R.
91327         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
91328         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
91330 2007-02-04  Bruno Haible  <bruno@clisp.org>
91332         New module mbsspn.
91333         * modules/mbsspn: New file.
91334         * lib/mbsspn.c: New file.
91335         * lib/string_.h (strspn): Add a conditional link warning.
91336         (mbsspn): New declaration.
91337         * m4/mbsspn.m4: New file.
91338         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
91339         GNULIB_MBSSPN.
91340         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
91341         * MODULES.html.sh (Internationalization functions): Add mbsspn.
91343 2007-02-04  Bruno Haible  <bruno@clisp.org>
91345         New module mbspbrk.
91346         * modules/mbspbrk: New file.
91347         * lib/mbspbrk.c: New file.
91348         * lib/string_.h (strpbrk): Add a conditional link warning.
91349         (mbspbrk): New declaration.
91350         * m4/mbspbrk.m4: New file.
91351         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
91352         GNULIB_MBSPBRK.
91353         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
91354         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
91356 2007-02-04  Bruno Haible  <bruno@clisp.org>
91358         New module mbscspn.
91359         * modules/mbscspn: New file.
91360         * lib/mbscspn.c: New file.
91361         * lib/string_.h (strcspn): Add a conditional link warning.
91362         (mbscspn): New declaration.
91363         * m4/mbscspn.m4: New file.
91364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
91365         GNULIB_MBSCSPN.
91366         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
91367         * MODULES.html.sh (Internationalization functions): Add mbscspn.
91369 2007-02-04  Bruno Haible  <bruno@clisp.org>
91371         New module mbscasestr, reduced goal of strcasestr.
91372         * modules/mbscasestr: New file.
91373         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
91374         (mbscasestr): Renamed from strcasestr.
91375         * lib/strcasestr.c: Don't include mbuiter.h.
91376         (strcasestr): Remove support for multibyte locales.
91377         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
91378         Change the conditional link warning.
91379         (mbscasestr): New declaration.
91380         * m4/mbscasestr.m4: New file.
91381         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
91382         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
91383         REPLACE_STRCASESTR.
91384         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
91385         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
91386         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
91387         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
91388         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
91389         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
91390         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
91391         (Depends-on): Remove mbuiter.
91392         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
91394 2007-02-04  Bruno Haible  <bruno@clisp.org>
91396         Simplify handling of strncasecmp.
91397         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
91398         the conditional link warning.
91399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
91400         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
91401         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
91402         * modules/strcase (configure.ac): Don't invoke
91403         gl_STRING_MODULE_INDICATOR.
91404         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
91406 2007-02-04  Bruno Haible  <bruno@clisp.org>
91408         New module mbscasecmp, reduced goal of strcasecmp.
91409         * modules/mbscasecmp: New file.
91410         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
91411         (mbscasecmp): Renamed from strcasecmp.
91412         * lib/strcasecmp.c: Don't include mbuiter.h.
91413         (strcasecmp): Remove support for multibyte locales.
91414         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
91415         Change the conditional link warning.
91416         (mbscasecmp): New declaration.
91417         * m4/mbscasecmp.m4: New file.
91418         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
91419         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
91420         REPLACE_STRCASECMP.
91421         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
91422         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
91423         GNULIB_MBSCASECMP.
91424         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
91425         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
91426         * modules/strcase (Files): Remove m4/mbrtowc.m4.
91427         (Depends-on): Remove mbuiter.
91428         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
91430 2007-02-04  Bruno Haible  <bruno@clisp.org>
91432         New module mbsstr. Remove module strstr.
91433         * modules/mbsstr: New file.
91434         * modules/strstr: Remove file.
91435         * lib/mbsstr.c: Renamed from lib/strstr.c.
91436         (mbsstr): Renamed from strstr.
91437         * lib/string_.h (strstr): Remove declaration. Change the conditional
91438         link warning.
91439         (mbsstr): New declaration.
91440         * m4/mbsstr.m4: New file.
91441         * m4/strstr.m4: Remove file.
91442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
91443         REPLACE_STRSTR.
91444         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
91445         Don't initialize GNULIB_STRSTR.
91446         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
91447         substitute GNULIB_STRSTR and REPLACE_STRSTR.
91448         * MODULES.html.sh (Internationalization functions): Add mbsstr.
91449         (Support for systems lacking ANSI C 89): Remove strstr.
91451 2007-02-04  Bruno Haible  <bruno@clisp.org>
91453         New module mbsrchr.
91454         * modules/mbsrchr: New file.
91455         * lib/mbsrchr.c: New file.
91456         * lib/string_.h (strrchr): Add a conditional link warning.
91457         (mbsrchr): New declaration.
91458         * m4/mbsrchr.m4: New file.
91459         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
91460         GNULIB_MBSRCHR.
91461         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
91462         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
91464 2007-02-04  Bruno Haible  <bruno@clisp.org>
91466         New module mbschr.
91467         * modules/mbschr: New file.
91468         * lib/mbschr.c: New file.
91469         * lib/string_.h (strchr): Add a conditional link warning.
91470         (mbschr): New declaration.
91471         * m4/mbschr.m4: New file.
91472         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
91473         GNULIB_MBSCHR.
91474         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
91475         * MODULES.html.sh (Internationalization functions): Add mbschr.
91477 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
91479         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
91481         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
91483 2007-02-04  Bruno Haible  <bruno@clisp.org>
91485         New module description section 'configure.ac-early'.
91486         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
91487         (func_get_autoconf_early_snippet): New function.
91488         (func_import, func_create_testdir): Use it. Remove special cases for
91489         modules 'extensions' and 'lock'.
91490         * modules/extensions (configure.ac-early): Require
91491         gl_USE_SYSTEM_EXTENSIONS.
91492         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
91494 2007-02-04  Bruno Haible  <bruno@clisp.org>
91496         Make use of gcj-4.3's -fsource and -ftarget option.
91497         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
91498         and if so try the options -fsource and -ftarget.
91499         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
91500         source_version, ftarget_option, target_version arguments.
91501         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
91502         (is_envjavac_oldgcj_14_14_usable): Renamed from
91503         is_envjavac_gcj_14_14_usable.
91504         (is_envjavac_oldgcj_14_13_usable): Renamed from
91505         is_envjavac_gcj_14_13_usable.
91506         (is_gcj_present): Update.
91507         (is_gcj_43, is_gcj43_usable): New functions.
91508         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
91509         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
91510         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
91511         try the options -fsource and -ftarget.
91513 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
91515         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
91516         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
91517         larger value.
91519 2007-02-03  Jim Meyering  <jim@meyering.net>
91521         Give tools a better chance to allocate space for very large buffers.
91522         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
91524         Make pwd and readlink work also when run with an unreadable parent dir
91525         on systems with openat support.
91526         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
91527         provided getcwd function, even when we have openat support.
91528         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
91530 2007-02-02  Bruno Haible  <bruno@clisp.org>
91532         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
91533         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
91534         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
91535         portability problems if one of these functions is only used on specific
91536         platforms.
91537         Reported by Paul Eggert.
91539 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
91541         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
91542         is causing more trouble than it's curing.
91543         * lib/regex_internal.h (__mempcpy): Remove.
91544         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
91545         (and make the code a tad smaller to boot).
91546         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
91548 2007-02-02  Jim Meyering  <jim@meyering.net>
91550         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
91551         section, not in the Makefile.am: one.
91553 2007-02-02  Eric Blake  <ebb9@byu.net>
91555         * lib/strchrnul.c: Always include config.h first.
91557         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
91558         gnulib strstr is not necessary here.
91560 2007-02-02  Simon Josefsson  <simon@josefsson.org>
91562         * m4/socklen.m4: Fix typo.
91564 2007-02-02  Eric Blake  <ebb9@byu.net>
91566         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
91567         * modules/netinet_in (Makefile.am): Likewise.
91569 2007-02-01  Bruno Haible  <bruno@clisp.org>
91571         * lib/string_.h (GL_LINK_WARNING): New macro.
91572         (strcasecmp, strstr, strcasestr): If provided by the system,
91573         conditionally define as a macro that leads to a warning instead of to
91574         an error.
91575         (strncasecmp): Conditionally define as a macro that leads to a warning.
91577 2007-02-01  Karl Berry  <karl@gnu.org>
91579         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
91581 2007-02-01  Bruno Haible  <bruno@clisp.org>
91583         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
91584         renamings.
91586 2007-02-01  Eric Blake  <ebb9@byu.net>
91588         * modules/regex (Depends-on): Revert dependence on mempcpy.
91589         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
91590         module's definition of mempcpy.
91591         Reported by Paul Eggert.
91593 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
91595         * lib/string_.h: If the gnulib module XYZ is not present, undefine
91596         the symbol XYZ before redefining it.  This fixes a problem with
91597         programs that don't use XYZ, when compiled on systems that define
91598         XYZ to something else.
91600 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
91602         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
91603         occurs when "mkdir -m foo" creates a setgid directory that is (1)
91604         writeable to group or other and (2) is intended to have a special
91605         mode bit that is set or cleared.  In such a case, the directory
91606         should be neither group- nor other-writeable until the special
91607         mode bits are right.
91609 2007-01-31  Eric Blake  <ebb9@byu.net>
91611         * modules/mountlist (Depends-on): Add strstr.
91613         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
91614         bug.
91615         * modules/string (Makefile.am): Remove redundant replacement.
91616         * modules/regex (Depends-on): Add mempcpy.
91618 2007-01-31  Bruno Haible  <bruno@clisp.org>
91620         New module description field 'Link'.
91621         * gnulib-tool (func_usage): Document --extract-link-directive.
91622         (sed_extract_prog): Recognize 'Link' directive.
91623         (func_get_link_directive): New function.
91624         (func_import): Show summary of link directives.
91625         Handle --extract-link-directive option.
91626         * modules/acl (Link): New section.
91627         * modules/clock-time (Link): New section.
91628         * modules/euidaccess (Link): New section.
91629         * modules/gettext (Link): New section.
91630         * modules/iconv (Link): New section.
91631         * modules/lock (Link): New section.
91632         * modules/nanosleep (Link): New section.
91633         * modules/readline (Link): New section.
91635 2007-01-27  Bruno Haible  <bruno@clisp.org>
91637         Enforce the use of gnulib modules for unportable <string.h> functions.
91638         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
91639         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
91640         (gl_HEADER_STRING_H_BODY): Require it.
91641         * lib/string_.h: If the gnulib module XYZ is not present, redefine
91642         the symbol XYZ to one that gives a link error.
91643         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
91644         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
91645         * modules/mempcpy (configure.ac): Likewise.
91646         * modules/memrchr (configure.ac): Likewise.
91647         * modules/stpcpy (configure.ac): Likewise.
91648         * modules/stpncpy (configure.ac): Likewise.
91649         * modules/strcase (configure.ac): Likewise.
91650         * modules/strcasestr (configure.ac): Likewise.
91651         * modules/strchrnul (configure.ac): Likewise.
91652         * modules/strdup (configure.ac): Likewise.
91653         * modules/strndup (configure.ac): Likewise.
91654         * modules/strnlen (configure.ac): Likewise.
91655         * modules/strpbrk (configure.ac): Likewise.
91656         * modules/strsep (configure.ac): Likewise.
91657         * modules/strstr (configure.ac): Likewise.
91658         * modules/strtok_r (configure.ac): Likewise.
91660 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
91662         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
91664 2007-01-30  Jim Meyering  <jim@meyering.net>
91666         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
91668 2007-01-29  Bruno Haible  <bruno@clisp.org>
91670         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
91671         * lib/execute.c: Likewise.
91672         * lib/pipe.c: Likewise.
91673         * lib/printf-args.h: Likewise.
91674         * lib/printf-args.c: Likewise.
91675         * lib/printf-parse.c: Likewise.
91676         * lib/vasnprintf.c: Likewise.
91678 2007-01-29  Eric Blake  <ebb9@byu.net>
91680         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
91681         declaration.
91683 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
91685         * lib/strptime.h (strptime): Use 'restrict' for args where
91686         POSIX requires this.
91687         * lib/strptime.c (strptime): Likewise.
91688         Change license notice from LGPL to GPL, since gnulib-tool will
91689         change this as needed.
91690         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
91691         defined.
91692         Include "strptime.h" first, to check interface.
91693         Do not #undef _LIBC and _NL_CURRENT.
91694         Do not include <stdlib.h>; no longer needed.
91695         Include "time_r.h" and declare ptime_locale_status
91696         only if _LIBC is not defined.
91697         (__P): Remove unused macro.
91698         (match_string): Bring back glibc version, but use it only if _LIBC
91699         is defined.
91700         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
91701         Remove unnecessary assertion and abort() call.
91702         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
91703         * m4/strptime.m4: Fix serial number comment.
91704         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
91705         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
91706         (Depends-on): Add time_r.
91708 2007-01-29  Bruno Haible  <bruno@clisp.org>
91710         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91711         strptime.
91712         * modules/strptime (Depends-on): Add stdbool.
91713         * lib/strptime.h: Include <time.h> always. Add comments.
91715 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
91717         * modules/strptime: New file.
91718         * lib/strptime.h: New file.
91719         * lib/strptime.c: New file.
91720         * m4/strptime.m4: New file.
91722 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
91724         * MODULES.html.sh: New module mpsort.
91725         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
91727         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
91728         a circularity problem with HP-UX ia64 reported by Bob Proulx in
91729         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
91730         All uses changed.
91731         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
91732         All uses changed.
91733         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
91734         to _Restrict_.
91735         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
91736         the parameter matches the prototype.
91738 2007-01-28  Jim Meyering  <jim@meyering.net>
91740         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
91741         sys/time.h here, reverting that part of the previous patch:
91742         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
91744 2007-01-28  Bruno Haible  <bruno@clisp.org>
91746         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
91747         value of $(SYS_TIME_H).
91748         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
91749         remove it conditionally, too. [added by Jim Meyering]
91750         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
91751         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
91752         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
91753         GETTIMEOFDAY_REPLACEMENT to 1.
91755 2007-01-28  Bruno Haible  <bruno@clisp.org>
91757         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
91758         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
91759         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
91760         Set UNISTD_H instead of UNISTD_H2.
91761         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
91763 2007-01-28  Bruno Haible  <bruno@clisp.org>
91765         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
91766         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
91768 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91770         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
91771         (func_create_testdir): Ensure C locale for `grep' and `tr'
91772         character ranges.
91773         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
91774         ACLOCAL_AMFLAGS parsing state machine.
91776 2007-01-27  Bruno Haible  <bruno@clisp.org>
91778         * modules/unistr/base: Update.
91780 2007-01-27  Bruno Haible  <bruno@clisp.org>
91782         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
91783         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
91784         * modules/unistr/u32-mbtouc-unsafe: Renamed from
91785         modules/unistr/u32-mbtouc.
91786         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
91787         * lib/unistr.h: Update.
91788         * lib/linebreak.c: Update.
91789         * modules/unistr/u32-mbtouc: Renamed from
91790         modules/unistr/u32-mbtouc-safe.
91791         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
91792         * lib/unistr.h: Update.
91793         * lib/unistr/u32-to-u8.c: Update.
91794         * lib/unistr/u32-to-u16.c: Update.
91796 2007-01-27  Bruno Haible  <bruno@clisp.org>
91798         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
91799         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
91800         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
91801         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
91802         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
91803         * modules/unistr/u16-mbtouc-unsafe: Renamed from
91804         modules/unistr/u16-mbtouc.
91805         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
91806         * lib/unistr.h: Update.
91807         * lib/linebreak.c: Update.
91808         * modules/linebreak: Update.
91809         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
91810         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
91811         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
91812         * modules/unistr/u16-mbtouc: Renamed from
91813         modules/unistr/u16-mbtouc-safe.
91814         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
91815         * lib/unistr.h: Update.
91816         * lib/unistr/u16-to-u8.c: Update.
91817         * modules/unistr/u16-to-u8: Update.
91818         * lib/unistr/u16-to-u32.c: Update.
91819         * modules/unistr/u16-to-u32: Update.
91821 2007-01-27  Bruno Haible  <bruno@clisp.org>
91823         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
91824         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
91825         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
91826         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
91827         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
91828         * modules/unistr/u8-mbtouc-unsafe: Renamed from
91829         modules/unistr/u8-mbtouc.
91830         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
91831         * lib/unistr.h: Update.
91832         * lib/striconveh.c: Update.
91833         * modules/striconveh: Update.
91834         * lib/linebreak.c: Update.
91835         * modules/linebreak: Update.
91836         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
91837         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
91838         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
91839         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
91840         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
91841         * lib/unistr.h: Update.
91842         * lib/striconveh.c: Update.
91843         * modules/striconveh: Update.
91844         * lib/unistr/u8-to-u16.c: Update.
91845         * modules/unistr/u8-to-u16: Update.
91846         * lib/unistr/u8-to-u32.c: Update.
91847         * modules/unistr/u8-to-u32: Update.
91849 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91851         Sync from Libtool.
91852         * lib/argz.c: Do not include strings.h nor memory.h, include
91853         string.h unconditionally.  Patch by Simon Josefsson.
91855 2007-01-27  Bruno Haible  <bruno@clisp.org>
91857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
91858         from gl_HEADER_STRING_H_BODY.
91859         (gl_HEADER_STRING_H_BODY): Require it.
91860         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
91861         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
91862         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
91863         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
91864         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
91865         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
91866         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91867         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
91868         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
91869         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
91870         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
91871         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
91872         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
91873         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
91874         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
91876 2007-01-27  Bruno Haible  <bruno@clisp.org>
91878         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
91879         check_PROGRAMS into noinst_PROGRAMS.
91880         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
91881         check_PROGRAMS in this case.
91882         (func_import): Set for_test to false.
91883         (func_create_testdir): Set for_test to true.
91885 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91886             Bruno Haible  <bruno@clisp.org>
91888         * modules/strcasestr (Files): Remove lib/strcasestr.h.
91889         (Depends-on): Add string.
91890         (Includes): Use <string.h> instead of strcasestr.h.
91891         * modules/string (Makefile.am): Also substitute the value of
91892         REPLACE_STRCASESTR.
91893         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
91894         assume strcasestr is declared in <string.h> not <strings.h>. Also
91895         set REPLACE_STRCASESTR.
91896         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
91897         REPLACE_STRCASESTR.
91898         * lib/strcasestr.h: Remove file.
91899         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
91900         * lib/string_.h (strcasestr): New declaration.
91902 2007-01-27  Bruno Haible  <bruno@clisp.org>
91904         * lib/string_.h: Use 'extern'.
91906 2007-01-27  Jim Meyering  <jim@meyering.net>
91908         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
91909         of set-but-not-used local, "q".
91911         * lib/mempcpy.c: Include <config.h> before <string.h>.
91912         This fixes a compilation error on HP-UX, due to the system's
91913         "restrict"-using mempcpy prototype.
91915 2007-01-26  Bruno Haible  <bruno@clisp.org>
91917         Small optimization.
91918         * lib/javacomp.c: Include c-strstr.h.
91919          (is_envjavac_gcj): Use c_strstr instead of strstr.
91920         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
91922 2007-01-26  Bruno Haible  <bruno@clisp.org>
91924         * MODULES.html.sh (Unicode string functions): Add the new modules.
91926         * modules/uniconv/u32-strconv-to-locale: New file.
91927         * lib/uniconv/u32-strconv-to-locale.c: New file.
91929         * modules/uniconv/u16-strconv-to-locale: New file.
91930         * lib/uniconv/u16-strconv-to-locale.c: New file.
91932         * modules/uniconv/u8-strconv-to-locale: New file.
91933         * lib/uniconv/u8-strconv-to-locale.c: New file.
91935         * modules/uniconv/u32-strconv-from-locale: New file.
91936         * lib/uniconv/u32-strconv-from-locale.c: New file.
91938         * modules/uniconv/u16-strconv-from-locale: New file.
91939         * lib/uniconv/u16-strconv-from-locale.c: New file.
91941         * modules/uniconv/u8-strconv-from-locale: New file.
91942         * lib/uniconv/u8-strconv-from-locale.c: New file.
91944         * modules/uniconv/u32-strconv-to-enc: New file.
91945         * lib/uniconv/u32-strconv-to-enc.c: New file.
91946         * modules/uniconv/u32-strconv-to-enc-tests: New file.
91947         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
91949         * modules/uniconv/u16-strconv-to-enc: New file.
91950         * lib/uniconv/u16-strconv-to-enc.c: New file.
91951         * lib/uniconv/u-strconv-to-enc.h: New file.
91952         * modules/uniconv/u16-strconv-to-enc-tests: New file.
91953         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
91955         * modules/uniconv/u8-strconv-to-enc: New file.
91956         * lib/uniconv/u8-strconv-to-enc.c: New file.
91957         * modules/uniconv/u8-strconv-to-enc-tests: New file.
91958         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
91960         * modules/uniconv/u32-strconv-from-enc: New file.
91961         * lib/uniconv/u32-strconv-from-enc.c: New file.
91962         * modules/uniconv/u32-strconv-from-enc-tests: New file.
91963         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
91965         * modules/uniconv/u16-strconv-from-enc: New file.
91966         * lib/uniconv/u16-strconv-from-enc.c: New file.
91967         * modules/uniconv/u16-strconv-from-enc-tests: New file.
91968         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
91970         * modules/uniconv/u8-strconv-from-enc: New file.
91971         * lib/uniconv/u8-strconv-from-enc.c: New file.
91972         * lib/uniconv/u-strconv-from-enc.h: New file.
91973         * modules/uniconv/u8-strconv-from-enc-tests: New file.
91974         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
91976         * modules/uniconv/u32-conv-from-enc: New file.
91977         * lib/uniconv/u32-conv-from-enc.c: New file.
91978         * modules/uniconv/u32-conv-from-enc-tests: New file.
91979         * tests/uniconv/test-u32-conv-from-enc.c: New file.
91981         * modules/uniconv/u16-conv-from-enc: New file.
91982         * lib/uniconv/u16-conv-from-enc.c: New file.
91983         * lib/uniconv/u-conv-from-enc.h: New file.
91984         * modules/uniconv/u16-conv-from-enc-tests: New file.
91985         * tests/uniconv/test-u16-conv-from-enc.c: New file.
91987         * modules/uniconv/u8-conv-from-enc: New file.
91988         * lib/uniconv/u8-conv-from-enc.c: New file.
91989         * modules/uniconv/u8-conv-from-enc-tests: New file.
91990         * tests/uniconv/test-u8-conv-from-enc.c: New file.
91992         * modules/uniconv/base: New file.
91993         * lib/uniconv.h: New file.
91995 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
91997         * doc/gnulib-tool.texi (Initial import): Update to match current
91998         behavior with strdup module.
91999         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
92000         * lib/memmem.h: Remove; all uses removed.  This is now done
92001         by <string.h>.
92002         * lib/mempcpy.h: Likewise.
92003         * lib/memrchr.h: Likewise.
92004         * lib/stpcpy.h: Likewise.
92005         * lib/stpncpy.h: Likewise.
92006         * lib/strcase.h: Likewise.
92007         * lib/strchrnul.h: Likewise.
92008         * lib/strdup.h: Likewise.
92009         * lib/strndup.h: Likewise.
92010         * lib/strnlen.h: Likewise.
92011         * lib/strpbrk.h: Likewise.
92012         * lib/strsep.h: Likewise.
92013         * lib/strstr.h: Likewise.
92014         * lib/strtok_r.h: Likewise.
92015         * lib/string_.h: New file.
92016         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
92017         Rely on <string.h> instead.
92018         * lib/canon-host.c: Likewise.
92019         * lib/chdir-long.c: Likewise.
92020         * lib/concatpath.c: Likewise.
92021         * lib/exclude.c: Likewise.
92022         * lib/fchdir.c: Likewise.
92023         * lib/getaddrinfo.c: Likewise.
92024         * lib/getcwd.c: Likewise.
92025         * lib/getsubopt.c: Likewise.
92026         * lib/glob.c: Likewise.
92027         * lib/hard-locale.c: Likewise.
92028         * lib/iconvme.c: Likewise.
92029         * lib/javacomp.c: Likewise.
92030         * lib/mempcpy.c: Likewise.
92031         * lib/memrchr.c: Likewise.
92032         * lib/regex_internal.h: Likewise.
92033         * lib/stpncpy.c: Likewise.
92034         * lib/strcasecmp.c: Likewise.
92035         * lib/strchrnul.c: Likewise.
92036         * lib/strdup.c: Likewise.
92037         * lib/striconv.c: Likewise.
92038         * lib/striconveh.c: Likewise.
92039         * lib/striconveha.c: Likewise.
92040         * lib/strncasecmp.c: Likewise.
92041         * lib/strndup.c: Likewise.
92042         * lib/strnlen.c: Likewise.
92043         * lib/strsep.c: Likewise.
92044         * lib/strstr.c: Likewise.
92045         * lib/strtok_r.c: Likewise.
92046         * lib/userspec.c: Likewise.
92047         * lib/w32spawn.h: Likewise.
92048         * lib/xstrndup.c: Likewise.
92049         * lib/mountlist.c (strstr): Remove decl.
92050         * m4/string_h.m4: New file.
92051         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
92052         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
92053         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
92054         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
92055         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
92056         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
92057         Set REPLACE_STRCASECMP if necessary.
92058         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
92059         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
92060         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
92061         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
92062         HAVE_DECL_STRDUP if necessary.
92063         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
92064         since gl_FUNC_STRNDUP does that now.
92065         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
92066         Check for decl here...
92067         (gl_PREREQ_STRNLEN): ... not here.
92068         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
92069         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
92070         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
92071         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
92072         necessary.
92073         * modules/string: New file.
92074         * modules/memmem (Files): Remove special-purpose include file.
92075         (Depends-on): Add string.
92076         (Include): Include <string.h>, not the removed file.
92077         * modules/mempcpy: Likewise.
92078         * modules/memrchr: Likewise.
92079         * modules/stpcpy: Likewise.
92080         * modules/stpncpy: Likewise.
92081         * modules/strcase: Likewise.
92082         * modules/strchrnul: Likewise.
92083         * modules/strdup: Likewise.
92084         * modules/strndup: Likewise.
92085         * modules/strnlen: Likewise.
92086         * modules/strpbrk: Likewise.
92087         * modules/strsep: Likewise.
92088         * modules/strstr: Likewise.
92089         * modules/strtok_r: Likewise.
92090         * tests/test-dirname.c: Don't include "strdup.h", since
92091         <string.h> now suffices.
92092         * tests/test-memmem.c: Don't include "memmem.h", since
92093         <string.h> now suffices.
92095 2007-01-25  Bruno Haible  <bruno@clisp.org>
92097         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
92098         *resultp is 0.
92100         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
92101         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
92102         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
92103         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
92105         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
92106         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
92107         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
92108         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
92109         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
92110         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
92112 2007-01-24  Bruno Haible  <bruno@clisp.org>
92114         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
92115         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
92116         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
92117         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
92118         gl_FUNC_FTS_CORE.
92119         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
92120         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
92121         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92122         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
92123         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
92124         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
92125         gl_FUNC_FCHOWNAT.
92126         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
92127         gl_FUNC_STRFTIME.
92128         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
92129         Reported by Ralf Wildenhues.
92131 2007-01-24  Bruno Haible  <bruno@clisp.org>
92133         Drop AC_REQUIRE calls that are redundant with the module dependencies.
92134         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
92135         gl_GETADDRINFO.
92136         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
92137         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
92138         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
92140 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
92142         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
92143         Don't use 'exit'; just return from 'main'.
92144         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
92146         * lib/fnmatch_.h: Readjust white space and comments to match
92147         glibc, to avoid spurious diffs.
92149 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
92151         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
92152         2004-12-01 change by Jakub Jelinek, since this code won't compile
92153         if !LIBC.  Problem reported by Bob Proulx.
92155 2007-01-23  Bruno Haible  <bruno@clisp.org>
92157         * lib/striconveh.c: Include c-strcaseeq.h.
92158         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
92159         * modules/striconveh (Depends-on): Add c-strcaseeq.
92161 2007-01-23  Bruno Haible  <bruno@clisp.org>
92163         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
92165         * modules/c-strcaseeq: New file.
92166         * lib/c-strcaseeq.h: New file.
92168         * modules/streq: New file.
92169         * lib/streq.h: New file.
92171 2007-01-23  Bruno Haible  <bruno@clisp.org>
92173         * modules/striconveha-tests: New file.
92174         * tests/test-striconveha.c: New file.
92176         * lib/striconveha.h: Include <stdbool.h>.
92177         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
92178         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
92179         (mem_iconveha_notranslit): Renamed from mem_iconveha.
92180         (mem_iconveha): New function.
92181         (str_iconveha_notranslit): Renamed from str_iconveha.
92182         (str_iconveha): New function.
92183         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
92184         c-strcase.
92186 2007-01-23  Bruno Haible  <bruno@clisp.org>
92188         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
92189         encodings without forgiving before trying any encoding with handler.
92190         (str_iconveha): Try all encodings without forgiving before trying any
92191         encoding with handler.
92193 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
92195         Import the following changes from libc.
92197         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
92199         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
92201         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
92203         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
92204         normal_bracket label.
92206         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
92208         [BZ #361]
92209         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
92210         to normal_bracket after fetching the next character.
92212 2007-01-22  Bruno Haible  <bruno@clisp.org>
92214         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
92215         argument.
92216         * lib/striconveh.c (iconv_carefully_1): New function.
92217         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
92218         argument.
92219         (str_cd_iconveh): Update.
92220         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
92221         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
92222         * tests/test-striconveh.c (MAGIC): New macro.
92223         (new_offsets): New function.
92224         (main): Test call with and without offsets.
92226 2007-01-22  Bruno Haible  <bruno@clisp.org>
92228         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
92229         * modules/sys_select (Makefile.am): Likewise.
92230         * modules/sys_socket (Makefile.am): Likewise.
92231         * modules/sys_time (Makefile.am): Likewise.
92233 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
92235         * modules/gettimeofday (License): Change from GPL to LGPL, since
92236         gettimeofday is a library function.
92238 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92240         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
92242 2007-01-21  Bruno Haible  <bruno@clisp.org>
92244         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
92246 2007-01-21  Bruno Haible  <bruno@clisp.org>
92248         * modules/striconveha: New file.
92249         * lib/striconveha.h: New file.
92250         * lib/striconveha.c: New file.
92251         * MODULES.html.sh (Internationalization functions): Add striconveha.
92252         * lib/striconv.c (str_iconv): Optimize the case of an empty input
92253         string.
92254         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
92256 2007-01-21  Bruno Haible  <bruno@clisp.org>
92258         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
92259         * lib/striconveh.c (str_iconveh): Likewise.
92261 2007-01-21  Bruno Haible  <bruno@clisp.org>
92263         * lib/striconveh.h (mem_iconveh): New declaration.
92264         * lib/striconveh.c (mem_iconveh): New function.
92265         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
92267 2007-01-21  Bruno Haible  <bruno@clisp.org>
92269         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
92271         * lib/striconveh.h (mem_cd_iconveh): Change specification.
92272         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
92273         original result buffer.
92274         (str_cd_iconveh): Update.
92275         * tests/test-striconveh.c (main): Update.
92277         * lib/striconv.h (mem_cd_iconv): Change specification.
92278         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
92279         result buffer.
92280         (str_cd_iconv): Update.
92281         * tests/test-striconv.c (main): Update.
92283 2007-01-21  Bruno Haible  <bruno@clisp.org>
92285         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
92287 2007-01-20  Jim Meyering  <jim@meyering.net>
92289         * lib/userspec.c (parse_with_separator): If a user or group string
92290         starts with "+", skip the corresponding name-to-ID look-up, since
92291         such a look-up must fail: user and group names may not include "+".
92293 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
92295         * lib/poll.c: Include sys/time.h and time.h unconditionally,
92296         since we now assume the sys_time module.
92297         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
92298         check for sys/time.h; no longer needed.
92299         * modules/poll (Depends-on): Depend on sys_time.
92301 2007-01-18  Bruno Haible  <bruno@clisp.org>
92303         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
92304         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
92306         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
92307         gettimeofday.
92309         * tests/test-gettimeofday.c: Include <time.h>.
92310         (dummy): Remove variable.
92312         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
92313         gl_HEADER_SYS_TIME_H.
92314         (gl_HEADER_SYS_TIME_H): New macro.
92316         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
92317         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
92318         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
92319         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
92320         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
92321         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
92322         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
92323         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
92324         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
92325         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
92326         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
92328         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
92329         last change; it caused a compilation error when cross-compiling to
92330         Cygwin.
92332 2007-01-18  Jim Meyering  <jim@meyering.net>
92334         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
92335         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
92336         than the race-prone "test -d sys || mkdir sys".
92337         (configure.ac): Use AC_PROG_MKDIR_P.
92338         * modules/sys_select: Likewise.
92339         * modules/sys_socket: Likewise.
92340         * modules/sys_time: Likewise.
92342 2007-01-18  Eric Blake  <ebb9@byu.net>
92344         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
92345         replace gettimeofday.
92346         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
92347         name, to avoid infinite recursion.
92349 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
92351         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
92352         module sys_time.
92353         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
92354         assume timespec.h defines struct timeval.
92355         * lib/settime.c: Likewise.
92356         * lib/utimens.c: Likewise.
92357         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
92358         since we now assume the gettimeofday module.
92359         * lib/tempname.c (__gen_tempname): Likewise.
92360         * lib/gettimeofday.h: Remove.
92361         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
92362         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
92363         Include <time.h>, for 'time()'.
92364         (localtime_buffer_addr): Also use this workaround if
92365         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
92366         to simplify the uses.  All uses changed.
92367         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
92368         that #undef is inside {}, and 'const' follows type name consistently.
92369         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
92370         (gettimeofday): Do not use the maximum possible value for
92371         tv->tv_usec, since that might break usages other than ls.c.
92372         Instead, we'll leave ls.c alone.  This undoes today's patch
92373         by Bruno.  Add a compile-time warning for 1s-clock resolution;
92374         we've never observed the problem but might as well keep the
92375         canary.
92376         * lib/nanosleep.c: Include timespec.h first, for interface check.
92377         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
92378         now assume the sys_time module.
92379         * lib/tempname.c: Likewise.
92380         * lib/timespec.h: Likewise.
92381         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
92382         needed.
92383         * lib/strftime.c: Likewise.
92384         * lib/timespec.h: Likewise.
92385         * lib/posixtm.c: Include posixtm.h first, for interface check.
92386         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
92387         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
92388         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
92389         * lib/sys_time_.h: New file.
92390         * lib/timespec.h (struct timespec): Use long int, not long.
92391         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
92392         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
92393         Remove obsolescent call to AC_HEADER_TIME.
92394         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
92395         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
92396         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
92397         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
92398         Likewise.
92399         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
92400         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
92401         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
92402         into the sys_time module.  Check for gettimeofday just once.
92403         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
92404         for gettimeofday signature to just check the signature.  Merely
92405         compile it, since linking doesn't test signature.  Improve test for
92406         whether gettimeofday.o is actually needed.
92407         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
92408         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
92409         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
92410         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
92411         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
92412         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
92413         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
92414         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
92415         than worrying about sys/time.h.
92416         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
92417         Don't bother worrying about TIME_WITH_SYS_TIME.
92418         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
92419         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
92420         * m4/sys_time_h.m4: New file.
92421         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
92422         Don't include sys/time.h.  Return from main rather than exiting.
92423         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
92424         all uses changed.
92425         * modules/gethrxtime (Depends-on): Add sys_time.
92426         * modules/gettime (Depends-on): Likewise.
92427         * modules/gettimeofday (Depends-on): Likewise.
92428         * modules/nanosleep (Depends-on): Likewise.
92429         * modules/settime (Depends-on): Likewise.
92430         * modules/tempname (Depends-on): Likewise.
92431         * modules/utimens (Depends-on): Likewise.
92432         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
92433         (Include): Change back to <sys/time.h>.
92434         (Maintainer): Add self.
92435         * modules/sys_time: New file.
92436         * modules/tempname (Depends-on): Add gettimeofday.
92437         * tests/test-gettimeofday.c: Include <sys/time.h>
92438         rather than gettimeofday.h.
92440 2007-01-17  Bruno Haible  <bruno@clisp.org>
92442         * gnulib-tool (func_get_license): Revert last patch. Instead, let
92443         the license default to GPL.
92444         (func_create_testdir): Don't complain if a module is LGPL and its
92445         tests module depends on GPLed modules.
92447 2007-01-17  Bruno Haible  <bruno@clisp.org>
92449         * lib/gettimeofday.c (gettimeofday): Add code for the case
92450         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
92451         maximum possible value for tv->tv_usec, rather than the minimum one.
92453 2005-10-08  Martin Lambers  <marlam@marlam.de>
92454 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
92455 2007-01-16  Bruno Haible  <bruno@clisp.org>
92457         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
92458         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
92459         gl_FUNC_GETTIMEOFDAY.
92460         (Include): Add gettimeofday.h.
92461         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
92462         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
92463         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
92464         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
92465         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
92466         * lib/gettimeofday.h: New file.
92467         * lib/gettimeofday.c: Include <sys/timeb.h>.
92468         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
92469         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
92470         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
92471         fall back on time().
92473         * tests/test-gettimeofday.c: New file.
92474         * modules/gettimeofday-tests: New file.
92476 2007-01-16  Eric Blake  <ebb9@byu.net>
92478         * modules/fnmatch (Depends-on): Depend on wchar.
92479         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
92480         * m4/fnmatch.m4: Likewise.
92481         * modules/mbchar (Makefile.am): Assume <wchar.h>.
92482         * m4/mbchar.m4: Likewise.
92483         * modules/mbswidth (Depends-on): Depend on wchar.
92484         * lib/mbswidth.c: Assume <wchar.h>.
92485         * m4/mbswidth.m4: Likewise.
92486         * modules/quotearg (Depends-on): Depend on wchar.
92487         * lib/quotearg.c: Assume <wchar.h>.
92488         * m4/quotearg.m4: Likewise.
92489         * modules/regex (Depends-on): Depend on wchar.
92490         * lib/regex_internal.h: Assume <wchar.h>.
92491         * m4/regex.m4: Likewise.
92492         * modules/stdint (Depends-on): Depend on wchar.
92493         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
92494         * m4/stdint.m4: Likewise.
92495         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
92496         * modules/strftime (Depends-on): Depend on wchar.
92497         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
92498         * modules/strtol (Depends-on): Depend on wchar.
92499         * lib/strtol.c: Assume <wchar.h>.
92500         * modules/wcwidth (Depends-on): Depend on wchar.
92501         * lib/wcwidth.h: Assume <wchar.h>.
92502         * m4/wcwidth.m4: Likewise.
92504 2007-01-16  Bruno Haible  <bruno@clisp.org>
92506         * modules/csharpexec-script: New, created from...
92507         * modules/csharpexec: ... this.
92509 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
92511         * modules/javaexec-script: New, created from...
92512         * modules/javaexec: ... this.
92514 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92516         * modules/poll (Dependencies): Add sys_select.
92518 2007-01-15  Jim Meyering  <jim@meyering.net>
92520         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
92521         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
92522         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
92523         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
92525 2007-01-15  Bruno Haible  <bruno@clisp.org>
92527         * modules/striconveh: New file.
92528         * lib/striconveh.h: New file.
92529         * lib/striconveh.c: New file.
92530         * MODULES.html.sh (Internationalization functions): Add striconveh.
92532         * modules/striconveh-tests: New file.
92533         * tests/test-striconveh.c: New file.
92535 2007-01-15  Bruno Haible  <bruno@clisp.org>
92537         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
92538         not from GNU libiconv or GNU libc.
92540 2007-01-15  Bruno Haible  <bruno@clisp.org>
92542         * doc/gnulib-intro.texi (Copyright): Explain the different license
92543         terms for module descriptions, autoconf macros, tests, documentation.
92545 2007-01-14  Bruno Haible  <bruno@clisp.org>
92547         * modules/striconv-tests: New file.
92548         * tests/test-striconv.c: New file.
92550 2007-01-14  Bruno Haible  <bruno@clisp.org>
92552         * modules/iconv-tests: New file.
92553         * tests/test-iconv.c: New file.
92555 2007-01-14  Bruno Haible  <bruno@clisp.org>
92557         * gnulib-tool (func_get_license): For test modules, use the license of
92558         the main module.
92560 2007-01-14  Bruno Haible  <bruno@clisp.org>
92562         * modules/iconv (Include): Clarify that <iconv.h> can only be included
92563         if iconv is found to exist.
92565 2007-01-14  Bruno Haible  <bruno@clisp.org>
92567         * modules/c-ctype-tests: New file.
92568         * tests/test-c-ctype.c: New file.
92570 2007-01-14  Bruno Haible  <bruno@clisp.org>
92572         * modules/binary-io-tests: New file.
92573         * tests/test-binary-io.sh: New file.
92574         * tests/test-binary-io.c: New file.
92576 2007-01-14  Bruno Haible  <bruno@clisp.org>
92578         * modules/array-oset-tests: New file.
92579         * tests/test-array_oset.c: New file.
92581 2007-01-14  Bruno Haible  <bruno@clisp.org>
92583         * modules/array-list-tests: New file.
92584         * tests/test-array_list.c: New file.
92586 2007-01-14  Bruno Haible  <bruno@clisp.org>
92588         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
92589         and make.
92590         Reported by Simon Josefsson in
92591         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
92593 2007-01-14  Bruno Haible  <bruno@clisp.org>
92595         * modules/allocsa-tests: New file.
92596         * tests/test-allocsa.c: New file.
92598 2007-01-14  Bruno Haible  <bruno@clisp.org>
92600         * modules/fchdir (Depends-on): Add absolute-header.
92601         * modules/unistd (Depends-on): Likewise.
92603 2006-12-30  Bruno Haible  <bruno@clisp.org>
92605         * modules/fchdir: New file.
92606         * modules/unistd (Files): Add lib/unistd_.h.
92607         (Makefile.am): Generate unistd.h from unistd_.h.
92608         * lib/fchdir.c: New file.
92609         * lib/dirent_.h: New file.
92610         * lib/unistd_.h: New file.
92611         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
92612         * m4/fchdir.m4: New file.
92613         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
92614         (gl_HEADER_UNISTD): Invoke it.
92615         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
92616         function.
92617         * lib/backupfile.c (opendir, closedir): Undefine.
92618         * lib/chown.c (open, close): Undefine.
92619         * lib/clean-temp.c (open, close): Undefine.
92620         * lib/copy-file.c (open, close): Undefine.
92621         * lib/execute.c (open, close): Undefine.
92622         * lib/fsusage.c (open, close): Undefine.
92623         * lib/gc-gnulib.c (open, close): Undefine.
92624         * lib/getcwd.c (opendir, closedir): Undefine.
92625         * lib/glob.c (opendir, closedir): Undefine.
92626         * lib/javacomp.c (open, close): Undefine.
92627         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
92628         * lib/openat-proc.c (open, close): Undefine.
92629         * lib/pagealign_alloc.c (open, close): Undefine.
92630         * lib/pipe.c (open, close): Undefine.
92631         * lib/progreloc.c (open, close): Undefine.
92632         * lib/savedir.c (opendir, closedir): Undefine.
92633         * lib/utime.c (open, close): Undefine.
92634         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
92636 2007-01-10  Bruno Haible  <bruno@clisp.org>
92638         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
92640 2007-01-12  Eric Blake  <ebb9@byu.net>
92642         Provide a robust <wchar.h>.  Further simplifications are now
92643         possible in other modules, but not included here.
92644         * modules/wchar: New module.
92645         * m4/wchar.m4: New file.
92646         * lib/wchar_.h: Likewise.
92647         * modules/mbchar (Depends-on): Depend on wchar, as the first use
92648         of the new module.
92649         * MODULES.html.sh (Extended multibyte and wide character utilities):
92650         New section.
92652 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
92654         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
92655         to a reasonable default for memory allocation.
92656         (xreadlink): Don't allocate a huge buffer, to work around a buggy
92657         file system that reports garbage st_size values for symlinks.
92658         Problem reported by Liyang Hu.
92660 2007-01-11  Simon Josefsson  <simon@josefsson.org>
92662         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
92663         Emacs .#* auto-save files).
92665 2007-01-11  Bruno Haible  <bruno@clisp.org>
92667         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
92668         directory.
92670 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
92672         Use @...@ consistently in lib/wctype_.h.
92673         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
92674         on it being set to 1 or 0.
92675         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
92676         go back to AC_SUBSTing it.
92677         * modules/wctype (Makefile.am): Undo previous change.
92679 2007-01-10  Eric Blake  <ebb9@byu.net>
92681         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
92682         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
92683         * modules/wctype (Makefile.am): Likewise.
92684         Reported by Chris McGuire.
92686 2007-01-10  Jim Meyering  <jim@meyering.net>
92688         fts.c: a small readability/maintainability improvement
92689         * lib/fts.c (fts_read): Make this code slightly more readable and
92690         maintainable by hoisting the "sp->fts_cur = p" assignments to
92691         immediately follow the statements that set P.  Derived from
92692         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
92694 2007-01-10  Eric Blake  <ebb9@byu.net>
92696         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
92697         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
92698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
92699         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
92700         Reported by Chris McGuire.
92702 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92704         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
92705         in sed script.
92707 2007-01-09  Bruno Haible  <bruno@clisp.org>
92709         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
92710         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
92711         variables.
92712         (func_module): Use them.
92714 2007-01-09  Bruno Haible  <bruno@clisp.org>
92716         * modules/unistr/base: New file.
92717         * lib/unistr.h: New file.
92719         * modules/unistr/u8-to-u16: New file.
92720         * lib/unistr/u8-to-u16.c: New file.
92722         * modules/unistr/u8-to-u32: New file.
92723         * lib/unistr/u8-to-u32.c: New file.
92725         * modules/unistr/u16-to-u8: New file.
92726         * lib/unistr/u16-to-u8.c: New file.
92728         * modules/unistr/u16-to-u32: New file.
92729         * lib/unistr/u16-to-u32.c: New file.
92731         * modules/unistr/u32-to-u8: New file.
92732         * lib/unistr/u32-to-u8.c: New file.
92734         * modules/unistr/u32-to-u16: New file.
92735         * lib/unistr/u32-to-u16.c: New file.
92737         * modules/unistr/u8-check: New file.
92738         * modules/unistr/u16-check: New file.
92739         * modules/unistr/u32-check: New file.
92740         * lib/unistr/u8-check.c: New file.
92741         * lib/unistr/u16-check.c: New file.
92742         * lib/unistr/u32-check.c: New file.
92744         * modules/unistr/u8-chr: New file.
92745         * modules/unistr/u16-chr: New file.
92746         * modules/unistr/u32-chr: New file.
92747         * lib/unistr/u8-chr.c: New file.
92748         * lib/unistr/u16-chr.c: New file.
92749         * lib/unistr/u32-chr.c: New file.
92751         * modules/unistr/u8-cmp: New file.
92752         * modules/unistr/u16-cmp: New file.
92753         * modules/unistr/u32-cmp: New file.
92754         * lib/unistr/u8-cmp.c: New file.
92755         * lib/unistr/u16-cmp.c: New file.
92756         * lib/unistr/u32-cmp.c: New file.
92758         * modules/unistr/u8-cpy: New file.
92759         * modules/unistr/u16-cpy: New file.
92760         * modules/unistr/u32-cpy: New file.
92761         * lib/unistr/u8-cpy.c: New file.
92762         * lib/unistr/u16-cpy.c: New file.
92763         * lib/unistr/u32-cpy.c: New file.
92764         * lib/unistr/u-cpy.h: New file.
92766         * modules/unistr/u8-cpy-alloc: New file.
92767         * modules/unistr/u16-cpy-alloc: New file.
92768         * modules/unistr/u32-cpy-alloc: New file.
92769         * lib/unistr/u8-cpy-alloc.c: New file.
92770         * lib/unistr/u16-cpy-alloc.c: New file.
92771         * lib/unistr/u32-cpy-alloc.c: New file.
92772         * lib/unistr/u-cpy-alloc.h: New file.
92774         * modules/unistr/u8-endswith: New file.
92775         * modules/unistr/u16-endswith: New file.
92776         * modules/unistr/u32-endswith: New file.
92777         * lib/unistr/u8-endswith.c: New file.
92778         * lib/unistr/u16-endswith.c: New file.
92779         * lib/unistr/u32-endswith.c: New file.
92780         * lib/unistr/u-endswith.h: New file.
92782         * modules/unistr/u8-mblen: New file.
92783         * modules/unistr/u16-mblen: New file.
92784         * modules/unistr/u32-mblen: New file.
92785         * lib/unistr/u8-mblen.c: New file.
92786         * lib/unistr/u16-mblen.c: New file.
92787         * lib/unistr/u32-mblen.c: New file.
92789         * modules/unistr/u8-mbtouc: New file.
92790         * modules/unistr/u16-mbtouc: New file.
92791         * modules/unistr/u32-mbtouc: New file.
92792         * lib/unistr/u8-mbtouc.c: New file.
92793         * lib/unistr/u16-mbtouc.c: New file.
92794         * lib/unistr/u32-mbtouc.c: New file.
92796         * modules/unistr/u8-mbtouc-safe: New file.
92797         * modules/unistr/u16-mbtouc-safe: New file.
92798         * modules/unistr/u32-mbtouc-safe: New file.
92799         * lib/unistr/u8-mbtouc-safe.c: New file.
92800         * lib/unistr/u16-mbtouc-safe.c: New file.
92801         * lib/unistr/u32-mbtouc-safe.c: New file.
92803         * modules/unistr/u8-move: New file.
92804         * modules/unistr/u16-move: New file.
92805         * modules/unistr/u32-move: New file.
92806         * lib/unistr/u8-move.c: New file.
92807         * lib/unistr/u16-move.c: New file.
92808         * lib/unistr/u32-move.c: New file.
92809         * lib/unistr/u-move.h: New file.
92811         * modules/unistr/u8-next: New file.
92812         * modules/unistr/u16-next: New file.
92813         * modules/unistr/u32-next: New file.
92814         * lib/unistr/u8-next.c: New file.
92815         * lib/unistr/u16-next.c: New file.
92816         * lib/unistr/u32-next.c: New file.
92818         * modules/unistr/u8-prev: New file.
92819         * modules/unistr/u16-prev: New file.
92820         * modules/unistr/u32-prev: New file.
92821         * lib/unistr/u8-prev.c: New file.
92822         * lib/unistr/u16-prev.c: New file.
92823         * lib/unistr/u32-prev.c: New file.
92825         * modules/unistr/u8-set: New file.
92826         * modules/unistr/u16-set: New file.
92827         * modules/unistr/u32-set: New file.
92828         * lib/unistr/u8-set.c: New file.
92829         * lib/unistr/u16-set.c: New file.
92830         * lib/unistr/u32-set.c: New file.
92831         * lib/unistr/u-set.h: New file.
92833         * modules/unistr/u8-startswith: New file.
92834         * modules/unistr/u16-startswith: New file.
92835         * modules/unistr/u32-startswith: New file.
92836         * lib/unistr/u8-startswith.c: New file.
92837         * lib/unistr/u16-startswith.c: New file.
92838         * lib/unistr/u32-startswith.c: New file.
92839         * lib/unistr/u-startswith.h: New file.
92841         * modules/unistr/u8-stpcpy: New file.
92842         * modules/unistr/u16-stpcpy: New file.
92843         * modules/unistr/u32-stpcpy: New file.
92844         * lib/unistr/u8-stpcpy.c: New file.
92845         * lib/unistr/u16-stpcpy.c: New file.
92846         * lib/unistr/u32-stpcpy.c: New file.
92847         * lib/unistr/u-stpcpy.h: New file.
92849         * modules/unistr/u8-stpncpy: New file.
92850         * modules/unistr/u16-stpncpy: New file.
92851         * modules/unistr/u32-stpncpy: New file.
92852         * lib/unistr/u8-stpncpy.c: New file.
92853         * lib/unistr/u16-stpncpy.c: New file.
92854         * lib/unistr/u32-stpncpy.c: New file.
92855         * lib/unistr/u-stpncpy.h: New file.
92857         * modules/unistr/u8-strcat: New file.
92858         * modules/unistr/u16-strcat: New file.
92859         * modules/unistr/u32-strcat: New file.
92860         * lib/unistr/u8-strcat.c: New file.
92861         * lib/unistr/u16-strcat.c: New file.
92862         * lib/unistr/u32-strcat.c: New file.
92863         * lib/unistr/u-strcat.h: New file.
92865         * modules/unistr/u8-strchr: New file.
92866         * modules/unistr/u16-strchr: New file.
92867         * modules/unistr/u32-strchr: New file.
92868         * lib/unistr/u8-strchr.c: New file.
92869         * lib/unistr/u16-strchr.c: New file.
92870         * lib/unistr/u32-strchr.c: New file.
92872         * modules/unistr/u8-strcmp: New file.
92873         * modules/unistr/u16-strcmp: New file.
92874         * modules/unistr/u32-strcmp: New file.
92875         * lib/unistr/u8-strcmp.c: New file.
92876         * lib/unistr/u16-strcmp.c: New file.
92877         * lib/unistr/u32-strcmp.c: New file.
92879         * modules/unistr/u8-strcpy: New file.
92880         * modules/unistr/u16-strcpy: New file.
92881         * modules/unistr/u32-strcpy: New file.
92882         * lib/unistr/u8-strcpy.c: New file.
92883         * lib/unistr/u16-strcpy.c: New file.
92884         * lib/unistr/u32-strcpy.c: New file.
92885         * lib/unistr/u-strcpy.h: New file.
92887         * modules/unistr/u8-strcspn: New file.
92888         * modules/unistr/u16-strcspn: New file.
92889         * modules/unistr/u32-strcspn: New file.
92890         * lib/unistr/u8-strcspn.c: New file.
92891         * lib/unistr/u16-strcspn.c: New file.
92892         * lib/unistr/u32-strcspn.c: New file.
92893         * lib/unistr/u-strcspn.h: New file.
92895         * modules/unistr/u8-strdup: New file.
92896         * modules/unistr/u16-strdup: New file.
92897         * modules/unistr/u32-strdup: New file.
92898         * lib/unistr/u8-strdup.c: New file.
92899         * lib/unistr/u16-strdup.c: New file.
92900         * lib/unistr/u32-strdup.c: New file.
92901         * lib/unistr/u-strdup.h: New file.
92903         * modules/unistr/u8-strlen: New file.
92904         * modules/unistr/u16-strlen: New file.
92905         * modules/unistr/u32-strlen: New file.
92906         * lib/unistr/u8-strlen.c: New file.
92907         * lib/unistr/u16-strlen.c: New file.
92908         * lib/unistr/u32-strlen.c: New file.
92909         * lib/unistr/u-strlen.h: New file.
92911         * modules/unistr/u8-strmblen: New file.
92912         * modules/unistr/u16-strmblen: New file.
92913         * modules/unistr/u32-strmblen: New file.
92914         * lib/unistr/u8-strmblen.c: New file.
92915         * lib/unistr/u16-strmblen.c: New file.
92916         * lib/unistr/u32-strmblen.c: New file.
92918         * modules/unistr/u8-strmbtouc: New file.
92919         * modules/unistr/u16-strmbtouc: New file.
92920         * modules/unistr/u32-strmbtouc: New file.
92921         * lib/unistr/u8-strmbtouc.c: New file.
92922         * lib/unistr/u16-strmbtouc.c: New file.
92923         * lib/unistr/u32-strmbtouc.c: New file.
92925         * modules/unistr/u8-strncat: New file.
92926         * modules/unistr/u16-strncat: New file.
92927         * modules/unistr/u32-strncat: New file.
92928         * lib/unistr/u8-strncat.c: New file.
92929         * lib/unistr/u16-strncat.c: New file.
92930         * lib/unistr/u32-strncat.c: New file.
92931         * lib/unistr/u-strncat.h: New file.
92933         * modules/unistr/u8-strncmp: New file.
92934         * modules/unistr/u16-strncmp: New file.
92935         * modules/unistr/u32-strncmp: New file.
92936         * lib/unistr/u8-strncmp.c: New file.
92937         * lib/unistr/u16-strncmp.c: New file.
92938         * lib/unistr/u32-strncmp.c: New file.
92940         * modules/unistr/u8-strncpy: New file.
92941         * modules/unistr/u16-strncpy: New file.
92942         * modules/unistr/u32-strncpy: New file.
92943         * lib/unistr/u8-strncpy.c: New file.
92944         * lib/unistr/u16-strncpy.c: New file.
92945         * lib/unistr/u32-strncpy.c: New file.
92946         * lib/unistr/u-strncpy.h: New file.
92948         * modules/unistr/u8-strnlen: New file.
92949         * modules/unistr/u16-strnlen: New file.
92950         * modules/unistr/u32-strnlen: New file.
92951         * lib/unistr/u8-strnlen.c: New file.
92952         * lib/unistr/u16-strnlen.c: New file.
92953         * lib/unistr/u32-strnlen.c: New file.
92954         * lib/unistr/u-strnlen.h: New file.
92956         * modules/unistr/u8-strpbrk: New file.
92957         * modules/unistr/u16-strpbrk: New file.
92958         * modules/unistr/u32-strpbrk: New file.
92959         * lib/unistr/u8-strpbrk.c: New file.
92960         * lib/unistr/u16-strpbrk.c: New file.
92961         * lib/unistr/u32-strpbrk.c: New file.
92962         * lib/unistr/u-strpbrk.h: New file.
92964         * modules/unistr/u8-strrchr: New file.
92965         * modules/unistr/u16-strrchr: New file.
92966         * modules/unistr/u32-strrchr: New file.
92967         * lib/unistr/u8-strrchr.c: New file.
92968         * lib/unistr/u16-strrchr.c: New file.
92969         * lib/unistr/u32-strrchr.c: New file.
92971         * modules/unistr/u8-strspn: New file.
92972         * modules/unistr/u16-strspn: New file.
92973         * modules/unistr/u32-strspn: New file.
92974         * lib/unistr/u8-strspn.c: New file.
92975         * lib/unistr/u16-strspn.c: New file.
92976         * lib/unistr/u32-strspn.c: New file.
92977         * lib/unistr/u-strspn.h: New file.
92979         * modules/unistr/u8-strstr: New file.
92980         * modules/unistr/u16-strstr: New file.
92981         * modules/unistr/u32-strstr: New file.
92982         * lib/unistr/u8-strstr.c: New file.
92983         * lib/unistr/u16-strstr.c: New file.
92984         * lib/unistr/u32-strstr.c: New file.
92985         * lib/unistr/u-strstr.h: New file.
92987         * modules/unistr/u8-strtok: New file.
92988         * modules/unistr/u16-strtok: New file.
92989         * modules/unistr/u32-strtok: New file.
92990         * lib/unistr/u8-strtok.c: New file.
92991         * lib/unistr/u16-strtok.c: New file.
92992         * lib/unistr/u32-strtok.c: New file.
92993         * lib/unistr/u-strtok.h: New file.
92995         * modules/unistr/u8-uctomb: New file.
92996         * modules/unistr/u16-uctomb: New file.
92997         * modules/unistr/u32-uctomb: New file.
92998         * lib/unistr/u8-uctomb.c: New file.
92999         * lib/unistr/u16-uctomb.c: New file.
93000         * lib/unistr/u32-uctomb.c: New file.
93002         * MODULES.html.sh (Unicode string functions): Add the new modules.
93004 2007-01-08  Bruno Haible  <bruno@clisp.org>
93006         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
93007         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
93008         subdirectories.
93010 2007-01-08  Karl Berry  <karl@gnu.org>
93012         * doc/error.texi: mention that main() fns must set program_name
93013         when progname is used.
93015 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
93017         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
93018         WCTYPE_H is empty, for the benefit of builds from non-distclean
93019         directories.  Problem reported by Eric Blake in
93020         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
93022 2007-01-08  Bruno Haible  <bruno@clisp.org>
93024         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
93025         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
93026         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
93027         PROVIDE_CANONICALIZE_FILENAME_MODE.
93028         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
93030 2007-01-08  Bruno Haible  <bruno@clisp.org>
93032         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
93033         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
93034         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
93035         * lib/fts.c: Likewise.
93036         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
93038 2006-12-25  Bruno Haible  <bruno@clisp.org>
93040         * modules/utf8-ucs4-safe: New file.
93041         * lib/utf8-ucs4-safe.h: New file.
93042         * lib/unistr/utf8-ucs4-safe.c: New file.
93044         * modules/utf16-ucs4-safe: New file.
93045         * lib/utf16-ucs4-safe.h: New file.
93046         * lib/unistr/utf16-ucs4-safe.c: New file.
93048         * MODULES.html.sh (Unicode string functions): Add the new modules.
93050 2007-01-08  Bruno Haible  <bruno@clisp.org>
93052         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
93053         (Depends-on): Add unitypes.
93054         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
93055         (u8_mbtouc_aux): Move out to separate file.
93056         (u8_mbtouc): Use ucs4_t, uint8_t types.
93057         * lib/unistr/utf8-ucs4.c: New file.
93059         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
93060         (Depends-on): Add unitypes.
93061         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
93062         (u16_mbtouc_aux): Move out to separate file.
93063         (u16_mbtouc): Use ucs4_t, uint16_t types.
93064         * lib/unistr/utf16-ucs4.c: New file.
93066         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
93067         (Depends-on): Add unitypes.
93068         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
93069         (u8_uctomb_aux): Move out to separate file.
93070         (u8_uctomb): Use ucs4_t, uint8_t types.
93071         * lib/unistr/ucs4-utf8.c: New file.
93073         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
93074         (Depends-on): Add unitypes.
93075         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
93076         (u16_uctomb_aux): Move out to separate file.
93077         (u16_uctomb): Use ucs4_t, uint16_t types.
93078         * lib/unistr/ucs4-utf16.c: New file.
93080 2006-12-25  Bruno Haible  <bruno@clisp.org>
93082         * modules/unitypes: New file.
93083         * lib/unitypes.h: New file.
93084         * MODULES.html.sh (func_all_modules): New section "Unicode string
93085         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
93086         this section. Add unitypes.
93088 2007-01-08  Bruno Haible  <bruno@clisp.org>
93090         Avoid variable names that conflict with those from libtool.
93091         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
93092         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
93093         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
93094         library_names_spec to acl_library_names_spec, hardcode_* to
93095         acl_hardcode_*.
93096         Reported by Ralf Wildenhues.
93098 2007-01-08  Bruno Haible  <bruno@clisp.org>
93100         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
93101         definition.
93102         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
93103         definition.
93104         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
93105         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
93106         definition.
93107         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
93108         definition.
93109         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
93110         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
93111         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
93112         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
93113         definition.
93114         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
93115         definition.
93116         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
93117         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
93118         GC_USE_<algorithm>.
93119         * lib/gc-libgcrypt.c: Likewise.
93120         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
93121         * modules/gc-arctwo (configure.ac): Likewise.
93122         * modules/gc-des (configure.ac): Likewise.
93123         * modules/gc-hmac-md5 (configure.ac): Likewise.
93124         * modules/gc-hmac-sha1 (configure.ac): Likewise.
93125         * modules/gc-md2 (configure.ac): Likewise.
93126         * modules/gc-md4 (configure.ac): Likewise.
93127         * modules/gc-md5 (configure.ac): Likewise.
93128         * modules/gc-random (configure.ac): Likewise.
93129         * modules/gc-rijndael (configure.ac): Likewise.
93130         * modules/gc-sha1 (configure.ac): Likewise.
93132 2007-01-08  Bruno Haible  <bruno@clisp.org>
93134         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
93135         macro definition.
93136         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
93137         definition.
93138         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
93139         definition.
93140         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
93141         * modules/fcntl-safer (configure.ac): Likewise.
93142         * modules/fopen-safer (configure.ac): Likewise.
93143         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
93144         GNULIB_FWRITEERROR macro definition.
93146 2007-01-08  Bruno Haible  <bruno@clisp.org>
93148         * m4/gnulib-common.m4: New file.
93149         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
93150         (func_get_filelist): Add m4/gnulib-common.m4.
93152 2007-01-08  Bruno Haible  <bruno@clisp.org>
93154         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
93155         command.
93157 2007-01-08  Jim Meyering  <jim@meyering.net>
93159         Use a more robust test for a "can't happen" condition.
93160         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
93161         narrowed the st_size value.  Presuming the "can't happen" condition
93162         is true, that narrowing could conceivably convert an invalid st_size
93163         value into a valid one.  Instead, use a change based on Matthew
93164         Woehlke's original patch.
93166         Slight readability improvement: use an assert-like macro
93167         in place of literal "abort ()" uses.
93168         * lib/fts.c (fts_assert): Define.
93169         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
93170         Use this macro instead of a bare 'abort'.
93172 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
93174         Don't worry about using IRIX 5.3's wctype.h broken definitions;
93175         simply work around them.
93176         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
93177         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
93178         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
93179         declaring.
93180         Don't bother to define as macros, since the standard doesn't require it.
93181         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
93182         longer worry about IRIX 5.3.
93183         (HAVE_WCTYPE_CTMP_BUG): Remove.
93185 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
93187         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
93188         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
93189         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
93190         Problems reported by Georg Schwarz for IRIX 5.3.
93192         * gnulib-tool (autoconf_minversion): Take the maximum version number
93193         found, not the minimum.  Problem reported by James Youngman.
93195 2007-01-03  Karl Berry  <karl@gnu.org>
93197         * doc/error.texi: new file, explaining interaction with progname.
93198         * doc/gnulib.texi: include it.  Update copyright.
93200 2007-01-03  Simon Josefsson  <simon@josefsson.org>
93202         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
93203         AC_CANONICAL_HOST, to improve autobuild outputs.
93205 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
93206             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
93208         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
93209         sockets, server sockets, and other file descriptors.  Count errors
93210         to compute the return value.  Reorder the code a bit to be easier
93211         to follow.  Don't set event bits that were not requested (except
93212         POLLERR and POLLHUP).
93214 2007-01-01  Bruno Haible  <bruno@clisp.org>
93216         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
93218 2007-01-03  Jim Meyering  <jim@meyering.net>
93220         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
93222 2007-01-02  Bruno Haible  <bruno@clisp.org>
93224         * modules/settime (Include): Require timespec.h.
93225         * modules/nanosleep (Include): Likewise.
93227 2007-01-01  Bruno Haible  <bruno@clisp.org>
93229         * gnulib-tool (func_emit_copyright_notice): Bump year.
93230         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
93232 2007-01-01  Bruno Haible  <bruno@clisp.org>
93234         Improve support for OpenBSD.
93235         * build-aux/config.rpath (libname_spec): Export.
93236         (library_names_spec): New variable. Export.
93237         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
93238         library_names_spec from the config.rpath output. Locate shared library
93239         through the name pattern in library_names_spec.
93241 2007-01-01  Eric Blake  <ebb9@byu.net>
93243         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
93245 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
93247         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
93248         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
93249         assume the C locale, and avoid an "eval" that could cause trouble.
93250         Problem with SORT reported by Bob Proulx.
93252         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
93253         Define.  Trivial patch from Henning Nielsen Lund, originally
93254         sent to bug-grep@gnu.org today.
93256 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
93258         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
93259         struct stat.  Problem reported by Henning Nielsen Lund.
93260         * lib/acl.c: Include acl.h first, to check interface.  Don't
93261         bother to include sys/types.h and sys/stat.h again.
93263 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
93265         Import the following change from libc; problem reported by
93266         Sven Verdoolaege.
93268         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
93270         [BZ #1373]
93271         * lib/argp.h: Remove __NTH for __argp_usage inline function.
93273 2006-12-28  Jim Meyering  <jim@meyering.net>
93275         * build-aux/announce-gen: Do not assume that the package
93276         builds any of tar.gz, tar.bz2, and .xdelta files.
93277         Suggestion from Simon Josefsson.
93279 2006-12-28  Simon Josefsson  <simon@josefsson.org>
93281         * modules/announce-gen: New file.
93283 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
93285         * lib/mbchar.h: Just include <wctype.h>; the wctype module
93286         handles its gotchas now.
93287         * lib/mbswidth.c: Likewise.
93288         * lib/wcwidth.h: Likewise.
93289         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
93290         and iswcntrl; the wctype module does this stuff now.
93291         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
93292         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
93293         * modules/mbchar (Depends-on): Add wctype.
93294         * modules/mbswidth (Depends-on): Likewise.
93295         * modules/wcwidth (Depends-on): Likewise.
93297 2006-12-27  Eric Blake  <ebb9@byu.net>
93299         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
93300         module uses more than what <wctype.h> is required to provide.
93302 2006-12-26  Eric Blake  <ebb9@byu.net>
93304         * gnulib-tool (sed_extract_prog): Avoid space-tab.
93306 2006-12-26  Eric Blake  <ebb9@byu.net>
93308         * modules/absolute-header: New module.
93309         * modules/fcntl (Depends-on): Depend on it.
93310         * modules/inttypes (Depends-on): Likewise.
93311         * modules/stdint (Depends-on): Likewise.
93312         * modules/sys_stat (Depends-on): Likewise.
93313         * modules/wctype (Depends-on): Likewise.
93314         * MODULES.html.sh (Support for building libraries and
93315         executables): Document it.
93317 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
93319         * gnulib-tool (SED): Remove, undoing previous change.
93320         The problem was that it broke coreutils on Solaris, because
93321         "sed --posix" leaked into a makefile.
93322         (sed): New alias, if 'alias' and GNU sed.
93324 2006-12-24  Jim Meyering  <jim@meyering.net>
93326         Work around an fchownat bug in glibc-2.4:
93327         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
93328         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
93329         in spite of the -P option.
93330         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
93331         New macros.
93332         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
93333         * modules/openat (Files): Add lib/fchownat.c.
93334         * lib/openat.c (fchownat): Don't define here.  Move to...
93335         * lib/fchownat.c: ...this new file.
93337 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
93339         Fix bug reported by Bruno Haible in
93340         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
93341         where quotearg.c didn't compile on Mac OS X 10.2 because it
93342         lacks <wchar.h> and wint_t.
93343         * lib/wctype_.h (__wctype_wint_t): New type.
93344         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
93345         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
93346         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
93347         Arg is now of type __wctype_wint_t, not wint_t.
93348         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
93349         substitute HAVE_WINT_T.
93350         * modules/wctype (Files): Add m4/wint_t.m4.
93351         (wctype.h): Substitute HAVE_WINT_T.
93353 2006-12-23  Bruno Haible  <bruno@clisp.org>
93355         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
93357 2006-12-23  Bruno Haible  <bruno@clisp.org>
93359         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
93360         S_ISLNK.
93361         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
93362         mingw.
93364 2006-12-22  Bruno Haible  <bruno@clisp.org>
93366         * lib/copy-file.c: Include acl.h.
93367         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
93368         Close the file descriptors only after being done with copy_acl.
93369         * modules/copy-file (Depends-on): Add acl.
93371 2006-12-22  Bruno Haible  <bruno@clisp.org>
93373         * gnulib-tool (SED): New variable.
93374         Use $SED instead of sed everywhere.
93376 2006-12-22  Bruno Haible  <bruno@clisp.org>
93378         * modules/no-c++: New file.
93379         * m4/no-c++.m4: New file.
93380         * MODULES.html.sh (Support for building libraries and executables):
93381         Add no-c++.
93383 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
93385         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
93386         Include <limits.h>, and use its INT_MAX to rewrite the
93387         j loop so that it does not overflow 'int'.  Problem reported by
93388         Ralf Wildenhues in
93389         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
93390         Play it safe by shifting left by 1 rather than multiplying by 2,
93391         as GCC is less likely to optimize this away when the value
93392         is signed (when it assumes overflow leads to undefined behavior).
93393         Also, don't assume time_t uses two's complement.
93395 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
93397         * MODULES.html.sh: New module wctype.
93398         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
93399         * lib/fnmatch.c: Don't bother to include <wchar.h> before
93400         <wctype.h>, since the new wctype module should fix this.
93401         * lib/quotearg.c: Include <wctype.h> unconditionally, since
93402         the wctype module should arrange for it.
93403         * lib/regex_internal.h: Likewise.
93404         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
93405         since the wctype module should handle this now.
93406         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
93407         * modules/fnmatch (Depends-on): Add wctype.
93408         * modules/quotearg (Depends-on): Likewise.
93409         * modules/regex (Depends-on): Likewise.
93411 2006-12-19  Bruno Haible  <bruno@clisp.org>
93413         * lib/strdup.h [C++]: Wrap definitions in extern "C".
93414         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
93416 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93418         * modules/savewd (Depends-on): Fix dependency on fcntl.
93420 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
93422         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
93423         conforms to C99, rather than relying on the user's environment
93424         setting of STDINT_H.
93426 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
93427         and Eric Blake  <ebb9@byu.net>
93429         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
93430         This is more consistent with the other defines here.
93431         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
93432         Port to z/OS.  Problem reported by Paul Gilmartin.
93433         Change local vars to use gl_ prefix rather than ac_.
93434         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
93435         with other defines.
93436         * modules/double-slash-root: New module.
93437         * modules/dirname (Files): Remove m4/double-slash-root.m4.
93438         (Depends-on): Add double-slash-root.
93439         * MODULES.html.sh (File system functions): Mention new module.
93441 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
93443         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
93444         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
93445         This is for the benefit of gzip, which doesn't do i18n.
93447 2006-12-12  Jim Meyering  <jim@meyering.net>
93449         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
93450         Reported by Andreas Schwab <schwab@suse.de>.
93452 2006-12-12  Bruno Haible  <bruno@clisp.org>
93454         Merge these changes.
93455         2006-09-05  Bruno Haible  <bruno@clisp.org>
93456         * lib/iconvme.c (iconv_string): No need to save and restore errno when
93457         iconv_alloc succeeded.
93458         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
93459         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
93460         test for " && dest " at the end - dest is always != NULL there. Call
93461         iconv with 4xNULL arguments initially, to reset the state. Call iconv
93462         with 2xNULL arguments, also to flush the state storage. Handle the
93463         IRIX iconv behaviour. Realloc the final result, to throw away unused
93464         memory.
93466 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
93468         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
93469         and fchmodat unconditionally, since glibc 2.4 has them.
93470         Problem reported by Arkadiusz Miskiewicz.
93472 2006-12-10  Bruno Haible  <bruno@clisp.org>
93474         * gnulib-tool (func_import): Show the include files only for those
93475         modules that are copied and specified.
93476         Reported by Karl Berry.
93478 2006-12-08  Jim Meyering  <jim@meyering.net>
93480         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
93481         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
93483         * build-aux/announce-gen: Add two new options, both optional:
93484         --bootstrap-tools=TOOL_LIST
93485               a comma-separated list of tools, e.g.,
93486               autoconf,automake,bison,gnulib
93487         --gnulib-snapshot-date=DATE
93488               if gnulib is in the bootstrap tool list,
93489               then report this as the snapshot date.
93490               If not specified, use the current date/time.
93491               If you specify a date here, be sure it's UTC.
93493 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93495         * tests/test-argp-2.sh: Fix test to match actual output.
93496         (func_compare): Fix sed script to be portable.
93498 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
93500         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
93501         workaround for this case.  It is not autoconfigured now; offhand
93502         it's hard to see how to autoconfigure it.
93504 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
93506         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
93507         a directory that is about to be chowned.  Such a directory's
93508         initial file permissions should permit the owner only and this
93509         should not be changed until after the chown, since the group and
93510         other bits would be incorrect if they granted permission before
93511         the chown.
93513         Fix porting problem for iswctype reported by Georg Schwarz in:
93514         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
93515         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
93516         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
93517         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
93518         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
93520 2006-12-03  Jim Meyering  <jim@meyering.net>
93522         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
93523         p->fts_statp may not yet be defined.
93524         (fts_read): Instead, set it in the caller, once p->fts_statp is
93525         sure to be defined, and corresponds to a top-level directory.
93526         This bug made du -x fail.  Here's the coreutils test case:
93527         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
93528         Reported by Mike Frysinger.
93530 2006-12-01  Jim Meyering  <jim@meyering.net>
93532         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
93533         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
93534         Reported by Simon Josefsson.
93536 2006-11-30  Jim Meyering  <jim@meyering.net>
93538         * m4/warning.m4: Use the all-permissive copyright notice
93539         recommended by RMS (rather than LGPL).
93540         * m4/vararrays.m4: Likewise.
93541         * m4/flexmember.m4: Likewise.
93543 2006-11-29  Bruno Haible  <bruno@clisp.org>
93545         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
93546         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
93547         using +=.
93548         Reported by Simon Josefsson <simon@josefsson.org>.
93550 2006-11-28  James Youngman  <jay@gnu.org>
93552         * README: Advise users that they might find the bug-gnulib@gnu.org
93553         and autotools-announce@gnu.org mailing lists useful.
93555 2006-11-28  Bruno Haible  <bruno@clisp.org>
93557         * m4/ptrdiff_max.m4: Remove file.
93559 2006-11-21  Bruno Haible  <bruno@clisp.org>
93561         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
93562         _AC_COMPUTE_INT.
93563         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
93564         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
93565         _AC_COMPUTE_INT.
93566         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
93567         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
93568         _AC_COMPUTE_INT.
93569         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
93571 2006-11-28  Jim Meyering  <jim@meyering.net>
93573         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
93574         warning from "gcc -Wshadow" about shadowing the builtin.
93576 2006-11-27  Bruno Haible  <bruno@clisp.org>
93578         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
93579         _AC_COMPUTE_INT.
93580         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
93582 2006-11-27  Bruno Haible  <bruno@clisp.org>
93583             Paul Eggert  <eggert@cs.ucla.edu>
93585         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
93587 2006-11-26  Bruno Haible  <bruno@clisp.org>
93589         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
93590         noinst_LTLIBRARIES.
93592 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
93593             Bruno Haible  <bruno@clisp.org>
93595         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
93596         if compiling with "gcc -ansi".
93598 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
93600         Fix some incompatibilities with gcc -ansi -pedantic.
93601         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
93602         if compiling pedantically with GCC, unless it's C99 or later.
93603         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
93604         it mishandles gcc -ansi -pedantic as well.
93605         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
93606         if gcc -pedantic.
93607         * lib/regexec.c (check_node_accept_bytes): Don't use auto
93608         initializers for struct if -pedantic, unless it's C99 or later.
93610 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
93612         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
93613         Don't close an fd more than once. Identical atimes indicate
93614         success, not failure.
93616 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
93618         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
93620 2006-11-23  Jim Meyering  <jim@meyering.net>
93622         * build-aux/announce-gen: New file.  From coreutils.
93624 2006-11-22  Jim Meyering  <jim@meyering.net>
93626         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
93627         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
93628         (fts_read): Use a temporary to narrow the overused st_size member
93629         before using it in a switch statement.  Reported by Matthew Woehlke.
93631         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
93632         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
93634 2006-11-20  Bruno Haible  <bruno@clisp.org>
93636         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
93637         changequote instead of pairs of brackets.
93638         Reported by Andreas Schwab <schwab@suse.de>.
93640 2006-11-21  Jim Meyering  <jim@meyering.net>
93642         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
93643         so as to remain compatible with older compilers.
93644         Patch from Michael Deutschmann.
93646 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
93648         * MODULES.html.sh (File system functions): Add openat.
93650         * lib/openat.h (rpl_fstatat): New macro, if
93651         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
93652         (fstatat): Define to rpl_fstatat under the same conditions,
93653         unless COMPILING_FSTATAT.
93654         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
93655         seems to have the bug.
93656         * lib/fstatat.c: New file.
93657         * modules/openat (Files): Add it.
93659 2006-11-20  Bruno Haible  <bruno@clisp.org>
93661         * Makefile: New file.
93663 2006-11-20  Jim Meyering  <jim@meyering.net>
93665         The beginnings of syntax-related checks for gnulib.
93666         * lib/Makefile: New file.
93667         * lib/t-idcache: New script.  Ensure that the two halves of
93668         idcache.c stay in sync.
93670         * lib/idcache.c: Adjust comments in user- and group- portions to
93671         be more accurate, and to be consistent with one another.
93673 2006-11-20  Jim Meyering  <jim@meyering.net>
93675         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
93676         continue using the flexible array member (thus, this module performs
93677         half as many malloc calls), with the addition that...
93678         (getgroup, getuser): Consistently record a non-match via an empty
93679         "name" string, and map an empty string match to a NULL return value.
93680         * modules/idcache (Depends-on): Re-add flexmember.
93682         * lib/idcache.c (getuser): Remove all uses of the register keyword.
93683         (getuidbyname, getgroup, getgidbyname): Likewise.
93685         Use cleaner syntax: NULL rather than 0.
93686         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
93688 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
93690         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
93691         It mishandled the case where the group was missing.
93692         Problem reported by Greg Schafer.
93693         * modules/idcache: Likewise.
93695 2006-11-18  Jim Meyering  <jim@meyering.net>
93697         * check-module (%exempt_header): Add exception for some
93698         conditionally-included headers.
93700         * modules/i-ring (Depends-on): Add verify.
93701         (License): Change to LGPL.
93703 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
93705         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
93706         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
93707         and inttostr.h.  Use snprintf rather than uinttostr, so that
93708         LGPLed code doesn't depend on GPLed.
93710 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
93712         * modules/inline (License): Change from GPL to LGPL.
93714 2006-11-17  Jim Meyering  <jim@meyering.net>
93716         * modules/d-type (License): Switch to LGPL.
93718 2006-11-15  Bruno Haible  <bruno@clisp.org>
93720         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
93722 2006-11-15  Eric Blake  <ebb9@byu.net>
93724         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
93725         the module dependency.
93727 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93728             Bruno Haible  <bruno@clisp.org>
93730         * gnulib-tool (func_create_testdir): Add license consistency check.
93732 2006-11-15  Eric Blake  <ebb9@byu.net>
93734         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
93735         random "(cached)" in configure output.
93737 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93739         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
93740         test for conforming inttypes.h is both announced and cached.
93742         * MODULES.html.sh (seen_modules, seen_files): New variables.
93743         (func_module): Rewrite to use a few less gnulib-tool and sed
93744         invocations.  Avoid a couple of quadratic algorithms for ...
93745         (missed_modules, missed_files): ... these, with ...
93746         (func_append, func_tmpdir): ... these new functions, from
93747         gnulib-tool.  Analogously, install traps for cleanup.
93749         * tests/test-gc.c (main): Remove unused variables.
93750         * tests/test-read-file.c: Include stdlib.h, for 'free'.
93752 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
93754         * modules/inttostr (License): Change to LGPL.
93756 2006-11-14  Eric Blake  <ebb9@byu.net>
93758         * modules/tempname (License): Change to LGPL.
93760 2006-11-14  Eric Blake  <ebb9@byu.net>
93762         * doc/functions.texi (Function Portability): *printf functions on
93763         Cygwin now understand all POSIX size specifiers.
93765 2006-11-14  Bruno Haible  <bruno@clisp.org>
93767         * modules/c-ctype (License): Change to LGPL.
93769 2006-11-12  Bruno Haible  <bruno@clisp.org>
93771         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
93772         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
93773         for GNOME libraries, for which the include files are installed in
93774         subdirectories of $prefix/include.
93776 2006-11-12  Bruno Haible  <bruno@clisp.org>
93778         * m4/lib-link.m4: Require at least autoconf-2.54.
93779         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
93780         name to underscores for the --with option.
93782 2006-11-13  Bruno Haible  <bruno@clisp.org>
93784         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
93785         the tests directory.
93786         Reported by Ralf Wildenhues.
93788 2006-11-13  Bruno Haible  <bruno@clisp.org>
93790         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
93791         (func_emit_initmacro_end): Undo the override here.
93792         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
93793         Works around the famous automake error in coreutils.
93795 2006-11-13  Eric Blake  <ebb9@byu.net>
93797         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
93798         element, not its node.
93800 2006-11-12  Bruno Haible  <bruno@clisp.org>
93802         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
93803         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
93805 2006-11-12  Bruno Haible  <bruno@clisp.org>
93807         * gnulib-tool: New option --local-symlink.
93808         (func_usage): Document it.
93809         (lsymbolic): New variable.
93810         (func_import, func_create_testdir): If --symlink was not specified,
93811         test whether --local-symlink was specified and the file comes from
93812         the local_gnulib_dir.
93814 2006-11-12  Bruno Haible  <bruno@clisp.org>
93816         * gnulib-tool (func_ln): New function.
93817         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
93819 2006-11-12  Bruno Haible  <bruno@clisp.org>
93821         Finish support for source files in subdirectories.
93822         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
93823         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
93824         AUTOMAKE_OPTIONS.
93825         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
93827 2006-11-12  Bruno Haible  <bruno@clisp.org>
93829         * gnulib-tool (func_get_automake_snippet): Synthesize also an
93830         EXTRA_lib_SOURCES augmentation.
93831         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
93833 2006-11-12  Jim Meyering  <jim@meyering.net>
93835         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
93836         file descriptors.  This also averts a failure on systems with
93837         native openat support when a traversed directory lacks "x" access.
93838         * lib/fts_.h: Include "i-ring.h"
93839         (struct FTS) [fts_fd_ring]: New member.
93840         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
93841         (FCHDIR): Add parentheses.
93842         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
93843         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
93844         When descending, rather than simply closing the previous
93845         fts_cwd_fd value, push that file descriptor onto the ring.
93846         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
93847         (fts_open): Initialize the new fd_ring member.
93848         (fts_close): Clear the ring.
93849         (fts_safe_changedir): When possible, use our new fd_ring to skip
93850         the diropen and fstat and dev/ino comparison that would normally
93851         accompany a virtual `chdir ("..")'.
93853         * modules/fts (Depends-on): Add i-ring.
93854         * modules/i-ring: New module.
93855         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
93856         * m4/i-ring.m4: New file.
93858 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93860         * gnulib-tool (func_create_testdir): Fix replacement of
93861         `build-aux' in configure.ac.  Run autotools in gltests
93862         subdirectory.
93863         (func_create_testdir, func_create_megatestdir, test): There is
93864         no need for '--force' in most autotool invocations in a new
93865         tree.  Actually fail the whole test if any of the tools, or the
93866         configure or make stages fail.
93868         Sync from Automake.
93869         * build-aux/gnupload: Revert last change.  Add pointer to upload
93870         instructions of the GNU Maintenance Instructions.
93871         Suggestion by Karl Berry.
93873 2006-11-10  Jim Meyering  <jim@meyering.net>
93875         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
93877 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
93879         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
93880         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
93881         (bind_textdomain_codeset) [! ENABLE_NLS]:
93882         Evaluate all the arguments.  That way, callers get compatible behavior
93883         if the arguments have side effects.  Also, it avoids some GCC
93884         diagnostics in some cases; Joel E. Denny reported problems when Bison
93885         was configured with --enable-gcc-warnigs.
93887 2006-11-10  Jim Meyering  <jim@meyering.net>
93889         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
93890         relevant options in CFLAGS (like -O, -fno-inline) are taken into
93891         account.
93893 2006-11-10  Jim Meyering  <jim@meyering.net>
93895         * modules/inline: New file/module.
93896         * modules/xalloc (Files): Remove m4/inline.m4.
93897         (Depends-on): Add inline, instead.
93898         * modules/oset: Likewise.
93899         * modules/list: Likewise.
93901 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
93903         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
93904         Problem reported by Matthew Woehlke.
93906 2006-11-09  Bruno Haible  <bruno@clisp.org>
93908         * lib/tempname.c (gen_tempname): Remove variant that invokes
93909         __gen_tempname.
93910         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
93911         __gen_tempname.
93913 2006-11-08  Bruno Haible  <bruno@clisp.org>
93915         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
93916         to 'yes' instead of 'cross-compiling'.
93918 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
93920         * lib/quotearg.h (quotearg_free): New decl.
93921         * lib/quotearg.c (quotearg_free): New function.
93922         (slot0, nslots, slotvec0, slotvec):
93923         Now file-scope so that quotearg_free can get at them.
93925 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93927         Sync from Automake.
93928         * build-aux/gnupload: Add missing 'gnu' to example URL.
93929         Report by Karl Berry.
93931 2006-11-08  Bruno Haible  <bruno@clisp.org>
93933         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
93934         Suggested by Paul Eggert.
93936 2006-11-08  Jim Meyering  <jim@meyering.net>
93938         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
93939         It's already included if !_LIBC.
93940         (fts_safe_changedir): Add a comment.
93942 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
93944         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
93945         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
93946         Matthew Woehlke.
93948         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
93949         definitions up, to avoid colliding with change below.
93950         (static_inline) [HAVE_INLINE]: New macro.
93951         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
93952         Provide extern decls when !HAVE_INLINE.  Do not define unless
93953         static_inline is defined, either by us or by xmalloc.c.  Use
93954         static_inline rather than static inline.
93955         (XCALLOC): Optimize sizeof(T) = 1 case.
93956         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
93958 2006-11-07  Bruno Haible  <bruno@clisp.org>
93960         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
93961         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
93962         AC_C_INLINE.
93963         * modules/xalloc (Files): Add m4/inline.m4.
93965 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93967         * README: Fix typo.
93968         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
93969         (Miscellanous Notes): ...from this.
93971 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
93973         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
93974         Mention that offsetof should be used instead of sizeof.
93975         From Bruno Haible.
93977 2006-11-07  Bruno Haible  <bruno@clisp.org>
93979         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
93981 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
93983         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
93984         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
93985         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
93986         (gl_tree_add_before, gl_tree_add_after):
93987         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
93988         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
93989         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
93990         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
93991         (gl_linked_add_after, gl_linked_add_at): Likewise.
93992         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
93993         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
93994         (gl_tree_add_before, gl_tree_add_after): Likewise.
93995         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
93996         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
93997         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
93999 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94001         * lib/gl_oset.h: Use C comment style, not C++ comment style.
94003 2006-11-06  Bruno Haible  <bruno@clisp.org>
94005         * m4/inline.m4: New file.
94006         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
94007         * modules/list (Files): Add m4/inline.m4.
94008         * modules/oset (Files): Likewise.
94010 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
94012         * lib/idcache.c: Include <stddef.h>, for offsetof.
94013         (struct userid.name): Change from char * to a flexible array member.
94014         All uses changed.
94015         * modules/idcache (Depends-on): Add flexmember.
94017         * MODULES.html.sh (Core language properties): New module flexmember.
94018         * modules/flexmember, m4/flexmember.m4: New files.
94020         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
94021         inline functions that are identical with the old xnmalloc_inline,
94022         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
94023         that we can avoid some unnecessary integer multiplications and
94024         divisions in the common case where the element size is known at
94025         compile time.
94026         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
94027         needed.
94028         (xnboundedmalloc): Remove.
94029         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
94030         arguments, for consistency with rest of this header.
94031         (xcharalloc): Rewrite using XNMALLOC.
94032         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
94033         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
94034         versions have been moved to lib/xalloc.h and renamed to be the
94035         non-*_inline versions.
94036         (xmalloc, xrealloc): Implement without reference to the xnmalloc
94037         and xnrealloc functions, since those functions are now inline and
94038         now call us.
94039         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
94040         renaming described above.
94041         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
94042         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
94043         captures the dependency in AC_C_INLINE.
94045         New module canonicalize-lgpl, proposed by Charles Wilson in
94046         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
94047         with a few small changes afterwards.
94048         * MODULES.html.sh (File system functions): New module
94049         canonicalize-lgpl.
94050         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
94051         and canonicalize_file_name.
94052         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
94053         * modules/canonicalize-lgpl: New files.
94055 2006-11-05  Bruno Haible  <bruno@clisp.org>
94057         * gnulib-tool (func_import, func_create_testdir): Create directories
94058         also for files in subdirectories of lib/.
94060 2006-11-05  Bruno Haible  <bruno@clisp.org>
94062         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
94063         ANSI C compliant.
94065 2006-11-03  Bruno Haible  <bruno@clisp.org>
94067         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
94068         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
94069         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
94070         (xnboundedmalloc): New inline function.
94071         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
94072         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
94073         xmalloc.
94074         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
94075         xmalloc.
94076         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
94077         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
94078         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
94079         xmalloc.
94080         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
94081         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
94082         xmalloc.
94083         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
94084         gl_tree_add_after): Use XMALLOC instead of xmalloc.
94085         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
94086         xmalloc.
94087         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
94088         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
94089         gl_tree_add_after): Use XMALLOC instead of xmalloc.
94090         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
94091         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
94092         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
94093         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
94095 2006-11-03  Bruno Haible  <bruno@clisp.org>
94097         * lib/c-ctype.h [C++]: Define functions without name mangling.
94098         * lib/fwriteerror.h [C++]: Likewise.
94099         * lib/gcd.h [C++]: Likewise.
94100         * lib/linebreak.h [C++]: Likewise.
94102 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
94104         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
94105         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
94106         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
94107         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
94108         Check for functions and headers just once.
94109         Check for declaration of canonicalize_file_name.
94110         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
94112 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
94114         * gnulib-tool (func_import): Fix typo in actioncmd.
94116 2006-11-02  Bruno Haible  <bruno@clisp.org>
94118         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
94119         newline sequence in the Makefile.am snippet as a space, like "make"
94120         does.
94121         Reported by Roger Persson <perrog@gmail.com>.
94123 2006-11-01  Bruno Haible  <bruno@clisp.org>
94125         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
94126         already declared in <string.h>.
94127         * lib/strcase.h (strncasecmp): Don't declare it if yes.
94129 2006-11-01  Bruno Haible  <bruno@clisp.org>
94131         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
94132         * lib/strcase.h: Include <string.h>.
94133         (strcasecmp): Define to rpl_strcasecmp here.
94135 2006-11-01  Bruno Haible  <bruno@clisp.org>
94137         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
94139 2006-11-01  Eric Blake  <ebb9@byu.net>
94141         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
94143         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
94145 2006-10-29  Bruno Haible  <bruno@clisp.org>
94147         Make it compile in C++ mode.
94148         * lib/full-write.c (full_rw): Add a cast.
94150 2006-11-01  Bruno Haible  <bruno@clisp.org>
94152         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
94153         be POSIX compliant.
94154         Reported by Roger Persson <perrog@gmail.com>.
94156 2006-11-01  Eric Blake  <ebb9@byu.net>
94158         * lib/getopt_.h: Fix comments.
94160 2006-10-31  Eric Blake  <ebb9@byu.net>
94162         * modules/tmpdir (Depends-on): Add sys_stat.
94163         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
94164         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
94165         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
94166         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
94167         tempname.
94169 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
94171         Avoid some C++ diagnostics reported by Bruno Haible.
94172         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
94173         xmalloc.
94174         (quotearg_alloc): Use xcharalloc rather than xmalloc.
94175         (struct slotvec): Move to top level.
94176         (quotearg_n_options): Rewrite to avoid xmalloc.
94177         * lib/xalloc.h (xcharalloc): New function.
94178         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
94179         [defined __cplusplus]: Add function template that provides result
94180         type propagation.  This part of the change is from Bruno Haible.
94182 2006-10-29  Bruno Haible  <bruno@clisp.org>
94184         Make it compile in C++ mode.
94185         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
94186         * lib/strnlen1.c (strnlen1): Cast memchr result.
94187         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
94188         * lib/clean-temp.c (string_equals, string_hash): Add casts.
94189         (create_temp_dir): Rename local variable 'template'.
94190         (compile_csharp_using_sscli): Add cast.
94191         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
94192         * lib/findprog.c (find_in_path): Likewise.
94193         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
94194         * lib/wait-process.c (register_slave_subprocess): Likewise.
94196 2006-10-22  Bruno Haible  <bruno@clisp.org>
94198         * modules/tsearch: New file.
94199         * lib/tsearch.h: New file.
94200         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
94201         * m4/tsearch.m4: New file.
94202         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
94204 2006-10-29  Eric Blake  <ebb9@byu.net>
94206         * lib/arcfour.c: Assume config.h.
94207         * lib/arctwo.c: Likewise.
94208         * lib/base64.c: Likewise.
94209         * lib/check-version.c: Likewise.
94210         * lib/crc.c: Likewise.
94211         * lib/des.c: Likewise.
94212         * lib/gc-gnulib.c: Likewise.
94213         * lib/gc-libgcrypt.c: Likewise.
94214         * lib/gc-pbkdf2-sha1.c: Likewise.
94215         * lib/getaddrinfo.c: Likewise.
94216         * lib/getdelim.c: Likewise.
94217         * lib/getline.c: Likewise.
94218         * lib/hmac-md5.c: Likewise.
94219         * lib/hmac-sha1.c: Likewise.
94220         * lib/iconvme.c: Likewise.
94221         * lib/md2.c: Likewise.
94222         * lib/md4.c: Likewise.
94223         * lib/memxor.c: Likewise.
94224         * lib/read-file.c: Likewise.
94225         * lib/readline.c: Likewise.
94226         * lib/rijndael-alg-fst.c: Likewise.
94227         * lib/rijndael-api-fst.c: Likewise.
94228         * lib/xgetdomainname.c: Likewise.
94230 2006-10-28  Eric Blake  <ebb9@byu.net>
94232         * lib/xstrndup.c: Assume config.h.
94234 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
94236         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
94237         stat-macros.h is now for our own macros, whereas stat_h is for
94238         macros in the <sys/stat.h> name space.
94239         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
94240         (STAT_MACROS_H): Remove.
94241         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
94242         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
94243         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
94244         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
94245         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
94246         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
94247         Move these macros to ...
94248         * lib/stat_.h: here.  Don't include stat-macros.h.
94249         * lib/canonicalize.c: Don't include stat-macros.h.
94250         * lib/chown.c: Likewise.
94251         * lib/euidaccess.c: Likewise.
94252         * lib/file-type.c: Likewise.
94253         * lib/filemode.c: Likewise.
94254         * lib/glob.c: Likewise.
94255         * lib/isapipe.c: Likewise.
94256         * lib/lchown.c: Likewise.
94257         * lib/lstat.c: Likewise.
94258         * lib/mkdir-p.c: Likewise.
94259         * lib/rmdir.c: Likewise.
94260         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
94261         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
94262         unless mkdir isn't declared, to speed up 'configure'.
94263         Always create sys/stat.h, since it's unlikely any real sys/stat.h
94264         would define all the S_* symbols.
94265         * modules/canonicalize (Depends-on):
94266         Depend on sys_stat, not stat-macros.
94267         * modules/chown: Likewise.
94268         * modules/euidaccess: Likewise.
94269         * modules/filemode: Likewise.
94270         * modules/file-type: Likewise.
94271         * modules/glob: Likewise.
94272         * modules/isapipe: Likewise.
94273         * modules/lchown: Likewise.
94274         * modules/lstat: Likewise.
94275         * modules/mkancesdirs: Likewise.
94276         * modules/rmdir: Likewise.
94277         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
94278         * modules/modechange: Likewise.
94279         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
94280         (configure.ac): Remove gl_STAT_MACROS.
94281         * modules/sys_stat (Depends-on): Remove stat-macros.
94283 2006-10-27  Bruno Haible  <bruno@clisp.org>
94285         * m4/signed.m4: Remove file.
94286         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
94287         invocation.
94288         * modules/vasnprintf (Files): Remove m4/signed.m4.
94290 2006-10-27  Bruno Haible  <bruno@clisp.org>
94292         Update to GNU gettext 0.16.
94293         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
94294         m4/inttypes-h.m4, m4/signed.m4.
94295         * m4/gettext.m4: Update to GNU gettext 0.16.
94296         * m4/intl.m4: New file, from GNU gettext.
94297         * m4/intldir.m4: New file, from GNU gettext.
94298         * config/srclist.txt: Update
94300 2006-10-27  Eric Blake  <ebb9@byu.net>
94302         * MODULES.html.sh: Document tempname.
94303         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
94304         dependencies.
94305         (Files): Move lib/tempname.c...
94306         * modules/tempname: ...to this new module.
94307         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
94308         (gl_PREREQ_TEMPNAME): Move...
94309         * m4/tempname.m4: ...to this new file.
94310         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
94311         * modules/sys_stat (Depends-on): Add stat-macros.
94312         * lib/stat_.h (includes): Pick up stat macros.
94313         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
94314         if stat macros are broken.
94315         * lib/tempname.c (includes): No need to include "stat-macros.h".
94316         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
94317         (direxists, __path_search) [!_LIBC]: Don't compile these in
94318         gnulib; the tmpdir module covers that.
94319         * lib/tempname.h: New file.
94321 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
94323         * COPYING: Explain how gnulib-tool converts licence headers.
94324         Almost all wording by Eric Blake.
94326 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
94328         * lib/mbchar.h (is_basic_table): Make read-only.
94329         * lib/mbchar.c (is_basic_table): Likewise.
94330         Reported by John Darrington.
94332 2006-10-25  Bruno Haible  <bruno@clisp.org>
94334         * lib/progname.h (set_program_name): Undefine before defining.
94336 2006-10-25  Bruno Haible  <bruno@clisp.org>
94338         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
94339         false for non-gcc C++ compilers.
94340         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
94342 2006-10-24  Bruno Haible  <bruno@clisp.org>
94344         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
94345         iconv implementations like Irix iconv.
94347 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
94349         * modules/vararrays: New file.
94350         * m4/vararrays.m4: New file, taken from diffutils.
94351         * MODULES.html.sh: New module vararrays.
94353 2006-10-24  Karl Berry  <karl@gnu.org>
94355         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
94356         Don't call GNU Unix.
94358 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94360         * users.txt: Add Libtool.
94362         Sync from Libtool:
94364         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
94366         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
94367         to gnulib's policy of including config.h unconditionally.
94369 2006-10-24  Bruno Haible  <bruno@clisp.org>
94371         * modules/wcwidth (Files): Add m4/wint_t.m4.
94372         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
94373         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
94375 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
94377         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
94378         to pacify GCC with some -W flags enabled.  Problem reported by
94379         Bruno Haible.
94381 2006-10-24  Jim Meyering  <jim@meyering.net>
94383         * MODULES.html.sh: Remove uinttostr.  It's not a module.
94384         Reported by Karl Berry.
94386 2006-10-23  Bruno Haible  <bruno@clisp.org>
94388         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
94390 2006-10-24  Bruno Haible  <bruno@clisp.org>
94392         * lib/gl_list.h: Use C comment style, not C++ comment style.
94394 2006-10-23  Eric Blake  <ebb9@byu.net>
94396         * lib/getaddrinfo.c (includes): Add missing include.
94398 2006-10-23  Bruno Haible  <bruno@clisp.org>
94399             Paul Eggert  <eggert@cs.ucla.edu>
94401         Ability to rename obstack_free.
94402         * lib/obstack.h (__obstack_free): New macro. Declare instead of
94403         obstack_free.
94404         (obstack_free): Invoke the __obstack_free macro.
94405         * lib/obstack.c (obstack_free): Use __obstack_free macro.
94407 2006-10-23  Bruno Haible  <bruno@clisp.org>
94408             Paul Eggert  <eggert@cs.ucla.edu>
94410         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
94411         __argc, __argv from the declaration. (They are defined as macros on
94412         mingw.)
94414 2006-10-22  Bruno Haible  <bruno@clisp.org>
94416         * doc/gnulib-intro.texi: New file.
94417         * doc/gnulib.texi: Include it.
94419 2006-10-21  Bruno Haible  <bruno@clisp.org>
94421         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
94422         "Introduction", "Miscellanous Notes", "Particular Modules".
94424 2006-10-21  Bruno Haible  <bruno@clisp.org>
94426         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94427         Change mostlyclean-local rule to avoid sh syntax error from bash
94428         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
94430 2006-10-23  Jim Meyering  <jim@meyering.net>
94432         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
94433         in place of snprintf.
94435         * modules/inttostr (Files): Add lib/uinttostr.c.
94436         * lib/uinttostr.c (inttostr): New file/function.
94437         * lib/inttostr.h (uinttostr): Declare.
94438         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
94439         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
94440         Add uinttostr.
94441         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
94443 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
94445         * lib/canonicalize.c (ELOOP): Define if not already defined.
94446         Problem reported by Bruno Haible in
94447         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
94449 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
94451         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
94452         Problem reported by Perry Smith and Ville Laurikari.
94454         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
94455         uses.
94457 2006-10-19  Bruno Haible  <bruno@clisp.org>
94459         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
94460         for mingw.
94462 2006-10-19  Bruno Haible  <bruno@clisp.org>
94464         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
94465         Needed for mingw.
94467 2006-10-19  Bruno Haible  <bruno@clisp.org>
94469         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
94471 2006-10-19  Bruno Haible  <bruno@clisp.org>
94473         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
94474         it.
94476 2006-10-19  Bruno Haible  <bruno@clisp.org>
94478         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
94479         invocation.
94481 2006-10-19  Bruno Haible  <bruno@clisp.org>
94483         * gnulib-tool (func_create_testdir): Don't include ftruncate and
94484         mountlist by default.
94486 2006-10-16  Bruno Haible  <bruno@clisp.org>
94488         * lib/c-strstr.c: Include c-strstr.h.
94490 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
94492         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
94493         in a slash.
94495 2006-10-18  Bruno Haible  <bruno@clisp.org>
94497         * lib/lock.h [C++]: Wrap definitions in extern "C".
94499 2006-10-18  Bruno Haible  <bruno@clisp.org>
94501         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
94502         gl_LIBOBJS list.
94504 2006-10-18  Bruno Haible  <bruno@clisp.org>
94506         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
94508 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
94510         * lib/xstrtol.h: Include gettext.h.
94511         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
94512         Problem reported by Eric Blake.
94513         * modules/xstrtol (Depends-on): Add gettext-h.
94515 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
94517         * lib/strftime.c (advance): New macro.
94518         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
94519         incomplete type, so you can't add 0 to it.  Problem and patch
94520         reported by Eelco Dolstra for dietlibc.
94522 2006-10-18  Jim Meyering  <jim@meyering.net>
94524         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
94525         type for a local, and rename it: s/up/user_proc/.
94527 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
94529         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
94530         READ_UTMP_USER_PROCESS.
94531         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
94533 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
94535         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
94536         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
94538 2006-10-17  Eric Blake  <ebb9@byu.net>
94540         * lib/sigprocmask.c (sigprocmask): Fix typo.
94542         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
94544         * modules/clean-temp (Makefile.am): Don't add to make output...
94545         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
94546         config.h.
94548 2006-10-17  Bruno Haible  <bruno@clisp.org>
94550         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
94551         differently if DEFAULT_TEXT_DOMAIN is set.
94553 2006-10-16  Bruno Haible  <bruno@clisp.org>
94555         * lib/clean-temp.c: Include fwriteerror.h.
94557 2006-10-16  Bruno Haible  <bruno@clisp.org>
94559         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
94561 2006-10-16  Bruno Haible  <bruno@clisp.org>
94563         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
94564         * lib/sigprocmask.h: Include <sys/types.h>.
94565         (sigset_t): Use the system's definition if present.
94567 2006-10-17  Eric Blake  <ebb9@byu.net>
94569         * lib/xvasprintf.c (includes): Assume config.h.
94570         * lib/xasprintf.c (includes): Likewise.
94572 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
94574         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
94575         at least as wide as intmax_t.
94577 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
94579         (Imported from Automake.)
94580         * build-aux/gnupload: Update to version 1.1 of directive file.
94582 2006-10-16  Eric Blake  <ebb9@byu.net>
94584         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
94585         match Automake 1.10a.
94587 2006-10-14  Bruno Haible  <bruno@clisp.org>
94589         * modules/sigprocmask: New file.
94590         * lib/sigprocmask.h: New file.
94591         * lib/sigprocmask.c: New file.
94592         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
94593         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
94594         request sigprocmask.o.
94595         (gl_PREREQ_SIGPROCMASK): New macro.
94596         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
94597         (Depends-on): Add sigprocmask.
94598         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
94599         gt_SIGNALBLOCKING. Test for 'raise' only once.
94600         * lib/fatal-signal.c: Include sigprocmask.h.
94601         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
94602         unblock_fatal_signals): Define always.
94603         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
94604         sigprocmask.
94606 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
94608         Sync from Automake.
94609         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
94610         which incorrectly sets the mode of an existing destination
94611         directory.  In some cases the unpatched install-sh could do the
94612         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
94613         system.  We hope this is rare in practice, but it's clearly worth
94614         fixing.  Problem reported by Alex Unleashed in
94615         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
94616         Also, don't bother to check for -m bugs unless we're using -m;
94617         suggested by Stepan Kasal.
94619 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94621         Sync from Automake.
94622         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
94623         `-c' flag, so they appear at the same position as in %FASTDEP%
94624         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
94625         which ignores unknown options only after the first non-option.
94626         Bug report against M4 by Nelson H. F. Beebe.
94628 2006-10-13  Jim Meyering  <jim@meyering.net>
94630         Fix a bug in yesterday's change.
94631         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
94632         p->fts_statp->st_dev would be used uninitialized.
94633         Ensures that we always call fts_stat on the very first entry.
94634         Miklos Szeredi reported that find -xdev stopped working.
94636 2006-10-12  Bruno Haible  <bruno@clisp.org>
94638         * gnulib-tool (func_get_automake_snippet): Append an automatically
94639         computed EXTRA_DIST augmentation.
94640         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
94641         * modules/alloca-opt (Makefile.am): Likewise.
94642         * modules/allocsa (Makefile.am): Likewise.
94643         * modules/arcfour (Makefile.am): Likewise.
94644         * modules/arctwo (Makefile.am): Likewise.
94645         * modules/argmatch (Makefile.am): Likewise.
94646         * modules/argz (Makefile.am): Likewise.
94647         * modules/atexit (Makefile.am): Likewise.
94648         * modules/backupfile (Makefile.am): Likewise.
94649         * modules/byteswap (Makefile.am): Likewise.
94650         * modules/c-strtod (Makefile.am): Likewise.
94651         * modules/c-strtold (Makefile.am): Likewise.
94652         * modules/calloc (Makefile.am): Likewise.
94653         * modules/canon-host (Makefile.am): Likewise.
94654         * modules/canonicalize (Makefile.am): Likewise.
94655         * modules/chdir-long (Makefile.am): Likewise.
94656         * modules/chdir-safer (Makefile.am): Likewise.
94657         * modules/check-version (Makefile.am): Likewise.
94658         * modules/chown (Makefile.am): Likewise.
94659         * modules/cloexec (Makefile.am): Likewise.
94660         * modules/close-stream (Makefile.am): Likewise.
94661         * modules/closeout (Makefile.am): Likewise.
94662         * modules/crc (Makefile.am): Likewise.
94663         * modules/csharpexec (Makefile.am): Likewise.
94664         * modules/cycle-check (Makefile.am): Likewise.
94665         * modules/des (Makefile.am): Likewise.
94666         * modules/dev-ino (Makefile.am): Likewise.
94667         * modules/dirfd (Makefile.am): Likewise.
94668         * modules/dirname (Makefile.am): Likewise.
94669         * modules/dup2 (Makefile.am): Likewise.
94670         * modules/eealloc (Makefile.am): Likewise.
94671         * modules/error (Makefile.am): Likewise.
94672         * modules/euidaccess (Makefile.am): Likewise.
94673         * modules/exclude (Makefile.am): Likewise.
94674         * modules/exitfail (Makefile.am): Likewise.
94675         * modules/fcntl-safer (Makefile.am): Likewise.
94676         * modules/fcntl (Makefile.am): Likewise.
94677         * modules/file-type (Makefile.am): Likewise.
94678         * modules/fileblocks (Makefile.am): Likewise.
94679         * modules/filemode (Makefile.am): Likewise.
94680         * modules/filenamecat (Makefile.am): Likewise.
94681         * modules/fnmatch (Makefile.am): Likewise.
94682         * modules/fopen-safer (Makefile.am): Likewise.
94683         * modules/fpending (Makefile.am): Likewise.
94684         * modules/fprintftime (Makefile.am): Likewise.
94685         * modules/free (Makefile.am): Likewise.
94686         * modules/fsusage (Makefile.am): Likewise.
94687         * modules/ftruncate (Makefile.am): Likewise.
94688         * modules/fts (Makefile.am): Likewise.
94689         * modules/gc-arcfour (Makefile.am): Likewise.
94690         * modules/gc-des (Makefile.am): Likewise.
94691         * modules/gc-hmac-md5 (Makefile.am): Likewise.
94692         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
94693         * modules/gc-md4 (Makefile.am): Likewise.
94694         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
94695         * modules/gc-sha1 (Makefile.am): Likewise.
94696         * modules/gc (Makefile.am): Likewise.
94697         * modules/getaddrinfo (Makefile.am): Likewise.
94698         * modules/getcwd (Makefile.am): Likewise.
94699         * modules/getdelim (Makefile.am): Likewise.
94700         * modules/getdomainname (Makefile.am): Likewise.
94701         * modules/getgroups (Makefile.am): Likewise.
94702         * modules/gethostname (Makefile.am): Likewise.
94703         * modules/gethrxtime (Makefile.am): Likewise.
94704         * modules/getline (Makefile.am): Likewise.
94705         * modules/getloadavg (Makefile.am): Likewise.
94706         * modules/getlogin_r (Makefile.am): Likewise.
94707         * modules/getndelim2 (Makefile.am): Likewise.
94708         * modules/getopt (Makefile.am): Likewise.
94709         * modules/getpagesize (Makefile.am): Likewise.
94710         * modules/getpass-gnu (Makefile.am): Likewise.
94711         * modules/getpass (Makefile.am): Likewise.
94712         * modules/getsubopt (Makefile.am): Likewise.
94713         * modules/gettime (Makefile.am): Likewise.
94714         * modules/gettimeofday (Makefile.am): Likewise.
94715         * modules/getugroups (Makefile.am): Likewise.
94716         * modules/getusershell (Makefile.am): Likewise.
94717         * modules/glob (Makefile.am): Likewise.
94718         * modules/group-member (Makefile.am): Likewise.
94719         * modules/hard-locale (Makefile.am): Likewise.
94720         * modules/hash (Makefile.am): Likewise.
94721         * modules/hmac-md5 (Makefile.am): Likewise.
94722         * modules/hmac-sha1 (Makefile.am): Likewise.
94723         * modules/human (Makefile.am): Likewise.
94724         * modules/idcache (Makefile.am): Likewise.
94725         * modules/imaxabs (Makefile.am): Likewise.
94726         * modules/imaxdiv (Makefile.am): Likewise.
94727         * modules/inet_ntop (Makefile.am): Likewise.
94728         * modules/inet_pton (Makefile.am): Likewise.
94729         * modules/intprops (Makefile.am): Likewise.
94730         * modules/inttostr (Makefile.am): Likewise.
94731         * modules/inttypes (Makefile.am): Likewise.
94732         * modules/isapipe (Makefile.am): Likewise.
94733         * modules/javaversion (Makefile.am): Likewise.
94734         * modules/lchmod (Makefile.am): Likewise.
94735         * modules/lchown (Makefile.am): Likewise.
94736         * modules/localcharset (Makefile.am): Likewise.
94737         * modules/long-options (Makefile.am): Likewise.
94738         * modules/lstat (Makefile.am): Likewise.
94739         * modules/malloc (Makefile.am): Likewise.
94740         * modules/mathl (Makefile.am): Likewise.
94741         * modules/mbchar (Makefile.am): Likewise.
94742         * modules/md2 (Makefile.am): Likewise.
94743         * modules/md4 (Makefile.am): Likewise.
94744         * modules/md5 (Makefile.am): Likewise.
94745         * modules/memcasecmp (Makefile.am): Likewise.
94746         * modules/memchr (Makefile.am): Likewise.
94747         * modules/memcmp (Makefile.am): Likewise.
94748         * modules/memcoll (Makefile.am): Likewise.
94749         * modules/memcpy (Makefile.am): Likewise.
94750         * modules/memmem (Makefile.am): Likewise.
94751         * modules/memmove (Makefile.am): Likewise.
94752         * modules/mempcpy (Makefile.am): Likewise.
94753         * modules/memrchr (Makefile.am): Likewise.
94754         * modules/memset (Makefile.am): Likewise.
94755         * modules/memxor (Makefile.am): Likewise.
94756         * modules/mkancesdirs (Makefile.am): Likewise.
94757         * modules/mkdir-p (Makefile.am): Likewise.
94758         * modules/mkdir (Makefile.am): Likewise.
94759         * modules/mkdtemp (Makefile.am): Likewise.
94760         * modules/mkstemp (Makefile.am): Likewise.
94761         * modules/mktime (Makefile.am): Likewise.
94762         * modules/modechange (Makefile.am): Likewise.
94763         * modules/mountlist (Makefile.am): Likewise.
94764         * modules/nanosleep (Makefile.am): Likewise.
94765         * modules/obstack (Makefile.am): Likewise.
94766         * modules/openat (Makefile.am): Likewise.
94767         * modules/pagealign_alloc (Makefile.am): Likewise.
94768         * modules/pathmax (Makefile.am): Likewise.
94769         * modules/physmem (Makefile.am): Likewise.
94770         * modules/poll (Makefile.am): Likewise.
94771         * modules/posixtm (Makefile.am): Likewise.
94772         * modules/posixver (Makefile.am): Likewise.
94773         * modules/putenv (Makefile.am): Likewise.
94774         * modules/quote (Makefile.am): Likewise.
94775         * modules/quotearg (Makefile.am): Likewise.
94776         * modules/raise (Makefile.am): Likewise.
94777         * modules/read-file (Makefile.am): Likewise.
94778         * modules/readline (Makefile.am): Likewise.
94779         * modules/readlink (Makefile.am): Likewise.
94780         * modules/readtokens (Makefile.am): Likewise.
94781         * modules/readutmp (Makefile.am): Likewise.
94782         * modules/realloc (Makefile.am): Likewise.
94783         * modules/regex (Makefile.am): Likewise.
94784         * modules/rename-dest-slash (Makefile.am): Likewise.
94785         * modules/rename (Makefile.am): Likewise.
94786         * modules/rijndael (Makefile.am): Likewise.
94787         * modules/rmdir (Makefile.am): Likewise.
94788         * modules/rpmatch (Makefile.am): Likewise.
94789         * modules/safe-read (Makefile.am): Likewise.
94790         * modules/safe-write (Makefile.am): Likewise.
94791         * modules/same-inode (Makefile.am): Likewise.
94792         * modules/same (Makefile.am): Likewise.
94793         * modules/save-cwd (Makefile.am): Likewise.
94794         * modules/savedir (Makefile.am): Likewise.
94795         * modules/setenv (Makefile.am): Likewise.
94796         * modules/settime (Makefile.am): Likewise.
94797         * modules/sha1 (Makefile.am): Likewise.
94798         * modules/sig2str (Makefile.am): Likewise.
94799         * modules/snprintf (Makefile.am): Likewise.
94800         * modules/stat-macros (Makefile.am): Likewise.
94801         * modules/stat-time (Makefile.am): Likewise.
94802         * modules/stdbool (Makefile.am): Likewise.
94803         * modules/stdint (Makefile.am): Likewise.
94804         * modules/stdlib-safer (Makefile.am): Likewise.
94805         * modules/stpcpy (Makefile.am): Likewise.
94806         * modules/stpncpy (Makefile.am): Likewise.
94807         * modules/strcase (Makefile.am): Likewise.
94808         * modules/strcasestr (Makefile.am): Likewise.
94809         * modules/strchrnul (Makefile.am): Likewise.
94810         * modules/strcspn (Makefile.am): Likewise.
94811         * modules/strdup (Makefile.am): Likewise.
94812         * modules/strerror (Makefile.am): Likewise.
94813         * modules/strftime (Makefile.am): Likewise.
94814         * modules/strndup (Makefile.am): Likewise.
94815         * modules/strnlen (Makefile.am): Likewise.
94816         * modules/strpbrk (Makefile.am): Likewise.
94817         * modules/strsep (Makefile.am): Likewise.
94818         * modules/strstr (Makefile.am): Likewise.
94819         * modules/strtod (Makefile.am): Likewise.
94820         * modules/strtoimax (Makefile.am): Likewise.
94821         * modules/strtok_r (Makefile.am): Likewise.
94822         * modules/strtol (Makefile.am): Likewise.
94823         * modules/strtoll (Makefile.am): Likewise.
94824         * modules/strtoul (Makefile.am): Likewise.
94825         * modules/strtoull (Makefile.am): Likewise.
94826         * modules/strtoumax (Makefile.am): Likewise.
94827         * modules/strverscmp (Makefile.am): Likewise.
94828         * modules/sys_socket (Makefile.am): Likewise.
94829         * modules/sys_stat (Makefile.am): Likewise.
94830         * modules/sysexits (Makefile.am): Likewise.
94831         * modules/time_r (Makefile.am): Likewise.
94832         * modules/timegm (Makefile.am): Likewise.
94833         * modules/timespec (Makefile.am): Likewise.
94834         * modules/tmpfile-safer (Makefile.am): Likewise.
94835         * modules/trim (Makefile.am): Likewise.
94836         * modules/unistd-safer (Makefile.am): Likewise.
94837         * modules/unlinkdir (Makefile.am): Likewise.
94838         * modules/unlocked-io (Makefile.am): Likewise.
94839         * modules/userspec (Makefile.am): Likewise.
94840         * modules/utime (Makefile.am): Likewise.
94841         * modules/utimecmp (Makefile.am): Likewise.
94842         * modules/utimens (Makefile.am): Likewise.
94843         * modules/vasnprintf (Makefile.am): Likewise.
94844         * modules/vasprintf (Makefile.am): Likewise.
94845         * modules/vsnprintf (Makefile.am): Likewise.
94846         * modules/xalloc (Makefile.am): Likewise.
94847         * modules/xgetcwd (Makefile.am): Likewise.
94848         * modules/xnanosleep (Makefile.am): Likewise.
94849         * modules/xreadlink (Makefile.am): Likewise.
94850         * modules/xstrtod (Makefile.am): Likewise.
94851         * modules/xstrtol (Makefile.am): Likewise.
94852         * modules/xstrtold (Makefile.am): Likewise.
94853         * modules/yesno (Makefile.am): Likewise.
94854         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
94856 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
94858         * modules/error (Makefile.am): Distribute files through
94859         EXTRA_DIST, not lib_SOURCES.
94861 2006-10-12  Eric Blake  <ebb9@byu.net>
94863         * modules/error (Makefile.am): Distribute files in /lib.
94864         * modules/obstack (Makefile.am): Likewise.
94866 2006-10-12  Bruno Haible  <bruno@clisp.org>
94868         * modules/acl (Makefile.am): Distribute all files in lib/ through
94869         EXTRA_DIST.
94870         * modules/arcfour (Makefile.am): Likewise.
94871         * modules/arctwo (Makefile.am): Likewise.
94872         * modules/argmatch (Makefile.am): Likewise.
94873         * modules/argz (Makefile.am): Likewise.
94874         * modules/atexit (Makefile.am): Likewise.
94875         * modules/backupfile (Makefile.am): Likewise.
94876         * modules/c-strtod (Makefile.am): Likewise.
94877         * modules/c-strtold (Makefile.am): Likewise.
94878         * modules/calloc (Makefile.am): Likewise.
94879         * modules/canon-host (Makefile.am): Likewise.
94880         * modules/canonicalize (Makefile.am): Likewise.
94881         * modules/chdir-long (Makefile.am): Likewise.
94882         * modules/chdir-safer (Makefile.am): Likewise.
94883         * modules/check-version (Makefile.am): Likewise.
94884         * modules/chown (Makefile.am): Likewise.
94885         * modules/cloexec (Makefile.am): Likewise.
94886         * modules/close-stream (Makefile.am): Likewise.
94887         * modules/closeout (Makefile.am): Likewise.
94888         * modules/crc (Makefile.am): Likewise.
94889         * modules/cycle-check (Makefile.am): Likewise.
94890         * modules/des (Makefile.am): Likewise.
94891         * modules/dirfd (Makefile.am): Likewise.
94892         * modules/dirname (Makefile.am): Likewise.
94893         * modules/dup2 (Makefile.am): Likewise.
94894         * modules/euidaccess (Makefile.am): Likewise.
94895         * modules/exclude (Makefile.am): Likewise.
94896         * modules/exitfail (Makefile.am): Likewise.
94897         * modules/fcntl-safer (Makefile.am): Likewise.
94898         * modules/file-type (Makefile.am): Likewise.
94899         * modules/fileblocks (Makefile.am): Likewise.
94900         * modules/filemode (Makefile.am): Likewise.
94901         * modules/filenamecat (Makefile.am): Likewise.
94902         * modules/fnmatch (Makefile.am): Likewise.
94903         * modules/fopen-safer (Makefile.am): Likewise.
94904         * modules/fpending (Makefile.am): Likewise.
94905         * modules/fprintftime (Makefile.am): Likewise.
94906         * modules/free (Makefile.am): Likewise.
94907         * modules/fsusage (Makefile.am): Likewise.
94908         * modules/ftruncate (Makefile.am): Likewise.
94909         * modules/fts (Makefile.am): Likewise.
94910         * modules/gc (Makefile.am): Likewise.
94911         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
94912         * modules/getaddrinfo (Makefile.am): Likewise.
94913         * modules/getcwd (Makefile.am): Likewise.
94914         * modules/getdelim (Makefile.am): Likewise.
94915         * modules/getdomainname (Makefile.am): Likewise.
94916         * modules/getgroups (Makefile.am): Likewise.
94917         * modules/gethostname (Makefile.am): Likewise.
94918         * modules/gethrxtime (Makefile.am): Likewise.
94919         * modules/getline (Makefile.am): Likewise.
94920         * modules/getloadavg (Makefile.am): Likewise.
94921         * modules/getlogin_r (Makefile.am): Likewise.
94922         * modules/getopt (Makefile.am): Likewise.
94923         * modules/getpass (Makefile.am): Likewise.
94924         * modules/getpass-gnu (Makefile.am): Likewise.
94925         * modules/getsubopt (Makefile.am): Likewise.
94926         * modules/gettime (Makefile.am): Likewise.
94927         * modules/gettimeofday (Makefile.am): Likewise.
94928         * modules/getugroups (Makefile.am): Likewise.
94929         * modules/getusershell (Makefile.am): Likewise.
94930         * modules/glob (Makefile.am): Likewise.
94931         * modules/group-member (Makefile.am): Likewise.
94932         * modules/hard-locale (Makefile.am): Likewise.
94933         * modules/hash (Makefile.am): Likewise.
94934         * modules/hmac-md5 (Makefile.am): Likewise.
94935         * modules/hmac-sha1 (Makefile.am): Likewise.
94936         * modules/human (Makefile.am): Likewise.
94937         * modules/idcache (Makefile.am): Likewise.
94938         * modules/imaxabs (Makefile.am): Likewise.
94939         * modules/imaxdiv (Makefile.am): Likewise.
94940         * modules/inet_ntop (Makefile.am): Likewise.
94941         * modules/inet_pton (Makefile.am): Likewise.
94942         * modules/inttostr (Makefile.am): Likewise.
94943         * modules/isapipe (Makefile.am): Likewise.
94944         * modules/lchown (Makefile.am): Likewise.
94945         * modules/long-options (Makefile.am): Likewise.
94946         * modules/lstat (Makefile.am): Likewise.
94947         * modules/malloc (Makefile.am): Likewise.
94948         * modules/mathl (Makefile.am): Likewise.
94949         * modules/mbchar (Makefile.am): Likewise.
94950         * modules/md2 (Makefile.am): Likewise.
94951         * modules/md4 (Makefile.am): Likewise.
94952         * modules/md5 (Makefile.am): Likewise.
94953         * modules/memcasecmp (Makefile.am): Likewise.
94954         * modules/memchr (Makefile.am): Likewise.
94955         * modules/memcmp (Makefile.am): Likewise.
94956         * modules/memcoll (Makefile.am): Likewise.
94957         * modules/memcpy (Makefile.am): Likewise.
94958         * modules/memmem (Makefile.am): Likewise.
94959         * modules/memmove (Makefile.am): Likewise.
94960         * modules/mempcpy (Makefile.am): Likewise.
94961         * modules/memrchr (Makefile.am): Likewise.
94962         * modules/memset (Makefile.am): Likewise.
94963         * modules/memxor (Makefile.am): Likewise.
94964         * modules/mkancesdirs (Makefile.am): Likewise.
94965         * modules/mkdir (Makefile.am): Likewise.
94966         * modules/mkdir-p (Makefile.am): Likewise.
94967         * modules/mkdtemp (Makefile.am): Likewise.
94968         * modules/mkstemp (Makefile.am): Likewise.
94969         * modules/mktime (Makefile.am): Likewise.
94970         * modules/modechange (Makefile.am): Likewise.
94971         * modules/mountlist (Makefile.am): Likewise.
94972         * modules/nanosleep (Makefile.am): Likewise.
94973         * modules/openat (Makefile.am): Likewise.
94974         * modules/pagealign_alloc (Makefile.am): Likewise.
94975         * modules/physmem (Makefile.am): Likewise.
94976         * modules/poll (Makefile.am): Likewise.
94977         * modules/posixtm (Makefile.am): Likewise.
94978         * modules/posixver (Makefile.am): Likewise.
94979         * modules/putenv (Makefile.am): Likewise.
94980         * modules/quote (Makefile.am): Likewise.
94981         * modules/quotearg (Makefile.am): Likewise.
94982         * modules/raise (Makefile.am): Likewise.
94983         * modules/read-file (Makefile.am): Likewise.
94984         * modules/readline (Makefile.am): Likewise.
94985         * modules/readlink (Makefile.am): Likewise.
94986         * modules/readtokens (Makefile.am): Likewise.
94987         * modules/readutmp (Makefile.am): Likewise.
94988         * modules/realloc (Makefile.am): Likewise.
94989         * modules/regex (Makefile.am): Likewise.
94990         * modules/rename (Makefile.am): Likewise.
94991         * modules/rename-dest-slash (Makefile.am): Likewise.
94992         * modules/rijndael (Makefile.am): Likewise.
94993         * modules/rmdir (Makefile.am): Likewise.
94994         * modules/rpmatch (Makefile.am): Likewise.
94995         * modules/safe-read (Makefile.am): Likewise.
94996         * modules/safe-write (Makefile.am): Likewise.
94997         * modules/same (Makefile.am): Likewise.
94998         * modules/save-cwd (Makefile.am): Likewise.
94999         * modules/savedir (Makefile.am): Likewise.
95000         * modules/setenv (Makefile.am): Likewise.
95001         * modules/settime (Makefile.am): Likewise.
95002         * modules/sha1 (Makefile.am): Likewise.
95003         * modules/sig2str (Makefile.am): Likewise.
95004         * modules/snprintf (Makefile.am): Likewise.
95005         * modules/stdlib-safer (Makefile.am): Likewise.
95006         * modules/stpcpy (Makefile.am): Likewise.
95007         * modules/stpncpy (Makefile.am): Likewise.
95008         * modules/strcase (Makefile.am): Likewise.
95009         * modules/strcasestr (Makefile.am): Likewise.
95010         * modules/strchrnul (Makefile.am): Likewise.
95011         * modules/strcspn (Makefile.am): Likewise.
95012         * modules/strdup (Makefile.am): Likewise.
95013         * modules/strerror (Makefile.am): Likewise.
95014         * modules/strftime (Makefile.am): Likewise.
95015         * modules/strndup (Makefile.am): Likewise.
95016         * modules/strnlen (Makefile.am): Likewise.
95017         * modules/strpbrk (Makefile.am): Likewise.
95018         * modules/strsep (Makefile.am): Likewise.
95019         * modules/strstr (Makefile.am): Likewise.
95020         * modules/strtod (Makefile.am): Likewise.
95021         * modules/strtoimax (Makefile.am): Likewise.
95022         * modules/strtok_r (Makefile.am): Likewise.
95023         * modules/strtol (Makefile.am): Likewise.
95024         * modules/strtoll (Makefile.am): Likewise.
95025         * modules/strtoul (Makefile.am): Likewise.
95026         * modules/strtoull (Makefile.am): Likewise.
95027         * modules/strtoumax (Makefile.am): Likewise.
95028         * modules/strverscmp (Makefile.am): Likewise.
95029         * modules/time_r (Makefile.am): Likewise.
95030         * modules/timegm (Makefile.am): Likewise.
95031         * modules/tmpfile-safer (Makefile.am): Likewise.
95032         * modules/unistd-safer (Makefile.am): Likewise.
95033         * modules/unlinkdir (Makefile.am): Likewise.
95034         * modules/userspec (Makefile.am): Likewise.
95035         * modules/utime (Makefile.am): Likewise.
95036         * modules/utimecmp (Makefile.am): Likewise.
95037         * modules/utimens (Makefile.am): Likewise.
95038         * modules/vasnprintf (Makefile.am): Likewise.
95039         * modules/vasprintf (Makefile.am): Likewise.
95040         * modules/vsnprintf (Makefile.am): Likewise.
95041         * modules/xalloc (Makefile.am): Likewise.
95042         * modules/xgetcwd (Makefile.am): Likewise.
95043         * modules/xnanosleep (Makefile.am): Likewise.
95044         * modules/xreadlink (Makefile.am): Likewise.
95045         * modules/xstrtod (Makefile.am): Likewise.
95046         * modules/xstrtol (Makefile.am): Likewise.
95047         * modules/xstrtold (Makefile.am): Likewise.
95048         * modules/yesno (Makefile.am): Likewise.
95050 2006-10-12  Jim Meyering  <jim@meyering.net>
95052         * m4/getloadavg.m4: Revert the change below.
95054         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
95055         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
95056         fail with a symlink, which is what coreutils' ./bootstrap now
95057         creates by default.
95059 2006-10-12  Bruno Haible  <bruno@clisp.org>
95061         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
95062         mingw.
95063         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
95064         MSVC and mingw explicitly.
95066 2006-10-11  Simon Josefsson  <jas@extundo.com>
95067             Bruno Haible  <bruno@clisp.org>
95069         Add support for multiple gnulib-tool invocations in the scope of a
95070         single configure.ac file.
95071         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
95072         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
95073         with the same contents as the _LIBADD variable.
95074         (func_emit_initmacro_start, func_emit_initmacro_end,
95075         func_emit_initmacro_done): New functions.
95076         (func_import, func_create_testdir): Invoke them. Allow the identifiers
95077         gl_LIBOBJS and gl_LTLIBOBJS.
95079 2006-10-11  Bruno Haible  <bruno@clisp.org>
95081         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
95082         (func_create_testdir): Don't create po/Makefile.am, don't invoke
95083         autoreconf. Instead, invoke autopoint explicitly but move back the
95084         *.m4 files from gnulib.
95086 2006-10-11  Bruno Haible  <bruno@clisp.org>
95088         * gnulib-tool (func_usage): Make module names after --create-testdir
95089         optional.
95090         (func_create_testdir): If no module was specified, use nearly all
95091         modules.
95093 2006-10-12  Jim Meyering  <jim@meyering.net>
95095         Big performance improvement for fts-based tools that use FTS_NOSTAT.
95096         Avoid spurious inode-mismatch problems on non-POSIX file systems.
95097         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
95098         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
95099         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
95100         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
95101         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
95102         (fts_set_stat_required): New function.
95103         (fts_open): Defer the calls to fts_stat, if possible or requested.
95104         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
95105         into fts_stat itself.
95106         (fts_read): Perform any required (deferred) fts_stat call.
95107         (fts_build): Likewise, for the directory we're about to open and read.
95108         In the readdir loop, carefully decide whether each entry will require
95109         an eventual call to fts_stat, using dirent.d_type info if available.
95110         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
95111         a command line argument into this function.  Update all callers.
95112         Map a return value of FTS_DOT to FTS_D for a command line argument.
95113         * modules/fts (Depends-on): Add d-type.  Alphabetize.
95114         Thanks to Miklos Szeredi for his tenacity and for the initial
95115         bug report about "find" failing on a FUSE-based file system.
95117         * lib/fts.c (fts_open): Use consistent indentation.
95119 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
95121         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
95122         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
95123         reported by Jim Meyering.  All uses of cache variables renamed
95124         to match Autoconf's.
95125         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
95126         the other one.
95128         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
95129         Fix misspelling in diagnostic.
95131 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
95133         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
95134         defined.  Problem reported by Matthew Woehlke.
95136         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
95137         Add support for Tandem NonStop R series.
95138         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
95139         Use new macro.
95141         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
95142         (has_trailing_slash): Omit size arg; all callers changed.
95143         Omit 'inline', since it doesn't help performance and we'd
95144         need to configure it.
95145         Don't count //, ///, etc. as having a trailing slash.
95146         As a side effect, this removes a C99ism reported by Matthew Woehlke.
95147         (rpl_rename_dest_slash): On failure, use rename's errno rather
95148         than (in some cases) an incorrect or junk errno.
95149         Simplify code by removing need to compute length; this does
95150         cause it to make two passes instead of one over the file name,
95151         but it's worth it.
95153         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
95154         change, since Autoconf's version may no longer be appropriate now
95155         that we are using CVS Autoconf's version.  Add support for Tandem.
95157 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
95158             Bruno Haible  <bruno@clisp.org>
95160         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
95161         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
95162         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
95163         gl_AC_TYPE_LONG_LONG.
95165         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
95166         instead of HAVE_LONG_LONG.
95167         * lib/printf-args.c (printf_fetchargs): Likewise.
95168         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
95169         * lib/vasnprintf.c (VASNPRINTF): Likewise.
95170         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
95171         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
95172         gl_AC_TYPE_LONG_LONG.
95174 2006-10-11  Bruno Haible  <bruno@clisp.org>
95176         * m4/longlong.m4: Add comments.
95177         * m4/ulonglong.m4: Likewise.
95179 2006-10-10  Bruno Haible  <bruno@clisp.org>
95181         Make it possible to #define stpcpy, strdup to aliases.
95182         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
95183         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
95185 2006-10-10  Bruno Haible  <bruno@clisp.org>
95187         Make it possible to #define gcd to an alias.
95188         * lib/gcd.c: Include config.h.
95190 2006-10-10  Bruno Haible  <bruno@clisp.org>
95192         Make it possible to #define c_isascii to an alias.
95193         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
95194         defined. Undefine the macros before defining them, to avoid gcc
95195         warnings.
95196         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
95197         define NO_C_CTYPE_MACROS early.
95199 2006-10-10  Bruno Haible  <bruno@clisp.org>
95201         Make it possible to #define set_program_name to an alias.
95202         * lib/progname.c: Don't undefine set_program_name; instead, undefine
95203         ENABLE_RELOCATABLE early.
95205 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
95207         Port to Tandem NSK OSS, which has 64-bit signed int but at most
95208         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
95209         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
95210         More generally, don't assume that 64-bit signed int is available
95211         if unsigned int is, and vice versa.
95212         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
95213         unsigned symbols, not on their signed counterparts.
95214         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
95215         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
95216         (UINT64_C, UINTMAX_C):
95217         Likewise.
95218         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
95219         unsigned counterparts.
95220         (Have_long_long, Unsigned): New macros.
95221         (Int): Renamed from INT.
95222         (strtoimax): Use the new macros.
95223         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
95224         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
95225         * modules/inttypes (inttypes.h): Substitute
95226         HAVE_UNSIGNED_LONG_LONG_INT.
95227         * modules/stdint (stdint.h): Likewise.
95228         (Files): Add m4/ulonglong.m4.
95230 2006-10-10  Bruno Haible  <bruno@clisp.org>
95232         Fix a gcc -Wshadow warning.
95233         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
95234         to 'bucket'.
95235         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
95236         gl_linked_indexof_from_to): Likewise.
95237         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
95238         Likewise.
95239         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
95240         Likewise.
95241         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
95242         Reported by Eric Blake.
95244 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
95246         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
95247         for NetBSD.  Problem reported by Bruno Haible.
95249 2006-10-09  Jim Meyering  <jim@meyering.net>
95251         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
95252         Patch from Bruno Haible.
95254 2006-10-09  Jim Meyering  <jim@meyering.net>
95256         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
95257         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
95258         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
95260 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
95262         Don't include <config.h> twice; this doesn't work in some cases,
95263         e.g., when config.h has "#define intmax_t long long int" and
95264         we include <config.h>, <inttypes.h>, <config.h> in that order.
95265         Problem reported by Matthew Woehlke in:
95266         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
95267         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
95268         * lib/fts-cycle.c: Don't include config.h.
95269         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
95270         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
95271         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
95272         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
95273         inttypes.h.
95274         * lib/xstrtoumax.c: Likewise.
95275         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
95276         __strtol and the like, so that this module is more like its siblings.
95277         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
95278         Remove; no longer needed now that we assume gnulib inttypes.h.
95280 2006-10-08  Bruno Haible  <bruno@clisp.org>
95282         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
95283         option.
95285 2006-10-07  Jim Meyering  <jim@meyering.net>
95287         * modules/inttypes (inttypes.h): Revert what seems to have been
95288         an inadvertent part of today's change: use "|", not "/" in the
95289         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
95291 2006-10-07  Bruno Haible  <bruno@clisp.org>
95293         * modules/sublist: New file.
95295 2006-10-07  Bruno Haible  <bruno@clisp.org>
95297         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
95298         * modules/argz (argz.h): Likewise.
95299         * modules/arpa_inet (arpa/inet.h): Likewise.
95300         * modules/byteswap (byteswap.h): Likewise.
95301         * modules/configmake (configmake.h): Likewise.
95302         * modules/fcntl (fcntl.h): Likewise.
95303         * modules/fnmatch (fnmatch.h): Likewise.
95304         * modules/getopt (getopt.h): Likewise.
95305         * modules/glob (glob.h): Likewise.
95306         * modules/inttypes (inttypes.h): Likewise.
95307         * modules/netinet_in (netinet/in.h): Likewise.
95308         * modules/poll (poll.h): Likewise.
95309         * modules/stdbool (stdbool.h): Likewise.
95310         * modules/stdint (stdint.h): Likewise.
95311         * modules/sys_select (sys/select.h): Likewise.
95312         * modules/sys_socket (sys/socket.h): Likewise.
95313         * modules/sys_stat (sys/stat.h): Likewise.
95314         * modules/sysexits (sysexits.h): Likewise.
95315         * modules/unistd (unistd.h): Likewise.
95316         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95317         Add a "DO NOT EDIT" comment to the generated file.
95318         (func_import): Likewise for gnulib-comp.m4.
95320 2006-10-07  Bruno Haible  <bruno@clisp.org>
95322         * lib/gl_sublist.h: New file.
95323         * lib/gl_sublist.c: New file.
95325 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
95327         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
95328         name (relative to the original working directory) and the file
95329         name component (relative to the temporary working directory).  All
95330         callers changed.
95331         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
95332         * lib/mkdir-p.c (make_dir_parents): Likewise.
95333         * lib/mkdir-p.h (make_dir_parents): Likewise.
95335 2006-10-06  Eric Blake  <ebb9@byu.net>
95337         Define several macros for use by the clean-temp module.
95338         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
95339         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
95340         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
95342         * lib/clean-temp.h (close_stream_temp): New declaration.
95343         * lib/clean-temp.c (includes): Pull in headers according to what
95344         other modules are in use.
95345         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
95347 2006-10-06  Bruno Haible  <bruno@clisp.org>
95349         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
95350         instead of fopen, fwriteerror.
95352 2006-10-06  Bruno Haible  <bruno@clisp.org>
95354         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
95355         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
95356         int.
95357         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
95358         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
95359         Return an error indicator.
95360         Suggested by Eric Blake.
95362 2006-10-06  Bruno Haible  <bruno@clisp.org>
95364         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
95365         Reported by Eric Blake.
95367 2006-10-06  Bruno Haible  <bruno@clisp.org>
95369         * modules/closeout (Description): Mention stderr too.
95371 2006-10-06  Bruno Haible  <bruno@clisp.org>
95372         and Paul Eggert  <eggert@cs.ucla.edu>
95374         * lib/closeout.c (close_stdout): Also close stderr.
95375         * lib/closeout.h: Update comment.
95377 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
95379         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
95380         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
95381         * lib/dirchownmod.c: Include lchown.h.
95382         * lib/lchown.c: Don't include files that lchown.h now includes.
95383         Don't declare chown, since lchown.h now does that.
95384         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
95385         (lchown): Define to rpl_chown if lchown is declared but
95386         does not exist.  Declare using a prototype if lchown is not
95387         declared.  Add a copyright notice.
95388         * lib/mkstemp.h: Include <unistd.h>.
95389         * lib/openat.c: Include lchown.h.
95391         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
95392         we now test for that separately.
95393         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
95394         rather than O_NOFOLLOW, when testing whether it's possible to
95395         avoid a race condition reliably.
95396         * lib/savewd.c (savewd_chdir): Likewise.
95398         Remove macros that are no longer needed now that stdint.h is
95399         reliable.
95400         * lib/fsusage.c (UINTMAX_MAX): Remove.
95401         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
95402         * lib/utimecmp.c (SIZE_MAX): Remove.
95404         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
95406         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
95407         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
95408         O_NOATIME works.
95410 2006-10-05  Bruno Haible  <bruno@clisp.org>
95412         * lib/gl_list.h (gl_sortedlist_search_from_to,
95413         gl_sortedlist_indexof_from_to): New declarations.
95414         (gl_list_implementation): New fields sortedlist_search_from_to,
95415         sortedlist_indexof_from_to.
95416         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
95417         inline functions.
95418         * lib/gl_list.c (gl_sortedlist_search_from_to,
95419         gl_sortedlist_indexof_from_to): New functions.
95420         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
95421         function.
95422         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
95423         (gl_array_sortedlist_search_from_to): New function.
95424         (gl_array_list_implementation): Update.
95425         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
95426         function.
95427         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
95428         (gl_carray_sortedlist_search_from_to): New function.
95429         (gl_carray_list_implementation): Update.
95430         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
95431         gl_linked_sortedlist_indexof_from_to): New functions.
95432         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
95433         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
95434         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
95435         gl_tree_sortedlist_indexof_from_to): New functions.
95436         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
95437         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
95438         Update.
95439         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
95440         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
95441         Update.
95443 2006-10-05  Bruno Haible  <bruno@clisp.org>
95445         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
95446         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
95447         (struct gl_list_implementation): Add fields search_from_to,
95448         indexof_from_to. Remove fields search, indexof.
95449         (gl_list_search): Use the search_from_to method.
95450         (gl_list_search_from, gl_list_search_from_to): New functions.
95451         (gl_list_indexof): Use the indexof_from_to method.
95452         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
95453         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
95454         (gl_list_search_from, gl_list_search_from_to): New functions.
95455         (gl_list_indexof): Use the indexof_from_to method.
95456         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
95457         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
95458         gl_array_indexof. Add start_index, end_index arguments.
95459         (gl_array_search_from_to): Renamed from gl_array_search. Add
95460         start_index, end_index arguments.
95461         (gl_array_remove, gl_array_list_implementation): Update.
95462         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
95463         gl_carray_indexof. Add start_index, end_index arguments.
95464         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
95465         start_index, end_index arguments.
95466         (gl_carray_remove, gl_carray_list_implementation): Update.
95467         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
95468         gl_linked_search. Add start_index, end_index arguments.
95469         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
95470         start_index, end_index arguments.
95471         (gl_linked_remove): Update.
95472         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
95473         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
95474         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
95475         field to 'size_t'.
95476         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
95477         gl_tree_search. Add start_index, end_index arguments.
95478         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
95479         start_index, end_index arguments.
95480         (gl_tree_remove): Update.
95481         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
95482         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
95483         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
95484         function.
95485         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
95486         gl_tree_search. Add start_index, end_index arguments.
95487         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
95488         start_index, end_index arguments.
95489         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
95490         Update.
95491         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
95493 2006-10-05  Bruno Haible  <bruno@clisp.org>
95495         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
95497         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
95498         fwriteerror_temp): New declarations.
95499         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
95500         (descriptors): New variable.
95501         (cleanup): First, close the descriptors.
95502         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
95503         fclose_temp, fwriteerror_temp): New functions.
95505 2006-10-04  Jim Meyering  <jim@meyering.net>
95507         * lib/fts.c (fts_open): Tiny comment change.
95509 2006-10-04  Bruno Haible  <bruno@clisp.org>
95511         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
95512         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
95513         gl_LOCK_BODY.
95514         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
95515         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
95516         gl_LOCK_EARLY_BODY.
95517         (gl_LOCK): Require gl_LOCK_BODY.
95519 2006-10-04  Bruno Haible  <bruno@clisp.org>
95521         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
95522         (gl_oset_search_atleast): New declaration.
95523         (struct gl_oset_implementation): Add field 'search_atleast'.
95524         (gl_oset_search_atleast): New inline function.
95525         * lib/gl_oset.c (gl_oset_search_atleast): New function.
95526         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
95527         (gl_array_oset_implementation): Update.
95528         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
95529         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
95530         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
95532 2006-10-04  Bruno Haible  <bruno@clisp.org>
95534         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
95536 2006-10-03  Bruno Haible  <bruno@clisp.org>
95538         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
95539         from gl_avltreehash_list_implementation.
95541 2006-10-03  Bruno Haible  <bruno@clisp.org>
95543         * lib/gl_oset.c (gl_oset_add): Fix return type.
95545 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
95547         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
95549 2006-10-02  Eric Blake  <ebb9@byu.net>
95551         * modules/strnlen (Depends-on): Add extensions.
95553 2006-10-02  Eric Blake  <ebb9@byu.net>
95555         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
95556         definition in 2.60+.
95558 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
95560         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
95561         checks.
95563 2006-10-02  Bruno Haible  <bruno@clisp.org>
95565         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
95566         to the AUTOMAKE_OPTIONS.
95567         Reported by Jim Meyering.
95569 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
95571         Work around bug in Solaris 10 /proc file system:
95572         /proc/self/fd/NNN/.. isn't the parent directory of
95573         the directory whose file descriptor is NNN.  This needs to
95574         be worked around at run time, not compile time, since a
95575         program might be built on Solaris 8, where things work, and
95576         run on Solaris 10.
95577         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
95578         to use the following interface instead:
95579         (OPENAT_BUFFER_SIZE): New macro.
95580         (openat_proc_name): New function.
95581         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
95582         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
95583         Likewise.
95584         * lib/openat-proc.c: New file.
95585         * modules/openat (Files): Add lib/openat-proc.c.
95586         (Depends-on): Add same-inode, stdbool.
95587         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
95589 2006-09-29  Bruno Haible  <bruno@clisp.org>
95591         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
95592         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
95593         argument. Set stdout_closed before testing for ferror, not after.
95594         (fwriteerror, fwriteerror_no_ebadf): New functions.
95596 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95598         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
95600 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
95602         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
95603         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
95605 2006-09-28  Jim Meyering  <jim@meyering.net>
95607         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
95608         Include <unistd.h>.
95610 2006-09-28  Bruno Haible  <bruno@clisp.org>
95612         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
95613         * modules/linkedhash-list (Depends-on): Likewise.
95614         * modules/rbtreehash-list (Depends-on): Likewise.
95616 2006-09-28  Bruno Haible  <bruno@clisp.org>
95618         * lib/strndup.h: Simplify the redefinition of strndup.
95619         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
95620         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
95622 2006-09-28  Bruno Haible  <bruno@clisp.org>
95624         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
95625         * lib/gl_linkedhash_list.c: Likewise.
95626         * lib/gl_rbtreehash_list.c: Likewise.
95628 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
95630         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
95631         getaddrinfo.
95633         * lib/__fpending.h: Don't include <stdio_ext.h> unless
95634         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
95635         it causes <stdio_ext.h> to cause a compile-time error.
95636         Problem reported by Nelson H. F. Beebe.
95637         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
95638         of HAVE_DECL___PENDING.
95640         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
95641         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
95642         declaration.
95644 2006-09-27  Jim Meyering  <jim@meyering.net>
95646         This file could end up with a definition for a function
95647         named __strndup, rather than rpl_strndup on a system with
95648         incomplete weak_alias support.
95649         * lib/strndup.c (strndup): Rename from __strndup.
95650         Remove #defines that used to map __strndup to strndup.
95651         Don't use K&R prototypes.
95652         Remove LIBC-related code, since this file is not sync'd with glibc.
95653         * lib/strndup.h: Revamp, accordingly.
95654         * m4/strndup.m4: Modernize.
95656 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
95658         * modules/savewd (Depends-on): Add 'raise'.
95659         * lib/savewd.c: Include <signal.h>, for 'raise'.
95661 2006-09-26  Jim Meyering  <jim@meyering.net>
95663         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
95664         when we detect Darwin 8.7.0's acl_get_file bug.
95665         Rearrange to perform the new (below) run-test while $LIBS
95666         contains any acl-related library.  Set USE_ACL at the end.
95667         (gl_ACL_GET_FILE): New function.
95669 2006-09-26  Eric Blake  <ebb9@byu.net>
95671         * lib/verror.c: Include <config.h> unconditionally.
95673 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
95675         * modules/clock-time (Maintainer): Add self.
95676         * modules/getlogin_r (Depends-on): Add extensions.
95678 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95680         * modules/clock-time: New module.
95681         * modules/nanosleep (Depends-on): Add clock-time.
95682         * modules/gethrxtime (Depends-on): Likewise.
95683         * modules/gettime (Depends-on): Likewise.
95684         * modules/settime (Depends-on): Likewise.
95686         * modules/fts-lgpl: Depend on openat.
95687         * modules/mkancesdirs: Depend on savewd.
95688         * modules/mkdir-p: Likewise.
95690 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95692         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
95694         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
95695         `gl_have_arbitrary_file_name_length_limit' to
95696         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
95697         actually works between configure runs.
95699 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95700             Bruno Haible  <bruno@clisp.org>
95702         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
95704 2006-09-25  Jim Meyering  <jim@meyering.net>
95706         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
95707         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
95709 2006-09-25  Eric Blake  <ebb9@byu.net>
95711         * gnulib-tool (func_import, func_create_testdir): Fix typos in
95712         exec's in 2006-09-18 patch when shuffling fds.
95714 2006-09-25  Bruno Haible  <bruno@clisp.org>
95716         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
95717         Reported by Jim Meyering.
95719 2006-09-24  Jim Meyering  <jim@meyering.net>
95721         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
95722         compare a pointer against a literal "0".  That caused failures with
95723         at least HP-UX's hpcc.
95725 2006-09-22  Simon Josefsson  <jas@extundo.com>
95727         * modules/gc-sha1:
95728         * modules/gc-md4:
95729         * modules/gc-hmac-sha1:
95730         * modules/gc-hmac-md5:
95731         * modules/gc-des:
95732         * modules/gc-arcfour: Distribute more files.
95734 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95736         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
95737         (gl_linked_iterator_from_to): Initialize struct completely.
95738         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
95739         (gl_tree_iterator_from_to): Likewise
95740         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
95741         * lib/gl_array_list.c [lint] (gl_array_iterator)
95742         (gl_array_iterator_from_to): Likewise.
95743         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
95744         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
95745         (gl_carray_iterator_from_to): Likewise.
95747         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
95748         * lib/md4.c (md4_process_block): Remove unused variable.
95749         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
95750         parentheses for clarity.
95752 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95754         * modules/bison-i18n (Depends-on): Add gettext.
95756 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95758         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
95759         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
95760         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
95761         also add missing comma that caused broken test.
95762         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
95763         stdlib.h, for `abort'.
95764         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
95765         variables.
95766         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
95767         include unistd.h if present, for `rmdir'.
95768         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
95769         variables.
95770         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
95771         in the process include standard headers for prototypes.
95772         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
95773         gets declared on GNU/Linux.
95774         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
95775         unistd.h, for `rmdir'.
95776         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
95778         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
95779         always true.
95780         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
95782         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
95784 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95786         * gnulib-tool (func_version): Create output all at once.  This
95787         may help avoid triggering unnecessary SIGPIPEs, and at any
95788         rate it doesn't hurt.
95790 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95791             Bruno Haible  <bruno@clisp.org>
95793         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
95794         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
95795         * m4/signed.m4 (bh_C_SIGNED): Likewise.
95797         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
95798         (gl_FUNC_VASPRINTF): Invoke it.
95800 2006-09-22  Bruno Haible  <bruno@clisp.org>
95802         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
95803         getloadavg.c as first argument.
95805 2006-09-22  Bruno Haible  <bruno@clisp.org>
95807         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
95808         at the beginning of the gl_INIT macro.
95809         * modules/getloadavg (configure.ac): Pass $gl_source_base to
95810         gl_GETLOADAVG.
95812 2006-09-22  Bruno Haible  <bruno@clisp.org>
95814         * gnulib-tool (func_create_megatestdir): Don't include the config-h
95815         module.
95816         Suggested by Ralf Wildenhues.
95818 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
95820         Import this patch from libc:
95822         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
95824         * lib/regex_internal.c (re_string_reconstruct): Handle
95825         offset < pstr->valid_raw_len && pstr->offsets_needed case.
95826         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
95827         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
95828         re_string_context_at.
95830         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
95831         now requires it.
95832         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
95833         gl_REGEX now does it for us.
95834         (gl_REGEX): Add test taken from
95835         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
95837         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
95838         Check that large offsets work.  Modernize Autoconf usages.
95839         Prefer "yes" to mean a good thing rather than a bad.
95840         Don't put "#define mkstemp" in config.h, as this might interfere
95841         with standard system headers that "#define mkstemp mkstemp64".
95843         * modules/mkstemp (Depends-on): Add extensions, so that
95844         mkstemp is visible on some platforms.
95845         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
95846         (Include): Change to "mkstemp.h" from <stdlib.h>.
95847         (Files): Add mkstemp.h.
95849         * lib/mkstemp.h: New file, since some standard headers
95850         #define mkstemp.
95851         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
95852         Include "mkstemp.h".
95853         Make the _LIBC code resemble glibc original more,
95854         e.g., use K&R style.
95855         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
95856         (mkstemp): Remove, since mkstemp.h does this for us.
95857         * lib/stdlib--.h: Include mkstemp.h.
95859         Import this patch from libc:
95861         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
95863         * lib/tempname.c (__gen_tempname): Change attempts_min
95864         into a macro.  Use preprocessor to decide how to initialize
95865         attempts [Coverity CID 67].
95867 2006-09-20  Bruno Haible  <bruno@clisp.org>
95869         * lib/mkdtemp.c: Import from libc.
95870         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
95871                 * sysdeps/posix/tempname.c (__gen_tempname): Change
95872                 attempts_min into a macro.  Use preprocessor to decide how to
95873                 initialize attempts [Coverity CID 67].
95874         2001-11-27  Paul Eggert  <eggert@twinsun.com>
95875                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
95876                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
95878 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95880         * gnulib-tool (func_exit): New function, to allow to pass the
95881         exit status portably through the trap.  Use everywhere.
95882         (--help, --version): Signal a write error.
95883         (trap): catch SIGPIPE, for write errors.
95884         Exit at the end of the trap, with the correct exit status.
95886 2006-09-19  Karl Berry  <karl@gnu.org>
95888         * doc/gnulib.texi: note about the license texinfo files.
95890 2006-09-19  Eric Blake  <ebb9@byu.net>
95892         * gnulib-tool: Avoid space-tab.
95894 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
95896         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
95897         that prevented coreutils 6.1 from building.  Problem reported
95898         by Petter Reinholdtsen.
95900 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
95902         * gnulib-tool (avoidlist): Fix typo that broke options like
95903         --avoid=lock that are used by coreutils bootstrap.
95905 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
95907         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
95908         more systematically.
95910 2006-09-18  Jim Meyering  <jim@meyering.net>
95912         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
95914 2006-09-18  Bruno Haible  <bruno@clisp.org>
95916         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
95918 2006-09-18  Bruno Haible  <bruno@clisp.org>
95920         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
95921         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
95922         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
95923         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
95924         * m4/gettext.m4: Require autoconf >= 2.52.
95925         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
95926         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
95927         of gl_cv_header_inttypes_h.
95929 2006-09-18  Bruno Haible  <bruno@clisp.org>
95931         * lib/javaversion.c: Include configmake.h.
95933 2006-09-18  Bruno Haible  <bruno@clisp.org>
95935         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
95936         avoid that the while loops be executed in a subshell.
95938 2006-09-18  Bruno Haible  <bruno@clisp.org>
95940         * MODULES.html.sh (func_module): Break long lines.
95941         Suggested by Bruce Korb <bkorb@gnu.org>.
95943 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95945         Speed up by a factor of 1.12.
95946         * gnulib-tool (nl): New variable.
95947         (func_import): Rewrite include directive extraction to only read each
95948         directive once.
95950 2006-09-17  Bruno Haible  <bruno@clisp.org>
95952         * modules/javaversion (Makefile.am): Remove DEFS setting.
95953         (Depends-on): Add configmake, for PKGDATADIR definition.
95955 2006-09-17  Bruno Haible  <bruno@clisp.org>
95957         * gnulib-tool (func_create_testdir): Rewrite all files at once.
95959 2006-09-17  Bruno Haible  <bruno@clisp.org>
95961         * gnulib-tool (func_append): New function, stolen from libtool.m4.
95962         (func_modules_transitive_closure, func_modules_add_dummy,
95963         func_modules_to_filelist, func_import, func_create_testdir,
95964         func_create_megatestdir, ...): Use it wherever possible.
95965         Suggested by Ralf Wildenhues.
95967 2006-09-16  Karl Berry  <karl@gnu.org>
95969         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
95970         to avoid sectioning errors.
95971         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
95972         [ifinfo]: blank line after @center-ed titles.
95973         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
95974         Spell FSF address consistently with others.
95975         (These changes approved by rms.)
95977 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95979         Speed up by a factor of 1.61.
95980         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
95981         already checked module names again.
95983 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95985         Speed up by a factor of 1.13.
95986         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
95987         for new_files, and the input to func_add_or_update.
95989 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95991         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
95992         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
95994 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
95996         * modules/mkancesdirs (Depends-on): Add fcntl.
95997         * modules/savewd: New file.
95998         * MODULES.html.sh (File system functions): Add savewd.
96000         * modules/configmake (Makefile.am): Add support for the
96001         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
96003 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
96005         * m4/savewd.m4: New file.
96007 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
96009         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
96010         (dirchownmod): New arg FD.  All callers changed.
96011         Use FD rather than opening the directory ourself, as opening is
96012         now the caller's responsibility.
96013         * lib/dirchownmod.h: Likewise.
96014         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
96015         hosts that require <sys/types.h> before <sys/stat.h>.  Include
96016         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
96017         (test_dir): Remove.
96018         (mkancesdirs): Return length of prefix of FILE that has already
96019         been made, or -2 if there is a child doing the work.  Redo
96020         algorithm so that it is O(N) rather than O(N**2).  Optimize away
96021         ".", and treat ".." specially since it might stray back into
96022         already-created areas.  Use a subprocess if necessary.  New arg
96023         WD; all users changed.  MAKE_DIR function should now return 1
96024         if it creates a directory that is not readable.  Return -2 if
96025         a child process is spun off.
96026         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
96027         Adjust signature to match code.
96028         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
96029         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
96030         all users changed.
96031         * lib/savewd.c, lib/savewd.h: New files.
96033 2006-09-15  Jim Meyering  <jim@meyering.net>
96035         * modules/rename-dest-slash: New module.
96036         * MODULES.html.sh (posix_compat): Add it here.
96038         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
96040 2006-09-15  Jim Meyering  <jim@meyering.net>
96042         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
96043         file.
96045         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
96047 2006-09-15  Jim Meyering  <jim@meyering.net>
96049         * lib/rename-dest-slash.c (has_trailing_slash): Use
96050         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
96051         (rpl_rename_dest_slash): Perform the cheaper trailing slash
96052         test before testing whether SRC is a directory.
96053         Suggestions from Bruno Haible.
96055         Avoid a warning about an unused variable.
96056         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
96057         into the #ifdef block where it's used.
96059         * lib/rename-dest-slash.c: New file.
96061 2006-09-14  Bruno Haible  <bruno@clisp.org>
96063         * lib/allocsa.c: Include <config.h> unconditionally.
96064         * lib/asnprintf.c: Likewise.
96065         * lib/asprintf.c: Likewise.
96066         * lib/c-strcasecmp.c: Likewise.
96067         * lib/c-strcasestr.c: Likewise.
96068         * lib/c-strncasecmp.c: Likewise.
96069         * lib/c-strstr.c: Likewise.
96070         * lib/classpath.c: Likewise.
96071         * lib/clean-temp.c: Likewise.
96072         * lib/concatpath.c: Likewise.
96073         * lib/copy-file.c: Likewise.
96074         * lib/csharpcomp.c: Likewise.
96075         * lib/csharpexec.c: Likewise.
96076         * lib/execute.c: Likewise.
96077         * lib/fatal-signal.c: Likewise.
96078         * lib/findprog.c: Likewise.
96079         * lib/fwriteerror.c: Likewise.
96080         * lib/gl_array_list.c: Likewise.
96081         * lib/gl_array_oset.c: Likewise.
96082         * lib/gl_avltree_list.c: Likewise.
96083         * lib/gl_avltree_oset.c: Likewise.
96084         * lib/gl_avltreehash_list.c: Likewise.
96085         * lib/gl_carray_list.c: Likewise.
96086         * lib/gl_linked_list.c: Likewise.
96087         * lib/gl_linkedhash_list.c: Likewise.
96088         * lib/gl_list.c: Likewise.
96089         * lib/gl_oset.c: Likewise.
96090         * lib/gl_rbtree_list.c: Likewise.
96091         * lib/gl_rbtree_oset.c: Likewise.
96092         * lib/gl_rbtreehash_list.c: Likewise.
96093         * lib/imaxabs.c: Likewise.
96094         * lib/imaxdiv.c: Likewise.
96095         * lib/javacomp.c: Likewise.
96096         * lib/javaexec.c: Likewise.
96097         * lib/javaversion.c: Likewise.
96098         * lib/linebreak.c: Likewise.
96099         * lib/localcharset.c: Likewise.
96100         * lib/lock.c: Likewise.
96101         * lib/mbchar.c: Likewise.
96102         * lib/mbswidth.c: Likewise.
96103         * lib/mkdtemp.c: Likewise.
96104         * lib/pipe.c: Likewise.
96105         * lib/printf-args.c: Likewise.
96106         * lib/printf-parse.c: Likewise.
96107         * lib/progname.c: Likewise.
96108         * lib/progreloc.c: Likewise.
96109         * lib/readlink.c: Likewise.
96110         * lib/sh-quote.c: Likewise.
96111         * lib/stpcpy.c: Likewise.
96112         * lib/stpncpy.c: Likewise.
96113         * lib/strcasecmp.c: Likewise.
96114         * lib/strcasestr.c: Likewise.
96115         * lib/strcspn.c: Likewise.
96116         * lib/striconv.c: Likewise.
96117         * lib/strncasecmp.c: Likewise.
96118         * lib/strnlen1.c: Likewise.
96119         * lib/strstr.c: Likewise.
96120         * lib/strtok_r.c: Likewise.
96121         * lib/tls.c: Likewise.
96122         * lib/tmpdir.c: Likewise.
96123         * lib/unicodeio.c: Likewise.
96124         * lib/unsetenv.c: Likewise.
96125         * lib/vasnprintf.c: Likewise.
96126         * lib/vasprintf.c: Likewise.
96127         * lib/wait-process.c: Likewise.
96128         * lib/xallocsa.c: Likewise.
96129         * lib/xsetenv.c: Likewise.
96130         * lib/xstriconv.c: Likewise.
96132 2006-09-13  Simon Josefsson  <jas@extundo.com>
96134         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
96135         that internally, suggested by Ralf Wildenhues
96136         <Ralf.Wildenhues@gmx.de>.
96138 2006-09-13  Simon Josefsson  <jas@extundo.com>
96140         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
96141         @LIBOBJS@.
96142         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96144 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
96146         * lib/_fpending.c: Include <config.h> unconditionally, since we no
96147         longer worry about uses that don't define HAVE_CONFIG_H.
96148         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
96149         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
96150         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
96151         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
96152         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
96153         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
96154         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
96155         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
96156         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
96157         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
96158         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
96159         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
96160         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
96161         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
96162         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
96163         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
96164         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
96165         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
96166         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
96167         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
96168         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
96169         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
96170         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
96171         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
96172         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
96173         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
96174         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
96175         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
96176         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
96177         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
96178         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
96179         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
96180         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
96181         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
96182         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
96183         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
96184         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
96185         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
96186         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
96187         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
96188         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
96189         Likewise.
96191 2006-09-13  Eric Blake  <ebb9@byu.net>
96193         * lib/getopt.c: Fix typo in last commit.
96195 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
96197         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
96198         dgettext.
96200 2006-09-12  Jim Meyering  <jim@meyering.net>
96202         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
96203         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
96204         Reported by Nelson H. F. Beebe.
96206 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
96208         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
96209         program_invocation_name and program_invocation_short_name are
96210         initialized.
96211         * lib/argp-namefrob.h: Move declarations of program_invocation_name
96212         and program_invocation_short_name to argp.h, so they are visible
96213         to user programs.
96214         * lib/argp.h: Likewise
96216 2006-09-10  Bruno Haible  <bruno@clisp.org>
96218         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
96219         m4/inttypes_h.m4, m4/uintmax_t.m4.
96221 2006-09-10  Bruno Haible  <bruno@clisp.org>
96223         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
96224         gl_AC_TYPE_UINTMAX_T.
96226 2006-09-10  Bruno Haible  <bruno@clisp.org>
96228         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
96230 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
96232         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
96233         convention.  Text proposed by Bruno Haible.
96234         (struct argp_option): Document the use of N_() wrappers.
96236         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
96237         '\v', and translate the two parts separately, instead of feeding
96238         the whole string to gettext.  This allows to exclude
96239         '\v' from the strings visible to the translator by writing doc
96240         strings as N_("..") "\v" N_("..").
96242 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
96244         * config/srclist.txt: Undo latest change; the bug was fixed.
96246 2006-09-09  Bruno Haible  <bruno@clisp.org>
96248         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
96249         assignments if building a library without libtool.
96250         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
96251         in func_emit_lib_Makefile_am.
96252         (func_import): When building a static library libfoo.a, arrange to
96253         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
96254         (func_create_testdir): Likewise.
96255         * modules/gc (configure.ac, Makefile.am): If building statically,
96256         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
96257         * modules/iconvme (configure.ac, Makefile.am): Likewise.
96258         * modules/striconv (configure.ac, Makefile.am): Likewise.
96259         Based on a suggestion by Ralf Wildenhues.
96261 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
96263         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
96264         Check for unistd.h too, since Autoconf doesn't assume POSIX.
96265         Also:
96267         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
96268         Add year_2050_test to catch glibc bug 2821
96269         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
96271         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
96272         Prefer #ifdef to #if.
96274         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
96275         Return from 'main' instead of calling 'exit'.
96277 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
96279         * lib/mktime.c (guess_time_tm): Fix bug where mktime
96280         returned the maximum time_t value rather than (time_t) -1.
96281         Problem originally reported by William Bardwell
96282         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
96284         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
96285         Moved to here ...
96286         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
96287         ... from here.
96289 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
96291         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
96292         2821 is fixed.
96294 2006-09-08  Jim Meyering  <jim@meyering.net>
96296         Don't make generated files read-only.  That would bother too many
96297         people.  However, do retain the ability to work when targets are
96298         read-only: remove the destination and temporary files before writing
96299         them (when generated via sed or echo), or by using the -f option for
96300         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
96301         * modules/alloca-opt, modules/argz, modules/arpa_inet:
96302         * modules/byteswap, modules/configmake, modules/fcntl:
96303         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
96304         * modules/localcharset, modules/netinet_in, modules/poll:
96305         * modules/stdbool, modules/stdint, modules/sys_select:
96306         * modules/sys_socket, modules/sys_stat, modules/sysexits:
96308 2006-09-08  Jim Meyering  <jim@meyering.net>
96310         Avoid new build failure on FreeBSD 6.0.
96311         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
96312         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
96313         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
96315 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96317         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
96319 2006-09-07  Jim Meyering  <jim@meyering.net>
96321         Fix global typo in last change: use chmod u-w, not chmod u-x.
96322         Spotted by Paul Eggert and Bruce Korb.
96323         * modules/alloca-opt, modules/argz, modules/arpa_inet:
96324         * modules/byteswap, modules/configmake, modules/fcntl:
96325         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
96326         * modules/localcharset, modules/netinet_in, modules/poll:
96327         * modules/stdbool, modules/stdint, modules/sys_select:
96328         * modules/sys_socket, modules/sys_stat, modules/sysexits:
96330 2006-09-06  Jim Meyering  <jim@meyering.net>
96332         Make generated files be read-only.
96333         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
96334         Ensure that each generated file is now read-only.
96335         * modules/argz: Likewise.
96336         * modules/arpa_inet: Likewise.
96337         * modules/byteswap: Likewise.
96338         * modules/configmake: Likewise.
96339         * modules/fcntl: Likewise.
96340         * modules/fnmatch: Likewise.
96341         * modules/getopt: Likewise.
96342         * modules/glob: Likewise.
96343         * modules/inttypes: Likewise.
96344         * modules/netinet_in: Likewise.
96345         * modules/poll: Likewise.
96346         * modules/stdbool: Likewise.
96347         * modules/stdint: Likewise.
96348         * modules/sys_select: Likewise.
96349         * modules/sys_socket: Likewise.
96350         * modules/sys_stat: Likewise.
96351         * modules/sysexits: Likewise.
96352         * modules/localcharset: Same as above, but continue using temporary
96353         file named "t-$@" (why different?) rather than the "$@-t" used
96354         everywhere else.
96356         * modules/sysexits (Makefile.am): Replace literal occurrences
96357         of "sysexit.h" more readable, and more consistent, "$@".
96359 2006-09-06  Bruno Haible  <bruno@clisp.org>
96361         * modules/striconv: New file.
96362         * modules/xstriconv: New file.
96363         * MODULES.html.sh (Internationalization functions): Add striconv,
96364         xstriconv.
96366 2006-09-06  Bruno Haible  <bruno@clisp.org>
96368         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
96369         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
96370         not using libtool correctly.
96372 2006-09-06  Bruno Haible  <bruno@clisp.org>
96374         * lib/striconv.h: New file.
96375         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
96376         iconvstring.c.
96377         * lib/xstriconv.h: New file.
96378         * lib/xstriconv.c: New file.
96380 2006-09-06  Bruno Haible  <bruno@clisp.org>
96382         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
96383         lib_..._LDFLAGS.
96385 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96387         * lib/argz_.h: Sync from Libtool.
96389         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
96390                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
96392         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
96394 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
96396         * modules/trim: New file.
96398 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
96400         * lib/trim.h: New file.
96401         * lib/trim.c: New file.
96403 2006-09-05  Bruno Haible  <bruno@clisp.org>
96405         * MODULES.html.sh (String handling): Add trim.
96407 2006-09-04  Karl Berry  <karl@gnu.org>
96409         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
96410         until next release.
96412 2006-09-03  Bruno Haible  <bruno@clisp.org>
96414         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
96415         correctly.
96417 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
96419         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
96420         not gl_GETLOADAVG.  Omit unneeded semicolons.
96421         Problems reported by Ralf Wildenhues in
96422         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
96423         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
96424         at the end, which is the usual gnulib style.
96426         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
96427         of doing all the work ourselves.
96428         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
96429         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
96431 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
96433         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
96434         Problem reported by Ralf Wildenhues in
96435         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
96437         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
96438         HAVE_STRUCT_STATFS_F_FSTYPENAME.
96440 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
96442         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
96443         yesterday's patch by changing test -n to test -z.
96445 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
96447         * modules/getloadavg (Files): Add m4/getloadavg.m4.
96448         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
96449         the former is now obsolescent.
96451         * modules/chdir-long (Depends-on): Add fcntl.
96453 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
96455         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
96456         obsolescent, and programs should use gnulib instead.
96457         * m4/getloadavg.m4: New file, with contents taken from Autoconf
96458         but with prefixes changed.
96460 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
96462         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
96463         or stdbool.h, because they might not exist while configuring.
96465         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
96466         Don't include unistd.h or limits.h; not needed, since chdir-long.h
96467         does that for us.
96468         (O_DIRECTORY): Remove.
96470 2006-08-31  Eric Blake  <ebb9@byu.net>
96472         * gnulib-tool: Don't let emacs change spaces to TAB.
96474 2006-08-31  Bruno Haible  <bruno@clisp.org>
96476         * gnulib-tool: When calling func_import more than once, do it in a
96477         subshell.
96478         Reported by Eric Blake <ebb9@byu.net>.
96480 2006-08-31  Bruno Haible  <bruno@clisp.org>
96482         * gnulib-tool (nl): Remove variable.
96483         (sed_transform_lib_file): Use more robust test for config-h module.
96484         (func_import): Fix typo in 2006-08-25 patch.
96486 2006-08-31  Bruno Haible  <bruno@clisp.org>
96488         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
96489         specified, augment Makefile.am variables instead of assigning them.
96491 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
96493         Work around a bug in both the Linux and SunOS 64-bit kernels:
96494         nanosleep mishandles sleeps for longer than 2**31 seconds.
96495         Problem reported by Frank v Waveren in
96496         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
96497         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
96498         Check for nanosleep bug.
96499         (LIB_NANOSLEEP): Append clock_gettime library if needed.
96501 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
96503         Work around a bug in both the Linux and SunOS 64-bit kernels:
96504         nanosleep mishandles sleeps for longer than 2**31 seconds.
96505         Problem reported by Frank v Waveren in
96506         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
96507         * lib/nanosleep.c (BILLION): New constant.
96508         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
96509         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
96510         implementation.
96512 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
96514         * modules/nanosleep (Depends-on): Add gettime.
96516 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
96517         and Simon Josefsson  <jas@extundo.com>
96518         and Oskar Liljeblad  <oskar@osk.mine.nu>
96520         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
96521         * gnulib-tool (func_import): New license type 'unmodifiable license
96522         text'.
96523         * modules/fdl: Use it.  Longer description.
96524         * module/gpl, module/lgpl: New files.
96526 2006-08-30  Jim Meyering  <jim@meyering.net>
96528         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
96529         shadowing the parameter.
96531 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96533         Sync from Libtool:
96535         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96537         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
96538         sharing with gnulib.  Report by Eric Blake.
96540 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
96542         * modules/isapipe: New file.
96543         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
96545 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
96547         * modules/configmake (Makefile.am): Add a comment, and omit
96548         the CONFIGMAKE_ prefix from generated macro names.  Suggested
96549         by Bruno Haible.
96551 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
96553         * m4/isapipe.m4: New file.
96555 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
96557         * lib/isapipe.c, lib/isapipe.h: New files.
96559 2006-08-29  Jim Meyering  <jim@meyering.net>
96561         * modules/configmake (Makefile.am): Make configmake.h depend on
96562         Makefile.  Otherwise, a stale configmake.h could hang around.
96564 2006-08-29  Eric Blake  <ebb9@byu.net>
96566         * lib/error.c (error_at_line, print_errno_message): Match libc, after
96567         resolution of upstream bug 3044.
96569 2006-08-29  Bruno Haible  <bruno@clisp.org>
96571         * modules/localcharset (Depends-on): Add configmake.
96572         (Makefile.am): Remove setting of LIBDIR through DEFS.
96574 2006-08-29  Bruno Haible  <bruno@clisp.org>
96576         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
96577         defined.
96579 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
96581         * modules/fcntl: New file.
96582         * modules/chdir-safer (Depends-on): Add fcntl.
96583         * modules/fts: Likewise.
96584         * modules/mkdir-p: Likewise.
96586         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
96587         This undoes the most recent change, since we're now addressing the
96588         problem in a different way.
96590         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
96591         into output, since the output might be called Makefile.am even
96592         if $makefile_name is something different.
96593         (func_import): Use $makefile_am rather than
96594         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
96595         empty.
96597         * modules/inttypes (Files): Add m4/inttypes-h.m4.
96599 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
96601         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
96602         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
96603         recent change to stdint.m4, since we're now addressing the problem in a
96604         different way.
96606 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
96608         * m4/fcntl_h.m4: New file.
96610 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
96612         * lib/fcntl_.h: New file.
96613         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
96614         the fcntl module.
96615         * lib/dirchownmod.c: Likewise.
96616         * lib/fts.c: Likewise.
96618         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
96619         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
96620         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
96621         just before including <inttypes.h>, to avoid circular inclusion.
96623 2006-08-28  Jim Meyering  <jim@meyering.net>
96625         * doc/visibility.texi: Actually read and correct the grammar of the
96626         sentence affected by yesterday's change.
96628 2006-08-28  Eric Blake  <ebb9@byu.net>
96630         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
96631         needs wrapper.
96633 2006-08-28  Eric Blake  <ebb9@byu.net>
96635         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
96637 2006-08-28  Eric Blake  <ebb9@byu.net>
96639         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
96641 2006-08-28  Bruno Haible  <bruno@clisp.org>
96643         * modules/c-strstr: New file, from GNU gettext.
96644         * MODULES.html.sh (String handling): Add c-strstr.
96646 2006-08-28  Bruno Haible  <bruno@clisp.org>
96648         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
96649         macros.
96650         Reported by Eric Blake.
96652 2006-08-28  Bruno Haible  <bruno@clisp.org>
96654         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
96655         (VASNPRINTF): Return a string of length > INT_MAX without failing.
96656         * lib/vasprintf.c: Include errno.h, limits.h.
96657         (EOVERFLOW): New fallback definition.
96658         (vasprintf): Test here whether the string length is > INT_MAX.
96659         * lib/vsnprintf.c: Include errno.h, limits.h.
96660         (EOVERFLOW): New fallback definition.
96661         (vsnprintf): Fix bug when generated string was too long for the buffer.
96662         Test here whether the string length is > INT_MAX.
96664 2006-08-28  Bruno Haible  <bruno@clisp.org>
96666         * lib/inttypes_.h (SCNX*): Remove definitions.
96667         Reported by Eric Blake.
96669 2006-08-28  Bruno Haible  <bruno@clisp.org>
96671         * lib/c-strstr.h: New file, from GNU gettext.
96672         * lib/c-strstr.c: New file, from GNU gettext.
96674 2006-08-28  Bruno Haible  <bruno@clisp.org>
96676         * gnulib-tool: Reorder some statements.
96678 2006-08-28  Bruno Haible  <bruno@clisp.org>
96680         * gnulib-tool: New option --makefile-name.
96681         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
96682         $makefile_name.
96683         (func_import): Write $makefile_name to the cache file, and read it from
96684         there unless explicitly specified. Use $makefile_name as file name
96685         instead of Makefile.am. Adjust the recommendations accordingly.
96687 2006-08-28  Bruno Haible  <bruno@clisp.org>
96689         * gnulib-tool (func_verify_module): Check against misapplying patch.
96691 2006-08-28  Bruno Haible  <bruno@clisp.org>
96693         * gnulib-tool (func_relativize, func_relconcat): New functions.
96694         Give an error if --local-dir is given with --update.
96695         Remove trailing slashes from $local_gnulib_dir.
96696         (func_import): Store the relativized $local_gnulib_dir in
96697         gnulib-cache.m4, and read it from there if not specified explicitly.
96699 2006-08-28  Bruno Haible  <bruno@clisp.org>
96701         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
96702         is the current directory. Respect also $local_gnulib_dir.
96704 2006-08-28  Bruno Haible  <bruno@clisp.org>
96705             Simon Josefsson  <jas@extundo.com>
96707         BeOS portability.
96708         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
96710 2006-08-27  Jim Meyering  <jim@meyering.net>
96712         * doc/visibility.texi: Remove duplicate word: "pointer".
96714 2006-08-26  Bruno Haible  <bruno@clisp.org>
96716         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
96717         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
96718         (Makefile.am): Create inttypes.h from inttypes_.h.
96719         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
96721         * modules/imaxabs: New file.
96723         * modules/imaxdiv: New file.
96725 2006-08-26  Bruno Haible  <bruno@clisp.org>
96727         * m4/inttypes.m4: New file.
96728         * m4/_inttypes_h.m4: Remove file.
96729         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
96730         PRI_MACROS_BROKEN.
96731         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
96733         * m4/imaxabs.m4: New file.
96735         * m4/imaxdiv.m4: New file.
96737 2006-08-26  Bruno Haible  <bruno@clisp.org>
96739         * lib/inttypes_.h: New file.
96740         * lib/inttypes.h: Remove file.
96741         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
96743         * lib/imaxabs.c: New file.
96745         * lib/imaxdiv.c: New file.
96747 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
96749         New config-h module, so that "make" output needn't be cluttered
96750         by -DHAVE_CONFIG_H.
96751         * MODULES.html.sh (Support for building libraries and executables):
96752         Add config-h.
96753         * modules/config-h: New file.
96754         * gnulib-tool (nl, sed_transform_lib_file): New vars.
96755         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
96756         the config-h module is used.
96758         New configmake module, so that "make" output needn't be cluttered
96759         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
96760         * MODULES.html.sh (Support for building libraries and executables):
96761         Add configmake.
96762         * modules/configmake: New file.
96764 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
96766         * m4/config-h.m4: New file.
96768 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
96770         * config/srclist.txt: Add elisp-comp.
96772 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
96774         * MODULES.html.sh (Support for building libraries and executables):
96775         Add elisp-comp.
96776         * build-aux/elisp-comp: New file.
96777         * modules/elisp-comp: New file.
96779 2006-08-24  Bruno Haible  <bruno@clisp.org>
96781         * gnulib-tool (func_create_testdir): Use non-default values of
96782         sourcebase and m4base.
96784 2006-08-24  Bruno Haible  <bruno@clisp.org>
96786         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
96787         HTML structure.
96789 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
96791         * modules/openat (Depends-on): Add lchown.
96793 2006-08-23  Bruno Haible  <bruno@clisp.org>
96795         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
96796         of gl_LOCK_EARLY instead of gl_LOCK.
96798 2006-08-23  Bruno Haible  <bruno@clisp.org>
96800         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
96801         on OSF/1 to no.
96802         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
96804 2006-08-23  Bruno Haible  <bruno@clisp.org>
96806         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
96807         as unusable.
96809         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
96810         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
96811         (gl_LOCK): New macro.
96813 2006-08-22  Simon Josefsson  <jas@extundo.com>
96815         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
96816         to md5 module.
96818 2006-08-22  Simon Josefsson  <jas@extundo.com>
96820         * MODULES.html.sh: Add "Support for maintaining and release
96821         projects".
96823         * build-aux/gnupload: New file, from coreutils.
96825 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
96827         Avoid the need for AC_LIBSOURCES in m4 macros.
96828         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
96829         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
96830         * modules/check-version (EXTRA_DIST): Add check-version.h.
96831         * modules/crc (EXTRA_DIST): Add crc.h.
96832         * modules/des (EXTRA_DIST): Add des.h.
96833         * modules/gc (EXTRA_DIST): Add gc.h.
96834         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
96835         * modules/getline (EXTRA_DIST): Add getline.h.
96836         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
96837         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
96838         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
96839         * modules/md2 (EXTRA_DIST): Add md2.h.
96840         * modules/md4 (EXTRA_DIST): Add md4.h.
96841         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
96842         * modules/read-file (EXTRA_DIST): Add read-file.h.
96843         * modules/readline (EXTRA_DIST): Add readline.h.
96844         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
96845         rijndael-api-fst.h.
96847 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
96849         * m4/rijndael.m4 (gl_ARCFOUR):
96850         * m4/arctwo.m4 (gl_ARCTWO):
96851         * m4/check-version.m4 (gl_CHECK_VERSION):
96852         * m4/crc.m4 (gl_CRC):
96853         * m4/des.m4 (gl_DES):
96854         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
96855         * m4/gc.m4 (gl_GC):
96856         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
96857         * m4/getline.m4 (gl_FUNC_GETLINE):
96858         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
96859         * m4/hmac-md5.m4 (gl_HMAC_MD5):
96860         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
96861         * m4/md2.m4 (gl_MD2):
96862         * m4/md4.m4 (gl_MD4):
96863         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
96864         * m4/read-file.m4 (gl_FUNC_READ_FILE):
96865         * m4/readline.m4 (gl_FUNC_READLINE):
96866         * m4/rijndael.m4 (gl_RIJNDAEL):
96867         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
96868         to get the necessary .h files and whatnot.
96870 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
96872         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
96873         gnulib rather than the other way around.
96874         * config/srclistvars.sh (COREUTILS): Remove.
96876 2006-08-22  Jim Meyering  <jim@meyering.net>
96878         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
96880         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
96882 2006-08-22  Eric Blake  <ebb9@byu.net>
96884         * modules/regexprops-generic: New file.
96885         * MODULES.html.sh (Support for building documentation): List it.
96887 2006-08-22  Eric Blake  <ebb9@byu.net>
96889         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
96890         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
96891         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
96892         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
96894 2006-08-22  Bruno Haible  <bruno@clisp.org>
96896         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
96897         and lib_LTLIBRARIES like the other lib_* variables.
96899 2006-08-22  Bruno Haible  <bruno@clisp.org>
96901         * build-aux/x-to-1.in: New file, from GNU gettext.
96903 2006-08-22  Bruno Haible  <bruno@clisp.org>
96905         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
96906         <utmpx.h> exists.
96908 2006-08-22  Bruno Haible  <bruno@clisp.org>
96910         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
96911         <utmpx.h> exists.
96913 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
96915         BeOS portability.
96916         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
96917         exist.
96918         Problem reported by Bruno Haible.
96920 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
96922         Avoid the need for AC_LIBSOURCES in m4 macros.
96923         * modules/acl (EXTRA_DIST): Add acl.h.
96924         * modules/argmatch (Files): Add m4/argmatch.m4.
96925         (configure.ac): Add gl_ARGMATCH.
96926         (EXTRA_DIST): Renamed from lib_SOURCES, for
96927         consistency with the other modules.  Remove argmatch.c.
96928         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
96929         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
96930         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
96931         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
96932         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
96933         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
96934         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
96935         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
96936         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
96937         * modules/closeout (EXTRA_DIST): Add closeout.h.
96938         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
96939         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
96940         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
96941         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
96942         dirname.h; remove basename.c and stripslash.c.
96943         * modules/exclude (EXTRA_DIST): Add exclude.h.
96944         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
96945         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
96946         * modules/file-type (EXTRA_DIST): Add file-type.h.
96947         * modules/filemode (EXTRA_DIST): Add filemode.h.
96948         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
96949         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
96950         * modules/fpending (EXTRA_DIST): Add __fpending.h.
96951         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
96952         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
96953         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
96954         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
96955         * modules/getdate (EXTRA_DIST): Add getdate.c.
96956         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
96957         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
96958         * modules/getpass (EXTRA_DIST): Add getpass.h.
96959         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
96960         * modules/group-member (EXTRA_DIST): Add group-member.h.
96961         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
96962         * modules/hash (EXTRA_DIST): Add hash.h.
96963         * modules/human (EXTRA_DIST): Add human.h.
96964         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
96965         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
96966         * modules/lchown (EXTRA_DIST): Add lchown.h.
96967         * modules/long-options (EXTRA_DIST): Add long-options.h.
96968         * modules/lstat (EXTRA_DIST): Add lstat.h.
96969         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
96970         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
96971         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
96972         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
96973         * modules/memxor (EXTRA_DIST): Add memxor.h.
96974         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
96975         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
96976         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
96977         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
96978         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
96979         * modules/physmem (EXTRA_DIST): Add physmem.h.
96980         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
96981         * modules/posixver (EXTRA_DIST): Add posixver.h.
96982         * modules/quote (EXTRA_DIST): Add quote.h.
96983         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
96984         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
96985         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
96986         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
96987         regex_internal.h regexec.c.
96988         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
96989         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
96990         * modules/same (EXTRA_DIST): Add same.h.
96991         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
96992         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
96993         * modules/savedir (EXTRA_DIST): Add savedir.h.
96994         * modules/sha1 (EXTRA_DIST): Add sha1.h.
96995         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
96996         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
96997         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
96998         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
96999         * modules/strdup (EXTRA_DIST): Add strdup.h.
97000         * modules/strftime (EXTRA_DIST): Add strftime.h.
97001         * modules/strndup (EXTRA_DIST): Add strndup.h.
97002         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
97003         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
97004         * modules/time_r (EXTRA_DIST): Add time_r.h.
97005         * modules/timespec (EXTRA_DIST): Add timespec.h.
97006         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
97007         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
97008         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
97009         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
97010         * modules/userspec (EXTRA_DIST): Add userspec.h.
97011         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
97012         * modules/utimens (EXTRA_DIST): Add utimens.h.
97013         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
97014         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
97015         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
97016         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
97017         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
97018         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
97019         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
97020         * modules/yesno (EXTRA_DIST): Add yesno.h.
97022 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
97024         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
97026         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
97027         * m4/dev-ino.m4, same-inode.m4: Remove.
97029         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
97030         * m4/acl.m4 (AC_FUNC_ACL):
97031         * m4/backupfile.m4 (gl_BACKUPFILE):
97032         * m4/c-strtod.m4 (gl_C99_STRTOLD):
97033         * m4/canon-host.m4 (gl_CANON_HOST):
97034         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
97035         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
97036         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
97037         * m4/cloexec.m4 (gl_CLOEXEC):
97038         * m4/close-stream.m4 (gl_CLOSE_STREAM):
97039         * m4/closeout.m4 (gl_CLOSEOUT):
97040         * m4/dirfd.m4 (gl_FUNC_DIRFD):
97041         * m4/dirname.m4 (gl_DIRNAME):
97042         * m4/exclude.m4 (gl_EXCLUDE):
97043         * m4/exitfail.m4 (gl_EXITFAIL):
97044         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
97045         * m4/file-type.m4 (gl_FILE_TYPE):
97046         * m4/filemode.m4 (gl_FILEMODE):
97047         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
97048         * m4/fpending.m4 (gl_FUNC_FPENDING):
97049         * m4/fprintftime.m4 (gl_FPRINTFTIME):
97050         * m4/fts.m4 (gl_FUNC_FTS):
97051         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
97052         * m4/getdate.m4 (gl_GETDATE):
97053         * m4/gethrxtime.m4 (gl_GETHRXTIME):
97054         * m4/getpagesize.m4 (gl_GETPAGESIZE):
97055         * m4/getpass.m4 (gl_FUNC_GETPASS):
97056         * m4/gettime.m4 (gl_GETTIME):
97057         * m4/getugroups.m4 (gl_GETUGROUPS):
97058         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
97059         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
97060         * m4/hard-locale.m4 (gl_HARD_LOCALE):
97061         * m4/hash.m4 (gl_HASH):
97062         * m4/idcache.m4 (gl_IDCACHE):
97063         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
97064         * m4/lchown.m4 (gl_FUNC_LCHOWN):
97065         * m4/long-options.m4 (gl_LONG_OPTIONS):
97066         * m4/lstat.m4 (gl_FUNC_LSTAT):
97067         * m4/md5.m4 (gl_MD5):
97068         * m4/memcasecmp.m4 (gl_MEMCASECMP):
97069         * m4/memcoll.m4 (gl_MEMCOLL):
97070         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
97071         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
97072         * m4/memxor.m4 (gl_MEMXOR):
97073         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
97074         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
97075         * m4/modechange.m4 (gl_MODECHANGE):
97076         * m4/mountlist.m4 (gl_MOUNTLIST):
97077         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
97078         * m4/openat.m4 (gl_FUNC_OPENAT):
97079         * m4/pathmax.m4 (gl_PATHMAX):
97080         * m4/physmem.m4 (gl_PHYSMEM):
97081         * m4/posixtm.m4 (gl_POSIXTM):
97082         * m4/posixver.m4 (gl_POSIXVER):
97083         * m4/quote.m4 (gl_QUOTE):
97084         * m4/quotearg.m4 (gl_QUOTEARG):
97085         * m4/readtokens.m4 (gl_READTOKENS):
97086         * m4/readutmp.m4 (gl_READUTMP):
97087         * m4/regex.m4 (gl_REGEX):
97088         * m4/safe-read.m4 (gl_SAFE_READ):
97089         * m4/safe-write.m4 (gl_SAFE_WRITE):
97090         * m4/same.m4 (gl_SAME):
97091         * m4/save-cwd.m4 (gl_SAVE_CWD):
97092         * m4/savedir.m4 (gl_SAVEDIR):
97093         * m4/settime.m4 (gl_SETTIME):
97094         * m4/sha1.m4 (gl_SHA1):
97095         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
97096         * m4/stat-macros.m4 (gl_STAT_MACROS):
97097         * m4/stat-time.m4 (gl_STAT_TIME):
97098         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
97099         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
97100         * m4/strdup.m4 (gl_FUNC_STRDUP):
97101         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
97102         * m4/strndup.m4 (gl_FUNC_STRNDUP):
97103         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
97104         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
97105         * m4/time_r.m4 (gl_TIME_R):
97106         * m4/timespec.m4 (gl_TIMESPEC):
97107         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
97108         * m4/unlinkdir.m4 (gl_UNLINKDIR):
97109         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
97110         * m4/userspec.m4 (gl_USERSPEC):
97111         * m4/utimecmp.m4 (gl_UTIMECMP):
97112         * m4/utimens.m4 (gl_UTIMENS):
97113         * m4/xalloc.m4 (gl_XALLOC):
97114         * m4/xgetcwd.m4 (gl_XGETCWD):
97115         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
97116         * m4/xreadlink.m4 (gl_XREADLINK):
97117         * m4/xstrtod.m4 (gl_XSTRTOD):
97118         * m4/yesno.m4 (gl_YESNO):
97119         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
97120         to get the necessary .h files and whatnot.
97122 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
97123             Bruno Haible  <bruno@clisp.org>
97125         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
97126         /bin/sh understanding of '!' conditional negation.
97128 2006-08-21  Jim Meyering  <jim@meyering.net>
97130         * modules/openat (Depends-on): Really alphabetize.
97132         * modules/acl (Depends-on): Add error and quote.
97134         * check-module (find_included_lib_files): Add at-func.c to the
97135         ok-to-include-more-than-once white list.
97137         * modules/openat (Depends-on): Add lstat.  Alphabetize.
97139 2006-08-21  Bruno Haible  <bruno@clisp.org>
97141         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
97142         Emit a pkgdata_DATA variable only if some snippets add contents to it.
97143         Reported by Martin Lambers <marlam@marlam.de>.
97145 2006-08-21  Bruno Haible  <bruno@clisp.org>
97147         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
97148         specify an installation location, don't emit a noinst_LIBRARIES or
97149         noinst_LTLIBRARIES assignment.
97151 2006-08-21  Bruno Haible  <bruno@clisp.org>
97153         BeOS portability.
97154         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
97155         BeOS has mbrtowc() but no <wctype.h>.
97157 2006-08-21  Bruno Haible  <bruno@clisp.org>
97159         BeOS portability.
97160         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
97161         exist.
97163 2006-08-21  Bruno Haible  <bruno@clisp.org>
97165         BeOS portability.
97166         * lib/mbchar.h: Include <wctype.h> only if it exists.
97168 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
97170         Remove files that are no longer needed by their respective modules.
97171         * m4/obstack.m4: Remove.
97172         * m4/strerror_r.m4: Remove.
97173         * m4/uint32_t.m4: Remove.
97174         * m4/uintptr_t.m4: Remove.
97175         * m4/ullong_max.m4: Remove.
97176         * m4/xstrtoimax.m4: Remove.
97177         * m4/xstrtoumax.m4: Remove.
97179         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
97180         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
97181         dependencies now capture this.
97183         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
97184         Do not use AC_LIBSOURCES, since gnulib modules now do this.
97185         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
97186         * m4/human.m4 (gl_HUMAN): Likewise.
97187         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
97188         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
97190         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
97192         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
97193         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
97194         stdint.
97195         * m4/human.m4 (gl_HUMAN): Likewise.
97196         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
97197         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
97198         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
97199         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
97200         * m4/xstrtol (gl_XSTRTOL): Likewise.
97202         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
97203         AC_TYPE_LONG_LONG_INT.
97204         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
97205         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
97206         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
97207         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
97209         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
97210         on stdbool.
97212         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
97213         (gl_PREREQ_XSTRTOUL): Remove.
97215         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
97217         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
97218         mode.
97220 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
97222         Add and change modules to make it easier for coreutils to use
97223         gnulib-tool.
97224         * modules/backupfile (Files): Remove m4/d-ino.m4.
97225         (Depends-on): Add d-ino.
97226         * modules/cycle-check (Depends-on): Add stdint.
97227         (lib_SOURCES): Add cycle-check.h.
97228         * modules/d-ino: New module.
97229         * modules/d-type: New module.
97230         * modules/error (Files): Remove m4/strerror_r.m4.
97231         * modules/filemode (Files): Add m4/st_dm_mode.m4.
97232         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
97233         m4/inttypes_h.m4, m4/uintmax_t.m4.
97234         (Depends-on): Add stdint.
97235         (lib_SOURCES): Add fsusage.h.
97236         * modules/getcwd (Files): Remove d-ino.m4.
97237         (Depends-on): Add d-ino.
97238         * modules/getndelim2 (Depends-on): Add stdint.
97239         * modules/glob (Files): Remove m4/d-type.m4.
97240         (Depends-on): Add d-type.
97241         * modules/host-os: New module.
97242         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
97243         m4/inttypes_h.m4, m4/uintmax_t.m4.
97244         * Depends-on: Add stdint.
97245         (lib_SOURCES): Add human.h.
97246         * modules/inttostr (Files): Remove m4/intmax_t.m4,
97247         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
97248         m4/uintmax_t.m4, m4/ulonglong.m4.
97249         (Depends-on): Add stdint.
97250         (EXTRA_DIST): Add inttostr.h.
97251         * modules/lchmod: New module.
97252         * modules/link-follow: New module.
97253         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
97254         (Depends-on): Add lchmod.
97255         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
97256         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
97257         (Depends-on): Add stdint.
97258         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
97259         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
97260         (Depends-on): Add stdint.
97261         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
97262         * modules/perl: New module.
97263         * modules/regex (Depends-on): Add stdint.
97264         * modules/rmdir-errno: New module.
97265         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
97266         m4/intmax_t.m4.
97267         (Depends-on): Add stdint.
97268         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
97269         m4/uintmax_t.m4.
97270         (Depends-on): Add stdint.
97271         * modules/unlink-busy: New module.
97272         * modules/utimecmp (Depends-on): Add stdint.
97273         * modules/uptime: New module.
97274         * modules/winsz-ioctl: New module.
97275         * modules/winsz-termios: New module.
97276         * modules/xnanosleep (Depends-on): Add nanosleep.
97277         * modules/ullong_max: Remove.
97278         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
97279         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
97280         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
97281         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
97282         (Depends-on): Add inttypes.
97283         (lib_SOURCES): Add xstrtol.h.
97284         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
97285         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
97286         * MODULES.html.sh: Move 'assert' into the assert section.
97287         Move 'dummy' into the linking section.
97288         Remove ullong_max.
97289         Add section for compatibility checks for POSIX:2001 functions,
97290         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
97291         winsz-ioctl, and winsz-termios into it.
97292         Add lchmod.
97293         Add top-level Misc section and put host-os, perl, and uptime
97294         into it.
97296 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
97298         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
97299         now assume the stdint module.  Do not include inttypes.h.
97300         * lib/fsusage.h: Likewise.
97301         * lib/getndelim2.c: Likewise.
97302         * lib/human.h: Likewise.
97303         * lib/inttostr.h: Likewise.
97304         * lib/obstack.c: Likewise.
97305         * lib/regex_internal.h: Likewise.
97306         * lib/tempname.c: Likewise.
97307         * lib/utimecmp.c: Likewise.
97308         * lib/xstrtol.h: Likewise.
97310         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
97312         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
97313         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
97314         * lib/xtime.h: Likewise.
97316 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
97318         * modules/openat (Files): Add lib/fchmodat.c.
97319         Fixes problem reported by Jay Youngman.
97321 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
97323         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
97324         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
97326 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
97327             Bruno Haible  <bruno@clisp.org>
97329         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
97330         and is a script that invokes bison. Tighten the code. Add comments.
97332 2006-08-18  Jim Meyering  <jim@meyering.net>
97334         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
97335         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
97336         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
97337         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
97339 2006-08-18  Bruno Haible  <bruno@clisp.org>
97341         * modules/bison-i18n: New file.
97342         * MODULES.html.sh (Internationalization functions): Add it.
97344 2006-08-18  Bruno Haible  <bruno@clisp.org>
97346         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
97347         sys/statvfs.h. When getmntinfo was found, check its declaration and
97348         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
97350 2006-08-18  Bruno Haible  <bruno@clisp.org>
97352         * m4/bison-i18n.m4: New file, from bison.
97354 2006-08-18  Bruno Haible  <bruno@clisp.org>
97356         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
97357         (ME_DUMMY): Treat "kernfs" as a dummy.
97358         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
97360 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
97362         Update from coreutils.
97364         2006-08-15  Jim Meyering  <jim@meyering.net>
97366         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
97368         2006-01-17  Jim Meyering  <jim@meyering.net>
97370         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
97372         2006-01-11  Jim Meyering  <jim@meyering.net>
97374         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
97375         Check for the lchmod function.
97377 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
97379         Update from coreutils.
97381         * lib/__fpending.h: Add copyright notice.
97382         * lib/fprintftime.h: Likewise.
97383         * lib/savedir.c: Use (C) in copyright notice.
97384         * lib/savedir.h: Likewise.
97386         2006-08-15  Jim Meyering  <jim@meyering.net>
97388         * lib/at-func.c: New file, with the logic of all emulated at-functions.
97389         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
97390         in support of the EXPECTED_ERRNO macro.
97391         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
97392         definitions.  Instead, define the appropriate symbols and include
97393         "at-func.c".
97394         * lib/mkdirat.c (mkdirat): Likewise.
97395         * lib/fchmodat.c (fchmodat): Likewise.
97396         (ENOSYS): Remove definition.
97397         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
97398         it.  Don't include "unistd--.h" -- it wasn't ever used.
97400         2006-01-17  Jim Meyering  <jim@meyering.net>
97402         Rewrite fts.c not to change the current working directory,
97403         by using openat, fstatat, fdopendir, etc..
97405         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
97406         (HAVE_OPENAT_SUPPORT): Define.
97407         [_LIBC] (fchdir): Don't undef or define; no longer used.
97408         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
97409         Now, this `function' always succeeds, and consumes its file descriptor
97410         parameter -- so callers must not close such FDs.  Update callers.
97411         (diropen_fd, opendirat, cwd_advance_fd): New functions.
97412         (diropen): Add parameter, SP.  Adjust all callers.
97413         Implement using diropen_fd, rather than open.
97414         (fts_open): Initialize new member, fts_cwd_fd.
97415         Remove fts_rft-setting code.
97416         (fts_close): Close fts_cwd_fd, if necessary.
97417         (__opendir2): Define in terms of opendir or opendirat,
97418         depending on whether the FST_NOCHDIR flag is set.
97419         (fts_build): Since fts_safe_changedir consumes its FD, and since
97420         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
97421         and close the dup'd file descriptor upon failure.
97422         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
97423         (fts_safe_changedir): Tweak semantics to reflect that this function
97424         now calls cwd_advance_fd and hence consumes its FD argument.
97425         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
97426         [struct FTS] (fts_rft): Remove now-unused member.
97427         [struct FTS] (fts_cycle.state): Improve comment.
97429         * lib/openat.c (openat_needs_fchdir): New function.
97430         * lib/openat.h (openat_needs_fchdir): Declare it.
97432 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
97434         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
97435         Problem and fix reported by Pádraig Brady in
97436         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
97438 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
97440         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
97442 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
97444         * lib/memcoll.c (memcoll): Optimize for the common case where the
97445         arguments are bytewise equal.
97447 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
97449         * doc/regexprops-generic.texi: Add a copyright notice.
97451 2006-08-15  Bruno Haible  <bruno@clisp.org>
97453         * modules/tmpdir (License): Change to LGPL.
97455 2006-08-15  Bruno Haible  <bruno@clisp.org>
97457         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
97458         module.
97460 2006-08-14  Simon Josefsson  <jas@extundo.com>
97462         * config/srclist.txt: Add gnupload.
97464 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
97466         Change copyright notice from LGPL 2 to GPL 2, since that's the
97467         standard form used in the gnulib repository.
97468         * tests/test-lock.c: Likewise.
97469         * tests/test-stdint.c: Likewise.
97470         * tests/test-tls.c: Likewise.
97472         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
97473         prelude-manager.  User shorter URLs for GNU projects, without '?'.
97474         Add copyright notice.
97476         * check-module: Add copyright notice.  Output a copyright
97477         notice if "--version" is specified.
97478         * modules/COPYING: New file.
97479         * tests/test-getaddrinfo.c: Add copyright notice.
97480         * tests/test-verify.c: Likewise.
97482 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
97484         Change copyright notice from LGPL 2 to GPL 2, since that's the
97485         standard form used in the gnulib repository.
97486         * lib/lock.c: LGPL -> GPL.
97487         * lib/lock.h: Likewise.
97488         * lib/strnlen1.c: Likewise.
97489         * lib/strnlen1.h: Likewise.
97490         * lib/tls.c: Likewise.
97491         * lib/tls.h: Likewise.
97492         * lib/tmpdir.c: Likewise.
97494         * lib/TODO: Remove; this belongs only in coreutils.
97496 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
97498         Add copyright notices to long-enough files that lack them, since
97499         otherwise the files aren't clearly free.  Use the same notice that
97500         getdate.texi already uses.
97501         * doc/alloca-opt.texi: Add copyright notice.
97502         * doc/alloca.texi: Likewise.
97503         * doc/ctime.texi: Likewise.
97504         * doc/functions.texi: Likewise.
97505         * doc/gcd.texi: Likewise.
97506         * doc/gnulib-tool.texi: Likewise.
97507         * doc/inet_ntoa.texi: Likewise.
97508         * doc/visibility.texi: Likewise.
97510         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
97511         * doc/quote.texi: Add copyright notice.
97513         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
97514         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
97515         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
97516         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
97517         is now obsolete, and give a pointer to the Sun list.
97518         Add copyright notice.
97520 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
97522         * config/srclistvars.sh: Add copyright notice.
97524 2006-08-14  Eric Blake  <ebb9@byu.net>
97526         Import the following change from libc:
97528         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
97530         Upstream bug 2997.
97531         * lib/misc/error.c: Add space between program name and message if file
97532         name is missing.
97534 2006-08-12  Karl Berry  <karl@gnu.org>
97536         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
97537         remove, these originate in gnulib now.
97539 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97541         * doc/Makefile (standards.info standards.html standards.dvi):
97542         Also depend on make-stds.texi.
97544 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
97546         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
97547         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
97549         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
97550         in wchar_t.  Problem reported by Eric Blake.
97552         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
97553         LEN is smaller than SIZE.  Suggested by Bruno Haible.
97554         Also, help the compiler to keep LEN in a register.
97556 2006-08-11  Eric Blake  <ebb9@byu.net>
97558         * users.txt: Sort.  Add tar.
97560 2006-08-11  Bruno Haible  <bruno@clisp.org>
97562         * users.txt: New file.
97564 2006-08-11  Bruno Haible  <bruno@clisp.org>
97566         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
97567         before <wchar.h>. Needed for OSF/1 and BSD/OS.
97569 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
97571         * modules/snprintf (Depends-on): Remove minmax.
97572         (Maintainer): Add self and Bruno.
97574 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
97576         * lib/.cppi-disable: Add snprintf.h, socket_.h.
97577         * lib/snprintf.c: Include <errno.h> and <limits.h>.
97578         (EOVERFLOW): Define if the system does not.
97579         Do not include "minmax.h"; it wasn't used.
97580         (snprintf): Don't assume size_t promotes to an unsigned type.
97581         Fix bug when generated string was too long for the buffer: the
97582         buffer's contents are supposed to be the initial prefix of the
97583         output.  Don't assume vasnprintf returns EOVERFLOW if the size
97584         exceeds INT_MAX; do the check ourselves.
97586         Import the following changes from libc:
97588         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
97590         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
97591         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
97592         set wc to the byte which couldn't be converted.
97593         (re_string_reconstruct): Don't clear valid_raw_len before calling
97594         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
97595         tip_context using re_string_context_at.
97597         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
97599         * lib/posix/regex.h: g++ still cannot handled [restrict].
97601         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
97603         * lib/posix/regex.h: Remove special handling for VMS.
97605 2006-08-10  Jim Meyering  <jim@meyering.net>
97607         * modules/same-inode: New module.
97608         * modules/dev-ino: New module.
97609         * modules/cycle-check: Depend on these modules, rather than simply
97610         including their .h files.
97611         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
97612         required via m4/cycle-check.m4.
97613         * modules/same: Depend on new same-inode module, rather than
97614         including same-inode.h.
97615         * modules/chdir-safer: New file.
97617         * modules/chown (Depends-on): Add stat-macros.
97619 2006-08-10  Jim Meyering  <jim@meyering.net>
97621         * m4/cycle-check.m4: New file.
97622         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
97623         * m4/dev-ino.m4, m4/same-inode.m4: New files.
97625 2006-08-10  Eric Blake  <ebb9@byu.net>
97627         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
97628         in from original proposal.
97630 2006-08-10  Eric Blake  <ebb9@byu.net>
97631         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
97633         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
97634         namespace.
97636 2006-08-10  Bruno Haible  <bruno@clisp.org>
97638         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
97639         as well.
97641 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
97643         Sync from coreutils.
97645         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
97647         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
97648         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
97650 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
97652         * modules/restrict: Remove; no longer needed now that we assume
97653         Autoconf 2.59 or later.
97654         * MODULES.html.sh: Remove 'restrict'.
97655         * modules/argp (Depends-on): Remove 'restrict'.
97656         * modules/base64 (Depends-on): Likewise.
97657         * modules/gc (Depends-on): Likewise.
97658         * modules/getaddrinfo (Depends-on): Likewise.
97659         * modules/glob (Depends-on): Likewise.
97660         * modules/inet_ntop (Depends-on): Likewise.
97661         * modules/inet_pton (Depends-on): Likewise.
97662         * modules/memxor (Depends-on): Likewise.
97663         * modules/regex (Depends-on): Likewise.
97664         * modules/strtok_r (Depends-on): Likewise.
97665         * modules/time_r (Depends-on): Likewise.
97667 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
97669         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
97670         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
97671         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
97672         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
97673         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
97674         * m4/memxor.m4 (gl_MEMXOR): Likewise.
97675         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
97676         gl_C_RESTRICT replaced by AC_C_RESTRICT.
97678         Merge from coreutils.
97679         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
97680         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
97681         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
97682         * m4/time_r.m4 (gl_TIME_R): Likewise.
97684 2006-08-09  Karl Berry  <karl@gnu.org>
97686         * config/srclist.txt: no more gettext-tools, per Bruno.
97688 2006-08-08  Eric Blake  <ebb9@byu.net>
97690         * modules/verror: New module.
97691         * MODULES.html.sh: Document it.
97693 2006-08-08  Eric Blake  <ebb9@byu.net>
97695         * lib/verror.h, lib/verror.c: New files.
97697 2006-08-08  Eric Blake  <ebb9@byu.net>
97699         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
97700         verror_at_line output complies with GNU Coding Standards even when
97701         file is NULL.
97703 2006-08-07  Bruno Haible  <bruno@clisp.org>
97705         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
97706         versions of AIX.
97707         Reported by Ralf Wildenhues.
97709 2006-08-07  Bruno Haible  <bruno@clisp.org>
97711         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
97712         in an AC_DEFUN. Needed so that the autoconf snippets can use
97713         AC_REQUIRE.
97715 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97717         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
97718         Initialize pkgdata_DATA.
97719         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
97720         overriding it.
97722 2006-08-06  Eric Blake  <ebb9@byu.net>
97724         * lib/error.h: Fold in some upstream changes from glibc.
97725         * lib/error.c: Likewise.
97727 2006-08-04  Bruno Haible  <bruno@clisp.org>
97729         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
97730         Make the mostlyclean-local rule depend on mostlyclean-generic.
97731         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
97733 2006-07-31  Bruno Haible  <bruno@clisp.org>
97735         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
97736         <stdlib.h>, <string.h>.
97738 2006-07-30  Bruno Haible  <bruno@clisp.org>
97740         * modules/readlink (License): Change to LGPL.
97742 2006-07-30  Bruno Haible  <bruno@clisp.org>
97744         * modules/javaversion (Makefile.am): Distribute javaversion.java and
97745         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
97746         set PKGDATADIR to point to it.
97748 2006-07-30  Bruno Haible  <bruno@clisp.org>
97750         * modules/csharpexec (configure.ac): Comment out macro invocation.
97751         * modules/javaexec (configure.ac): Likewise.
97752         * modules/javacomp-script (configure.ac): Likewise.
97754         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
97756 2006-07-30  Bruno Haible  <bruno@clisp.org>
97758         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
97759         linked-list.
97761 2006-07-30  Bruno Haible  <bruno@clisp.org>
97763         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
97765 2006-07-30  Bruno Haible  <bruno@clisp.org>
97767         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
97768         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
97769         get removed.
97771 2006-07-29  Bruno Haible  <bruno@clisp.org>
97773         Make it possible for gnulib-tool to work with locally modified or
97774         augmented gnulib repositories.
97775         * gnulib-tool (func_usage): Document --local-dir option.
97776         (local_gnulib_dir): New variable.
97777         Handle --local-dir option.
97778         (func_lookup_file): New function.
97779         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
97780         (func_get_description, func_get_filelist, func_get_description,
97781         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
97782         func_get_automake_snippet, func_get_include_directive,
97783         func_get_license, func_get_maintainer): Use func_lookup_file.
97784         (func_import, func_create_testdir): Use func_lookup_file.
97786 2006-07-29  Bruno Haible  <bruno@clisp.org>
97788         * modules/setenv (Depends-on): Add unistd.
97790 2006-07-29  Bruno Haible  <bruno@clisp.org>
97792         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
97794 2006-07-29  Bruno Haible  <bruno@clisp.org>
97796         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
97798 2006-07-29  Bruno Haible  <bruno@clisp.org>
97800         * gnulib-tool (import, update): If there is no Makefile.am, look at
97801         aclocal.m4, instead of bailing out.
97803 2006-07-29  Bruno Haible  <bruno@clisp.org>
97805         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
97806         Categorize the options by when they are useful.
97808 2006-07-29  Bruno Haible  <bruno@clisp.org>
97810         * gnulib-tool (func_usage): Document option --no-libtool.
97811         Handle option --no-libtool.
97812         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
97813         for changed semantics of $libtool variable.
97814         (func_import): Likewise. If libtool is not used, show this through
97815         an option --no-libtool.
97816         (func_create_testdir): Update.
97818 2006-07-29  Bruno Haible  <bruno@clisp.org>
97820         * gnulib-tool (func_import): Extend error message about missing
97821         --doc-base.
97823 2006-07-29  Bruno Haible  <bruno@clisp.org>
97825         * gnulib-tool (func_import): Don't create the $docbase directory if
97826         there is no file to store there.
97828 2006-07-29  Bruno Haible  <bruno@clisp.org>
97830         * gnulib-tool (autoconf_minversion): If a --dir option is given and
97831         relevant, look for configure.ac there, not in the current directory.
97832         Also use a simple search for AC_PREREQ, not "autoconf --trace".
97834 2006-07-29  Bruno Haible  <bruno@clisp.org>
97836         * gnulib-tool (SORT): New variable.
97837         (func_usage): Undocument --assume-autoconf option.
97838         Remove --assume-autoconf option handling.
97839         (autoconf_minversion): Determine from the contents of configure.ac.
97840         (func_import): Remove autoconf_minversion handling.
97841         Suggested by Eric Blake.
97843 2006-07-29  Bruno Haible  <bruno@clisp.org>
97845         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
97847 2006-07-29  Bruno Haible  <bruno@clisp.org>
97849         * config/srclist.txt (*setenv.[ch]): Remove rules.
97851 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97853         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
97855 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97857         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
97858         arpa/inet.h.
97860 2006-07-28  Simon Josefsson  <jas@extundo.com>
97862         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
97863         * modules/inet_pton (Depends-on): Likewise.
97865 2006-07-28  Simon Josefsson  <jas@extundo.com>
97867         * m4/netinet_in_h.m4: New file.
97869 2006-07-28  Simon Josefsson  <jas@extundo.com>
97871         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
97872         #include's.
97874 2006-07-28  Simon Josefsson  <jas@extundo.com>
97876         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
97877         #include's.
97879 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
97881         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
97882         setgid on directories only if they set these bits.
97883         * lib/modechange.h: Remove obsolete comment about masks.
97885 2006-07-28  Eric Blake  <ebb9@byu.net>
97887         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
97888         macro expansion.
97890 2006-07-28  Bruno Haible  <bruno@clisp.org>
97892         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
97894 2006-07-28  Bruno Haible  <bruno@clisp.org>
97896         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
97898 2006-07-28  Bruno Haible  <bruno@clisp.org>
97900         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
97901         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
97902         Define fallbacks.
97903         Avoids link error on FreeBSD 4.x.
97904         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
97906         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
97907         encoding.
97908         * lib/mbswidth.c (iswcntrl): Likewise.
97910 2006-07-27  Bruno Haible  <bruno@clisp.org>
97912         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
97913         test.
97915 2006-07-27  Bruno Haible  <bruno@clisp.org>
97917         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
97918         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
97919         defined.
97921 2006-07-26  Eric Blake  <ebb9@byu.net>
97923         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
97925 2006-07-26  Eric Blake  <ebb9@byu.net>
97927         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
97928         like mingw that lack mkstemp.
97929         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
97930         avoid compilation warning on mingw.
97932 2006-07-26  Bruno Haible  <bruno@clisp.org>
97934         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
97935         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
97936         INT_FAST*_MIN, INTPTR_MIN.
97938 2006-07-25  Bruno Haible  <bruno@clisp.org>
97940         * modules/version-etc (Depends-on): Add stdarg.
97942 2006-07-25  Bruno Haible  <bruno@clisp.org>
97944         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
97945         complex commands.
97947 2006-07-25  Bruno Haible  <bruno@clisp.org>
97949         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
97950         defined in <stdarg.h> or config.h.
97952 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
97954         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
97955         (gl_STDIO_SAFER): Remove.
97957 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
97959         * MODULES.html.sh (File stream based Input/Output):
97960         Add fopen-safer, tmpfile-safer; remove stdio-safer.
97961         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
97962         * modules/fopen-safer, modules/tmpfile-safer: New files.
97963         * modules/stdio-safer: Remove.
97965 2006-07-24  Bruno Haible  <bruno@clisp.org>
97967         * modules/tmpdir: New file.
97968         * MODULES.html.sh (File system functions): Add it.
97970 2006-07-24  Bruno Haible  <bruno@clisp.org>
97972         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
97973         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
97975 2006-07-24  Bruno Haible  <bruno@clisp.org>
97977         * modules/clean-temp: New file.
97979 2006-07-24  Bruno Haible  <bruno@clisp.org>
97981         * m4/tmpdir.m4: New file, from GNU gettext.
97983 2006-07-24  Bruno Haible  <bruno@clisp.org>
97985         * lib/tmpdir.h: New file, from GNU gettext.
97986         * lib/tmpdir.c: New file, from GNU gettext.
97988 2006-07-24  Bruno Haible  <bruno@clisp.org>
97990         * lib/clean-temp.h: New file, from GNU gettext.
97991         * lib/clean-temp.c: New file, from GNU gettext.
97993 2006-07-23  Eric Blake  <ebb9@byu.net>
97995         * modules/stdio-safer (Files): Add tmpfile-safer.c.
97996         (Depends-on): Add binary-io.
97998 2006-07-23  Eric Blake  <ebb9@byu.net>
98000         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
98002 2006-07-23  Eric Blake  <ebb9@byu.net>
98004         * lib/tmpfile-safer.c: New file.
98005         * lib/stdio-safer.h (fopen_safer): Add prototype.
98006         * lib/stdio--.h (tmpfile): Make safer.
98008 2006-07-23  Bruno Haible  <bruno@clisp.org>
98010         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
98011         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
98012         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
98013         gl_linked_remove_at): Use it.
98015 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98016         and Simon Josefsson <jas@extundo.com>
98018         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
98020         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
98022 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
98024         * modules/close-stream: New file.
98025         * modules/closeout (Description): Make it clear that it exits
98026         with a diagnostic on error.
98027         (Depends-on): Add close-stream.  Remove fpending, stdbool.
98028         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
98030 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
98032         * m4/close-stream.m4: New file.
98034 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
98036         * lib/close-stream.c, lib/close-stream.h: New files.
98038 2006-07-22  Bruno Haible  <bruno@clisp.org>
98040         Merge from GNU gettext 0.15.
98042         2006-05-01  Bruno Haible  <bruno@clisp.org>
98044                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
98046         2006-07-22  Bruno Haible  <bruno@clisp.org>
98048                 * modules/javaversion: New file.
98049                 * MODULES.html.sh (Java): Add javaversion.
98051         2006-03-12  Bruno Haible  <bruno@clisp.org>
98053                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
98055         2005-12-04  Bruno Haible  <bruno@clisp.org>
98057                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
98058                 (untested).
98060         2006-06-21  Bruno Haible  <bruno@clisp.org>
98062                 Avoid warnings from recent versions of mcs.
98063                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
98064                 -o, -L, -r any more. Use options documented since mcs-1.0
98065                 instead. Similarly for -g.
98067         2005-12-04  Bruno Haible  <bruno@clisp.org>
98069                 * build-aux/csharpcomp.sh.in: Suffix for resources is
98070                 .resources, not .resource.
98072         2005-07-09  Bruno Haible  <bruno@clisp.org>
98074                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
98075                 add a .dll suffix.
98076                 Reported by Mark Junker <mjscod@gmx.de>.
98078         2006-07-22  Bruno Haible  <bruno@clisp.org>
98080                 * modules/gettext: Upgrade to gettext-0.15.
98081                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
98082                 m4/visibility.m4.
98083                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
98085 2006-07-22  Bruno Haible  <bruno@clisp.org>
98087         Merge from GNU gettext 0.15.
98089         2006-03-25  Bruno Haible  <bruno@clisp.org>
98091                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
98093         2006-07-21  Bruno Haible  <bruno@clisp.org>
98095                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
98096                 "1.1".
98098         2006-05-09  Bruno Haible  <bruno@clisp.org>
98100                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
98101                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
98102                 for the conftestver execution.
98104         2006-05-01  Bruno Haible  <bruno@clisp.org>
98106                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
98107                 optional target-version argument. Verify that the compiler
98108                 groks source of the specified source-version, or add -source
98109                 option as necessary. Verify that the compiler produces
98110                 bytecode in the specified target-version, or add -target and
98111                 -source options as necessary. Make the result of the test
98112                 available as variable CONF_JAVAC. Also log error output in
98113                 config.log.
98115         2006-03-11  Bruno Haible  <bruno@clisp.org>
98117                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
98119         2006-05-09  Bruno Haible  <bruno@clisp.org>
98121                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
98122                 CLASSPATH_SEPARATOR to a semicolon.
98124         2006-03-12  Bruno Haible  <bruno@clisp.org>
98126                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
98127                 available as variable CONF_JAVA, for subsequent autoconf
98128                 tests. Also log error output in config.log.
98130         2006-07-19  Bruno Haible  <bruno@clisp.org>
98132                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
98133                 that getline works on glibc2 systems. Needed to avoid trouble
98134                 in relocatable.c.
98135                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
98137         2005-12-04  Bruno Haible  <bruno@clisp.org>
98139                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
98140                 launcher (untested).
98142         2005-12-04  Bruno Haible  <bruno@clisp.org>
98144                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
98146         2006-07-22  Bruno Haible  <bruno@clisp.org>
98148                 * gettext.m4: Update from GNU gettext-0.15.
98149                 * nls.m4: Likewise.
98150                 * po.m4: Likewise.
98151                 * inttypes-pri.m4: Likewise.
98152                 * inttypes-h.m4: Renamed from inttypes.m4.
98153                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
98155 2006-07-22  Bruno Haible  <bruno@clisp.org>
98157         Merge from GNU gettext 0.15.
98159         2005-07-05  Bruno Haible  <bruno@clisp.org>
98161                 * printf-args.c (printf_fetchargs): Work around broken
98162                 definition of wint_t on mingw.
98164         2005-02-12  Bruno Haible  <bruno@clisp.org>
98166                 * xallocsa.h: Add extern "C" for C++.
98168         2006-05-17  Bruno Haible  <bruno@clisp.org>
98170                 Cygwin portability.
98171                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
98173         2006-04-30  Bruno Haible  <bruno@clisp.org>
98175                 * progreloc.c: Include <mach-o/dyld.h> if available.
98176                 (find_executable): Use _NSGetExecutablePath when possible.
98178         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
98180                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
98181                 function.
98183         2005-12-29  Bruno Haible  <bruno@clisp.org>
98185                 * progreloc.c (set_program_name_and_installdir): Fix
98186                 compilation error.
98188         2005-12-04  Bruno Haible  <bruno@clisp.org>
98190                 Cygwin portability.
98191                 * progreloc.c: Include <windows.h> also on Cygwin.
98192                 (find_executable): Add support for Cygwin.
98193                 (set_program_name_and_installdir): Handle also platforms with
98194                 nonempty EXEEXT.
98196         2006-07-11  Bruno Haible  <bruno@clisp.org>
98198                 * javacomp.c: Fix a comment.
98199                 Reported by Jim Meyering.
98201         2006-04-30  Bruno Haible  <bruno@clisp.org>
98203                 * javacomp.h (compile_java_class): Add source_version,
98204                 target_version arguments.
98205                 * javacomp.c: Rewritten to choose only a compiler that
98206                 respects the specified source_version and target_version.
98208         2006-06-27  Bruno Haible  <bruno@clisp.org>
98210                 Assume correct S_ISDIR macro.
98211                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
98213         2006-07-22  Bruno Haible  <bruno@clisp.org>
98215                 * javaversion.h: New file, from GNU gettext.
98216                 * javaversion.c: New file, from GNU gettext.
98217                 * javaversion.java: New file, from GNU gettext.
98218                 * javaversion.class: New file, from GNU gettext.
98220         2006-05-17  Bruno Haible  <bruno@clisp.org>
98222                 Cygwin portability.
98223                 * javaexec.c (execute_java_class): Test for jview program
98224                 also on Cygwin.
98226         2006-04-09  Bruno Haible  <bruno@clisp.org>
98228                 * fatal-signal.c: Don't include string.h.
98229                 (at_fatal_signal): Use a copying loop instead of memcpy.
98231         2005-12-04  Bruno Haible  <bruno@clisp.org>
98233                 * csharpexec.c: Add support for 'clix' launcher (untested).
98234                 (execute_csharp_using_sscli): New function.
98235                 (execute_csharp_program): Call it.
98237         2006-06-21  Bruno Haible  <bruno@clisp.org>
98239                 Avoid warnings from recent versions of mcs.
98240                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
98241                 -o, -L, -r any more. Use options documented since mcs-1.0
98242                 instead. Similarly for -g.
98244         2005-07-09  Bruno Haible  <bruno@clisp.org>
98246                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
98247                 add a .dll suffix.
98248                 Reported by Mark Junker <mjscod@gmx.de>.
98250         2006-06-17  Bruno Haible  <bruno@clisp.org>
98252                 * config.charset: Update for NetBSD 3.0.
98254         2006-05-17  Bruno Haible  <bruno@clisp.org>
98256                 Cygwin portability.
98257                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
98259         2006-05-16  Bruno Haible  <bruno@clisp.org>
98261                 * localcharset.c [CYGWIN]: Include <windows.h>.
98262                 (get_charset_aliases): For Cygwin, return the same CPxxx
98263                 aliases list as under WIN32.
98264                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
98265                 the environment variables. Fall back to GetACP().
98267         2006-04-05  Bruno Haible  <bruno@clisp.org>
98269                 * config.charset: Update Juan Manuel Guerrero's address.
98271         2005-02-12  Bruno Haible  <bruno@clisp.org>
98273                 * allocsa.h: Add extern "C" for C++.
98275         2005-02-10  Bruno Haible  <bruno@clisp.org>
98277                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
98278                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
98280         2006-07-22  Bruno Haible  <bruno@clisp.org>
98282                 * gettext.h: Update to GNU gettext-0.15.
98284 2006-07-22  Bruno Haible  <bruno@clisp.org>
98286         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
98287         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
98288         lib-prefix.m4, longdouble.m4, ssize_t.m4.
98290 2006-07-21  Eric Blake  <ebb9@byu.net>
98292         * modules/stdlib-safer: New file.
98293         * MODULES.html.sh (File stream based Input/Output): Add
98294         stdlib-safer.
98296 2006-07-21  Eric Blake  <ebb9@byu.net>
98298         * lib/stdlib-safer.h: New file from coreutils, required by
98299         stdlib--.h.
98301 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
98303         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
98305 2006-07-20  Bruno Haible  <bruno@clisp.org>
98307         * gnulib-tool: Recognize new option --assume-autoconf.
98308         (autoconf_minversion): New variable.
98309         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
98311 2006-07-20  Bruno Haible  <bruno@clisp.org>
98313         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
98315 2006-07-19  Derek R. Price  <derek@ximbiot.com>
98317         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
98318         Reindent and repaginate.
98320 2006-07-19  Derek Price  <derek@ximbiot.com>
98322         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
98323         Correct grammar.
98325 2006-07-17  Bruno Haible  <bruno@clisp.org>
98327         * modules/list: New file.
98328         * modules/array-list: New file.
98329         * modules/carray-list, modules/carray-list-tests: New files.
98330         * modules/linked-list, modules/linked-list-tests: New files.
98331         * modules/avltree-list, modules/avltree-list-tests: New files.
98332         * modules/rbtree-list, modules/rbtree-list-tests: New files.
98333         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
98334         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
98335         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
98336         * modules/oset: New file.
98337         * modules/array-oset: New file.
98338         * modules/avltree-oset, modules/avltree-oset-tests: New files.
98339         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
98340         * tests/test-carray_list.c: New file.
98341         * tests/test-linked_list.c: New file.
98342         * tests/test-avltree_list.c: New file.
98343         * tests/test-rbtree_list.c: New file.
98344         * tests/test-linkedhash_list.c: New file.
98345         * tests/test-avltreehash_list.c: New file.
98346         * tests/test-rbtreehash_list.c: New file.
98347         * tests/test-avltree_oset.c: New file.
98348         * tests/test-rbtree_oset.c: New file.
98349         * MODULES.html.sh (Container data structures): New section.
98351 2006-07-17  Bruno Haible  <bruno@clisp.org>
98353         * m4/gl_list.m4: New file.
98355 2006-07-17  Bruno Haible  <bruno@clisp.org>
98357         * lib/gl_list.h: New file.
98358         * lib/gl_list.c: New file.
98359         * lib/gl_array_list.h: New file.
98360         * lib/gl_array_list.c: New file.
98361         * lib/gl_carray_list.h: New file.
98362         * lib/gl_carray_list.c: New file.
98363         * lib/gl_linked_list.h: New file.
98364         * lib/gl_linked_list.c: New file.
98365         * lib/gl_anylinked_list1.h: New file.
98366         * lib/gl_anylinked_list2.h: New file.
98367         * lib/gl_avltree_list.h: New file.
98368         * lib/gl_avltree_list.c: New file.
98369         * lib/gl_anyavltree_list1.h: New file.
98370         * lib/gl_anyavltree_list2.h: New file.
98371         * lib/gl_rbtree_list.h: New file.
98372         * lib/gl_rbtree_list.c: New file.
98373         * lib/gl_anyrbtree_list1.h: New file.
98374         * lib/gl_anyrbtree_list2.h: New file.
98375         * lib/gl_anytree_list1.h: New file.
98376         * lib/gl_anytree_list2.h: New file.
98377         * lib/gl_linkedhash_list.h: New file.
98378         * lib/gl_linkedhash_list.c: New file.
98379         * lib/gl_anyhash_list1.h: New file.
98380         * lib/gl_anyhash_list2.h: New file.
98381         * lib/gl_avltreehash_list.h: New file.
98382         * lib/gl_avltreehash_list.c: New file.
98383         * lib/gl_rbtreehash_list.h: New file.
98384         * lib/gl_rbtreehash_list.c: New file.
98385         * lib/gl_anytreehash_list1.h: New file.
98386         * lib/gl_anytreehash_list2.h: New file.
98388         * lib/gl_oset.h: New file.
98389         * lib/gl_oset.c: New file.
98390         * lib/gl_array_oset.h: New file.
98391         * lib/gl_array_oset.c: New file.
98392         * lib/gl_avltree_oset.h: New file.
98393         * lib/gl_avltree_oset.c: New file.
98394         * lib/gl_rbtree_oset.h: New file.
98395         * lib/gl_rbtree_oset.c: New file.
98396         * lib/gl_anytree_oset.h: New file.
98398 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
98400         * m4/mkancesdirs.m4: New file.
98401         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
98402         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
98403         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
98404         it.
98406 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
98408         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
98409         * lib/mkancesdirs.h: New files.
98410         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
98411         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
98412         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
98413         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
98414         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
98415         callers changed.  Revamp internals significantly, by not
98416         attempting to create directories that are temporarily more
98417         permissive than the final results.  Do not attempt to use
98418         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
98419         This removes some race conditions, fixes some bugs, and simplifies
98420         things.  Use new dirchownmod function to do owner and mode changes.
98421         * lib/mkdir-p.h: Likewise.
98422         * lib/modechange.c (octal_to_mode): New function.
98423         (struct mode_change): New member mentioned.
98424         (make_node_op_equals): New arg mentioned.  All callers changed.
98425         (mode_compile): Keep track of which mode bits the user has explicitly
98426         mentioned.
98427         (mode_adjust): New arg DIR, so that we implement the X op correctly.
98428         New arg PMODE_BITS, to keep track of which mode bits the user
98429         mentioned; it treats S_ISUID and S_ISGID speciall.
98430         All callers changed.
98431         * lib/modechange.h: Likewise.
98433 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
98435         * MODULES.html.sh: Add mkancestors.
98436         * modules/mkancesdirs: New module.
98437         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
98438         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
98439         The chdir-safer and afs files are now orphans; I'll remove them
98440         unless someone speaks up.
98441         Add lib/dirchownmod.c, lib/dirchownmod.h.
98442         (Depends-on): Remove alloca, chown, save-cwd, dirname.
98443         Add lchown, mkancesdirs.
98444         (Maintainer): Add self.
98446 2006-07-15  Karl Berry  <karl@gnu.org>
98448         * gnulib-tool: help message wording/arrangement.
98450 2006-07-14  Simon Josefsson  <jas@extundo.com>
98452         * doc/gnulib.texi (Libtool and Windows): New section.
98454 2006-07-12  Simon Josefsson  <jas@extundo.com>
98456         * modules/gendocs (License): Fix license, approved by Karl.
98458 2006-07-12  Eric Blake  <ebb9@byu.net>
98460         * MODULES.html.sh: Add gendocs.
98462 2006-07-11  Eric Blake  <ebb9@byu.net>
98464         * modules/fdl: New module, to install doc/fdl.texi.
98465         * MODULES.html.sh: Add new section for documentation modules.
98466         * gnulib-tool: Avoid space-tab.
98467         (--doc-base): New option, to manage files from doc.
98469 2006-07-11  Eric Blake  <ebb9@byu.net>
98471         * m4/absolute-header.m4: Fix comments to match recent change.
98473 2006-07-11  Eric Blake  <ebb9@byu.net>
98475         * gnulib-tool: List --doc-base before --tests-base.
98477 2006-07-11  Derek R. Price  <derek@ximbiot.com>
98479         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
98481 2006-07-11  Bruno Haible  <bruno@clisp.org>
98483         * README: Mention where to put documentation.
98485 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98487         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
98489 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
98491         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
98492         to stdint.m4.
98494 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
98496         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
98497         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
98498         "no/such/file/stdint.h" when there is no such file, so that
98499         the resulting C code can be parsed by dodgy compilers.
98500         Problems reported by Bob Proulx.
98502 2006-07-10  Derek R. Price  <derek@ximbiot.com>
98504         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
98505         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
98506         macros into the GNU _D_EXACT_NAMLEN.
98507         * lib/savedir.c:  Likewise.
98508         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
98510 2006-07-10  Derek R. Price  <derek@ximbiot.com>
98511         and Paul Eggert  <eggert@cs.ucla.edu>
98513         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
98514         * m4/savedir.m4:
98515         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
98516         macros into the GNU _D_EXACT_NAMLEN.
98518 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
98520         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
98521         around the absolute name, to work around a problem with the HP-UX
98522         11.23 native C compiler, reported by Bob Proulx.
98524 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
98526         * doc/maintain.texi, make-stds.texi: Sync from
98527         <http://savannah.gnu.org/projects/gnustandards>.
98529 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
98531         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
98533 2006-07-09  Jim Meyering  <jim@meyering.net>
98535         * m4/glob.m4: Remove a doubled word in a comment.
98537 2006-07-09  Jim Meyering  <jim@meyering.net>
98539         * lib/argp-pv.c: Remove a doubled word in a comment.
98540         * lib/check-version.c (check_version): Likewise.
98541         * lib/javacomp.c (compile_java_class): Likewise.
98543 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
98545         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
98546         for the benefit of people using Autoconf 2.60.  If you want to
98547         support older Autoconf versions you can copy m4/onceonly_2_57.m4
98548         (or m4/onceonly.m4, if pre-2.57) manually.
98550 2006-07-08  Jim Meyering  <jim@meyering.net>
98552         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
98553         comment.
98554         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
98555         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
98556         comment.
98558 2006-07-08  Jim Meyering  <jim@meyering.net>
98560         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
98562 2006-07-07  Simon Josefsson  <jas@extundo.com>
98564         * tests/test-crc.c: Change expected crc value, the test vector
98565         were probably computed using the old broken crc.c?
98567 2006-07-06  Simon Josefsson  <jas@extundo.com>
98569         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
98570         now the canonical place for the M4 file).
98572         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
98573         from the sys_socket dependency now.
98575         * modules/inet_pton (Files): Ditto.
98577         * modules/inet_ntop (Files): Ditto.
98579 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
98581         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
98582         not gl_PREREQ_GETUSERSHELL.
98584 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98586         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
98587         with only one argument, for Autoconf 2.60.
98588         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
98589         expand to nothing, so add a shell command to avoid syntax error.
98590         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
98592 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98594         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
98596 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
98598         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
98599         no longer needed.  Check for isblank decl.
98600         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
98601         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
98602         of existence.
98604 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
98606         * lib/getloadavg.c: Use __VMS, not VMS.
98607         * lib/getopt.c: Likewise.
98608         * lib/getpagesize.h: Likewise.
98609         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
98610         and probably does not work.
98612 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
98614         * lib/.cppi-disable: Add wcwidth.
98615         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
98616         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
98617         (ISGRAPH): Remove.  All uses changed to isgraph.
98618         (FOLD) [!defined _LIBC]: Remove special case.
98619         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
98620         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
98621         HAVE_ISBLANK.
98622         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
98623         case.
98625 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
98627         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
98628         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
98629         brackets.  Other minor changes to suppress some compiler
98630         warnings.
98632 2006-07-06  Derek R. Price  <derek@ximbiot.com>
98633         and Paul Eggert  <eggert@cs.ucla.edu>
98635         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
98636         of invoking obsolescent AC_HEADER_DIRENT macro.
98637         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
98638         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
98639         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
98640         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
98641         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
98642         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
98643         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
98644         * m4/readdir.m4: Remove; no longer needed.
98646 2006-07-06  Derek R. Price  <derek@ximbiot.com>
98647         and Paul Eggert  <eggert@cs.ucla.edu>
98649         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
98650         Don't worry about this obsolete case any more.
98651         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
98652         directories.
98653         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
98654         worry about this obsolete case any more.
98655         * lib/fts.c: Likewise.
98656         * lib/getcwd.c: Likewise.
98657         * lib/glob.h: Likewise.
98658         * lib/savedir.c: Likewise.
98660 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
98662         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
98663         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
98664         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
98665         needed.
98666         All uses removed.
98667         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
98668         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
98669         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
98670         needed.
98671         * m4/getdate.m4 (gl_GETDATE): Likewise.
98672         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
98673         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
98674         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
98675         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
98676         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
98677         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
98678         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
98679         needed.
98681 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
98683         * lib/memcasecmp.c: Include <limits.h>.
98684         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
98685         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
98686         Don't assume isdigit succeeds only on '0' through '9'.
98688 2006-07-05  Eric Blake  <ebb9@byu.net>
98690         * modules/getaddrinfo (Depends-on): Add snprintf.
98692 2006-07-05  Eric Blake  <ebb9@byu.net>
98694         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
98695         to avoid 'header present but could not be compiled' on cygwin.
98697 2006-07-05  Eric Blake  <ebb9@byu.net>
98699         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
98700         missing from netdb.h.
98701         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
98703 2006-07-05  Derek R. Price  <derek@ximbiot.com>
98705         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
98706         no longer needed.
98707         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
98708         * m4/getdate.m4 (gl_GETDATE): Likewise.
98709         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
98710         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
98711         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
98712         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
98713         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
98715 2006-07-05  Derek R. Price  <derek@ximbiot.com>
98717         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
98718         All uses of is_space replaced by isspace.
98719         * lib/exit.h: Don't talk about STDC_HEADERS.
98720         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
98721         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
98722         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
98723         replaced by isprint etc.
98724         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
98725         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
98726         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
98727         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
98728         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
98729         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
98731 2006-07-05  Bruno Haible  <bruno@clisp.org>
98733         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
98734         the function exists, before testing against AIX.
98735         Reported by Martin Lambers <marlam@marlam.de>.
98737 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
98739         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
98740         From Mark D. Baushke.
98742 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
98744         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
98745         to the absolute name, not just one, to bypass Sun C 5.8's
98746         "warning: #include of /usr/include/... may be non-portable".
98748 2006-07-04  Eric Blake  <ebb9@byu.net>
98750         * modules/dirname-tests: New test module.
98751         * tests/test-dirname.c: New file, replacing dirname.c
98752         TEST_DIRNAME section that was recently deleted.
98754 2006-07-04  Bruno Haible  <bruno@clisp.org>
98756         Assume ANSI C header files and <ctype.h> functions.
98757         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
98758         (mbsnwidth): Use isprint, iscntrl instead.
98760 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
98762         Merge from coreutils.
98763         * MODULES.html.sh: Add xstrtold.
98764         * modules/xstrtold: New file.
98765         * modules/cycle-check (Files): Add lib/same-inode.h.
98766         * modules/dirname (Files): Add m4/double-slash-root.m4.
98767         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
98768         * modules/mkdir-p (Files): Add lib/same-inode.h.
98769         * modules/same (Files): Add lib/same-inode.h.
98771 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
98773         * m4/absolute-header.m4: Renamed from full-header-path.m4.
98774         This is to keep the terminology clean; POSIX talks about
98775         "absolute pathnames", not "full pathnames", but the GNU
98776         Coding Standards say to use "path" for something else;
98777         so use "absolute" to keep both sides happy.
98778         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
98779         Set gl_absolute_header, not gl_full_header_path.
98780         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
98781         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
98782         All uses changed.
98784         Merge from coreutils.
98786         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
98788         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
98789         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
98790         want to require the building of c-strtod.o.
98791         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
98792         needs -lm directly.
98793         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
98795         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
98797         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
98798         --as-needed option if available.  Problem reported by Albert Chin in
98799         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
98800         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
98801         cc merely issues a bunch of annoying warnings for --as-needed
98802         (this problem was reported by Bob Proulx).  Also, try linking with
98803         -lm to detect a bug in binutils 2.16 (this problem was reported
98804         by Ralf Wildenhues).
98806         2006-06-18  Jim Meyering  <jim@meyering.net>
98808         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
98809         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
98810         macro.
98811         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
98812         also check for glibc-2.4's abort-inducing bug.
98814         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
98815         Low-probability clean-up should be to use rmdir to get rid of
98816         the just-created directory, not unlink.
98818         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
98819         configure fail, and request a bug report to inform us about it.
98820         Add a comment that, barring reports to the contrary, in 2007 we'll
98821         assume ftruncate is universally available.
98823         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
98825         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
98827         2006-03-12  Jim Meyering  <jim@meyering.net>
98829         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
98830         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
98831         * m4/same.m4 (gl_SAME): Likewise.
98832         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
98834         2006-03-11  Eric Blake  <ebb9@byu.net>
98836         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
98837         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
98838         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
98839         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
98841 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
98843         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
98844         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
98845         reported by Mark D. Baushke, one in
98846         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
98848         Merge from coreutils.
98850         * lib/.cppi-disable: Add stdint_.h.
98851         * lib/.cvsignore: Add stdint.h.
98853         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
98855         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
98856         both double and long double versions.
98857         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
98858         * lib/xstrtold.c: New file.
98859         * lib/xstrtod.h (xstrtold): New decl.
98861         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
98863         * lib/filemode.c (setst): Remove.
98864         (strmode): Rewrite to avoid setst.  This makes the code shorter,
98865         (arguably) clearer, and the generated code is a bit smaller on my
98866         Debian GNU/Linux stable x86 host.
98868         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
98870         * lib/filemode.c: Include "filemode.h" first, to test the interface.
98871         Assume that filemode.h includes sys/types.h and sys/stat.h.
98872         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
98873         (ftypelet): Reorder to put common cases first, for efficiency.
98874         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
98875         to do 'M'.
98876         (strmode): Renamed from mode_string, and now stores 12 bytes instead
98877         of 10, for compatibility with FreeBSD.  All callers changed.
98878         (filemodestring): Now stores 12 bytes instead of 10, and sets file
98879         types that can't be deduced solely from st_mode.  First arg is now a
98880         const pointer.
98881         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
98882         (strmode): Renamed from mode_string.
98883         (filemodestring): New decl.
98884         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
98885         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
98886         needed.
98887         (S_ISPORT, S_ISWHT): New macros, if not already defined.
98889         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
98891         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
98892         fsusage.h now does that.  Include fsusage.h first, to test interface.
98893         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
98894         at most one method (the old code could have generated decls that
98895         didn't conform to C89, not that this was ever exercised).
98896         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
98898         2006-03-19  Jim Meyering  <jim@meyering.net>
98900         Work even in a chroot where d_ino values for entries in "/"
98901         don't match the stat.st_ino values for the same names.
98902         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
98903         number, iterate through all entries again, using lstat instead.
98904         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
98905         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
98907         * lib/getcwd.c (__getcwd): Clarify a comment.
98908         Use memcpy in place of a call to strcpy.
98910         2006-03-12  Jim Meyering  <jim@meyering.net>
98912         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
98913         matches that of the current directory (which we're about to chdir ".."
98914         out of), then save the dev-ino of the parent, instead.
98916         * lib/same-inode.h (SAME_INODE): New file/macro.
98917         * lib/chdir-safer.c (SAME_INODE): Remove definition.
98918         Include "same-inode.h", instead.
98919         * lib/same.c: Likewise.
98920         * lib/cycle-check.h: Include "same-inode.h".
98921         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
98922         * lib/cycle-check.c (SAME_INODE): Remove definition.
98923         * lib/root-dev-ino.h: Include "same-inode.h".
98925         2006-03-11  Eric Blake  <ebb9@byu.net>
98927         * lib/same.c (same_name): s/base_name/last_component/
98928         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
98929         * lib/filenamecat.c (file_name_concat): Likewise.
98931         2006-03-11  Eric Blake  <ebb9@byu.net>,
98932                     Paul Eggert  <eggert@cs.ucla.edu>
98934         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
98935         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
98936         drive prefix.
98937         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
98938         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
98939         (last_component): New method.
98940         * lib/dirname.c (dir_len): Determine when drive letters need a
98941         subsequent slash.  Preserve // when it is special.
98942         (dir_name): Don't append dot when drive letter is absolute.
98943         [TEST_DIRNAME]: Move into a full-blown gnulib test.
98944         * lib/basename.c (base_name): New semantics - malloc the result.
98945         Preserve // when it is special.  Preserve relative files that look
98946         like drive letters.
98947         (base_len): Preserve // when it is special.
98948         (last_component): New method, similar to old base_name semantics.
98949         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
98950         base_name.  Strip redundant slashes from ///.
98952 2006-07-03  Jim Meyering  <jim@meyering.net>
98954         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
98955         macro is used before the first cycle_check call.
98957 2006-07-03  Eric Blake  <ebb9@byu.net>
98959         * modules/dirname (Depends-on): Add xstrndup.
98961 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
98963         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
98964         test cases, so that config.log is a bit easier to follow.
98966 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
98968         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
98969         both are 64 bits, since this seems to be the tradition, and this
98970         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
98971         we ever run into a host that prefers long long to long in this
98972         case, we'll need another configure-time test.  Problem reported by
98973         Jim Meyering.
98975 2006-07-02  Eric Blake  <ebb9@byu.net>
98977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
98979 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
98981         * modules/inttypes (Depends-on): No longer depends on stdint.
98982         * modules/stdint (Description): Say more about assumptions.
98983         Say that the fast types might differ.  Say macros are used.
98984         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
98985         (Makefile.am): Revise list of substituted symbols to match
98986         new stdint.m4.
98987         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
98988         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
98989         * tests/test-stdint.c (verify_same_types)
98990         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
98991         the code conforms to C99/C89.
98992         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
98993         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
98995 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
98997         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
98998         but fix a bug, by requiring at least 64 bits.
98999         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
99000         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
99001         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
99002         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
99004         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
99005         changes.  Make 2.59 a prerequisite.  Check and substitute for
99006         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
99007         inttypes.h.  Do not use special include files; just use the
99008         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
99009         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
99010         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
99011         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
99012         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
99013         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
99014         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
99015         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
99016         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
99017         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
99018         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
99019         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
99020         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
99021         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
99022         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
99023         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
99024         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
99025         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
99026         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
99027         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
99028         WINT_MAX.  Check for C99 conformance more strictly, by detecting
99029         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
99030         not check for things that C99 does not require, e.g., int8_t.  If
99031         a test isn't needed unless <stdint.h> isn't working, and is
99032         unlikely to be needed for any other reason, then don't do it
99033         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
99034         size_t, since we assume C89 freestanding at least.  Do not check
99035         for sig_atomic_t, wchar_t, or wint_t, since the code now does
99036         the right thing even if the types are not defined.  Instead use:
99037         (gl_STDINT_TYPE_PROPERTIES): New macro.
99038         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
99039         testing whether <sys/types.h> clashes, as Autoconf does this for
99040         us now.  All uses removed.
99041         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
99042         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
99043         (gl_CHECK_TYPE_SAME):
99044         Remove; no longer needed.
99045         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
99046         exists, since we'll return 0 anyway in that case.
99047         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
99049 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
99051         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
99052         possible collision with system files.
99053         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
99054         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
99055         WCHAR_MIN and WCHAR_MAX in this case.
99056         (<stddef.h>): Do not include; no longer needed.
99057         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
99058         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
99059         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
99060         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
99061         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
99062         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
99063         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
99064         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
99065         !defined(__c99))]: Include in this case too, since it's harmless
99066         now.
99067         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
99068         dangerous to do so.
99069         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
99070         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
99071         (_STDINT_MIN, _STDINT_MAX): New macros.
99072         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
99073         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
99074         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
99075         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
99076         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
99077         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
99078         macros, not typedefs; this simplifies things quite a bit.
99079         Use long int for all types narrower than int64_t.
99080         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
99081         Define in terms of long long int or int64_t or long int,
99082         not int64_t or int32_t.  This saves some compile-time testing.
99083         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
99084         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
99085         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
99086         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
99087         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
99088         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
99089         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
99090         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
99091         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
99092         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
99093         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
99094         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
99095         undef any previous version and define our own version, for
99096         simplicity and consistency with the new macros for types.
99097         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
99098         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
99099         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
99100         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
99101         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
99102         @WINT_T_SUFFIX@ to keep things simple here.
99103         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
99104         Simplify by assuming typical 8/16/32/64 host, since we're
99105         already doing that elsewhere anyway.
99106         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
99107         and assume long long int is 64 bits if available.  This
99108         speeds up 'configure'.
99110 2006-07-01  Eric Blake  <ebb9@byu.net>
99112         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
99113         Reported by Andreas Buening.
99115 2006-07-01  Eric Blake  <ebb9@byu.net>
99117         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
99119 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
99121         * lib/getaddrinfo.c: fixed typo
99123 2006-06-29  Jim Meyering  <jim@meyering.net>
99125         * modules/strftime (Maintainer): Add my name, since with the
99126         FPRINTFTIME changes strftime.c has forked from glibc.
99128 2006-06-29  Eric Blake  <ebb9@byu.net>
99130         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
99132 2006-06-29  Eric Blake  <ebb9@byu.net>
99134         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
99136 2006-06-29  Eric Blake  <ebb9@byu.net>
99138         * lib/stat_.h: New file.
99140 2006-06-29  Eric Blake  <ebb9@byu.net>
99142         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
99143         unused static function.
99145 2006-06-29  Eric Blake  <ebb9@byu.net>
99147         * doc/functions.texi (Function Portability): Document missing lstat
99148         on mingw.
99150 2006-06-29  Eric Blake  <ebb9@byu.net>
99152         * MODULES.html.sh: Add sys_stat.
99153         * modules/sys_stat: New module.
99154         * modules/mkstemp (Depends-on): Add sys_stat.
99156 2006-06-29  Derek R. Price  <derek@ximbiot.com>
99158         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
99160 2006-06-29  Derek R. Price  <derek@ximbiot.com>
99162         * m4/c-bs-a.m4: Removed.
99164 2006-06-29  Derek R. Price  <derek@ximbiot.com>
99166         * lib/strftime.c: Assume strftime() exists.
99168 2006-06-29  Derek Price  <derek@ximbiot.com>
99170         * modules/c-bs-a: Removed - \a is C89.
99171         * MODULES.html.sh: Remove c-bs-a.
99173 2006-06-29  Bruno Haible  <bruno@clisp.org>
99175         * modules/wcwidth (License): Change to LGPL.
99177 2006-06-28  Simon Josefsson  <jas@extundo.com>
99179         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
99180         on _WIN32.
99182         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
99183         getnameinfo.
99185 2006-06-28  Simon Josefsson  <jas@extundo.com>
99187         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
99189 2006-06-28  Simon Josefsson  <jas@extundo.com>
99191         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
99192         functions there.  It will succeed on Windows XP, but on Windows
99193         2000 and (presumably) earlier, it will fail, and use the internal
99194         re-implementation.
99195         (use_win32_p): New function.
99196         (getaddrinfo): Use strtoul on servname, to support numeric ports.
99197         Support AI_NUMERICSERV to disable getservbyname.
99198         (getnameinfo): New function, only supports
99199         NI_NUMERICHOST|NI_NUMERICSERV for now.
99201         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
99202         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
99203         getnameinfo.
99205 2006-06-28  Eric Blake  <ebb9@byu.net>
99207         * modules/wcwidth: New file.
99208         * modules/mbchar (Depends-on): Add wcwidth.
99209         * modules/mbswidth (Depends-on): Add wcwidth.
99210         * MODULES.html.sh: Add wcwidth.
99212 2006-06-28  Eric Blake  <ebb9@byu.net>
99214         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
99215         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
99217 2006-06-28  Eric Blake  <ebb9@byu.net>
99219         * lib/xvasprintf.h: Fix comments.
99221 2006-06-28  Eric Blake  <ebb9@byu.net>
99223         * lib/mbchar.h (wcwidth): Include wcwidth.h.
99224         * lib/mbswidth.c (wcwidth): Move from here...
99225         * lib/wcwidth.h: ...to this new file.
99227 2006-06-28  Derek R. Price  <derek@ximbiot.com>
99229         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
99231         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
99232         it's obsolete.
99233         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
99235 2006-06-28  Derek R. Price  <derek@ximbiot.com>
99237         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
99238         Autoconf 2.60 says this stuff was obsolete.
99240 2006-06-28  Bruno Haible  <bruno@clisp.org>
99242         * modules/wcwidth (Files): Add m4/wchar_t.m4.
99244 2006-06-28  Bruno Haible  <bruno@clisp.org>
99246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
99247         gt_TYPE_WCHAR_T.
99249 2006-06-28  Bruno Haible  <bruno@clisp.org>
99251         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
99252         declaration for wcwidth.
99253         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
99255 2006-06-28  Bruno Haible  <bruno@clisp.org>
99257         * lib/mkdtemp.c [MINGW]: Include <io.h>.
99258         (mkdir): Define using _mkdir.
99260 2006-06-28  Bruno Haible  <bruno@clisp.org>
99262         * lib/getaddrinfo.h: Fix POSIX URL.
99263         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
99264         _WIN32.
99265         (use_win32_p): Make static.
99266         (getaddrinfo): Reject service name if it is empty or does not consist
99267         solely of decimal digits, or if its value is > 65535.
99268         (getnameinfo): Remove useless casts.
99270 2006-06-27  Simon Josefsson  <jas@extundo.com>
99272         * modules/sys_select: New file, suggested by Bruno Haible, Paul
99273         Eggert and Martin Lambers.
99275 2006-06-27  Simon Josefsson  <jas@extundo.com>
99277         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
99278         Eggert and Martin Lambers.
99280 2006-06-27  Bruno Haible  <bruno@clisp.org>
99282         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
99283         result to 0, not to empty.
99284         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
99286 2006-06-27  Bruno Haible  <bruno@clisp.org>
99288         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
99290 2006-06-26  Simon Josefsson  <jas@extundo.com>
99292         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
99293         present.
99295 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
99297         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
99298         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
99299         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
99301 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
99303         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
99305 2006-06-26  Bruno Haible  <bruno@clisp.org>
99307         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
99309 2006-06-26  Bruno Haible  <bruno@clisp.org>
99311         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
99313 2006-06-26  Bruno Haible  <bruno@clisp.org>
99315         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
99316         SGI C compiler in pre-C99 mode.
99317         Suggested by Mark D. Baushke and Larry Jones.
99319 2006-06-26  Bruno Haible  <bruno@clisp.org>
99321         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
99322         WCHAR_MAX.
99323         Reported by Mark D. Baushke and Larry Jones.
99325 2006-06-26  Bruno Haible  <bruno@clisp.org>
99327         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
99328         in pre-C99 mode.
99329         Suggested by Mark D. Baushke and Larry Jones.
99331 2006-06-23  Simon Josefsson  <jas@extundo.com>
99332             Bruno Haible  <bruno@clisp.org>
99334         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
99335         Emit mostlyclean-local rule.
99336         (func_emit_tests_Makefile_am): Likewise.
99337         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
99339 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
99341         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
99343 2006-06-23  Bruno Haible  <bruno@clisp.org>
99345         * tests/test-stdint.c: Update to match ISO C 99 Technical
99346         Corrigendum 1.
99348 2006-06-23  Bruno Haible  <bruno@clisp.org>
99350         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
99352 2006-06-23  Bruno Haible  <bruno@clisp.org>
99354         * lib/stdint_.h: Treat IRIX like OpenBSD.
99356 2006-06-23  Bruno Haible  <bruno@clisp.org>
99358         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
99359         ISO C 99 Technical Corrigendum 1.
99361 2006-06-22  Simon Josefsson  <jas@extundo.com>
99363         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
99364         MinGW.
99366 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
99368         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
99369         needed.  Some compiler complained about some of them.  Problem reported
99370         by Larry Jones in
99371         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
99373 2006-06-21  Simon Josefsson  <jas@extundo.com>
99375         * tests/test-getaddrinfo.c: New file.
99377         * modules/getaddrinfo-tests: New file.
99379         * MODULES.html.sh: Add inet_pton.
99381         * modules/inet_pton: New file.
99383 2006-06-21  Simon Josefsson  <jas@extundo.com>
99385         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
99386         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
99387         of using the (limited) gnulib implementation on Windows XP.
99389         * m4/inet_pton.m4: New file.
99391 2006-06-21  Simon Josefsson  <jas@extundo.com>
99393         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
99394         variable.
99396         * lib/socket_.h: Don't define WINVER.
99398         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
99399         slightly modified to work in gnulib.
99401 2006-06-21  Simon Josefsson  <jas@extundo.com>
99403         * doc/gnulib.texi (Windows sockets): Add.
99405 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
99407         * lib/read-file.c (fread_file): Start with buffer allocation of
99408         0 bytes rather than 1 byte; this simplifies the code.
99409         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
99410         code to free buffer and save/restore errno.
99411         (internal_read_file): Remove unused local.
99413 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
99415         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
99416         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
99417         Problem reported by Denis Excoffier in
99418         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
99420 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99422         * modules/sys_socket, modules/socklen: Include sys/types since
99423         FreeBSD 4.x's sys/socket.h needs it.
99425 2006-06-19  Simon Josefsson  <jas@extundo.com>
99427         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
99429 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
99431         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
99433 2006-06-19  Bruno Haible  <bruno@clisp.org>
99435         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
99436         and FULL_PATH_INTTYPES_H in angle brackets.
99437         Reported by Mark D. Baushke <mdb@gnu.org>.
99439 2006-06-17  Eric Blake  <ebb9@byu.net>
99441         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
99442         errno.
99444 2006-06-17  Bruno Haible  <bruno@clisp.org>
99446         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
99447         <sys/inttypes.h>.
99449 2006-06-17  Bruno Haible  <bruno@clisp.org>
99451         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
99452         whether errno is declared. Assume <errno.h> declares errno.
99454 2006-06-17  Bruno Haible  <bruno@clisp.org>
99456         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
99458 2006-06-17  Bruno Haible  <bruno@clisp.org>
99460         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
99461         problem on Solaris 2.5.1.
99463 2006-06-16  Eric Blake  <ebb9@byu.net>
99465         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
99466         * lib/unicodeio.c [!defined errno]: Likewise.
99467         * lib/strtol.c [!defined errno]: Likewise.
99468         * lib/strtod.c [!defined errno]: Likewise.
99470 2006-06-15  Eric Blake  <ebb9@byu.net>
99472         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
99474 2006-06-15  Eric Blake  <ebb9@byu.net>
99476         * config/srclist.txt (ssize_t.m4): Lose sync.
99478 2006-06-15  Bruno Haible  <bruno@clisp.org>
99480         * modules/stdint (Files): Include m4/full-header-path.m4,
99481         m4/size_max.m4, m4/wchar_t.m4.
99482         (Makefile.am): Many more substitutions.
99483         * modules/stdint-tests: New file.
99484         * tests/test-stdint.c: New file.
99486 2006-06-15  Bruno Haible  <bruno@clisp.org>
99488         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
99489         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
99490         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
99491         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
99492         gl_CHECK_TYPE_SAME): New macros.
99494 2006-06-15  Bruno Haible  <bruno@clisp.org>
99496         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
99498 2006-06-15  Bruno Haible  <bruno@clisp.org>
99500         * lib/stdint_.h: Rewritten to be fully auto-configured.
99501         Fixes bug on HP-UX/IA64.
99503 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
99505         * lib/getdate.y (__attribute__): Don't define if already defined.
99506         Problem reported by Larry Jones.
99507         * lib/utimens.c (__attribute__): Likewise.
99509 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
99511         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
99512         reported by Andreas Schwab.
99514 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99515             Bruno Haible  <bruno@clisp.org>
99517         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
99518         check for the declaration of strnlen and a run test that exposes the
99519         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
99520         rpl_strndup.
99522 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99523             Bruno Haible  <bruno@clisp.org>
99525         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
99527 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99529         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
99530         compile test, for Tru64 4.0D.
99532 2006-05-28  Karl Berry  <karl@gnu.org>
99534         * config/srclist.txt (printf-args.c): lose sync.
99536 2006-05-26  Martin Lambers  <marlam@marlam.de>
99538         * lib/getpass.c: Updates the test for the native W32 API, and adds
99539         missing includes, thus fixing compilation warnings.
99541 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
99543         * lib/exclude.c (exclude_fnmatch): New function.
99544         (excluded_file_name): Call exclude_fnmatch.
99545         * lib/exclude.h (excluded_file_name): New prototype
99547 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
99549         * lib/tempname.c (small_open, large_open): New macros.
99550         (__open, __open64) [!_LIBC]: Remove.
99551         (__gen_tempname): Use small_open and large_open instead of __open
99552         and __open64.  This fixes a portability bug on HP-UX 11.11i
99553         reported by Simon Wing-Tang in
99554         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
99556 2006-05-24  Bruno Haible  <bruno@clisp.org>
99558         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
99559         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
99560         Reported by Thorsten Maerz <torte@netztorte.de> via
99561         Aaron Stone <aaron@serendipity.cx>.
99563 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
99565         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
99566         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
99567         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
99568         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
99569         not really conditional on the cache.
99570         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
99572 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
99574         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
99575         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
99576         (my_usleep): Don't mishandle maximum value.
99578 2006-05-19  Jim Meyering  <jim@meyering.net>
99580         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
99582 2006-05-17  Bruno Haible  <bruno@clisp.org>
99584         Cygwin portability.
99585         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
99587 2006-05-17  Bruno Haible  <bruno@clisp.org>
99589         * lib/stdint_.h: Fix recognition of Cygwin.
99591 2006-05-15  Bruno Haible  <bruno@clisp.org>
99593         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
99594         on libtool patch by Ralf Wildenhues.
99596 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
99598         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
99599         test for C99 conformance; (bool) 0.5 is an integer constant
99600         expression, but (bool) -0.5 is not.  Problem reported by Fedor
99601         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
99603 2006-05-11  Simon Josefsson  <jas@extundo.com>
99605         * m4/xvasprintf.m4: Fix obvious typo.
99607 2006-05-11  Jim Meyering  <jim@meyering.net>
99609         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
99610         James Lemley.
99612 2006-05-10  Simon Josefsson  <jas@extundo.com>
99614         * lib/md4.c: Typo fix, update copyright years.
99615         (K1, K2): Don't use L because it turn computations into 64-bit on
99616         64-bit platforms.
99618 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
99620         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
99621         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
99622         unwanted sign propagation, e.g., on hosts with 64-bit int.
99623         There still are some problems with reeelly weird theoretical hosts
99624         (e.g., 33-bit int) but it's not worth worrying about now.
99625         * lib/sha1.c (rol): Likewise.
99626         (K1, K2, K3, K4): Remove unnecessary L suffix.
99628 2006-05-10  Bruno Haible  <bruno@clisp.org>
99630         * lib/des.c: Cast to avoid warnings.
99632 2006-05-09  Bruno Haible  <bruno@clisp.org>
99634         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
99635         (Depends-on): Depend also on xsize, stdarg.
99636         (configure.ac): Add gl_XVASPRINTF.
99638 2006-05-09  Bruno Haible  <bruno@clisp.org>
99640         * m4/xvasprintf.m4: New file.
99642 2006-05-09  Bruno Haible  <bruno@clisp.org>
99644         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
99645         (EOVERFLOW): Define fallback value.
99646         (xstrcat): New function.
99647         (xvasprintf): Recognize the special case of a string concatenation.
99649 2006-05-08  Eric Blake  <ebb9@byu.net>
99651         * gnulib-tool (func_version): Base copyright year on CVS date.
99652         (func_emit_copyright_notice): New function.
99653         (func_emit_lib_Makefile_am): Use it.
99654         (func_emit_tests_Makefile_am): Likewise.
99655         (func_import): Likewise.
99657 2006-05-08  Bruno Haible  <bruno@clisp.org>
99659         * modules/stdarg: New file.
99660         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
99662 2006-05-08  Bruno Haible  <bruno@clisp.org>
99664         * m4/stdarg.m4: New file, from GNU gettext.
99666 2006-05-08  Bruno Haible  <bruno@clisp.org>
99668         * config/srclist.txt (build-aux/config.rpath): different from latest
99669         release.
99671 2006-05-08  Bruno Haible  <bruno@clisp.org>
99673         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
99675 2006-05-05  Jim Meyering  <jim@meyering.net>
99677         * m4/warning.m4: New file, derived from bison's file by the same name.
99679 2006-05-03  Bruno Haible  <bruno@clisp.org>
99681         * lib/stdint_.h: Shorter URL.
99682         * lib/inttypes.h: Likewise.
99684 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
99686         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
99688 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
99690         * lib/verify.h: Document the internals better.  Most of this change
99691         was written by Bruno Haible.
99693 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
99695         * doc/verify.texi: New file, partly based on a proposal by
99696         Bruno Haible.
99698 2006-05-02  Bruno Haible  <bruno@clisp.org>
99700         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
99701         test from here...
99702         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
99704 2006-04-29  Bruno Haible  <bruno@clisp.org>
99706         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
99707         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
99709 2006-04-29  Bruno Haible  <bruno@clisp.org>
99711         * gnulib-tool: Make --update option actually work.
99713 2006-04-29  Bruno Haible  <bruno@clisp.org>
99715         * doc/gcd.texi: New file.
99716         * doc/gnulib.texi: Include it.
99718 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
99720         * lib/getdate.y (get_date): When adding relative date, start with the
99721         initial time, not with the result of the first mktime call.
99723 2006-04-25  Bruno Haible  <bruno@clisp.org>
99725         * gnulib-tool (func_import): Output the include directives in three
99726         blocks, sorted separately.
99727         Reported by Ben Pfaff <blp@cs.stanford.edu>.
99729 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
99731         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
99732         to define main with arguments, for C++.  Reported by Eric Blake.
99733         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
99734         Prefer 'int main ()' to 'int main (void)', for C++.
99735         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
99736         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
99737         for 'main', for C99 and C++.
99739 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
99741         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
99742         Don't assume that exit status -1 is valid.
99743         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
99744         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
99745         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
99746         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
99747         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
99748         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
99749         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
99750         functions can be used without declaring them, or that you can
99751         exit with status -1.
99752         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
99754 2006-04-24  Karl Berry  <karl@gnu.org>
99756         * config/srclist.txt (longdouble.m4): sync lost.
99758 2006-04-24  Eric Blake  <ebb9@byu.net>
99760         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
99762 2006-04-24  Bruno Haible  <bruno@clisp.org>
99764         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
99765         poll() implementation in AIX.
99766         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99768 2006-04-24  Bruno Haible  <bruno@clisp.org>
99770         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
99771         assigned exactly once.
99773 2006-04-23  Claudio Fontana  <claudio@gnu.org>
99774             Bruno Haible  <bruno@clisp.org>
99776         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
99777         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
99778         for AM_CPPFLAGS.
99780 2006-04-23  Bruno Haible  <bruno@clisp.org>
99782         * modules/copy-file: Depend on unistd.
99783         * modules/execute: Likewise.
99784         * modules/fatal-signal: Likewise.
99785         * modules/findprog: Likewise.
99786         * modules/mkdtemp : Likewise.
99787         * modules/pipe: Likewise.
99788         * modules/wait-process: Likewise.
99790 2006-04-23  Bruno Haible  <bruno@clisp.org>
99792         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
99793         condition was already detected.
99794         Reported by Ben Pfaff <blp@cs.stanford.edu>.
99796 2006-04-23  Bruno Haible  <bruno@clisp.org>
99798         * lib/copy-file.c: Include <unistd.h> unconditionally.
99799         * lib/execute.c: Likewise.
99800         * lib/fatal-signal.c: Likewise.
99801         * lib/findprog.c: Likewise.
99802         * lib/mkdtemp.c: Likewise.
99803         * lib/pipe.h: Likewise.
99804         * lib/pipe.c: Likewise.
99805         * lib/wait-process.h: Likewise.
99807 2006-04-23  Bruno Haible  <bruno@clisp.org>
99809         * gnulib-tool (func_usage): Fix --import description. Document
99810         --update.
99811         (func_import): Create temporary file in a temporary directory, if
99812         --dry-run is specified. Silence errors from 'grep' when there are no
99813         m4 files in $m4dir.
99814         (func_create_testdir): Silence errors from 'grep' when there are no
99815         m4 files in $m4dir.
99816         Reported by Karl Berry <karl@freefriends.org>.
99818 2006-04-20  Bruno Haible  <bruno@clisp.org>
99820         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
99821         one argument, so that the code will be portable to Autoconf 2.60.
99822         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
99823         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
99824         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
99826 2006-04-19  Derek Price  <derek@ximbiot.com>
99827             Eric Blake  <ebb9@byu.net>
99829         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
99830         rather than "/full/path.h".  Update comment to match.  Shorten &
99831         generalize m4_translit call via AS_TR_CPP.
99833 2006-04-19  Derek Price  <derek@ximbiot.com>
99834             Eric Blake  <ebb9@byu.net>
99836         * lib/inttypes.h: Correct grammar in comment.
99838 2006-04-18  Derek Price  <derek@ximbiot.com>
99839             Paul Eggert  <eggert@cs.ucla.edu>
99841         * modules/inttypes: New file.
99842         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
99844 2006-04-18  Derek Price  <derek@ximbiot.com>
99845             Paul Eggert  <eggert@cs.ucla.edu>
99847         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
99848         New files.
99850 2006-04-18  Derek Price  <derek@ximbiot.com>
99851             Paul Eggert  <eggert@cs.ucla.edu>
99853         * lib/inttypes.h: New file.
99854         * lib/strtoimax.c: Assume <inttypes.h>.
99856 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
99858         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
99859         isn't mounted.  Problem reported by Kir Kolyshkin.
99861 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
99863         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
99864         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
99865         Derek R. Price.
99866         * lib/regex.h (RE_DUP_MAX): Update comment to match current
99867         implementation.
99869 2006-04-12  Eric Blake  <ebb9@byu.net>
99871         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
99872         is now done automatically by the corresponding Autoconf macro.
99874 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
99876         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
99877         time_r.h.
99879 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
99881         Merge regex changes from libc, removing some of our
99882         POSIX-conformance changes that were rejected and redoing them in a
99883         less-intrusive way.
99885         * lib/regcomp.c (re_compile_internal, init_dfa):
99886         Length arg is now size_t, not Idx.  All uses changed.
99887         (peek_token): Forward decl now says internal_function.
99888         (__re_error_msgid, __re_error_msgid_idx):
99889         Now static rather than extern with attribute_hidden.
99890         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
99891         For some reason libc prefers K&R style defns for external functions.
99892         (regerror) [!defined _LIBC]: Likewise.
99893         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
99894         (seek_collating_symbol_entry, lookup_collation_sequence_value):
99895         (build_range_exp, build_collating_symbol):
99896         Use K&R-style defn.
99897         (re_compile_fastmap): Use '\0' to memset, not 0.
99898         (utf8_sb_map): Make the calculations more obvious.
99899         (init_dfa, parse_bracket_exp, build_charclass_op):
99900         Call calloc and cast result, as glibc does.
99901         (init_word_char, fetch_token, peek_token, peek_token_bracket):
99902         (build_range_exp, build_collating_symbol):
99903         Now internal functions.
99905         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
99907         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
99908         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
99909         Don't depend on VMS; depend on __VMS instead, for POSIX
99910         namespace cleanness.
99911         (regoff_t): Define to ssize_t, not long int.
99913         Remove the REG_ macros named below.  Instead, make the old names
99914         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
99915         __USE_GNU_REGEX.
99916         (REG_BACKSLASH_ESCAPE_IN_LISTS):
99917         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
99918         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
99919         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
99920         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
99921         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
99922         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
99923         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
99924         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
99925         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
99926         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
99927         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
99928         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
99929         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
99930         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
99931         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
99932         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
99933         (REG_NREGS):
99934         Remove.  All uses replaced by the old RE_* names.
99935         (RE_BACKSLASH_ESCAPE_IN_LISTS):
99936         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
99937         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
99938         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
99939         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
99940         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
99941         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
99942         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
99943         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
99944         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
99945         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
99946         Don't bother having these macros be independent of each others'
99947         values, since they no longer exist in the POSIX name space.
99949         Rename the following member names back to their old names,
99950         unless !__USE_GNU_REGEX.  All uses changed back.
99951         (buffer): Renamed from re_buffer.
99952         (allocated): Renamed from re_allocated.
99953         (used): Renamed from re_used.
99954         (syntax): Renamed from re_syntax.
99955         (fastmap): Renamed from re_fastmap.
99956         (translate): Renamed from re_translate.
99957         (can_be_null): Renamed from re_can_be_null.
99958         (regs_allocated): Renamed from re_regs_allocated.
99959         (fastmap_accurate): Renamed from re_fastmap_accurate.
99960         (no_sub): Renamed from re_no_sub.
99961         (not_bol): Renamed from re_not_bol.
99962         (not_eol): Renamed from re_not_eol.
99963         (newline_anchor): Renamed from re_newline_anchor.
99964         (num_regs): Renamed from rm_num_regs.
99965         (start): Renamed from rm_start.
99966         (end): Renamed from rm_end.
99968         (free_state): Move up a bit.
99970         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
99971         #define to be empty.
99972         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
99973         when that is what is intended.
99974         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
99975         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
99976         (MAX): New macro.
99977         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
99978         All uses changed back to re_malloc, etc.  It's now the caller's
99979         responsibility to check for overflow; all callers changed.
99980         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
99981         (re_x2nrealloc): Remove.
99982         (free_state): Remove decl.
99984         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
99985         (re_set_registers, re_exec):
99986         Use K&R-style defn.
99988         2006-01-31  Roland McGrath  <roland@redhat.com>
99990         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
99991         Reported by Mike Frysinger <vapier@gentoo.org>.
99993         2006-01-15  Andreas Jaeger  <aj@suse.de>
99995         [BZ #1950]
99996         * lib/regex_internal.c (re_string_reconstruct): Adjust for
99997         build_wcs_upper_buffer change.
99998         (build_wcs_upper_buffer): Change return type.
100000         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
100002         * lib/regex_internal.h: Include <stdint.h> if available.
100004         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
100006         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
100008         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
100010         * lib/regcomp.c: Adjust for changed secondary hash function.
100012         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
100014         * lib/regex.h: Pretty printing.
100015         Clean up namespace a bit.
100017         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
100019         * lib/regexec.c (update_cur_sifted_state, check_arrival,
100020         check_arrival_add_next_nodes): Avoid using uninitialized variable.
100022         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
100023                     Ulrich Drepper  <drepper@redhat.com>
100025         [BZ #1302]
100026         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
100027         changed.
100028         (bitset_word_t): Renamed from bitset_word.  All uses changed.
100030         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
100032         [BZ #281]
100033         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
100034         * lib/regcomp.c: Remove unnecessary uses of
100035         unsigned RE_TRANSLATE_TYPE.
100036         * lib/regex_internal.h: Likewise.
100037         * lib/regex_internal.c: Likewise.
100038         * lib/regexec.c: Likewise.
100039         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
100041         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
100043         * lib/regexec.c (find_recover_state): Remove unnecessary
100044         initialization.
100045         (transit_state_bkref): Make DFA a const pointer.
100046         (get_subexp): Likewise.
100047         (check_arrival): Likewise.
100048         (update_cur_sifted_state): Likewise.
100049         (re_search_internal): Likewise.
100050         (prune_impossible_nodes): Likewise.
100051         (acquire_init_state_context): Likewise.
100052         (proceed_next_node): Likewise.
100053         (set_regs): Likewise.
100054         (free_fail_stack_return): Likewise.
100055         (check_arrival_expand_ecl): Mark DFA parameter as const.
100056         (check_arrival_expand_ecl_sub): Likewise.
100057         (check_subexp_limits): Likewise.
100058         (sub_epsilon_src_nodes):  Likewise.
100059         (add_epsilon_src_nodes):  Likewise.
100060         (merge_state_array): Likewise.
100061         (update_regs): Likewise.
100062         (build_trtable): Likewise.
100063         (sift_states_backward): Mark MCTX parameter as const.
100064         (build_sifted_states): Likewise.
100065         (update_cur_sifted_state): Likewise.
100066         (sift_states_mkref): Likewise.
100067         (check_arrival_expand_ecl): Mark eclosure as const.
100068         (check_dst_limits_calc_pos_1): Likewise.
100069         * lib/regex_internal.h (re_match_context_t): Make dfa a const
100070         pointer.
100072         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
100074         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
100075         (transit_state_sb): Likewise.
100076         (transit_state_mb): Likewise.
100077         (sift_states_iter_mb): Likewise.
100078         (check_arrival_add_next_nodes): Likewise.
100079         (check_node_accept_bytes): Change first parameter to pointer-to-const.
100080         [_LIBC] (re_search_2_stub): Use mempcpy.
100082         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
100083         mbrtowc for very simple UTF-8 case.
100085         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
100086         a pointer-to-const.
100087         (re_acquire_state_context): Likewise.
100088         * lib/regex_internal.h: Adjust prototypes.
100090         * lib/regex.c: Prevent using C++ compilers.
100092         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
100093         (re_acquire_state_context): Likewise.
100095 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
100097         * modules/regex (Depends-on): Add ssize_t.
100099 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
100101         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
100102         translation table.
100104 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
100106         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
100108 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
100109             Bruno Haible  <bruno@clisp.org>
100111         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
100112         <sys/types.h> and <inttypes.h>.
100114 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100116         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
100117         `__error_t_defined', so argp.h will not typedef the former.
100119 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
100121         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
100122         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
100123         glibc names.  Even if glibc is changed to conform to POSIX, the
100124         traditional names will be available anyway, since regex depends on
100125         the extensions module.  Also, fix a longstanding typo in the
100126         implementation of Spencer ERE test #75 from grep 2.3.  Problems
100127         reported by Emanuele Giaquinta.  Also, change sense of cached
100128         variable, so that the message makes sense.
100130 2006-03-24  Simon Josefsson  <jas@extundo.com>
100132         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
100133         including some doc fixes.
100134         (base64_encode_alloc): Fix +1 bug on allocation failures.
100136 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100138         * lib/base64.c (base64_encode): Do not read past end of array with
100139         unsanitized input on systems with CHAR_BIT > 8.
100141 2006-03-24  Eric Blake  <ebb9@byu.net>
100143         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
100145 2006-03-22  Karl Berry  <karl@gnu.org>
100147         * config/srclist.txt (*setenv.[ch]): get from coreutils.
100148         * config/srclistvars.sh (COREUTILS): new var.
100150 2006-03-17  Jim Meyering  <jim@meyering.net>
100152         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
100153         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
100155 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
100157         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
100158         no longer needs it.  Instead, check that regoff_t is as least
100159         as wide as ptrdiff_t.
100161         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
100162         so that our regex.h stays compatible with the installed regex.
100163         This is helpful for installers who configure --without-included-regex.
100164         Problem reported by Emanuele Giaquinta.
100166 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
100168         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
100169         Typedef to long int, not to off_, as POSIX will likely change
100170         in that direction.
100172 2006-03-15  Eric Blake  <ebb9@byu.net>
100174         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
100176 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
100178         * lib/argp-help.c (validate_uparams): Fix typo
100179         * lib/argp-parse.c (argp_default_options): Consistently begin help
100180         messages with a lowercase letter.
100182 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
100184         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
100185         overrun buffers and shouldn't be used (much as gets shouldn't be
100186         used).
100187         * lib/time_r.c (asctime_r, ctime_r): Likewise.
100189 2006-03-08  Simon Josefsson  <jas@extundo.com>
100191         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
100192         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100194 2006-03-08  Simon Josefsson  <jas@extundo.com>
100196         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
100197         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100199 2006-03-08  Simon Josefsson  <jas@extundo.com>
100201         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
100202         signal that configure disabled the device.
100204 2006-03-08  Simon Josefsson  <jas@extundo.com>
100206         * build-aux/maint.mk: Fix refresh-po, to handle no translated
100207         languages.
100209 2006-03-07  Simon Josefsson  <jas@extundo.com>
100211         * modules/getopt (Depends-on): Add unistd.
100213         * modules/unistd: New file.
100215 2006-03-07  Simon Josefsson  <jas@extundo.com>
100217         * modules/gc-random: New file.
100219 2006-03-07  Simon Josefsson  <jas@extundo.com>
100221         * m4/unistd_h.m4: New file.
100223 2006-03-07  Simon Josefsson  <jas@extundo.com>
100225         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
100226         test to be side-effect free by storing the result in the cache
100227         variable gl_cv_lib_readline, and moving the assignment of
100228         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
100229         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100231 2006-03-07  Simon Josefsson  <jas@extundo.com>
100233         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
100234         error on missing devices (the functions will return an error).
100236         * m4/gc.m4: Move random stuff to gc-random.m4
100238 2006-03-07  Simon Josefsson  <jas@extundo.com>
100240         * lib/unistd_.h: New file.
100242 2006-03-07  Simon Josefsson  <jas@extundo.com>
100244         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
100246 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
100248         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
100249         Problem reported by Juan Manuel Guerrero.
100251 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
100253         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
100254         the unistd module.
100255         * lib/getlogin_r.c: Likewise.
100256         * lib/getlogin_r.h: Likewise.
100257         * lib/glob.c: Likewise.
100258         * lib/pagealign_alloc.c: Likewise.
100259         * lib/unistd_.h: Remove; no longer needed.
100261 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
100263         * MODULES.html.sh (Support for systems lacking POSIX:2001):
100264         Add unistd.
100265         * modules/c-stack (Depends-on): Add unistd.
100266         * modules/getlogin_r: Likewise.
100267         * modules/glob: Likewise.
100268         * modules/pagealign_alloc: Likewise.
100269         * modules/unistd (Files): Remove lib/unistd_.h.
100270         (EXTRA_DIST): Remove.
100271         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
100272         need unistd_.h.
100273         (MOSTLYCLEANFILES): Remove unistd.h-t.
100275 2006-03-03  Simon Josefsson  <jas@extundo.com>
100277         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
100279 2006-03-03  Simon Josefsson  <jas@extundo.com>
100281         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
100282         libidn and bison.
100284 2006-03-03  Simon Josefsson  <jas@extundo.com>
100286         * build-aux/maint.mk: Add indent target.
100288 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
100290         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
100291         our replacement poll.h in any case, to avoid a differing
100292         declaration from a system header.  Seen on AIX.
100294 2006-03-01  Simon Josefsson  <jas@extundo.com>
100296         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
100297         <kasal@ucw.cz>.
100299 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
100301         * modules/gettime (Depends-on): Add extensions module.
100302         * modules/nanosleep (Depends-on): Likewise.
100303         * modules/settime (Depends-on): Likewise.
100305 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
100307         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
100308         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
100309         pedantically.
100310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
100311         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
100313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
100314         not "==".  Reported by Ralf Wildenhues.
100316 2006-03-01  Karl Berry  <karl@gnu.org>
100318         * doc/Copyright/request-*: new files, synced from gnuorg.
100320 2006-03-01  Karl Berry  <karl@gnu.org>
100322         * config/srclist.txt (Copyright/*): new entries.
100324 2006-02-28  Simon Josefsson  <jas@extundo.com>
100326         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
100328 2006-02-27  Simon Josefsson  <jas@extundo.com>
100330         * lib/base64.h: Indent #define's.  From Jim Meyering
100331         <jim@meyering.net>.
100333 2006-02-27  Jim Meyering  <jim@meyering.net>
100335         Revert the change of 2006-02-24, so these files can continue
100336         to be sync'd from gettext.
100337         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
100338         of `config.h'.
100340 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
100342         * modules/intprops: New file.
100343         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
100344         Add intprops.
100345         * modules/getloadavg (Files): Remove lib/intprops.h.
100346         (Depends-on): Add intprops.
100347         * modules/human: Likewise.
100348         * modules/inttostr: Likewise.
100349         * modules/openat: Likewise.
100350         * modules/sig2str: Likewise.
100351         * modules/userspec: Likewise.
100352         * modules/utimecmp: Likewise.
100353         * modules/xnanosleep: Likewise.
100354         * modules/xstrtol: Likewise.
100356 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
100358         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
100359         * modules/lock-tests (TESTS): Use $(EXEEXT).
100360         * modules/tls-tests: Likewise.
100361         * modules/argp-tests: Likewise.
100362         (check_PROGRAMS): New var, replacing...
100363         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
100365 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100367         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
100368         `config.h'.
100370 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
100372         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
100374 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100376         Sync from coreutils.
100377         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
100378         gl_CHDIR_SAFER.
100380 2006-02-22  Jim Meyering  <jim@meyering.net>
100382         Sync from coreutils.
100383         * m4/chdir-safer.m4: New file.
100385 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
100387         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
100388         AT_FDCWD exceeds INT_MAX.
100389         * lib/openat.h (AT_FDCWD): Likewise.
100391 2006-02-17  Eric Blake  <address@hidden>
100393         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
100395 2006-02-16  Simon Josefsson  <jas@extundo.com>
100397         * modules/getaddrinfo (Depends-on): Add sys_socket.
100399 2006-02-15  Simon Josefsson  <jas@extundo.com>
100401         * build-aux/maint.mk: Add dsyntax-check rule.
100403 2006-02-15  Eric Blake  <ebb9@byu.net>
100405         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
100406         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
100407         'present but cannot compile' warnings on cygwin.
100408         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
100409         use ws2tcpip.h if sys/socket.h works.
100410         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
100411         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
100413 2006-02-14  Simon Josefsson  <jas@extundo.com>
100415         * modules/maintainer-makefile (Files): Rename.
100417         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
100418         and (the local) Makefile.cfg to maint-cfg.mk.
100420         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
100421         to the latter.
100423         * modules/maintainer-makefile: New module.
100425         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
100426         severaly stripped to make it possible to build it up from scratch
100427         with reliable tests.
100429         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
100430         fixes to permit overriding the default actions when configure and
100431         makefile are not available.
100433 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
100435         Sync from coreutils.
100436         * modules/lstat (Depends-on): Don't depend on xalloc.
100437         (License): Change from GPL to LGPL, since this is now simply a
100438         replacement for a libc function.
100440 2006-02-14  Jim Meyering  <jim@meyering.net>
100442         Sync from coreutils.
100444         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
100445         failure on deficient systems, and simplify gnulib lgpl dependencies.
100446         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
100447         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
100449         * lib/xalloc-die.c: Remove unused definition of N_.
100451 2006-02-14  Jim Meyering  <jim@meyering.net>
100453         Sync from coreutils.
100454         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
100455         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
100456         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
100457         double-quote uses of that variable, to accommodate the rare case in
100458         which getmntent is available in none of the libraries checked.  This
100459         happens at least on FreeBSD 5.0.
100461 2006-02-13  Simon Josefsson  <jas@extundo.com>
100463         * gnulib-tool (Usage): Fix --import, from
100464         karl@freefriends.org (Karl Berry).
100466 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
100468         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
100470 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
100472         * lib/argp-namefrob.h: Restore changes accidentally lost during the
100473         "autoupdate" on 2005-12-12.
100475 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
100477         * modules/closeout (Depends-on): Remove atexit.
100479 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
100481         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
100482         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
100484 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
100486         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
100487         __EXTENSIONS__ if this causes compilation to fail.  Problem
100488         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
100489         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
100491 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
100493         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
100494         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
100495         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
100496         All uses changed.
100498 2006-01-26  Simon Josefsson  <jas@extundo.com>
100500         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
100501         prototype is visible on mingw32.
100503         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
100504         for mingw32.
100506         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
100507         mingw32).
100509 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
100511         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
100512         attempt to open for write; this always fails, at least on POSIX
100513         hosts.  This reinstates the 2006-01-09 change, which was
100514         inadvertently removed.
100516 2006-01-26  Bruno Haible  <bruno@clisp.org>
100518         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
100519         Reported by Paul Eggert.
100521 2006-01-26  Bruno Haible  <bruno@clisp.org>
100522             Paul Eggert  <eggert@cs.ucla.edu>
100524         * lib/stdbool_.h (_Bool)
100525         [(! (defined __cplusplus || defined __BEOS__)
100526           && !defined __GNUC__
100527           && !(defined __HP_cc || defined __xlc__
100528                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
100529                || defined __sgi))]:
100530         #define to signed char in these cases too; this simplifies
100531         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
100532         etc., separately) and makes it more conservative.
100534 2006-01-25  Simon Josefsson  <jas@extundo.com>
100536         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
100537         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
100538         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
100540 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
100542         * lib/argp-namefrob.h: Bugfix. Remove stray #
100544 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
100546         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
100547         so that we test the test.
100548         Check for yet another HP-UX cc bug involving *bool |= bool.
100550 2006-01-25  Karl Berry  <karl@gnu.org>
100552         * config/srclist.txt (vasnprintf.c): sync lost.
100554 2006-01-25  Jim Meyering  <jim@meyering.net>
100556         Sync from the stable (b5) branch of coreutils:
100558         * lib/fts.c (fts_children): Don't let close() clobber errno from
100559         failed fchdir().
100561         * lib/fts.c (fts_stat): When following a symlink-to-directory,
100562         don't necessarily interpret stat-fails+lstat-succeeds as indicating
100563         a dangling symlink.  That can also happen at least for ELOOP.
100564         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
100565         FYI, this bug predates the inclusion of fts.c in coreutils.
100567         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
100568         in their own block, so pre-c99 compilers don't object.
100570         Avoid the double-free (first in fts_read, second in fts_close) that
100571         would occur when an `active' directory is made inaccessible (e.g.,
100572         via chmod a-x) during a traversal.
100573         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
100574         before returning.  Reproduce this failure by
100575         mkdir -p a/b; cd a; chmod a-x . b
100576         Reported by Stavros Passas.
100578 2006-01-25  Jim Meyering  <jim@meyering.net>
100580         * lib/fileblocks.c: Remove more useless parentheses.
100581         * lib/readutmp.h: Likewise.
100583 2006-01-25  Bruno Haible  <bruno@clisp.org>
100585         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
100586         warnings.
100587         Reported by Paul Eggert.
100589 2006-01-25  Bruno Haible  <bruno@clisp.org>
100591         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
100592         rid of a trap command. For Solaris sh.
100593         Reported by Mark D. Baushke <mdb@gnu.org>.
100595 2006-01-24  Simon Josefsson  <jas@extundo.com>
100597         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
100598         Bruno.
100600 2006-01-24  Karl Berry  <karl@gnu.org>
100602         * config/srclist.txt (argp-namefrob.h): sync lost.
100604 2006-01-24  Jim Meyering  <jim@meyering.net>
100606         * modules/openat (Files): Add lib/intprops.h.
100607         From Mark D. Baushke.
100609 2006-01-24  Jim Meyering  <jim@meyering.net>
100611         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
100612         Reported by Mark D. Baushke.
100614 2006-01-24  Jim Meyering  <jim@meyering.net>
100616         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
100618 2006-01-24  Bruno Haible  <bruno@clisp.org>
100620         * modules/strnlen (Maintainer): Change from glibc to all.
100622 2006-01-24  Bruno Haible  <bruno@clisp.org>
100624         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
100625         Patch by Paul Eggert.
100627 2006-01-24  Bruno Haible  <bruno@clisp.org>
100629         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
100630         already has it.
100631         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
100632         2005-11-26.
100634         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
100635         'signed char' to avoid problems with the built-in _Bool type.
100636         Reported by Paul Eggert on 2005-11-26.
100638 2006-01-24  Bruno Haible  <bruno@clisp.org>
100640         * gnulib-tool (func_import): Avoid constructing complicated sed
100641         expressions inside backquote.
100642         Report and solution by Mark D. Baushke <mdb@gnu.org>.
100644 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
100646         These changes imported from libc.
100647         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
100648         test and two separate function calls.
100649         * lib/strndup.c (__strndup): Add libc_hidden_def.
100651 2006-01-23  Simon Josefsson  <jas@extundo.com>
100653         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
100654         Remove the test_*_SOURCES variable: automake infers it by default.
100655         * modules/tls-tests: Likewise.
100657 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
100659         Work around porting bugs reported by Dieter in
100660         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
100661         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
100662         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
100663         Include "getopt.h" first, to check interface.
100664         (getenv): Declare only if defined HAVE_DECL_GETENV &&
100665         !HAVE_DECL_GETENV.
100666         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
100667         (__strndup): Revert to K&R-style function dfns, the glibc style.
100668         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
100669         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
100670         Include strnlen.h first, to get prototype properly.
100671         (strnlen): Renamed from __strnlen.
100672         Remove weak alias.
100674 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
100676         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
100678 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
100680         * config/srclist.txt: Adjust to reflect glibc reorganization.
100681         This affects only comments.
100683 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
100685          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
100686          Reported by Bruce Korb <bkorb@gnu.org>.
100688 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
100690         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
100691         to pacify gcc -Wswitch-default.
100693 2006-01-22  Bruno Haible  <bruno@clisp.org>
100695         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
100696         temporary buffer for sprintf, take into account the precision also
100697         for 'd', 'i', 'u', 'o', 'x', 'X'.
100699 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
100701         * modules/argp-tests: New module
100702         * tests/test-argp.c: New file
100703         * tests/test-argp-2.sh: New file
100705 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
100707         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
100708         (__argp_base_name): Removed
100709         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
100710         typo.
100711         (__argp_base_name): Provide macro definition or extern declaration
100712         depending on the configuration
100714 2006-01-20  Simon Josefsson  <jas@extundo.com>
100716         * modules/inet_ntop (Depends-on): Depend on sys_socket.
100718 2006-01-20  Simon Josefsson  <jas@extundo.com>
100720         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
100722 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
100724         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
100725         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
100726         Suggested by Bruno Haible.
100728 2006-01-20  Karl Berry  <karl@gnu.org>
100730         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
100731         until changes propagate, I guess.
100733 2006-01-19  Simon Josefsson  <jas@extundo.com>
100735         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
100737 2006-01-19  Simon Josefsson  <jas@extundo.com>
100739         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
100741 2006-01-19  Simon Josefsson  <jas@extundo.com>
100743         * gnulib-tool: Set check_PROGRAMS.
100745         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
100746         modules/des-tests, modules/gc-arcfour-tests,
100747         modules/gc-arctwo-tests, modules/gc-des-tests,
100748         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
100749         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
100750         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
100751         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
100752         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
100753         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
100754         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
100755         test_*_SOURCES.
100757 2006-01-18  Simon Josefsson  <jas@extundo.com>
100759         * modules/socklen (Depends-on): Depend on sys_socket.
100761 2006-01-18  Simon Josefsson  <jas@extundo.com>
100763         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
100764         modules/des-tests, modules/gc-arcfour-tests,
100765         modules/gc-arctwo-tests, modules/gc-des-tests,
100766         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
100767         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
100768         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
100769         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
100770         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
100771         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
100772         $(EXEEXT) to automake TESTS variable, for mingw32.
100774 2006-01-17  Simon Josefsson  <jas@extundo.com>
100776         * modules/socklen (Include): Need sys/socket.h.
100778 2006-01-17  Bruno Haible  <bruno@clisp.org>
100780         * modules/ssize_t (Include): Add <sys/types.h>.
100782 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
100784         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
100785         it's not portable and it doesn't work with cross-compiles.
100786         Problem reported by Bruno Haible.  Fix missing-$ typo in
100787         'test "gl_cv_ignore_unused_libraries" ...' that prevented
100788         -zignore from being used with Sun's C compiler.
100790 2006-01-12  Simon Josefsson  <jas@extundo.com>
100792         * lib/base64.c: Fix warning, reported by Bruno Haible
100793         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
100795 2006-01-12  Bruno Haible  <bruno@clisp.org>
100797         * modules/ldd: New file.
100798         * build-aux/ldd.sh.in: New file.
100799         * MODULES.html.sh (Support for building libraries and executables): Add
100800         ldd.
100802 2006-01-12  Bruno Haible  <bruno@clisp.org>
100804         * m4/ldd.m4: New file.
100806 2006-01-12  Bruno Haible  <bruno@clisp.org>
100808         * gnulib-tool (func_import, func_create_testdir): Don't go into an
100809         endless loop while replacing $auxdir with build-aux.
100811 2006-01-11  Simon Josefsson  <jas@extundo.com>
100813         * lib/stdint_.h (SIZE_MAX): Add missing (.
100815 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
100817         Sync from coreutils.
100818         * lib/md5.c: Fix commentary typos.
100819         (alignof, UNALIGNED_P): No need for a GCC-specific version.
100820         * lib/md5.h (__attribute__): Remove; unused.
100821         * lib/sha1.c: Fix commentary to match md5 better.
100822         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
100823         so that we don't need to worry about alignment.  All uses changed.
100824         This merges the 2005-10-28 md5 change into sha1.
100826 2006-01-11  Jim Meyering  <jim@meyering.net>
100828         Sync from coreutils.
100829         * lib/md5.c (OP): Fix spacing.
100831 2006-01-11  Bruno Haible  <bruno@clisp.org>
100833         Ensure automatic ordering between gl_LOCK and gl_ARGP.
100834         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
100835         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
100837 2006-01-11  Bruno Haible  <bruno@clisp.org>
100839         Ensure automatic ordering between gl_LOCK and gl_ARGP.
100840         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
100841         the "early" section as well.
100843 2006-01-11  Bruno Haible  <bruno@clisp.org>
100845         Avoid "ar: no archive members specified" error on MacOS X.
100846         * gnulib-tool (func_modules_add_dummy): New function.
100847         (func_import, func_create_testdir): Invoke it.
100849 2006-01-11  Bruno Haible  <bruno@clisp.org>
100851         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
100852         with $auxdir in AC_CONFIG_FILES statements.
100854 2006-01-11  Bruno Haible  <bruno@clisp.org>
100856         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
100857         Initialize also noinst_HEADERS to empty.
100859 2006-01-11  Bruno Haible  <bruno@clisp.org>
100861         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
100862         variables.
100863         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
100864         autoreconf.
100866 2006-01-11  Bruno Haible  <bruno@clisp.org>
100868         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
100869         overridable by the user.
100870         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100872 2006-01-10  Simon Josefsson  <jas@extundo.com>
100874         * modules/sys_socket: New file.
100876 2006-01-10  Simon Josefsson  <jas@extundo.com>
100878         * m4/sys_socket_h.m4: New file.
100880 2006-01-10  Simon Josefsson  <jas@extundo.com>
100882         * lib/socket_.h: New file.
100884 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
100886         * modules/readutmp (Maintainer): Add myself.
100888 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
100890         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
100891         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
100892         People who are still concerned with buggy memcmp implementations
100893         can invoke gl_FUNC_MEMCMP themselves.
100895 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
100897         * lib/regex_internal.h (BITSET_WORD_BITS):
100898         Work around a bug in 64-bit PGC (before version 6.1-2), where the
100899         preprocessor mishandles large unsigned values as if they were signed.
100900         Problem reported by Claudio Fontana in
100901         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
100903 2006-01-10  Jim Meyering  <jim@meyering.net>
100905         Avoid the double-free (first in fts_read, second in fts_close) that
100906         would occur when an `active' directory is made inaccessible (e.g.,
100907         via chmod a-x) during a traversal.
100908         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
100909         before returning.  Reproduce this failure by
100910         mkdir -p a/b; cd a; chmod a-x . b
100911         Reported by Stavros Passas.
100913         Sync from coreutils.
100914         * lib/sha1.c: Tweak grammar in a comment.
100916 2006-01-10  Jim Meyering  <jim@meyering.net>
100918         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
100919         Patch by Joerg Sonnenberger.
100921 2006-01-10  Bruno Haible  <bruno@clisp.org>
100923         * modules/readutmp: Depend on module free.
100924         * modules/strtok_r: Depend on module restrict.
100926 2006-01-10  Bruno Haible  <bruno@clisp.org>
100928         * modules/gettext (configure.ac): Add an invocation of
100929         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
100931 2006-01-10  Bruno Haible  <bruno@clisp.org>
100933         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
100934         Reported by Werner Lemberg <wl@gnu.org>.
100936 2006-01-10  Bruno Haible  <bruno@clisp.org>
100938         * lib/localcharset.c: Update from GNU gettext.
100940 2006-01-10  Bruno Haible  <bruno@clisp.org>
100942         * lib/argp.h (__const): Remove macro. Use const instead.
100943         * lib/argp-fmtstream.h (__const): Likewise.
100944         * lib/glob_.h (__const): Remove macro.
100945         * lib/glob-libc.h: Use const instead of __const.
100947 2006-01-10  Bruno Haible  <bruno@clisp.org>
100949         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
100950         variable.
100951         Needed to avoid an automake error regarding the 'gettext' module.
100953 2006-01-09  Simon Josefsson  <jas@extundo.com>
100955         * modules/inet_ntop (Depends-on): Add restrict.
100957 2006-01-09  Simon Josefsson  <jas@extundo.com>
100959         * modules/gc-rijndael-tests (License): Put under LGPL.
100961         * modules/gc-des-tests (License): Likewise.
100963         * modules/gc-arcfour-tests (License): Likewise.
100965         * modules/gc-arctwo-tests (License): Likewise.
100967         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
100969         * modules/gc-hmac-sha1-tests (Files): Likewise.
100971         * modules/gc-hmac-md5-tests (License): Likewise.
100973         * modules/gc-sha1-tests (License): Likewise.
100975         * modules/gc-md5-tests (License): Likewise.
100977         * modules/gc-md4-tests (License): Likewise.
100979         * modules/gc-md2-tests (License): Likewise.
100981         * modules/gc-tests (License): Likewise.
100983         * modules/des-tests (License): Likewise.
100985         * modules/md4-tests (License): Likewise.
100987         * modules/md2-tests (License): Likewise.
100989 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
100991         Sync from coreutils:
100993         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
100994         * modules/lib-ignore: New file.
100995         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
100996         chdir-safer.m4, lchmod.m4.
100997         * modules/openat: Add mkdirat.c, openat-priv.h.
100999 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
101001         Sync from coreutils.
101002         * m4/lib-ignore.m4: New file.
101003         * m4/lchmod.m4: New file.
101005 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
101007         Sync from coreutils.
101008         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
101009         for write access: POSIX says that must fail.
101010         * lib/fts.c (diropen): Likewise.
101011         * lib/save-cwd.c (save_cwd): Likewise.
101012         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
101013         well, for minor improvements on hosts that lack O_DIRECTORY.
101014         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
101015         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
101016         Fall back on chown if open failed with EACCES.
101018         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
101019         Report an error at compile-time if only a 1-second nominal clock
101020         resolution is found.
101022         * lib/lchmod.h: New file.
101023         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
101024         (make_dir_parents): Use lchown rather than chown, and
101025         lchmod rather than chmod.
101027         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
101028         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
101029         "proc" reported by n0dalus.
101031         * lib/mountlist.c: Include <limits.h>.
101032         (dev_from_mount_options)
101033         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
101034         New function.  It no longer assumes "dev=" has the System V meaning
101035         on Linux (since it doesn't).  It also parses "dev=" more carefully.
101036         (read_file_system_list)
101037         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
101038         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
101039         dev= in that case.
101041         * lib/posixtm.h (PDS_PRE_2000): New macro.
101042         * lib/posixtm.c (year): Arg is now syntax_bits rather than
101043         allow_century.  All usages changed.  Reject dates outside the range
101044         1969-1999 if PDS_PRE_2000 is used.
101046 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
101048         Sync from coreutils.
101049         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
101050         (Time of day items): Mention the possibility of leap seconds.
101051         Problem reported by Dr. David Alan Gilbert.
101053 2006-01-09  Jim Meyering  <jim@meyering.net>
101055         Sync from coreutils.
101057         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
101059         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
101061         * lib/modechange.c (mode_compile): Reject an invalid mode string
101062         that starts with an octal digit.  From Andreas Gruenbacher.
101064         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
101065         and dup to open_safer and dup_safer, respectively.
101066         (openat_permissive): Fix typo in comment.
101068         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
101069         "gettext.h"; either no longer needed or are guaranteed by openat.h.
101070         (_): Remove; no longer needed.
101071         (openat): Renamed from rpl_openat; no need for rpl_openat
101072         since openat.h renames openat for us.
101073         Replace most of the body with a call to openat_permissive,
101074         to avoid duplicate code.
101075         Port to (probably hypothetical) environments were mode_t is
101076         wider than int.
101077         (openat_permissive): Require mode arg, so that we can check
101078         types better.  Put it just after flags.  Change cwd failure
101079         indicator from pointer-to-bool to pointer-to-errno-value.
101080         All callers changed.
101081         Invoke openat_save_fail and/or openat_restore_fail if
101082         cwd_errno is null, so that openat can call us.
101083         (openat_permissive, fdopendir, fstatat, unlinkat):
101084         Simplify errno handling to avoid some duplicate code,
101085         as it's OK to set errno on success.
101086         * lib/openat.h: Revamp code so that function macros depend on
101087         __OPENAT_PREFIX only, not also on AT_FDCWD.
101088         (openat_ro): Remove.  Caller changed to use openat_permissive.
101089         (openat_permissive): Now a macro, if not a function.
101090         (openat_restore_fail, openat_save_fail): Now always functions,
101091         since mkdirat needs them even if __OPENAT_PREFIX is defined.
101093         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
101094         and openat.c.
101095         * lib/mkdirat.c: Include openat-priv.h.
101096         Remove definitions of macros defined therein.
101097         * lib/openat.c: Likewise.
101099         * lib/mkdirat.c (mkdirat): New file and function.
101100         * lib/openat.h (mkdirat): Declare.
101102         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
101104         * lib/openat.h (openat_permissive): Declare.
101105         (openat_ro): Define.
101107         * lib/openat.c (EXPECTED_ERRNO): New macro.
101108         (openat_permissive): New function -- used in remove.c rewrite.
101109         (all functions): Set errno just before returning, only if there
101110         was an actual failure.
101111         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
101113         Emulate openat-family functions using Linux's procfs, if possible.
101114         Idea and some code based on Ulrich Drepper's glibc changes.
101116         * lib/openat.c: (BUILD_PROC_NAME): New macro.
101117         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
101118         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
101119         before falling back on save_cwd and restore_cwd.
101120         (fdopendir, fstatat, unlinkat): Likewise.
101122         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
101123         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
101125         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
101126         as second argument to va_arg.  Otherwise, some versions of gcc
101127         warn that `if this code is reached, the program will abort'.
101129 2006-01-09  Jim Meyering  <jim@meyering.net>
101131         Sync from coreutils.
101132         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
101133         Require openat-priv.h.
101135 2006-01-09  Bruno Haible  <bruno@clisp.org>
101137         * modules/strnlen (Include): Use strnlen.h.
101139 2006-01-09  Bruno Haible  <bruno@clisp.org>
101141         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
101143 2006-01-09  Bruno Haible  <bruno@clisp.org>
101145         * lib/sysexit_.h (EX_OK): New macro.
101146         Suggested by Martin Lambers <marlam@marlam.de>.
101148 2006-01-09  Bruno Haible  <bruno@clisp.org>
101150         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
101151         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
101153 2006-01-09  Bruno Haible  <bruno@clisp.org>
101155         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
101156         numbers.
101158 2006-01-09  Bruno Haible  <bruno@clisp.org>
101160         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
101161         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
101162         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
101163         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
101165 2006-01-09  Bruno Haible  <bruno@clisp.org>
101167         * build-aux/javacomp.sh.in: New file, moved from lib/.
101168         * modules/javacomp-script (Files): Update.
101169         (configure.ac): Add AC_CONFIG_FILES invocation.
101170         (EXTRA_DIST): Remove variable.
101172         * build-aux/javaexec.sh.in: New file, moved from lib/.
101173         * modules/javaexec (Files): Update.
101174         (configure.ac): Add AC_CONFIG_FILES invocation.
101175         (EXTRA_DIST): Remove javaexec.sh.in.
101177         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
101178         * modules/csharpcomp-script (Files): Update.
101179         (configure.ac): Add AC_CONFIG_FILES invocation.
101180         (EXTRA_DIST): Remove variable.
101182         * build-aux/csharpexec.sh.in: New file, moved from lib/.
101183         * modules/csharpexec (Files): Update.
101184         (configure.ac): Add AC_CONFIG_FILES invocation.
101185         (EXTRA_DIST): Remove csharpexec.sh.in.
101187 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
101189         Sync from coreutils.
101191         Add POSIX ACL support
101192         * lib/acl.h (copy_acl, set_acl): Add declarations.
101193         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
101194         systems other than Linux.
101195         (chmod_or_fchmod): New function: use fchmod when possible,
101196         and chmod otherwise.
101197         (file_has_acl): Add a POSIX ACL implementation, with a
101198         Linux-specific subcase.
101199         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
101200         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
101201         acls are unsupported.
101202         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
101203         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
101204         are unsupported.
101206 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
101208         Sync from coreutils.
101209         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
101211 2006-01-07  Bruno Haible  <bruno@clisp.org>
101213         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
101214         gl_EARLY.
101216 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
101218         * lib/strftime.c (tzname): Don't declare if it is already #defined.
101219         Problem reported for Mingw by Mark Junker.
101221 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
101223         * README: Gnulib normally doesn't generate a tarball.
101225 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
101227         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
101228         long int, not int, for nanosecond counts, so that people who are
101229         used to POSIX struct timespec won't be surprised.  Reported by Jim
101230         Meyering.
101232 2005-12-28  Bruno Haible  <bruno@clisp.org>
101234         * build-aux/config.rpath: Update from GNU gettext.
101236 2005-12-16  Jim Meyering  <jim@meyering.net>
101238         * modules/fprintftime: New module.
101239         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
101241 2005-12-16  Jim Meyering  <jim@meyering.net>
101243         * m4/fprintftime.m4: New file.
101245 2005-12-16  Jim Meyering  <jim@meyering.net>
101247         * lib/fprintftime.c, lib/fprintftime.h: New files.
101249 2005-12-15  Simon Josefsson  <jas@extundo.com>
101251         * modules/socklen (configure.ac): Fix M4 macro name, to align with
101252         new m4/socklen.m4.
101254 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
101256         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
101257         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
101259 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
101261         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
101262         * lib/argp-help.c (fill_in_uparams): Check if the constructed
101263         struct uparams is valid. Fall back to the default values if it is
101264         not.
101266 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
101268         * modules/argp (Files): Add argp-pin.c
101269         (Depends-on): dirname
101270         (lib_SOURCES): Add argp-pin.c
101272 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
101274         * m4/argp.m4:  Check if program_invocation_name and
101275         program_invocation_short_name are declared and define appropriate
101276         macros if they are not.
101278 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
101280         * lib/argp-help.c (__argp_base_name): New function
101281         (__argp_short_program_name): Rewrite using __argp_base_name
101282         * lib/argp-namefrob.h: Define program_invocation_name and
101283         program_invocation_short_name if requested
101284         (__argp_base_name): Add prototype
101285         * lib/argp-parse.c (argp_def): Use gettext wrappers
101286         (argp_default_parser): Use __argp_base_name
101287         * lib/argp-pin.c: New file. Defines program_invocation_name and
101288         program_invocation_short_name on systems that lack them.
101290 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
101292         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
101293         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
101294         porting problem reported by Georg Schwarz in
101295         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
101297 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
101299         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
101300         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
101301         porting problem reported by Georg Schwarz in
101302         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
101304 2005-12-05  Bruno Haible  <bruno@clisp.org>
101306         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
101307         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
101308         Reported by Mark Junker <mjscod@gmx.de>.
101310 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
101312         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
101313         Use implementation from Albert Chin, with some
101314         comments/corrections by Stepan Kasal and myself.
101316 2005-12-02  Bruno Haible  <bruno@clisp.org>
101318         * gnulib-tool (func_import): Accept GPLed build tool modules when
101319         --lgpl is given.
101320         * modules/csharpcomp-script: New file.
101321         * modules/csharpcomp: Depend on it.
101322         * modules/javacomp-script: New file.
101323         * modules/javacomp: Depend on it.
101324         Suggested by Simon Josefsson.
101326 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
101328         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
101329         statement, to work around an HP-UX 10.20 compiler bug reported by
101330         Peter O'Gorman.
101332 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
101334         * modules/savedir (Depends-on): Add openat.
101336 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
101338         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
101339         (uintmax_t) [defined uintmax_t]: Do not declare.
101340         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
101341         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
101342         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
101343         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
101344         sake of portability to weird hosts that C allows (though we don't
101345         know of any practical examples).
101347         * lib/savedir.h (fdsavedir): New decl.
101348         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
101349         contains most of the former guts of savedir.
101350         (savedir): Use savedirstream.
101351         Include "openat.h".
101353 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
101355         * modules/obstack (Files): Add m4/ulonglong.m4.
101356         Problem reported by Davide Angelocola.
101358 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
101360         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
101361         coreutils no longer futzes with rounding modes.
101363 2005-11-14  Jim Meyering  <jim@meyering.net>
101365         * lib/mkstemp-safer.c: Include <config.h>, required for possible
101366         replacement of mkstemp.
101368 2005-11-10  Simon Josefsson  <jas@extundo.com>
101370         * lib/readline.c: Remove EOL.
101372 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
101374         * modules/gethrxtime (Depends-on): Add gettime.
101376 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
101378         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
101379         or gettimeofday; no longer needed.
101381 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
101383         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
101384         time business.
101385         (gethrxtime) [! (HAVE_NANOUPTIME
101386         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
101387         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
101388         our own approximation.
101390 2005-11-08  Eric Blake  <ebb9@byu.net>
101392         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
101394 2005-11-08  Eric Blake  <ebb9@byu.net>
101396         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
101398 2005-11-04  Bruno Haible  <bruno@clisp.org>
101400         * gnulib-tool: Implement --update mode.
101402 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
101404         Fix porting problem reported by Theodoros V. Kalamatianos.
101405         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
101406         Don't assume that futimes failing means we must fail.
101408 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
101410         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
101411         variables to suggest the intended function of the PATH_MAX check.
101413 2005-10-30  Kean Johnston  <jkj@sco.com>
101415         Trivial changes to support SCO systems.
101416         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
101417         as PATH_MAX.
101418         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
101419         where __ptr is null when no I/O is pending.
101421 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
101423         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
101424         leave errno alone.  Problem reported by Dmitry V. Levin.
101426 2005-10-28  Simon Josefsson  <jas@extundo.com>
101428         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
101429         Test more.
101431         * tests/test-gc-md2.c, tests/test-md2.c: New files.
101433         * modules/md2, modules/md2-tests: New files.
101435 2005-10-28  Simon Josefsson  <jas@extundo.com>
101437         * m4/inet_ntop.m4: More tests.
101439         * m4/gc-md2.m4, md2.m4: New file.
101441 2005-10-28  Simon Josefsson  <jas@extundo.com>
101443         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
101444         "restrict" keywords, as per POSIX.  Protect the function
101445         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
101446         Don't use K&R prototypes.  Check the sprintf return values.
101447         Re-define EAFNOSUPPORT if not present.  Indent.
101449         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
101450         suggested by Bruno Haible <bruno@clisp.org>.
101452         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
101454         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
101456         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
101457         libgcrypt).
101459         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
101461         * lib/md2.h, lib/md2.c: New files.
101463 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
101465         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
101466         errno alone.  Problem reported by Frederic Jolliton.
101468 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
101470         * modules/verify (License): Change from GPL to LGPL.  This is a
101471         tiny module and there are apparently near-equivalents that are
101472         under the BSD license.
101474 2005-10-24  Simon Josefsson  <jas@extundo.com>
101476         * modules/sha1: Relicense to LGPL.
101478 2005-10-24  Simon Josefsson  <jas@extundo.com>
101480         * lib/md4.h: Shrink buffer size, now that we changed the type.
101482 2005-10-23  Simon Josefsson  <jas@extundo.com>
101484         * gnulib-tool (func_import): Fix --tests-base.
101486 2005-10-22  Simon Josefsson  <jas@extundo.com>
101488         * modules/arcfour (Depends-on): Need stdint.
101490 2005-10-22  Simon Josefsson  <jas@extundo.com>
101492         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
101493         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
101495 2005-10-22  Simon Josefsson  <jas@extundo.com>
101497         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
101498         suggested by Bruno Haible <bruno@clisp.org>.
101500 2005-10-22  Simon Josefsson  <jas@extundo.com>
101502         * lib/crc.h: Include stddef.h, for size_t.
101504 2005-10-22  Simon Josefsson  <jas@extundo.com>
101506         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
101507         arcfour_context struct (simplify test vector testing in GNU
101508         Shishi).
101510 2005-10-21  Simon Josefsson  <jas@extundo.com>
101512         * modules/des, modules/des-tests: New files.
101514         * modules/gc-des, modules/gc-des-tests: New files.
101516         * tests/test-des.c, tests/test-gc-des.c: New file.
101518 2005-10-21  Simon Josefsson  <jas@extundo.com>
101520         * modules/arctwo, modules/arctwo-tests: New files.
101522         * tests/test-arctwo.c: New file.
101524         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
101526         * tests/test-gc-arctwo.c: New file.
101528 2005-10-21  Simon Josefsson  <jas@extundo.com>
101530         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
101531         Bruno Haible <bruno@clisp.org>.
101533         * m4/gc-des.m4: New file.
101535 2005-10-21  Simon Josefsson  <jas@extundo.com>
101537         * m4/arctwo.m4: New file.
101539         * m4/gc-arctwo.m4: New file.
101541 2005-10-21  Simon Josefsson  <jas@extundo.com>
101543         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
101544         block.
101546 2005-10-21  Simon Josefsson  <jas@extundo.com>
101548         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
101549         <bruno@clisp.org>.
101551         * lib/hmac-sha1.c (hmac_sha1): Likewise.
101553         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
101554         Bruno Haible <bruno@clisp.org>.
101556         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
101557         <bruno@clisp.org>.
101559 2005-10-21  Simon Josefsson  <jas@extundo.com>
101561         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
101563 2005-10-21  Simon Josefsson  <jas@extundo.com>
101565         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
101567 2005-10-21  Simon Josefsson  <jas@extundo.com>
101569         * lib/des.h, lib/des.c: New files.
101571         * lib/gc-gnulib.c: Support DES.c
101573 2005-10-21  Simon Josefsson  <jas@extundo.com>
101575         * lib/arctwo.h, lib/arctwo.c: New files.
101577         * lib/gc-gnulib.c: Support ARCTWO.
101579 2005-10-21  Simon Josefsson  <jas@extundo.com>
101581         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
101582         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101584 2005-10-21  Simon Josefsson  <jas@extundo.com>
101586         * gnulib-tool (func_import, func_create_testdir): Define automake
101587         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
101588         Makefile.am snippet),
101589         suggested by Bruno Haible <bruno@clisp.org>.
101591         * modules/gc (Makefile.am): Use it.
101593 2005-10-21  Bruno Haible  <bruno@clisp.org>
101595         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
101596         patch.
101598 2005-10-19  Simon Josefsson  <jas@extundo.com>
101600         * tests/test-gc-rijndael.c: New file.
101602         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
101604 2005-10-19  Simon Josefsson  <jas@extundo.com>
101606         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
101607         interface too.
101609 2005-10-19  Simon Josefsson  <jas@extundo.com>
101611         * tests/test-gc-arcfour.c: New file.
101613         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
101615 2005-10-19  Simon Josefsson  <jas@extundo.com>
101617         * modules/gc-md4, modules/gc-md4-tests: New file.
101619         * tests/test-gc-md4.c: New file.
101621 2005-10-19  Simon Josefsson  <jas@extundo.com>
101623         * m4/gc-md4.m4: New file.
101625 2005-10-19  Simon Josefsson  <jas@extundo.com>
101627         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
101628         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
101629         <kasal@ucw.cz>.
101631 2005-10-19  Simon Josefsson  <jas@extundo.com>
101633         * m4/gc-arcfour.m4: New file.
101635         * m4/gc-rijndael.m4: New file.
101637 2005-10-19  Simon Josefsson  <jas@extundo.com>
101639         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
101641 2005-10-19  Simon Josefsson  <jas@extundo.com>
101643         * lib/gc-gnulib.c: Support ARCFOUR.
101645 2005-10-19  Simon Josefsson  <jas@extundo.com>
101647         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
101648         support.
101650         * lib/gc.h: Add ECB enum type.
101652         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
101654 2005-10-18  Simon Josefsson  <jas@extundo.com>
101656         * tests/test-md5.c: New file.
101658         * modules/md5-tests: New file.
101660 2005-10-18  Simon Josefsson  <jas@extundo.com>
101662         * tests/test-md4.c: New file.
101664         * modules/md4, modules/md4-tests: New files.
101666 2005-10-18  Simon Josefsson  <jas@extundo.com>
101668         * m4/md4.m4: New file.
101670 2005-10-18  Simon Josefsson  <jas@extundo.com>
101672         * lib/md4.h, lib/md4.c: New files, based on md5.?.
101674 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
101676         * gnulib-tool (func_create_testdir): Omit the second check whether
101677         BUILT_SOURCES in nonempty.
101679 2005-10-17  Simon Josefsson  <jas@extundo.com>
101681         * tests/test-rijndael.c: New file.
101683 2005-10-17  Simon Josefsson  <jas@extundo.com>
101685         * modules/sha1: Depend on stdint instead of md5.
101687         * modules/md5: Depend on stdint, remove uint32_t.
101689 2005-10-17  Simon Josefsson  <jas@extundo.com>
101691         * modules/gc-sha1-tests: New file.
101693         * tests/test-gc-sha1.c: New file.
101695 2005-10-17  Simon Josefsson  <jas@extundo.com>
101697         * m4/md5.m4: Remove call to uint32_t.m4.
101699 2005-10-17  Simon Josefsson  <jas@extundo.com>
101701         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
101703         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
101704         md5.h.
101706         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
101708         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
101710 2005-10-17  Simon Josefsson  <jas@extundo.com>
101712         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
101714 2005-10-17  Simon Josefsson  <jas@extundo.com>
101716         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
101718 2005-10-17  Simon Josefsson  <jas@extundo.com>
101720         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
101722         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
101724 2005-10-17  Bruno Haible  <bruno@clisp.org>
101726         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
101727         that it can also be used in a test.
101729 2005-10-16  Bruno Haible  <bruno@clisp.org>
101731         * gnulib-tool (func_emit_tests_Makefile_am): Also define
101732         TESTS_ENVIRONMENT, so that individual tests can augment it.
101734         * gnulib-tool (func_create_testdir): Use an intermediate target for
101735         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
101736         macros, like $(ALLOCA_H), which cannot be passed through the command
101737         line.
101739 2005-10-15  Simon Josefsson  <jas@extundo.com>
101741         * modules/rijndael-tests: New file.
101743         * modules/rijndael: New file.
101745 2005-10-15  Simon Josefsson  <jas@extundo.com>
101747         * m4/rijndael.m4: New file.
101749 2005-10-15  Simon Josefsson  <jas@extundo.com>
101751         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
101753         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
101755 2005-10-14  Simon Josefsson  <jas@extundo.com>
101757         * tests/test-arcfour.c: New file.
101759         * modules/arcfour, modules/arcfour-tests: New files.
101761 2005-10-14  Simon Josefsson  <jas@extundo.com>
101763         * m4/arcfour.m4: New file.
101765 2005-10-14  Simon Josefsson  <jas@extundo.com>
101767         * lib/arcfour.h, lib/arcfour.c: New files.
101769 2005-10-14  Roland McGrath  <roland@redhat.com>
101771         Import from libc.  [BZ #1331]
101772         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
101773         macro argument.
101774         Reported by Matej Vela <vela@debian.org>.
101776 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
101778         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
101779         include <wchar.h>; no longer needed.
101781 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
101783         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
101785 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
101786         and  Ulrich Drepper  <drepper@redhat.com>
101788         Import from libc.
101789         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
101790         instead of inline stream orientation test and two separate
101791         function calls.  Pay no attention to USE_IN_LIBIO.
101793 2005-10-13  Simon Josefsson  <jas@extundo.com>
101795         * modules/gc-hmac-md5-tests: New file.
101797         * tests/test-gc-hmac-sha1.c: New file.
101799         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
101801         * modules/gc-hmac-md5-tests: New file.
101803         * tests/test-gc-md5.c: New file.
101805         * modules/gc-md5-tests: New file.
101807 2005-10-13  Simon Josefsson  <jas@extundo.com>
101809         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
101810         Move memory allocation outside of loop.
101812 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
101814         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
101815         intermediate directory is in a read-only file system.  Problem
101816         reported by Eric Blake.
101818 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
101820         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
101822 2005-10-12  Simon Josefsson  <jas@extundo.com>
101824         * tests/test-hmac-sha1.c: New file.
101826         * modules/hmac-sha1-tests: New file.
101828         * modules/hmac-sha1: New file.
101830 2005-10-12  Simon Josefsson  <jas@extundo.com>
101832         * modules/gc-sha1: New file.
101834 2005-10-12  Simon Josefsson  <jas@extundo.com>
101836         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
101838         * tests/test-gc-pbkdf2-sha1.c: New file.
101840 2005-10-12  Simon Josefsson  <jas@extundo.com>
101842         * modules/gc-md5, modules/gc-hmac-md5: New files.
101844         * modules/gc (Files): Remove md5, memxor and hmac files.
101846 2005-10-12  Simon Josefsson  <jas@extundo.com>
101848         * m4/gc-pbkdf2-sha1.m4: New file.
101850         * m4/gc-hmac-sha1.m4: New file.
101852         * m4/gc-sha1: New file.
101854         * m4/hmac-sha1.m4: New file.
101856 2005-10-12  Simon Josefsson  <jas@extundo.com>
101858         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
101860         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
101862 2005-10-12  Simon Josefsson  <jas@extundo.com>
101864         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
101865         suggested by Bruno Haible <bruno@clisp.org>.
101867 2005-10-12  Simon Josefsson  <jas@extundo.com>
101869         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
101871 2005-10-12  Simon Josefsson  <jas@extundo.com>
101873         * lib/gc-pbkdf2-sha1.c: New file.
101875         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
101877 2005-10-12  Simon Josefsson  <jas@extundo.com>
101879         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
101881         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
101883 2005-10-12  Simon Josefsson  <jas@extundo.com>
101885         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
101886         GC_USE_HMAC_MD5, respectively.
101888         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
101889         (gc_md5): Fix typo.
101891         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
101893         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
101895         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
101897 2005-10-12  Bruno Haible  <bruno@clisp.org>
101899         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
101900         Reported by Stepan Kasal <kasal@ucw.cz>.
101902 2005-10-11  Simon Josefsson  <jas@extundo.com>
101904         * tests/test-crc.c: New file.
101906         * modules/crc, modules/crc-tests: New files.
101908 2005-10-11  Simon Josefsson  <jas@extundo.com>
101910         * m4/crc.m4: New file.
101912 2005-10-11  Simon Josefsson  <jas@extundo.com>
101914         * lib/gc.h: Add gc_hash and gc_hash_buffer.
101916         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
101918         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
101920 2005-10-11  Simon Josefsson  <jas@extundo.com>
101922         * lib/crc.h, lib/crc.c: New files.
101924         * lib/gc.h (gc_hash_buffer): Add doc.
101926 2005-10-11  Bruno Haible  <bruno@clisp.org>
101928         * modules/c-strcasestr: New file.
101929         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
101931 2005-10-11  Bruno Haible  <bruno@clisp.org>
101933         * modules/c-strcase: New file.
101934         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
101936 2005-10-11  Bruno Haible  <bruno@clisp.org>
101938         * lib/strcasecmp.c: Include limits.h.
101939         (strcasecmp): Avoid integer overflow on exotic platforms.
101940         * lib/strncasecmp.c: Include limits.h.
101941         (strncasecmp): Avoid integer overflow on exotic platforms.
101942         Reported by Paul Eggert.
101944 2005-10-11  Bruno Haible  <bruno@clisp.org>
101946         * lib/c-strcasestr.h: New file, from GNU gettext.
101947         * lib/c-strcasestr.c: New file, from GNU gettext.
101949 2005-10-11  Bruno Haible  <bruno@clisp.org>
101951         * lib/c-strcase.h: New file, from GNU gettext.
101952         * lib/c-strcasecmp.c: New file, from GNU gettext.
101953         * lib/c-strncasecmp.c: New file, from GNU gettext.
101955 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
101957         * modules/mempcpy (License): GPL -> LGPL.
101958         * modules/strchrnul (License): Likewise.
101959         * modules/sysexits (License): Likewise.
101961 2005-10-08  Simon Josefsson  <jas@extundo.com>
101963         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
101965 2005-10-07  Simon Josefsson  <jas@extundo.com>
101967         * m4/memxor.m4: Remove gl_C_RESTRICT call.
101969 2005-10-06  Simon Josefsson  <jas@extundo.com>
101971         * tests/test-hmac-md5.c: New file.
101973         * modules/hmac-md5-tests: New file.
101975         * modules/hmac-md5: New file.
101977 2005-10-06  Simon Josefsson  <jas@extundo.com>
101979         * m4/hmac-md5.m4: New file.
101981         * m4/memxor.m4: Require gl_C_RESTRICT.
101983 2005-10-06  Simon Josefsson  <jas@extundo.com>
101985         * lib/memxor.c (memxor): Avoid casts and warnings.
101987 2005-10-06  Simon Josefsson  <jas@extundo.com>
101989         * lib/hmac-md5.c: New file.
101991         * lib/hmac.h: New file.
101993 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
101995         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
101996         promotes to int, not unsigned int, to catch the AIX 5.3
101997         compiler bug.
101999 2005-10-05  Simon Josefsson  <jas@extundo.com>
102001         * modules/memxor: New file.
102003         * modules/iconv (Files): Move config.rpath to havelib, it is used
102004         there.
102006         * modules/havelib (Files): Add config.rpath.
102008 2005-10-05  Simon Josefsson  <jas@extundo.com>
102010         * m4/memxor.m4: New file.
102012 2005-10-05  Simon Josefsson  <jas@extundo.com>
102014         * lib/memxor.c (memxor): Fix compiler error.
102016         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
102017         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
102019         * lib/memxor.h, lib/memxor.c: New files.
102021         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
102022         we assume all systems have it, suggested by Jim Meyering
102023         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
102024         any systems lack sys/socket.h; mingw32 is known to lack it, but we
102025         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
102026         same reasons.
102028 2005-10-05  Simon Josefsson  <jas@extundo.com>
102030         * config/srclist.txt: Add glibc bug 1423 for md5.h.
102032 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
102034         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
102035         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
102036         needed, since the source code now assumes these .h files.
102038 2005-10-05  Derek Price  <derek@ximbiot.com>
102040         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
102042 2005-10-05  Bruno Haible  <bruno@clisp.org>
102044         * modules/stdint (License): Change to LGPL.
102046 2005-10-04  Simon Josefsson  <jas@extundo.com>
102048         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
102049         D. Baushke" <mdb@gnu.org>.
102051 2005-10-04  Bruno Haible  <bruno@clisp.org>
102053         * lib/verify.h (verify_true): Provide alternative definition for C++.
102055 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
102057         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
102058         (SSIZE_MAX): New macro, if not already defined.
102059         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
102060         than 2 GiB.
102062 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
102064         Sync from coreutils.
102065         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
102066         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
102067         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
102068         ULLONG_MAX doesn't work with 2.7.2.1.
102070 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
102072         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
102073         From Ben Pfaff.
102075         * modules/exclude (Depends-on): Depend on verify.
102076         * modules/strtoimax (Depends-on): Likewise.
102077         * modules/utimecmp (Depends-on): Likewise.
102079 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
102081         * lib/exclude.c: Include verify.h.
102082         (verify): Remove.  All callers changed to use verify.h's version.
102083         * lib/strtoimax.c: Likewise.
102084         * lib/utimecmp.c: Likewis.e
102086         Sync from coreutils.
102087         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
102088         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
102089         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
102090         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
102091         bother returning ENOSYS if settimeofday or stime fails; just let
102092         them return whatever errno they want to return.
102093         * lib/utimens.c: Include unistd.h, for dup2.
102094         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
102095         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
102097 2005-10-02  Jim Meyering  <jim@meyering.net>
102099         Sync from coreutils.
102100         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
102101         from glibc-2.2.5 that fails for read-only files.
102103 2005-10-02  Jim Meyering  <jim@meyering.net>
102105         Sync from coreutils.
102106         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
102107         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
102108         `#if HAVE_CONFIG_H'.
102109         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
102110         Remove AT_FDCWD test.
102111         Do not consume the fd unless successful.
102112         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
102113         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
102114         block, so that we don't even try to compile it if settimeofday is
102115         available.  This works around a compilation failure on OSF1 V5.1,
102116         due to stime requiring a `long int*' while tv_sec is `int'.
102118 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
102120         Sync from coreutils.
102121         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
102122         against `yes', rather than just testing for nonempty.
102124 2005-10-01  Simon Josefsson  <jas@extundo.com>
102126         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
102127         and Darwin.
102129         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
102130         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
102131         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
102132         freeaddrinfo and gai_strerror are declared by the POSIX headers.
102133         Check if struct addrinfo is declared.
102135 2005-10-01  Simon Josefsson  <jas@extundo.com>
102137         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
102138         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
102139         AI_* and EAI_* definitions.  Protect function declarations.
102141 2005-10-01  Jim Meyering  <jim@meyering.net>
102143         Sync from coreutils.
102145         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
102146         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
102147         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
102148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
102149         in the inet and nsl libraries.  Required on Solaris 5.7.
102151 2005-10-01  Jim Meyering  <jim@meyering.net>
102153         Sync from coreutils.
102154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
102155         in the inet and nsl libraries.  Required on Solaris 5.7.
102157 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
102159         * lib/getdelim.c (getdelim): Remove unused variables.
102161 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
102163         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
102164         so that the code works even with ancient cpp.  Portability problem
102165         with GCC 2.7.2.1 reported by Thomas M.Ott.
102167 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
102169         * modules/regex (Depends-on): Add strcase.
102171         * modules/gethostname (Licence): Change from GPL to LGPL, since
102172         gethostname.c is a trivial implementation of a standard library
102173         function.
102174         * modules/poll (License): Change from GPL to LGPL, since it's
102175         derived from LGPL code.
102177 2005-09-27  Jim Meyering  <jim@meyering.net>
102179         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
102180         HAVE_CONFIG_H.
102182         * lib/intprops.h (signed_type_or_expr__): Define.
102183         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
102184         for unsigned types.
102186 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
102188         * lib/verify.h (verify_expr): Remove, replacing with:
102189         (verify_true): New macro that returns true instead of void.
102190         (verify_type__): Remove.
102191         (verify): Use verify_true rather than verify_type__.
102193 2005-09-26  Bruno Haible  <bruno@clisp.org>
102195         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
102196         is necessary.
102197         (lib_SOURCES): Remove mbchar.c.
102198         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
102199         (Files): Add m4/mbrtowc.m4.
102200         * modules/mbiter: Likewise.
102201         * modules/mbuiter: Likewise.
102203 2005-09-26  Bruno Haible  <bruno@clisp.org>
102205         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
102206         compile mbchar.c if they are not both present.
102207         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
102208         * m4/mbiter.m4 (gl_MBITER): Likewise.
102209         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
102210         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
102211         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
102213 2005-09-25  Jim Meyering  <jim@meyering.net>
102215         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
102216         also uses socklen_t.
102218 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
102220         * lib/utimens.c (ENOSYS): Define if not already defined.
102221         (futimens): Support having a null PATH if the file descriptor
102222         is nonnegative.
102224         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
102225         Remove.
102226         (__attribute): Define to empty unless GCC 3.1 or later.
102227         This works around a core dump on OpenBSD 3.4, which has GCC
102228         2.95.3, which dumps core when given __attribute__(()).  It also
102229         simplifies other tests, since we really don't want to bother with
102230         worrying about which ancient version of GCC supported what.
102231         Original problem reported by Yoann Vandoorselaere, with part of
102232         the fix suggested by Derek Price.
102234 2005-09-24  Jim Meyering  <jim@meyering.net>
102236         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
102237         so we can once again use a positive bitfield width of 1 -- now we
102238         don't have to explain why we were using a bitfield width of 2.
102240 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
102242         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
102243         and similarly for the other external symbols.  Problem reported
102244         by James Gallager.
102246         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
102247         bug reported by Jim Meyering.
102249         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
102250         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
102251         not needed, since socklen is a prerequisite module.
102253 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
102255         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
102256         Problem reported by Eric Blake.
102257         (getaddrinfo): Initialize se so that it's not garbage.
102258         Redo internal storage allocation so that it doesn't make unportable
102259         assumptions about alignment.
102260         Fix a memory leak.
102262         * lib/utimens.c (futimens): Use futimesat if available.
102263         Prefer it to futimes since it doesn't have the futimes bug.
102265         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
102266         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
102267         Instead, declare a function that returns a pointer to an array,
102268         and use verify_type__ to declare the size of the array.
102269         Problem and germ of a solution reported by Bruno Haible.
102270         (verify_type__): Use 2, not 1, for bitfield size, to avoid
102271         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
102273 2005-09-23  Jim Meyering  <jim@meyering.net>
102275         Sync from coreutils.
102276         Correct build failure (socklen_t not defined) on at least
102277         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
102278         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
102280 2005-09-23  Jim Meyering  <jim@meyering.net>
102282         * modules/getaddrinfo (Depends-on): Add socklen.
102284 2005-09-23  Bruno Haible  <bruno@clisp.org>
102286         * tests/test-verify.c: New file.
102288 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
102290         Sync from coreutils.
102292         * modules/argmatch (Depends-on): Add verify.
102293         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
102294         unistd-safer.
102295         * modules/save-cwd (Depends-on): Likewise.
102297         * modules/openat (Files): Add lib/openat-die.c.
102298         (Depends-on): Remove error, exitfail.
102299         Add dirname.
102301         * modules/verify: New file.
102302         * MODULES.html.sh (Diagnostics <assert.h>): New section,
102303         with "verify" module.
102305 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
102307         Sync from coreutils.
102309         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
102310         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
102311         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
102312         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
102313         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
102314         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
102315         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
102316         Don't bother checking for string.h, stdlib.h, unistd.h.
102317         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
102318         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
102319         module's job.
102320         * m4/jm-macros.m4 (gl_MACROS): Likewise.
102321         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
102323         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
102324         (gl_GETDATE): Use it.
102326         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
102328 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
102330         Sync from coreutils.
102332         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
102333         stat-time.h.
102334         * lib/argmatch.h: Include verify.h
102335         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
102336         (ARGMATCH_ASSERT): Remove; unused.
102337         * lib/canonicalize.c: Assume STDC_HEADERS.
102338         * lib/exclude.c: Include "strcase.h".
102339         * lib/regex_internal.h [!defined _LIBC]: Likewise.
102340         * lib/getusershell.c: Include stdio--.h rather than stdio.h
102341         and stdio-safer.h.
102342         (getusershell): Call fopen, not fopen_safer.
102343         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
102344         Do not include unistd-safer.h.
102345         (save_cwd): Don't call fd_safer; no longer needed
102346         now that we include fcntl--.h.
102348         * lib/getdate.y (relative_time): New type.
102349         (RELATIVE_TIME_0): New constant.
102350         (parser_control): Use relative_time instead of doing it ourselves.
102351         (%union): Add new relative_time rel member.
102352         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
102353         Now typeless.
102354         (relunit, relunit_snumber): Now of type rel.
102355         (zone, rel, relunit, get_date): Adjust to above changes.
102357         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
102358         Do not include unistd-safer.h.
102359         (getloadavg): Don't call fd_safer; no longer needed
102360         now that we include fcntl--.h.
102362         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
102363         (make_dir_parents): Treat ENOSYS like EEXIST.
102365         Improve quality of diagnostics on restore_cwd failure.
102366         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
102367         (make_dir_parents): Last arg is now int * (for errno), not bool *.
102368         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
102369         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
102370         each time through the loop.  Do not diagnose restore_cwd failure;
102371         that is the caller's job (and perhaps the caller does not care).
102373         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
102374         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
102375         If the file already exists but is not a directory, don't bother
102376         to try to make its parents.
102377         Close potential file descriptor leak if we can't chdir("/") (!).
102378         Don't always return true if chdir($PWD) fails; return true only
102379         if the requested action was done successfully (except for the
102380         chdir($PWD)).
102381         Don't log final directory unless we actually made it.
102382         Refactor to avoid duplicate code to fix up permissions.
102383         Don't attempt to fix up parent permissions if chdir($PWD) fails.
102385         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
102386         to make it a bit faster and (I hope) clearer.
102387         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
102388         Fix bug in formats like %2N.
102390         * lib/verify.h: New file.
102392 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
102394         Sync from coreutils.
102395         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
102397 2005-09-22  Jim Meyering  <jim@meyering.net>
102399         Sync from coreutils.
102401         * m4/lstat.m4 (gl_FUNC_LSTAT):
102402         Use AC_LIBSOURCES to require lstat.c and lstat.h.
102403         Remove obsolete comment.
102404         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
102405         * m4/xstrtod.m4: Likewise.
102407         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
102409 2005-09-22  Jim Meyering  <jim@meyering.net>
102411         Sync from coreutils.
102413         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
102415         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
102416         the .tm_year member, since otherwise gcc-4.0 would now warn about
102417         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
102419         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
102420         order to avoid an unsuppressible warning from gcc on 64-bit systems.
102422         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
102423         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
102424         when run in a time zone for which daylight savings time is in effect
102425         for the starting date.
102427         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
102428         stop us from restricting permissions of just-created absolute-named
102429         directories.
102430         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
102431         to restore initial working directory.
102432         * lib/mkdir-p.c (make_dir_parents): New parameter:
102433         different_working_dir, to tell caller if/when we change the working
102434         directory and are unable to return to the initial one.
102435         * lib/mkdir-p.h (make_dir_parents): Update prototype.
102436         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
102437         `return false'.  This fixes a bug introduced on 2004-07-30.
102439         * lib/openat.c (fdopendir): Be sure to close the supplied
102440         file descriptor before returning.  This makes our replacement
102441         implementation a little closer to Solaris's, where fdopendir
102442         ties the file descriptor to the returned DIR* pointer.
102443         * lib/openat.c (unlinkat): New function.
102444         * lib/openat.h (unlinkat): Add prototype.
102445         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
102446         (openat_restore_fail): Rename from openat_restore_die.
102447         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
102449         Provide an alternative to exiting immediately upon save_cwd or
102450         restore_cwd failure.  Now, an application can arrange e.g.,
102451         to perform a longjump in that case.
102452         * lib/openat.c: Include dirname.h.
102453         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
102454         (rpl_openat, fdopendir, fstatat): Call openat_save_die
102455         and openat_restore_die rather than calling error directly.
102456         Don't include "error.h" or "exitfail.h"; they're no longer needed.
102458         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
102459         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
102460         define.
102462         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
102463         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
102464                             int utc, int nanoseconds);
102465         Background:
102466         date should not have to allocate a megabyte of virtual memory to
102467         handle a format argument like +%1048575T.  When implemented with
102468         strftime, it must allocate such a buffer, use strftime to fill it
102469         in, print it, then free it.
102470         With fprintftime, it simply prints everything and exits.
102471         With no need for memory allocation, that's one fewer way to fail.
102472         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
102473         optional field width, not before, so we accept %9:z, not %:9z.
102474         (my_strftime): Be sure to use L_('x') for literals.
102476         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
102477         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
102478         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
102479         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
102480         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
102481         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
102482         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
102483         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
102484         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
102485         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
102486         * lib/xgethostname.c, lib/xreadlink.c:
102487         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
102489         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
102490         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
102491         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
102492         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
102493         and don't include <sys/file.h>).
102495 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
102497         Sync from coreutils.
102499         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
102500         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
102501         [!LDAV_DONE]: Avoid unused variable warning.
102503 2005-09-21  Bruno Haible  <bruno@clisp.org>
102505         * lib/unicodeio.h (unicode_to_mb): New declaration.
102507 2005-09-20  Derek Price  <derek@ximbiot.com>
102509         * lib/getaddrinfo.c: Don't include <netdb.h> included from
102510         getaddrinfo.h.
102512 2005-09-20  Bruno Haible  <bruno@clisp.org>
102514         * gnulib-tool: Remove trailing slashes from the values specified for
102515         --source-base, --m4-base, --tests-base, --aux-dir.
102516         Suggested by Simon Josefsson <jas@extundo.com>.
102518 2005-09-20  Bruno Haible  <bruno@clisp.org>
102520         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
102521         func_modules_to_filelist, func_import, func_create_testdir): Make all
102522         sorting results locale-independent, so that gnulib-cache.m4 doesn't
102523         change when gnulib-tool is invoked in a different locale.
102525 2005-09-19  Simon Josefsson  <jas@extundo.com>
102527         * m4/socklen.m4: Fix typo.
102529 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102531         Use a consistent style for including <config.h>.
102532         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
102533         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
102534         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
102535         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
102536         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
102537         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
102538         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
102539         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
102540         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
102541         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
102542         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
102543         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
102544         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
102545         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
102546         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
102547         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
102548         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
102549         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
102550         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
102551         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
102552         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
102553         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
102554         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
102555         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
102556         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
102557         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
102558         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
102559         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
102560         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
102561         lib/xstrtoumax.c, lib/yesno.c:
102562         Standardize inclusion of config.h.
102563         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
102564         lib/inttostr.h:  Removed inclusion of config.h from header files.
102565         * lib/inttostr.c:  Adjusted in-tree users.
102566         * lib/timespec.h: Remove superfluous warning to include config.h.
102567         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
102568         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
102569         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
102570         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
102571         config.h with HAVE_CONFIG_H.
102573 2005-09-19  Jim Meyering  <jim@meyering.net>
102575         * modules/pathmax (License): Change to LGPL.
102577 2005-09-19  Derek Price  <derek@ximbiot.com>
102579         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
102581 2005-09-19  Bruno Haible  <bruno@clisp.org>
102583         * gnulib-tool (import): Provide default for --tests-base.
102585 2005-09-19  Bruno Haible  <bruno@clisp.org>
102587         * doc/quote.texi: New file, extracted from gnulib.texi.
102588         * doc/ctime.texi: New file, extracted from gnulib.texi.
102589         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
102590         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
102591         * doc/gnulib.texi: Include them.
102593 2005-09-18  Bruno Haible  <bruno@clisp.org>
102595         Portability fix.
102596         * gnulib-tool (func_readlink): New function.
102597         (func_ln_if_changed): Use it.
102599 2005-09-18  Bruno Haible  <bruno@clisp.org>
102601         * gnulib-tool: Support --with-tests also with --import.
102602         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
102603         (func_import): Use variables $testsbase and $inctests. Emit a
102604         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
102605         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
102606         SUBDIRS += $testsdir.
102607         (func_create_testdir): Update.
102609 2005-09-18  Bruno Haible  <bruno@clisp.org>
102611         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
102612         instead of $dry_run.
102613         (func_cp_if_changed, func_mv_if_changed): Remove functions.
102614         (func_ln_if_changed): Don't handle dry-run here.
102615         (func_import): In dry-run mode, detect more precisely which actions
102616         would be performed, and don't use "...ing" verbs.
102618 2005-09-18  Bruno Haible  <bruno@clisp.org>
102620         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
102621         (func_import): Use join on two temporary files instead of three nested
102622         loops, in order to determine which files are new or old.
102624 2005-09-18  Bruno Haible  <bruno@clisp.org>
102626         * gnulib-tool (func_import): Comment out code that spits out the
102627         new files with --dry-run.
102629 2005-09-18  Bruno Haible  <bruno@clisp.org>
102631         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
102633 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
102635         * lib/stat-time.h: New file.
102636         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
102637         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
102638         in a different way.
102639         (timespec_cmp): New function.
102640         * lib/utimecmp.c: Include stat-time.h.
102641         (SYSCALL_RESOLUTION): Depend on whether various struct stat
102642         members exist, not on the obsolescent ST_MTIM_NSEC.
102643         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
102645 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
102647         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
102649 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
102651         * MODULES.html.sh (File system functions): Add stat-time.
102652         * modules/stat-time: New file.
102653         * modules/timespec (Files): Remove m4/st_mtim.m4; this
102654         is now done in a different way, by the stat-time module.
102655         * modules/utimecmp (Depends-on): Add stat-time.
102657 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
102659         * m4/st_mtim.m4: Remove.  Superseded by...
102660         * m4/stat-time.m4: New file.
102661         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
102662         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
102664 2005-09-15  Derek Price  <derek@ximbiot.com>
102666         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
102668 2005-09-15  Derek Price  <derek@ximbiot.com>
102670         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
102671         * lib/regex_internal.c: Ditto, using this...
102672         (__GNUC_PREREQ): ...new macro.
102673         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
102674         using...
102675         (__GNUC_PREREQ): ...this new macro.
102677         * lib/strstr.h: Include string.h. Define strstr as a macro here.
102679 2005-09-15  Derek Price  <derek@ximbiot.com>
102680             Paul Eggert  <eggert@cs.ucla.edu>
102682         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
102683         changes, consolidating in...
102684         * lib/regex_internal.h: ...this file.
102686 2005-09-13  Jim Meyering  <jim@meyering.net>
102688         * lib/canon-host.c: Filter through gnu indent and reword comments
102689         slightly.
102690         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
102692 2005-09-13  Derek Price  <derek@ximbiot.com>
102694         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
102695         failure.
102696         Reported by Jim Meyering  <jim@meyering.net>.
102698 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
102700         * lib/base64.c: Typo.
102701         (base64_encode): Put b64str in initialized data section.
102703 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
102705         Merge glibc and coreutils changes into gnulib, plus a few
102706         extra fixes.
102707         * lib/md5.c: Use #error rather than a string.
102708         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
102709         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
102710         (__attribute__): Define to empty for non recent-GCC.
102711         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
102712         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
102713         Renamed from their non-__ counterparts, with new macros replacing
102714         them if not _LIBC.  Add __THROW attribute.
102715         (rol): Remove.
102716         (struct md5_ctx): Align buffer if using GCC.
102717         * lib/sha1.h (struct sha1_ctx): Likewise.
102718         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
102719         The old name was backwards.
102720         (NOTSWAP): Remove; not used.
102721         (rol): New macro, moved here from md5.h.
102722         (sha1_process_block): Remove a FIXME that doesn't make sense.
102724 2005-09-12  Derek Price  <derek@ximbiot.com>
102726         Return usable errors from canon-host.
102727         * lib/canon-host.h: New file.
102728         * lib/canon-host.c (canon_host): Wrap...
102729         (canon_host_r): ...this new function, which now relies exclusively on
102730         getaddrinfo.
102731         (ch_strerror): New function.
102732         (last_cherror): New global.
102733         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
102734         interface.
102735         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
102736         void *.
102737         (freeaddrinfo): Free ai->ai_canonname when set.
102739 2005-09-12  Derek Price  <derek@ximbiot.com>
102741         Make canon-host require getaddrinfo.
102742         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
102743         AC_LIBSOURCE canon-host.h.  Call...
102744         (gl_PREREQ_CANON_HOST): ...this new function, which requires
102745         gl_GETADDRINFO.
102746         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
102748 2005-09-12  Derek Price  <derek@ximbiot.com>
102750         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
102751         LGPL.
102752         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
102754 2005-09-12  Derek Price  <derek@ximbiot.com>
102756         * lib/gai_strerror.c: Include config.h when available.  Include
102757         getaddrinfo.h before other headers to test interface.
102758         Reported by Larry Jones <lawrence.jones@ugs.com>.
102760 2005-09-12  Derek Price  <derek@ximbiot.com>
102761             Paul Eggert  <eggert@cs.ucla.edu>
102763         * modules/glob (Files): Add glob-libc.h.
102765 2005-09-12  Derek Price  <derek@ximbiot.com>
102766             Paul Eggert  <eggert@cs.ucla.edu>
102768         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
102769         glob_.h, glob-libc.h.
102770         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
102772 2005-09-12  Derek Price  <derek@ximbiot.com>
102773             Paul Eggert  <eggert@cs.ucla.edu>
102775         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
102776         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
102777         protecting things that should be done only in gnulib contexts.
102778         * lib/glob_.h: New file, containing only the glob things needed for
102779         gnulib.
102780         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
102781         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
102782         (glob, globfree, glob_pattern_p): Now defined simply in terms of
102783         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
102784         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
102785         and to respect the namespace rules better.
102787 2005-09-08  Simon Josefsson  <jas@extundo.com>
102789         * modules/socklen: New file.
102791 2005-09-08  Simon Josefsson  <jas@extundo.com>
102793         * m4/socklen.m4: New file.
102795 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
102797         * modules/utimens (Files): Add m4/utimbuf.m4, since
102798         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
102799         Reported by Sergey Poznyakoff.
102801 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
102803         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
102804         definitions, since that's the preferred style in glibc.
102805         Fix a minor spacing issue, and update copyright notice to match
102806         glibc's.
102808 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
102810         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
102812 2005-09-06  Simon Josefsson  <jas@extundo.com>
102814         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
102815         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
102817 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
102819         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
102820         warning.
102822 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
102824         * config/srclist.txt: Add glibc bug 1302.
102826 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
102828         Change bitset word type from unsigned int to unsigned long int,
102829         as this has better performance on typical 64-bit hosts.
102830         Port bitset code to hosts with unusual word sizes.
102831         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
102832         (build_collating_symbol):
102833         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
102834         argument is a bitset.  This is merely a style issue, but it makes
102835         it clearer that an entire array is expected.
102836         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
102837         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
102838         Port to the case where bitset_word is not the same as unsigned int.
102839         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
102840         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
102841         Likewise.
102842         * lib/regexec.c (check_dst_limits_calc_pos_1,
102843         check_subexp_matching_top):
102844         (build_trtable, group_nodes_into_DFAstates):
102845         Likewise.
102846         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
102847         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
102848         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
102849         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
102850         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
102851         * lib/regcomp.c (optimize_subexps, lower_subexp):
102852         Work even if bitset_word has holes in its bitwise representation.
102853         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
102854         * lib/regexec.c (check_dst_limits_calc_pos_1,
102855         check_subexp_matching_top):
102856         Likewise.
102857         * lib/regex_internal.c (re_string_reconstruct):
102858         Don't assume UCHAR_MAX == 255.
102859         * lib/regex_internal.h (bitset_set_all): Likewise.
102860         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
102861         All uses changed.
102862         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
102863         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
102864         All uses changed.
102865         (BITSET_WORD_MAX): New macro.
102866         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
102867         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
102868         (bitset_empty, bitset_copy):
102869         Prefer sizeof (bitset) to multiplying it out ourselves.
102870         (bitset_not_merge): Remove; unused.
102871         (bitset_contain): Return bool, not unsigned int with one bit on.
102872         All callers changed.
102873         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
102874         alignment than re_node_set; do this by defining a new internal
102875         type struct dests_alloc and using it to allocate memory.
102877 2005-09-05  Bruno Haible  <bruno@clisp.org>
102879         * gnulib-tool (func_import): Fix comparison in handling of symbolic
102880         links.
102882 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
102884         * modules/size_max (Makefile.am): Add size_max.h
102886 2005-09-04  Derek Price  <derek@ximbiot.com>
102888         * gnulib-tool (func_import): Fix reversed $symbolic logic.
102890 2005-09-03  Simon Josefsson  <jas@extundo.com>
102892         * gnulib-tool: Fix typo.
102894 2005-09-03  Simon Josefsson  <jas@extundo.com>
102896         * config/srclist.txt: Add glibc bug 1293.
102898 2005-09-03  Derek Price  <derek@ximbiot.com>
102900         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
102901         From Larry Jones <lawrence.jones@ugs.com>.
102903 2005-09-02  Simon Josefsson  <jas@extundo.com>
102905         * modules/socklen: New file.
102907 2005-09-02  Simon Josefsson  <jas@extundo.com>
102909         * modules/havelib: New module.
102911         * modules/gettext, modules/iconv, modules/lock, modules/readline:
102912         Use havelib.
102914 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
102916         Check for arithmetic overflow when calculating sizes, to prevent
102917         some buffer-overflow issues.  These patches are conservative, in the
102918         sense that when I couldn't determine whether an overflow was possible,
102919         I inserted a run-time check.
102920         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
102921         macros.
102922         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
102923         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
102924         (re_xnrealloc, re_x2nrealloc): New inline functions.
102925         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
102926         parse_bracket_exp):
102927         (build_equiv_class, build_charclass): Check for arithmetic overflow
102928         in size expression calculations.
102929         * lib/regex_internal.c (re_string_realloc_buffers):
102930         (build_wcs_upper_buffer, re_node_set_add_intersect):
102931         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
102932         (re_dfa_add_node, register_state): Likewise.
102933         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
102934         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
102935         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
102936         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
102938 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
102940         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
102941         m4/ulonglong.m4.  Problem reported by Martin Lambers.
102943 2005-09-02  Bruno Haible  <bruno@clisp.org>
102945         Support for lib vs. lib64 distinction on biarch platforms.
102946         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
102947         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
102948         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
102950 2005-09-02  Bruno Haible  <bruno@clisp.org>
102952         * gnulib-tool (import): In the other first-use case, provide defaults
102953         as well.
102955 2005-09-02  Bruno Haible  <bruno@clisp.org>
102957         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
102958         patches not yet found in the latest gettext release.
102960 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
102962         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
102963         to avoid a collision with bits/local_lim.h in glibc.
102964         All uses changed.  Problem reported by Dmitry V. Levin in
102965         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
102967         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
102968         bugs in int versus size_t comparisons.
102969         (re_string_context_at): Fix bug where the code assumed that
102970         Idx is signed.
102972         Use bool where appropriate.
102973         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
102974         All callers changed.
102975         (calc_eclosure_iter): Likewise, for ROOT arg.
102976         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
102977         (build_charclass_op): Likewise, for NON_MATCH arg.
102978         * lib/regex_internal.c (re_string_allocate, re_string_construct):
102979         (re_string_construct_common): Likewise, for ICASE arg.
102980         * lib/regexec.c (re_search_2_stub, re_search_stub):
102981         Likewise, for RET_LEN arg.
102982         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
102983         (set_regs): Likewise, for FL_BACKTRACK arg.
102984         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
102985         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
102986         (calc_eclosure_iter, parse_bracket_exp):
102987         Use bool for internal variables that are booleans.
102988         * lib/regexec.c (re_search_internal, check_matching,
102989         proceed_next_node):
102990         (set_regs, build_sifted_states, sift_states_bkref):
102991         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
102992         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
102993         (find_collation_sequence_value):
102994         Likewise.
102995         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
102996         (re_node_set_compare):
102997         Return bool, not int. All callers changed.
102998         * lib/regexec.c (check_halt_node_context, check_dst_limits):
102999         (build_trtable, check_node_accept): Likewise.
103000         * lib/regex_internal.h: Include stdbool.h.
103002         Fix bugs uncovered when converting to bool.
103003         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
103004         failure instead of charging ahead blindly.
103005         * lib/regex_internal.c (register_state): Likewise.
103006         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
103007         for freeing internal storage.
103008         (group_nodes_into_DFA_states): Use unsigned int, not int, for
103009         bitset pieces used as boolean, to avoid undefined behavior
103010         on hosts that do int overflow checking.
103012 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
103014         * config/srclist.txt: Add glibc bugs 1285-1287.
103016 2005-09-01  Jim Meyering  <jim@meyering.net>
103018         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
103019         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
103020         Require gl_STAT_MACROS, too.
103022 2005-09-01  Bruno Haible  <bruno@clisp.org>
103024         * gnulib-tool (import): In the first-use case, provide defaults.
103026 2005-09-01  Bruno Haible  <bruno@clisp.org>
103028         * gnulib-tool (func_import): Remove the .tmp files.
103030 2005-09-01  Bruno Haible  <bruno@clisp.org>
103032         * gnulib-tool (func_import): Fix handling of symbolic links.
103034 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
103036         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
103037         old glibc regex code mishandles strings longer than 2**31 bytes.
103038         This patch fixes this when the regex code is used in gnulib
103039         (i.e., outside glibc).
103041         This patch should not affect the use of the regex code inside
103042         glibc.  No doubt this problem also needs to be handled for glibc
103043         as well, but the result will be an incompatible change to the
103044         glibc ABI, and the old ABI will have to be supported too.  That
103045         can be the subject for another patch.
103047         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
103048         governing whether the rest of this patch is active.  By default,
103049         the macro is disabled and the patch has no effect.
103050         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
103051         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
103052         (struct re_pattern_buffer, re_search, re_search_2, re_match):
103053         (re_match_2, re_set_registers): Use the new types.
103054         * lib/regex_internal.h (Idx, re_hashval_t): New types.
103055         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
103056         New macros.
103057         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
103058         (re_string_context_at, bin_tree_t, re_dfastate_t):
103059         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
103060         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
103061         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
103062         (re_string_char_size_at, re_string_wchar_at):
103063         (re_string_elem_size_at):
103064         Use the new types and macros to port to 64-bit hosts.
103065         Use unsigned types for internal values, so that the code
103066         mostly works even for arrays larger than SSIZE_MAX.
103067         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
103068         (search_duplicated_node, calc_eclosure_iter, fetch_number):
103069         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
103070         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
103071         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
103072         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
103073         (calc_inveclosure, parse_dup_op, build_range_exp):
103074         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
103075         (fetch_number, create_token_tree, mark_opt_subexp):
103076         Likewise.
103077         * lib/regex_internal.c (re_string_construct_common,
103078         create_ci_newstate):
103079         (create_cd_newstate, re_string_allocate, re_string_construct):
103080         (re_string_realloc_buffers, build_wcs_upper_buffer):
103081         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
103082         (re_string_reconstruct, re_string_peek_byte_case):
103083         (re_string_fetch_byte_case, re_string_context_at):
103084         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
103085         (re_node_set_init_copy, re_node_set_add_intersect):
103086         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
103087         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
103088         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
103089         (re_acquire_state, re_acquire_state_context, register_state):
103090         Likewise.
103091         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
103092         search_cur_bkref_entry):
103093         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
103094         (re_search_internal, re_search_2_stub, re_search_stub)
103095         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
103096         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
103097         (update_cur_sifted_state, check_dst_limits):
103098         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
103099         (check_subexp_limits, sift_states_bkref, merge_state_array):
103100         (check_subexp_matching_top, get_subexp, get_subexp_sub):
103101         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
103102         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
103103         (expand_bkref_cache, check_node_accept_bytes):
103104         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
103105         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
103106         (acquire_init_state_context, check_halt_node_context):
103107         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
103108         (sift_states_backward, clean_state_log_if_needed):
103109         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
103110         (find_recover_state, transit_state_sb, transit_state_mb):
103111         (transit_state_bkref, build_trtable, match_ctx_clean):
103112         Likewise.
103113         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
103114         to work around an assumption that REG_MISSING is negative.
103116         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
103117         (seek_collating_symbol_entry) [defined _LIBC]:
103118         (lookup_collation_sequence_value) [defined _LIBC]:
103119         (build_range_exp, build_collating_symbol) [defined _LIBC]:
103120         Use prototypes rather than old-style function definitions.
103121         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
103122         (transit_state_sb) [0]:
103123         (find_collation_sequence_value) [defined _LIBC]: Likewise.
103125         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
103126         rm_eo.
103128         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
103129         (optimize_subexps, lower_subexp):
103130         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
103131         since the signed shift might overflow.  Use 1u<<31 instead.
103132         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
103133         Likewise.
103134         * lib/regexec.c (check_dst_limits_calc_pos_1,
103135         check_subexp_matching_top): Likewise.
103137         * lib/regcomp.c (optimize_subexps, lower_subexp):
103138         Use CHAR_BIT rather than 8, for clarity.
103139         * lib/regexec.c (check_dst_limits_calc_pos_1):
103140         (check_subexp_matching_top): Likewise.
103141         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
103142         have to worry about portability issues when shifting it left.
103143         Remove no-longer-needed test for table_size > 0.
103144         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
103145         in a word, as the resulting behavior is undefined.
103146         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
103147         in one case, a <= should have been an <, and in another case the
103148         whole test was missing.
103149         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
103150         the standard name CHAR_BIT.
103151         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
103152         this is not true on one's complement and signed-magnitude hosts.
103154         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
103155         next_last_offset.
103156         (struct re_dfa_t): Remove unused member states_alloc.
103157         * lib/regcomp.c (init_dfa): Don't initialize unused members.
103159 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
103161         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
103162         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
103163         and large-file glibc and in 32-bit large-file Solaris.
103165 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
103167         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
103168         lengths fit in regoff_t; this isn't true if regoff_t is the same
103169         width as size_t.
103170         * lib/regex.c (re_search_internal): 5th arg is LAST_START
103171         (= START + RANGE) instead of RANGE.  This avoids overflow
103172         problems when regoff_t is the same width as size_t.
103173         All callers changed.
103174         (re_search_2_stub): Check for overflow when adding the
103175         sizes of the two strings.
103176         (re_search_stub): Check for overflow when adding START
103177         to RANGE; if it occurs, substitute the extreme value.
103179 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
103181         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
103183 2005-08-31  Jim Meyering  <jim@meyering.net>
103185         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
103186         a pointer-to-const.
103187         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
103188         (register_state): Likewise.
103189         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
103190         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
103191         (group_nodes_into_DFAstates): Likewise.
103193 2005-08-31  Jim Meyering  <jim@meyering.net>
103195         * check-module: Add a FIXME comment.
103197 2005-08-31  Eric Blake  <ebb9@byu.net>
103199         * modules/unistd-safer (Files): Add unistd--.h.
103200         * modules/stdio-safer (Files): Add stdio--.h.
103202 2005-08-31  Derek Price  <derek@ximbiot.com>
103204         * lib/getdelim.c (getdelim): Return EOF on EOF.
103205         Reported by Larry Jones <lawrence.jones@ugs.com>.
103207 2005-08-31  Bruno Haible  <bruno@clisp.org>
103209         Avoid unnecessary diffs in the generated lib/Makefile.am.
103210         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
103211         the generated files.
103212         (func_import): Don't set cmd.
103214 2005-08-31  Bruno Haible  <bruno@clisp.org>
103216         * lib/strstr.c: Include <stddef.h>, for NULL.
103217         * lib/strcasestr.c: Likewise.
103218         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
103220 2005-08-31  Bruno Haible  <bruno@clisp.org>
103222         * gnulib-tool: New option --macro-prefix.
103223         (func_import): Use macro_prefix.
103224         (import): Handle option --macro-prefix.
103226 2005-08-31  Bruno Haible  <bruno@clisp.org>
103228         * gnulib-tool (import): Rename most ac_* variables to cached_*.
103229         Also use new variables cached_lgpl, cached_libtool.
103231 2005-08-31  Bruno Haible  <bruno@clisp.org>
103233         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
103234         always instantiating them.
103236 2005-08-31  Bruno Haible  <bruno@clisp.org>
103238         * gnulib-tool (func_import): Read the previous cached settings
103239         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
103240         earlier added by gnulib but are now dropped. Warn when a gnulib file
103241         overwrites a non-gnulib file.
103243 2005-08-31  Bruno Haible  <bruno@clisp.org>
103245         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
103246         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
103247         projects that don't keep autogenerated files in CVS. Put into
103248         actioncmd only the specified modules, not the transitive closure.
103250 2005-08-31  Bruno Haible  <bruno@clisp.org>
103252         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
103253         Create directories that shall be filled.
103254         (import): Don't look for gl_* macros in configure.ac. Recurse across
103255         all directories containing a gnulib-cache.m4 files, if meaningful.
103257 2005-08-31  Bruno Haible  <bruno@clisp.org>
103259         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
103260         (import): Set seen_libtool when we see gl_LIBTOOL.
103262 2005-08-31  Bruno Haible  <bruno@clisp.org>
103264         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
103265         declaration macro definitions from generated gnulib.m4.
103267 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
103269         * lib/iconvme.h: Add prototype for iconv_alloc.
103271 2005-08-29  Simon Josefsson  <jas@extundo.com>
103273         * lib/iconvme.c: Fix errno.
103275 2005-08-29  Bruno Haible  <bruno@clisp.org>
103277         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
103278         that it works when the directory contains spaces.
103280 2005-08-29  Bruno Haible  <bruno@clisp.org>
103282         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
103284 2005-08-29  Bruno Haible  <bruno@clisp.org>
103286         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
103287         Emit more advice.
103289 2005-08-29  Bruno Haible  <bruno@clisp.org>
103290         and Stepan Kasal  <kasal@ucw.cz>
103292         * check-module: If more parameters are given, check each of them
103293         separately; add more exceptions, as noted by Jim Meyering.
103294         (check_module): New procedure.
103295         (%exempt_header): Now contains all exceptions.
103297 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
103299         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
103301 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
103303         * lib/iconvme.c: Split iconv_string into iconv_alloc.
103305 2005-08-28  Bruno Haible  <bruno@clisp.org>
103307         * m4/gnulib-tool.m4: New file.
103309 2005-08-27  Jim Meyering  <jim@meyering.net>
103311         * modules/unistd-safer (Files): Add pipe-safer.c.
103312         * modules/fcntl-safer (Files): Add creat-safer.c.
103314 2005-08-27  Jim Meyering  <jim@meyering.net>
103316         * m4/stdlib-safer.m4: New file.  From coreutils.
103317         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
103318         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
103319         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
103320         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
103321         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
103323 2005-08-27  Jim Meyering  <jim@meyering.net>
103325         * lib/fopen-safer.c: Merge minor changes from coreutils.
103326         * lib/dup-safer.c: Likewise.
103327         * lib/fd-safer.c: Likewise.
103329         Merge from coreutils.
103330         * lib/stdio--.h: New file.
103331         * lib/stdlib--.h: New file.
103332         * lib/mkstemp-safer.c: New file.
103334         GNU tar needs these.
103335         * lib/pipe-safer.c: New file.
103336         * lib/creat-safer.c: New file.
103337         * lib/fcntl--.h (creat): Define to creat_safer.
103338         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
103339         * lib/unistd--.h (pipe): Define to pipe_safer.
103340         * lib/unistd-safer.h: Declare pipe_safer.
103342 2005-08-26  Simon Josefsson  <jas@extundo.com>
103344         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
103345         Haible <bruno@clisp.org>.
103347 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
103349         * lib/regex_internal.h: Remove all references to
103350         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
103351         or better.
103352         (bitset_not, bitset_merge, bitset_not_merge):
103353         (bitset_mask, re_string_allocate, re_string_construct):
103354         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
103355         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
103356         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
103357         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
103358         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
103359         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
103360         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
103361         (re_acquire_state_context):
103362         Remove unnecessary forward decls.
103363         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
103364         Put __attribute at function definition,
103365         now that the function decl has been removed.
103366         * lib/regex_internal.c (re_string_peek_byte_case):
103367         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
103368         Likewise.
103370 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
103372         * m4/regex.m4: Add AC_PREREQ(2.50).
103373         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
103375 2005-08-25  Simon Josefsson  <jas@extundo.com>
103377         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
103378         __fsetlocking.
103380 2005-08-25  Simon Josefsson  <jas@extundo.com>
103382         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
103383         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
103384         GLIBC specific code.
103386 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
103388         Make regex safe for g++.  This fixes one real bug (an "err"
103389         that should have been "*err").  g++ problem reported by
103390         Sam Steingold.
103391         * lib/regex_internal.h (re_calloc): New macro, consistent with
103392         re_malloc etc.  All callers of calloc changed to use re_calloc.
103393         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
103394         not int.  All callers changed.
103395         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
103396         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
103397         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
103398         (find_recover_state): Change "err" to "*err"; this fixes what
103399         appears to be a real bug.
103400         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
103401         versus int.
103403 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
103405         * modules/regex (Depends-on): Add malloc, since the code
103406         assumes that !malloc(0) means failure.
103408 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
103410         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
103412         alloca modernization/simplification for regex.
103413         * lib/regex.c: Remove portability cruft for alloca.  This no longer
103414         needs to be at the start of the file, and can be moved into
103415         regex_internal.h and simplified.
103416         * lib/regex_internal.h: Include <alloca.h>.
103417         (__libc_use_alloca) [!defined _LIBC]: New macro.
103418         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
103419         now works outside glibc.
103421 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
103423         * config/srclist.txt: Add glibc bugs 1241, 1245.
103425 2005-08-25  Jim Meyering  <jim@meyering.net>
103427         * lib/open-safer.c: Include <config.h>.
103428         Otherwise, we'd lose LARGEFILE support in any file using
103429         e.g. "fcntl--.h"
103431 2005-08-25  Bruno Haible  <bruno@clisp.org>
103433         * m4/minmax.m4: Require autoconf 2.52.
103434         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
103435         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
103436         alternatives of translit over the alphabet.
103437         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
103439 2005-08-24  Simon Josefsson  <jas@extundo.com>
103441         * tests/test-getpass.c: New file.
103443 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
103445         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
103446         for GNU regex features.
103448 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
103450         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
103451         * lib/regex.h (regerror): Likewise.
103453         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
103454         requires this.  (The code never needed it.)
103456         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
103457         All uses of recently-renamed identifiers changed to use the new,
103458         POSIX-compliant names.  The code will build and run just fine
103459         without these changes, but it's better to eat our own dog food
103460         and use the standard-conforming names.
103462         * lib/regex.h: Fix a multitude of POSIX name space violations.
103463         These changes have an effect only for programs that define
103464         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
103465         do not change anything for programs compiled in the normal way.
103466         Also, there is no effect on the ABI.
103468         (_REGEX_SOURCE): New macro.
103469         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
103470         defined and _GNU_SOURCE is not; this fixes a name space violation.
103472         Rename the following macros to obey POSIX requirements.
103473         The old names are still visible as macros if _REGEX_SOURCE is defined.
103474         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
103475         RE_BACKSLASH_ESCAPE_IN_LISTS.
103476         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
103477         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
103478         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
103479         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
103480         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
103481         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
103482         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
103483         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
103484         (REG_INTERVALS): renamed from RE_INTERVALS.
103485         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
103486         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
103487         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
103488         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
103489         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
103490         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
103491         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
103492         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
103493         RE_UNMATCHED_RIGHT_PAREN_ORD.
103494         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
103495         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
103496         (REG_DEBUG): renamed from RE_DEBUG.
103497         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
103498         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
103499         unusual, since we can't clash with the POSIX REG_ICASE.
103500         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
103501         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
103502         (REG_NO_SUB): renamed from RE_NO_SUB.
103503         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
103504         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
103505         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
103506         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
103507         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
103508         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
103509         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
103510         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
103511         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
103512         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
103513         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
103514         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
103515         RE_SYNTAX_POSIX_MINIMAL_BASIC.
103516         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
103517         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
103518         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
103519         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
103520         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
103521         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
103522         (REG_FIXED): Renamed from REGS_FIXED.
103523         (REG_NREGS): Renamed from RE_NREGS.
103525         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
103526         of other REG_* macros, since POSIX says the user is allowed to
103527         #undef these macros selectively.
103529         (reg_errcode_t): Update comment stating what other tables need
103530         to be consistent.
103532         Rename the following enum values to obey POSIX requirements.
103533         The old names are still visible as macros.
103534         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
103535         is not defined, since GNU is supposed to be a superset of POSIX as
103536         much as possible, and since we want reg_errcode_t to be a signed
103537         type for implementation consistency.
103538         (_REG_NOERROR): Renamed from REG_NOERROR.
103539         (_REG_NOMATCH): Renamed from REG_NOMATCH.
103540         (_REG_BADPAT): Renamed from REG_BADPAT.
103541         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
103542         (_REG_ECTYPE): Renamed from REG_ECTYPE.
103543         (_REG_EESCAPE): Renamed from REG_EESCAPE.
103544         (_REG_ESUBREG): Renamed from REG_ESUBREG.
103545         (_REG_EBRACK): Renamed from REG_EBRACK.
103546         (_REG_EPAREN): Renamed from REG_EPAREN.
103547         (_REG_EBRACE): Renamed from REG_EBRACE.
103548         (_REG_BADBR): Renamed from REG_BADBR.
103549         (_REG_ERANGE): Renamed from REG_ERANGE.
103550         (_REG_ESPACE): Renamed from REG_ESPACE.
103551         (_REG_BADRPT): Renamed from REG_BADRPT.
103552         (_REG_EEND): Renamed from REG_EEND.
103553         (_REG_ESIZE): Renamed from REG_ESIZE.
103554         (_REG_ERPAREN): Renamed from REG_ERPAREN.
103555         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
103556         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
103557         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
103558         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
103560         (_REG_RE_NAME, _REG_RM_NAME): New macros.
103561         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
103562         changed.  But support the old name if the new one is not defined
103563         and if _REGEX_SOURCE.
103565         Change the following member names in struct re_pattern_buffer.
103566         The old names are still supported if !_REGEX_SOURCE.
103567         The new names are always supported, regardless of _REGEX_SOURCE.
103568         (re_buffer): Renamed from buffer.
103569         (re_allocated): Renamed from allocated.
103570         (re_used): Renamed from used.
103571         (re_syntax): Renamed from syntax.
103572         (re_fastmap): Renamed from fastmap.
103573         (re_translate): Renamed from translate.
103574         (re_can_be_null): Renamed from can_be_null.
103575         (re_regs_allocated): Renamed from regs_allocated.
103576         (re_fastmap_accurate): Renamed from fastmap_accurate.
103577         (re_no_sub): Renamed from no_sub.
103578         (re_not_bol): Renamed from not_bol.
103579         (re_not_eol): Renamed from not_eol.
103580         (re_newline_anchor): Renamed from newline_anchor.
103582         Change the following member names in struct re_registers.
103583         The old names are still supported if !_REGEX_SOURCE.
103584         The new names are always supported, regardless of _REGEX_SOURCE.
103585         (rm_num_regs): Renamed from num_regs.
103586         (rm_start): Renamed from start.
103587         (rm_end): Renamed from end.
103589         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
103590         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
103591         Prepend __ to parameter names.
103593         Undo yesterday's changes.
103595 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
103597         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
103598         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
103599         lib/regex.c.
103601 2005-08-24  Jim Meyering  <jim@meyering.net>
103603         Sync from coreutils.
103604         * m4/fcntl-safer.m4: New file.
103606         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
103607         and object files for this module.
103609 2005-08-24  Jim Meyering  <jim@meyering.net>
103611         Sync from coreutils.
103612         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
103614 2005-08-24  Jim Meyering  <jim@meyering.net>
103616         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
103617         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
103619 2005-08-24  Jim Meyering  <jim@meyering.net>
103621         * modules/fcntl-safer: New module.
103622         * modules/fts (Depends-on): Add fcntl-safer.
103623         * MODULES.html.sh (File descriptor based Input/Output):
103624         Add fcntl-safer.
103626 2005-08-24  Bruno Haible  <bruno@clisp.org>
103628         Support for unit test modules.
103629         * modules/README: Mention tests modules.
103630         * modules/TEMPLATE-TESTS: New file.
103631         * gnulib-tool: New options --extract-tests-module, --with-tests and
103632         --tests-base (unused for the moment).
103633         (testsbase, inctests): New variables.
103634         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
103635         (func_verify_module): Exclude TEMPLATE-TESTS.
103636         (func_verify_nontests_module, func_verify_tests_module): New functions.
103637         (func_get_dependencies): Add implicit dependency for tests modules.
103638         (func_get_tests_module): New function.
103639         (func_modules_transitive_closure): When --with-tests was specified,
103640         include the unit tests as well, unless explicitly avoided.
103641         (func_emit_lib_Makefile_am): Ignore the tests modules here.
103642         (func_emit_tests_Makefile_am): New function.
103643         (func_create_testdir): When --with-tests was specified, emit a
103644         tests/ directory.
103645         * MODULES.html.sh (Future developments): Update.
103647 2005-08-24  Bruno Haible  <bruno@clisp.org>
103649         * modules/tls-tests: New file.
103650         * tests/test-tls.c: New file, from GNU gettext.
103652 2005-08-24  Bruno Haible  <bruno@clisp.org>
103654         * modules/lock-tests: New file.
103655         * tests/test-lock.c: New file, from GNU gettext.
103657 2005-08-24  Bruno Haible  <bruno@clisp.org>
103659         * lib/lock.h: Add multiple inclusion guard.
103660         * lib/tls.h: Add multiple inclusion guard.
103662 2005-08-24  Bruno Haible  <bruno@clisp.org>
103664         * gnulib-tool: Add support for the --aux-dir option to
103665         --create-testdir, --create-megatestdir, --test, --megatest.
103666         (func_create_testdir, func_create_megatestdir): Optionally emit a
103667         AC_CONFIG_AUX_DIR directive.
103668         (create-testdir, create-megatestdir, test, megatest): Provide a
103669         default value for $auxdir.
103671 2005-08-24  Bruno Haible  <bruno@clisp.org>
103673         * gnulib-tool (import): Use compound statement instead of subshell
103674         where possible.
103676 2005-08-24  Bruno Haible  <bruno@clisp.org>
103678         * gnulib-tool (import): Change --aux-dir default to "build-aux".
103680 2005-08-24  Bruno Haible  <bruno@clisp.org>
103682         * gnulib-tool (func_version): Update.
103684 2005-08-24  Bruno Haible  <bruno@clisp.org>
103686         * gnulib-tool (func_import, func_create_testdir,
103687         func_create_megatestdir): Quote all autoconf macro arguments.
103689 2005-08-24  Bruno Haible  <bruno@clisp.org>
103691         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
103692         option --force, because --force causes the aclocal.m4 of each
103693         subdirectory to be newer than the corresponding config.h.in.
103695 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
103697         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
103698         All contents moved to gl_REGEX.
103699         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
103700         assume that it does.
103702 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
103704         * lib/regex.h (REG_NOSYS)
103705         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
103706         Define, since POSIX requires it as of 2001.
103707         (_REG_ENOSYS)
103708         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
103709         New private symbol, used to keep the enum signed in all cases.
103710         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
103711         Youngman in
103712         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
103714         * lib/regex_internal.c (re_string_skip_chars, register_state):
103715         (calc_state_hash):
103716         Remove forward decls; no longer needed now that we use prototypes.
103717         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
103718         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
103719         (clean_state_log_if_needed): Likewise.
103721 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
103723         * config/srclist.txt: Add glibc bugs 1231-1233.
103725 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
103727         Fix problems reported by Sam Steingold in
103728         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
103729         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
103730         assumed that reg_errcode_t is a signed type, which is not
103731         necessarily true if _XOPEN_SOURCE is not defined.
103732         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
103733         since some compilers warn about it otherwise.
103735 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
103737         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
103738         (init_word_char, create_initial_state, duplicate_node_closure):
103739         (fetch_token, peek_token_bracket, build_range_exp):
103740         (build_collating_symbol): Remove forward decls; no longer needed
103741         now that we use prototypes.
103743         * lib/regcomp.c:
103744         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
103745         (re_compile_fastmap_iter, regcomp, regerror, regfree):
103746         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
103747         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
103748         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
103749         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
103750         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
103751         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
103752         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
103753         (build_range_exp, build_collating_symbol, parse_bracket_exp):
103754         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
103755         (build_charclass, build_charclass_op, fetch_number, create_tree):
103756         (create_token_tree, mark_opt_subexp, duplicate_tree):
103757         Use prototypes rather than old-style definitions.
103759         * lib/regex_internal.c:
103760         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
103761         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
103762         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
103763         (re_string_reconstruct, re_string_peek_byte_case):
103764         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
103765         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
103766         (re_node_set_init_copy, re_node_set_add_intersect):
103767         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
103768         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
103769         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
103770         (re_acquire_state, re_acquire_state_context, register_state):
103771         (create_ci_newstate, create_cd_newstate, free_state):
103772         Likewise.
103773         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
103774         re_search_2):
103775         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
103776         (re_search_internal, prune_impossible_nodes):
103777         (acquire_init_state_context, check_matching, static):
103778         (check_halt_node_context, check_halt_state_context, proceed_next_node):
103779         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
103780         (update_regs, sift_states_backward, build_sifted_states):
103781         (clean_state_log_if_needed, merge_state_array):
103782         (update_cur_sifted_state, add_epsilon_src_nodes):
103783         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
103784         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
103785         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
103786         (find_recover_state, check_subexp_matching_top, transit_state_mb):
103787         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
103788         (check_arrival, check_arrival_add_next_nodes):
103789         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
103790         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
103791         (check_node_accept_bytes, check_node_accept, extend_buffers):
103792         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
103793         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
103794         (sift_ctx_init):
103795         Likewise.
103797         * lib/regex_internal.h:
103798         (re_string_allocate, re_string_construct, re_string_reconstruct):
103799         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
103800         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
103801         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
103802         (re_string_context_at, re_string_peek_byte_case):
103803         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
103804         is defined, since we now use prototypes always.
103806         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
103807         C89 or better.  All uses removed.
103809 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
103811         * config/srclist.txt: Add glibc bugs 1220-1227.
103813 2005-08-20  Jim Meyering  <jim@meyering.net>
103815         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
103816         of unused local, dfa.
103818 2005-08-20  Bruno Haible  <bruno@clisp.org>
103820         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
103822 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
103824         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
103825         (re_node_set_insert_last, re_dfa_add_node):
103826         Rename local variables to avoid GCC shadowing warnings.
103828 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
103830         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
103831         [defined lint]: Suppress bogus uninitialized-variable warnings.
103833         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
103834         and let the caller return REG_ESPACE if out of space.  This
103835         removes an uninitialied-variable warning with GCC 4.0.1, and also
103836         avoids taking the address of a local variable.  All callers
103837         changed.
103839 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
103841         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
103842         $LIBCSRC/posix/regexec.c.
103843         Add glibc bug 1217 for regcomp.c.
103845 2005-08-19  Jim Meyering  <jim@meyering.net>
103847         * lib/regexec.c (proceed_next_node): Redo local variables to
103848         avoid GCC shadowing warnings.
103850 2005-08-18  Bruno Haible  <bruno@clisp.org>
103852         * lib/strstr.c (strstr): Fix return value in multibyte case.
103853         * lib/strcasestr.c (strcasestr): Likewise.
103855 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
103857         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
103859 2005-08-17  Jim Meyering  <jim@meyering.net>
103861         Make the %s format (seconds since the epoch) work for a negative
103862         number and when used with a zero-padded field width, e.g. %015s.
103864         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
103865         label so that it precedes the code to set `digits'.  Otherwise,
103866         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
103867         print `00-22'.  Now, it prints `-0022', as it should.
103869 2005-08-17  Bruno Haible  <bruno@clisp.org>
103871         * modules/strstr (Files): Add m4/mbrtowc.m4.
103872         (Depends-on): Add mbuiter.
103874 2005-08-17  Bruno Haible  <bruno@clisp.org>
103876         * modules/strcasestr: New file.
103877         * MODULES.html.sh (String handling, based on ANSI C 89): Add
103878         strcasestr.
103880 2005-08-17  Bruno Haible  <bruno@clisp.org>
103882         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
103884 2005-08-17  Bruno Haible  <bruno@clisp.org>
103886         * modules/mbuiter: New file.
103887         * MODULES.html.sh (Extended multibyte and wide character utilities):
103888         Add mbuiter.
103890 2005-08-17  Bruno Haible  <bruno@clisp.org>
103892         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
103893         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
103895 2005-08-17  Bruno Haible  <bruno@clisp.org>
103897         * m4/strcasestr.m4: New file.
103899 2005-08-17  Bruno Haible  <bruno@clisp.org>
103901         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
103902         * lib/strstr.c: Completely rewritten, with multibyte locale support.
103904 2005-08-17  Bruno Haible  <bruno@clisp.org>
103906         * lib/strcasestr.h: New file.
103907         * lib/strcasestr.c: New file.
103909 2005-08-17  Bruno Haible  <bruno@clisp.org>
103911         * lib/strcasecmp.c: Use mbuiter.h.
103913 2005-08-17  Bruno Haible  <bruno@clisp.org>
103915         * lib/mbuiter.h: New file.
103917 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
103919         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
103920         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
103921         and gl_GETOPT are both invoked via different paths (as happens
103922         with GNU tar CVS because it uses both argp and getopt), the former
103923         wins.
103925 2005-08-16  Bruno Haible  <bruno@clisp.org>
103927         * modules/tls: New file.
103928         * MODULES.html.sh (Multithreading): Add tls.
103930 2005-08-16  Bruno Haible  <bruno@clisp.org>
103932         * modules/strnlen1: New file.
103933         * MODULES.html.sh (String handling): Add strnlen1.
103935 2005-08-16  Bruno Haible  <bruno@clisp.org>
103937         * modules/strcase (Files): Add m4/mbrtowc.m4.
103938         (Depends-on): Add strnlen1, mbchar.
103940 2005-08-16  Bruno Haible  <bruno@clisp.org>
103942         * modules/mbiter: New file.
103943         * MODULES.html.sh (Extended multibyte and wide character utilities):
103944         Add mbiter.
103946 2005-08-16  Bruno Haible  <bruno@clisp.org>
103948         * modules/mbfile: New file.
103949         * MODULES.html.sh (Extended multibyte and wide character utilities):
103950         Add mbfile.
103952 2005-08-16  Bruno Haible  <bruno@clisp.org>
103954         * modules/mbchar: New file.
103955         * MODULES.html.sh (Extended multibyte and wide character utilities):
103956         New section.
103958 2005-08-16  Bruno Haible  <bruno@clisp.org>
103960         * m4/tls.m4: New file, from GNU gettext.
103962 2005-08-16  Bruno Haible  <bruno@clisp.org>
103964         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
103965         always.
103966         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
103968 2005-08-16  Bruno Haible  <bruno@clisp.org>
103970         * m4/mbiter.m4: New file.
103972 2005-08-16  Bruno Haible  <bruno@clisp.org>
103974         * m4/mbfile.m4: New file.
103976 2005-08-16  Bruno Haible  <bruno@clisp.org>
103978         * m4/mbchar.m4: New file.
103980 2005-08-16  Bruno Haible  <bruno@clisp.org>
103982         * lib/tls.h: New file, from GNU gettext.
103983         * lib/tls.c: New file, from GNU gettext.
103985 2005-08-16  Bruno Haible  <bruno@clisp.org>
103987         * lib/strnlen1.h: New file.
103988         * lib/strnlen1.c: New file.
103990 2005-08-16  Bruno Haible  <bruno@clisp.org>
103992         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
103993         (mbi_init): Update.
103994         (mbi_avail, mbi_advance): Let the iteration end before the terminating
103995         NUL byte, not after it.
103997 2005-08-16  Bruno Haible  <bruno@clisp.org>
103999         * lib/strcase.h (strcasecmp): Add note in comments.
104000         * lib/strncasecmp.c: Use code from strcasecmp.c.
104001         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
104002         (strcasecmp): Work correctly in multibyte locales.
104004 2005-08-16  Bruno Haible  <bruno@clisp.org>
104006         * lib/mbiter.h: New file.
104008 2005-08-16  Bruno Haible  <bruno@clisp.org>
104010         * lib/mbfile.h: New file.
104012 2005-08-16  Bruno Haible  <bruno@clisp.org>
104014         * lib/mbchar.h: New file.
104015         * lib/mbchar.c: New file.
104017 2005-08-16  Bruno Haible  <bruno@clisp.org>
104019         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
104020         the valid ones. Makes the comparison operations transitive:
104021         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
104022         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
104024 2005-08-15  Simon Josefsson  <jas@extundo.com>
104026         * modules/ssize_t (License): Change to 'unlimited'.
104028         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
104030 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
104032         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
104033         Add comments for each pending glibc patch.
104035 2005-08-15  Bruno Haible  <bruno@clisp.org>
104037         * lib/regex.h (__restrict_arr): Don't define to __restrict if
104038         __cplusplus is defined.
104040 2005-08-14  Jim Meyering  <jim@meyering.net>
104042         Sync from coreutils.
104044         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
104045         Use the hash-table-based cycle-detection code not just when
104046         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
104047         Reported by James Youngman in
104048         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
104049         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
104050         FTS_TIGHT_CYCLE_CHECK.
104051         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
104052         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
104053         once again.
104054         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
104055         * lib/fts.c (fd_safer): Remove decl.
104056         Include fcntl--.h rather than unistd-safer.h
104057         (fts_safe_changedir): Don't call fd_safer; no longer needed
104058         now that we include fcntl--.h.
104060 2005-08-12  Simon Josefsson  <jas@extundo.com>
104062         * modules/getndelim2: Use ssize_t module.
104063         * modules/getnline: Likewise.
104064         * modules/safe-read: Likewise.
104065         * modules/xreadlink: Likewise.
104067         * modules/ssize_t: New file.
104069 2005-08-12  Simon Josefsson  <jas@extundo.com>
104071         * m4/readline.m4: Look for termcap, curses or ncurses if required.
104073 2005-08-12  Simon Josefsson  <jas@extundo.com>
104075         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104076         ssize_t.
104078 2005-08-12  Simon Josefsson  <jas@extundo.com>
104080         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
104081         readline, getdelim and check_version.
104082         (Support for systems lacking ISO C 99: Sizes of integer types):
104083         Add size_max.
104085 2005-08-12  Bruno Haible  <bruno@clisp.org>
104087         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
104089 2005-08-11  Simon Josefsson  <jas@extundo.com>
104091         * modules/readline: New file.
104093         * modules/strnlen (Files): Add strnlen.h.
104095 2005-08-11  Simon Josefsson  <jas@extundo.com>
104097         * m4/readline.m4: New file.
104099 2005-08-11  Simon Josefsson  <jas@extundo.com>
104101         * lib/readline.h, readline.c: New file.
104103 2005-08-11  Simon Josefsson  <jas@extundo.com>
104105         * doc/gnulib.texi (Initial import, Finishing touches): Mention
104106         gl_AVOID.
104108 2005-08-11  Bruno Haible  <bruno@clisp.org>
104110         * lib/strnlen.h (strnlen): Change parameter name to match comment.
104112 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
104114         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
104116 2005-08-10  Simon Josefsson  <jas@extundo.com>
104118         * tests/test-iconvme.c: New file.
104120 2005-08-10  Simon Josefsson  <jas@extundo.com>
104122         * m4/strnlen.m4: New file.
104124         * m4/strndup.m4: Don't check for strnlen declaration, done in
104125         strnlen.m4.
104127 2005-08-10  Simon Josefsson  <jas@extundo.com>
104129         * lib/strndup.c: Use strnlen.h.
104131         * lib/strnlen.h: New file.
104133 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
104135         * README: Typos.
104137 2005-08-02  Simon Josefsson  <jas@extundo.com>
104139         * modules/readline: New file.
104141 2005-08-02  Simon Josefsson  <jas@extundo.com>
104143         * modules/getdelim: New file.
104145         * modules/getline: Rewrite, don't use getndelim2.
104147 2005-08-02  Simon Josefsson  <jas@extundo.com>
104149         * m4/getline.m4: Separate out getdelim stuff into separate module.
104151         * m4/getdelim.m4: New file.
104153 2005-08-02  Simon Josefsson  <jas@extundo.com>
104155         * lib/getline.h, getline.c: Rewrite.
104157         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
104159 2005-07-31  Bruno Haible  <bruno@clisp.org>
104161         * lib/lock.h (gl_lock_initializer): New macro.
104162         (gl_lock_define_initialized): Use it.
104163         (gl_rwlock_initializer): New macro.
104164         (gl_rwlock_define_initialized): Use it.
104165         (gl_recursive_lock_initializer): New macro.
104166         (gl_recursive_lock_define_initialized): Use it.
104168 2005-07-30  Karl Berry  <karl@gnu.org>
104170         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
104171         Report from Ben Pfaff, regarding getopt.
104173 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
104175         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
104176         normal way.
104177         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
104178         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
104179         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
104180         (gl_GETOPT): Use the new macros.  Most of the implementation
104181         is moved to the new macros.  This is for programs like Emacs
104182         that don't want all the functionality of gl_GETOPT.
104184 2005-07-26  Bruno Haible  <bruno@clisp.org>
104186         * m4/lock.m4: Update from GNU gettext.
104188 2005-07-26  Bruno Haible  <bruno@clisp.org>
104190         * lib/lock.h: Update from GNU gettext.
104191         * lib/lock.c: Update from GNU gettext.
104193 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
104195         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
104196         obsolescent AC_TRY_RUN.  Include the default includes files, for
104197         'exit'.
104199 2005-07-24  Bruno Haible  <bruno@clisp.org>
104201         * modules/visibility: New file.
104202         * MODULES.html.sh (Misc): Add visibility.
104204 2005-07-24  Bruno Haible  <bruno@clisp.org>
104206         * m4/visibility.m4: New file.
104208 2005-07-24  Bruno Haible  <bruno@clisp.org>
104210         * doc/visibility.texi: New file.
104212 2005-07-22  Bruno Haible  <bruno@clisp.org>
104214         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
104215         $(ALLOCA_H), redundant through BUILT_SOURCES.
104216         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
104217         redundant through BUILT_SOURCES.
104218         * modules/byteswap (Makefile.am): Remove explicit dependency on
104219         $(BYTESWAP_H), redundant through BUILT_SOURCES.
104220         * modules/fnmatch (Makefile.am): Remove explicit dependency on
104221         $(FNMATCH_H), redundant through BUILT_SOURCES.
104222         * modules/getopt (Makefile.am): Remove explicit dependency on
104223         $(GETOPT_H), redundant through BUILT_SOURCES.
104224         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
104225         redundant through BUILT_SOURCES.
104226         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
104227         redundant through BUILT_SOURCES.
104228         * modules/stdbool (Makefile.am): Remove explicit dependency on
104229         $(STDBOOL_H), redundant through BUILT_SOURCES.
104230         * modules/stdint (Makefile.am): Remove explicit dependency on
104231         $(STDINT_H), redundant through BUILT_SOURCES.
104232         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
104233         Remove explicit dependency on $(SYSEXITS_H).
104234         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
104236 2005-07-18  Simon Josefsson  <jas@extundo.com>
104238         * lib/check-version.c (check_version): Accept identical versions too.
104240 2005-07-18  Bruno Haible  <bruno@clisp.org>
104242         * modules/lock: New file.
104243         * MODULES.html.sh (Multithreading): New section.
104245 2005-07-18  Bruno Haible  <bruno@clisp.org>
104247         * m4/lock.m4: New file, from GNU gettext.
104249 2005-07-18  Bruno Haible  <bruno@clisp.org>
104251         * lib/lock.h: New file, from GNU gettext.
104252         * lib/lock.c: New file, from GNU gettext.
104254 2005-07-18  Bruno Haible  <bruno@clisp.org>
104256         * lib/lock.h (gl_once_t): New type.
104257         (gl_once_define, gl_once): New macros.
104258         * lib/lock.c (fresh_once): New variable.
104259         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
104260         functions.
104262 2005-07-16  Simon Josefsson  <jas@extundo.com>
104264         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
104265         workaround, suggested by Bruno.
104267 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
104269         * modules/xalloc (Depends-on): Add xalloc-die.
104270         * modules/xvasprintf (Depends-on): Add xalloc-die.
104272 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
104274         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
104275         with a minor change.
104277 2005-07-15  Bruno Haible  <bruno@clisp.org>
104279         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
104280         When using lib/poll.c, define poll as rpl_poll.
104282 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
104284         * modules/argp (Depends-on): Remove unlocked-io.
104286 2005-07-14  Derek Price  <derek@ximbiot.com>
104288         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
104289         for glob symlink bug.
104291 2005-07-14  Bruno Haible  <bruno@clisp.org>
104293         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
104294         Instead, test for *_unlocked function declarations directly.
104296 2005-07-11  Simon Josefsson  <jas@extundo.com>
104298         * modules/size_max: New file.
104300         * modules/xsize: Depend on size_max module for size_max.m4.
104302 2005-07-11  Simon Josefsson  <jas@extundo.com>
104304         * lib/size_max.h: New file.
104306 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
104308         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
104309         copyright symbol and the year.
104310         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
104311         (version_etc_va): Use parameterized copyright notice.
104312         Reword to conform to the current GNU coding standards.
104314 2005-07-11  Karl Berry  <karl@gnu.org>
104316         * doc/gnulib.texi (Quoting): new node.
104317         (Initial import): more info, from Patrice.
104319 2005-07-11  Bruno Haible  <bruno@clisp.org>
104321         * gnulib-tool (func_usage): Document option --avoid.
104322         (Command line options): Handle --avoid.
104323         (func_acceptable): New function.
104324         (func_modules_transitive_closure): Use it.
104326 2005-07-11  Bruno Haible  <bruno@clisp.org>
104328         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
104329         Reported by Jim Meyering.
104331 2005-07-10  Bruno Haible  <bruno@clisp.org>
104333         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
104334         Needed when size_t is smaller than 'unsigned int'.
104335         Reported by Paul Eggert.
104337 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
104339         * modules/argp (Depends-on): Add unlocked-io
104341 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
104343         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
104344         block of defines.
104346 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
104348         * config/srclist.txt: Comment out regcomp.c, since we have a porting
104349         fix now.
104351 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
104352         and Paul Eggert  <eggert@cs.ucla.edu>
104354         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
104355         in wint_t, not wchar_t.  Remove now-unnecessary cast.
104357 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
104359         * modules/regex (Files): Add lib/regex_internal.c,
104360         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
104361         (Depends-on): Add extensions.
104362         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
104364 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
104366         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
104367         pathconf.
104368         * m4/same.m4 (gl_SAME): Likewise.
104369         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
104371         * m4/regex.m4: Adjust to new libc regex implementation.
104372         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
104373         all the .c and .h parts of (the new) regex.
104374         Quote the m4 stuff better.
104375         Check for RE_ICASE bug of old gnulib.
104376         Check for REG_STARTEND of recent libc.
104377         Rename local variables from jm_* to gl_*.
104378         Quote operand of "test -f".
104379         Say "recent enough" version of libc, not "version 2".
104380         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
104381         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
104382         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
104383         Remove check for btowc, isascii.
104384         Require AM_LANGINFO_CODESET.
104386 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
104388         * lib/regex.c, regex.h: Sync from libc.
104389         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
104390         * lib/regexec.c:
104391         New files, synced from libc, except that regex_internal.h
104392         currently has a small porting fix.
104394 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
104396         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
104397         regex_internal.c, regexec.c.
104398         Add regex_internal.h too, but as a comment, since the libc version
104399         is currently broken in gnulib mode.
104401 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
104403         Support programs like Emacs that use gnulib but not gettext.
104404         * MODULES.html.sh (Internationalization functions): Add gettext-h.
104405         * modules/gettext-h: New file.
104406         * modules/gettext (Files): Remove lib/gettext.h.
104407         (Depends-on): Add gettext-h.
104408         (Makefile.am): Remove lib_SOURCES.
104409         * modules/argmatch, modules/c-stack, modules/closeout:
104410         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
104411         * modules/execute, modules/file-type, modules/getaddrinfo:
104412         * modules/getopt, modules/human, modules/javacomp:
104413         * modules/javaexec, modules/mkdir-p, modules/obstack:
104414         * modules/openat, modules/pagealign_alloc, modules/pipe:
104415         * modules/quotearg, modules/regex, modules/rpmatch:
104416         * modules/unicodeio, modules/userspec, modules/version-etc:
104417         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
104418         * modules/xsetenv:
104419         Depend on gettext-h, not gettext.
104421 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
104423         * gnulib-tool (func_import): Add support for 'public domain' license.
104424         * modules/alloca, modules/atexit, modules/memmove:
104425         Now public domain, not GPL.
104426         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
104427         * modules/realloc, modules/strerror, modules/strtod:
104428         Now LGPL, not GPL.
104430 2005-07-05  Bruno Haible  <bruno@clisp.org>
104432         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
104433         autoconf CVS. Needed for mingw.
104435 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
104437         Remove the dependency of the strftime module on the tzset module.
104438         * modules/strftime (Depends-on): Remove dependency on tzset.
104440 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
104442         Remove the dependency of the strftime module on the tzset module.
104443         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
104444         gl_FUNC_TZSET_CLOBBER.
104446 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
104448         Remove the dependency of the strftime module on the tzset module.
104449         * lib/strftime.c (my_strftime)
104450         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
104451         Copy the input structure, to work around some of the bug with
104452         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
104453         Solaris releases, you should also use the tzset module, but we won't
104454         require it as a dependency any more since we don't want LGPLed code
104455         to depend on GPLed code.
104457 2005-07-02  Jim Meyering  <jim@meyering.net>
104459         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
104460         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
104461         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
104462         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
104464 2005-07-02  Jim Meyering  <jim@meyering.net>
104466         * lib/backupfile.c (backup_args): Change a `0' to NULL.
104468 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
104470         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
104471         declares only 'struct timespec;' (!).
104473 2005-07-01  Jim Meyering  <jim@meyering.net>
104475         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
104476         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
104477         * lib/save-cwd.c, tempname.c:
104478         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
104479         and don't include <sys/file.h>).
104481 2005-06-29  Jim Meyering  <jim@meyering.net>
104483         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
104484         type name.  Use the variable name instead.
104485         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
104486         Likewise.
104488 2005-06-28  Simon Josefsson  <jas@extundo.com>
104490         * modules/check-version (Files): Add check-version.m4.
104492 2005-06-28  Simon Josefsson  <jas@extundo.com>
104494         * m4/check-version.m4: New file, suggested by Jim Meyering
104495         <jim@meyering.net>.
104497 2005-06-28  Simon Josefsson  <jas@extundo.com>
104499         * lib/check-version.h, lib/check-version.c: New files.
104501 2005-06-28  Simon Josefsson  <jas@extundo.com>
104503         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
104504         collision with global variable.  Better indentation.  Don't
104505         increment buffer pointer beyond buffer end.  Based on comments
104506         from Paul Eggert <eggert@cs.ucla.edu>.
104508         * lib/base64.h: Indent.
104510 2005-06-28  Simon Josefsson  <jas@extundo.com>
104512         * doc/gnulib.texi (Library version handling): New section.
104514 2005-06-28  Jim Meyering  <jim@meyering.net>
104516         * check-module (find_included_lib_files): Hard-code another
104517         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
104518         but modules/fts-lgpl (correctly) does not list those files.
104520         * modules/canonicalize (Files): Add lib/pathmax.h.
104522 2005-06-25  Simon Josefsson  <jas@extundo.com>
104524         * modules/check-version: New file.
104526 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
104528         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
104529         initializer of struct addrinfo, as an indication that we don't
104530         care how many members the structure has.
104532 2005-06-24  Derek Price  <derek@ximbiot.com>
104533         and Bruno Haible  <bruno@clisp.org>
104535         Remove stat module & update lstat.
104536         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
104537         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
104538         * m4/stat.m4: Remove this file.
104540 2005-06-24  Derek Price  <derek@ximbiot.com>
104541         and Bruno Haible  <bruno@clisp.org>
104543         Remove stat module & update lstat.
104544         * lib/stat.c: Remove this file...
104545         (slash_aware_lstat): ...moving this content and its support...
104546         * lib/lstat.c (rpl_lstat): ...into here.
104547         * lib/lstat.h: New file.
104549 2005-06-24  Derek Price  <derek@ximbiot.com>
104550         and Bruno Haible  <bruno@clisp.org>
104552         Remove stat module & update lstat.
104553         * config/srclist.txt (libc sources): Remove stat.
104555 2005-06-24  Derek Price  <derek@ximbiot.com>
104556         and Bruno Haible  <bruno@clisp.org>
104558         Remove stat module & update lstat.
104559         * MODULES.html.sh (stat): Remove.
104560         * MODULES.html: Regenerated.
104561         * modules/lstat (Description): Correct function name.
104562         (Files): Add "lstat.h".
104563         (Depends-on): Remove stat, add xalloc, stat-macros.
104564         * modules/stat: Remove this file.
104565         (Include): Add "lstat.h", remove <sys/stat.h>.
104567 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
104569         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
104570         (ranged_convert): Don't save conversion in a temporary struct.
104571         This causes a warning with GCC 4.0.0, and anyway in the typical
104572         case it's not worth the extra 100 bytes or so of code.
104573         (ranged_convert, __mktime_internal): When calling a function via a
104574         pointer P, use P () rather than (*P) (), as we now assume C89 or
104575         better.
104577 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
104579         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
104580         "who -r" failed to give output.  Problem reported by Tim Waugh.
104582         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
104583         (xcalloc): Use it to avoid needless tests.
104584         Problem reported by Jim Meyering.
104586 2005-06-20  Derek Price  <derek@ximbiot.com>
104588         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
104589         unnecessary for Autoconfs > 2.59c.
104591 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104593         * lib/argp.h (__option_is_short): Check upper limit of
104594         __key. Isprint() requires its argument to have the value
104595         of an unsigned char or EOF.
104597 2005-06-16  Jim Meyering  <jim@meyering.net>
104599         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
104600         when either N or S is zero.
104602 2005-06-16  Derek Price  <derek@ximbiot.com>
104604         * m4/bison.m4: Declare YACC & YFLAGS precious.
104606 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
104608         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
104609         multibyte string or pattern, fall back on unibyte matching.
104610         Problem reported by James Youngman.
104612 2005-06-08  Bruno Haible  <bruno@clisp.org>
104614         * modules/csharpcomp: New file.
104615         * MODULES.html.sh (C#): Add csharpcomp.
104617 2005-06-08  Bruno Haible  <bruno@clisp.org>
104619         * m4/csharpcomp.m4: New file, from GNU gettext.
104621 2005-06-08  Bruno Haible  <bruno@clisp.org>
104623         * lib/csharpcomp.h: New file, from GNU gettext.
104624         * lib/csharpcomp.c: New file, from GNU gettext.
104625         * lib/csharpcomp.sh.in: New file, from GNU gettext.
104627 2005-06-08  Bruno Haible  <bruno@clisp.org>
104629         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
104630         warning on mingw.
104632 2005-06-07  Derek Price  <derek@ximbiot.com>
104634         Sync from CVS.
104635         * lib/glob_.h: Indent nested #ifdef.
104637 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
104639         Sync from coreutils.
104640         Use "file name" when talking about file names, instead of "filename"
104641         or "path", as per the GNU coding standards.
104642         * lib/mkdir-p.c: Renamed from makepath.c.
104643         (make_dir_parents): Renamed from make_path.  All callers changed.
104644         * lib/mkdir-p.h: Likewise.  All includers changed.
104645         * lib/filenamecat.c: Renamed from path-concat.c.
104646         (file_name_concat): Renamed from path_concat.  All callers changed.
104647         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
104648         * lib/filenamecat.h: Likewise.  All includers changed.
104649         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
104650         in comments or local variable names.
104651         * lib/basename.c: Likewise.
104652         * lib/canonicalize.c, canonicalize.h: Likewise.
104653         * lib/dirname.c, dirname.h: Likewise.
104654         * lib/euidaccess.c: Likewise.
104655         * lib/exclude.c: Likewise
104656         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
104657         * lib/fsusage.c, fsuage.h: Likewise.
104658         * lib/fts.c, fts_.h: Likewise.
104659         * lib/getcwd.c: Likewise.
104660         * lib/getloadavg.c: Likewise.
104661         * lib/mkstemp.c: Likewise.
104662         * lib/mountlist.c, mountlist.h: Likewise.
104663         * lib/openat.c, openat.h: Likewise.
104664         * lib/readlink-stub.c: Likewise.
104665         * lib/readutmp.c, readutmp.h: Likewise.
104666         * lib/rename.c: Likewise.
104667         * lib/rmdir.c: Likewise.
104668         * lib/same.c: Likewise.
104669         * lib/savedir.c: Likewise.
104670         * lib/stripslash.c: Likewise.
104671         * lib/tempname.c: Likewise.
104672         * lib/xreadlink.c: Likewise.
104673         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
104674         All uses changed.
104675         * lib/exclude.h: Likewise.
104677         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
104678         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
104679         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
104680         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
104681         * lib/pathmax.h: Include <limits.h> unconditionally, since other
104682         files have been getting away with it for years (MORE/BSD 4.3
104683         is extinct now).
104684         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
104685         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
104687         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
104688         Define to 256, not 255, as per modern POSIX.
104690 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
104692         Sync from coreutils.
104693         Use "file name" when talking about file names, instead of "filename"
104694         or "path", as per the GNU coding standards.
104695         * MODULES.html.sh: mkdir-p renamed from makepath.
104696         filenamecat renamed from path-concat.
104697         * modules/filenamecat: Renamed from modules/path-concat.
104698         (Files): filenamecat.h and filenamecat.c renamed from
104699         path-concat.h and path-concat.c.
104700         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
104701         (Include): filenamecat.h, not path-concat.h.
104702         * modules/mkdir-p: Renamed from modules/makepath.
104703         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
104704         makepath.c.
104705         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
104706         (Include): mkdir-p.h, not makepath.h.
104708 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
104710         Sync from coreutils.
104711         * m4/mkdir-p.m4: Renamed from makepath.m4.
104712         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
104713         Rename files from makepath.c to mkdir-p.c, and from
104714         makepath.h to mkdir-p.h.
104715         * m4/filenamecat.m4: Renamed from path-concat.m4.
104716         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
104717         Rename files from path-concat.c to filenamecat.c,
104718         and from path-concat.h to filenamecat.h.
104719         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
104720         "file name" in local variables or comments.
104721         * m4/rename.m4: Likewise.
104723 2005-06-01  Bruno Haible  <bruno@clisp.org>
104725         * modules/csharpexec: New file.
104726         * MODULES.html.sh (C#): New section.
104728 2005-06-01  Bruno Haible  <bruno@clisp.org>
104730         * m4/csharp.m4: New file, from GNU gettext.
104731         * m4/csharpexec.m4: New file, from GNU gettext.
104733 2005-06-01  Bruno Haible  <bruno@clisp.org>
104735         * lib/csharpexec.h: New file, from GNU gettext.
104736         * lib/csharpexec.c: New file, from GNU gettext.
104737         * lib/csharpexec.sh.in: New file, from GNU gettext.
104739 2005-05-31  Derek Price  <derek@ximbiot.com>
104740             Paul Eggert  <eggert@cs.ucla.edu>
104742         Sync from cvs.
104743         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
104745 2005-05-31  Derek Price  <derek@ximbiot.com>
104746             Paul Eggert  <eggert@cs.ucla.edu>
104748         Sync from cvs.
104749         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
104751 2005-05-29  Derek Price  <derek@ximbiot.com>
104753         * config/srclist.txt (glob_.h, glob.c): Add these files.
104755 2005-05-29  Derek Price  <derek@ximbiot.com>
104757         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
104758         * modules/glob: New file.
104759         * modules/getlogin_r: Add link to POSIX spec in description.
104761 2005-05-29  Derek Price  <derek@ximbiot.com>
104762             Paul Eggert  <eggert@cs.ucla.edu>
104764         * m4/glob.m4: New file.
104766 2005-05-29  Derek Price  <derek@ximbiot.com>
104767             Paul Eggert  <eggert@cs.ucla.edu>
104769         * lib/glob_.h, lib/glob.c: New files.
104771 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
104773         * modules/fts (Files): Remove m4/inttypes-pri.m4.
104774         * modules/fts-lgpl (Depends-on): Remove gettext.
104776 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
104778         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
104779         and don't require gt_INTTYPES_PRI.
104781 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
104783         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
104785         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
104786         the configuration hassle isn't worth it.
104787         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
104788         (LONGEST_MODIFIER, PRIuMAX): Remove.
104790 2005-05-27  Bruno Haible  <bruno@clisp.org>
104792         * lib/getlogin_r.h: Remove second include of <stddef.h>.
104794 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
104796         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
104797         _POSIX_PTHREAD_SEMANTICS for Solaris.
104799 2005-05-25  Derek Price  <derek@ximbiot.com>
104801         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
104803 2005-05-25  Derek Price  <derek@ximbiot.com>
104804             Paul Eggert  <eggert@cs.ucla.edu>
104806         * modules/getlogin_r, m4/getlogin_r.m4: New files.
104807         * lib/getlogin_r.c, getlogin_r.h: New files.
104809 2005-05-25  Bruno Haible  <bruno@clisp.org>
104810             Derek Price  <derek@ximbiot.com>
104812         * lib/getlogin_r.h: Simplify API documentation.
104814 2005-05-23  Derek Price  <derek@ximbiot.com>
104816         * modules/minmax (Files): Add m4/minmax.m4.
104817         (configure.ac): Add gl_MINMAX.
104819 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
104821         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
104822         so that unistd-safer.h (GPL'ed code) need not be included.
104824 2005-05-22  Bruno Haible  <bruno@clisp.org>
104826         * m4/minmax.m4: New file.
104827         Based on a patch by Derek Price <derek@ximbiot.com>.
104829 2005-05-22  Bruno Haible  <bruno@clisp.org>
104831         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
104832         (INT64_MIN): Fix definition.
104833         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
104835         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
104836         NEED_SIGNED_INT_TYPES.
104838         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
104839         HAVE_SYSTEM_INTTYPES.
104841 2005-05-22  Bruno Haible  <bruno@clisp.org>
104843         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
104844         Also include <sys/param.h> if it defines MIN, MAX.
104845         Based on a patch by Derek Price <derek@ximbiot.com>.
104847 2005-05-21  Jim Meyering  <jim@meyering.net>
104849         * modules/fts (Files): Add m4/inttypes-pri.m4.
104850         (Depends-on): Add lstat and remove gettext.  Alphabetize.
104852 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
104854         New fts module.
104855         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
104856         (setup_dir, free_dir): New functions.
104857         (enter_dir, leave_dir): Define trivial
104858         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
104859         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
104860         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
104861         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
104862         Move to fts-cycle.c.
104863         (fts_open): Use setup_dir.
104864         (fts_close): Use free_dir.
104865         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
104866         This adds a label and some gotos, but the alternatives were messier.
104867         Check for memory allocation failure when entering a dir.
104868         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
104869         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
104870         (FTS): New member fts_cycle, that is a union that contains the
104871         old active_dir_ht and cycle_state.  All uses changed to mention
104872         fts_cycle.ht and fts_cycle.state.
104873         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
104874         fts.c, with the following changes:
104875         (setup_dir, free_dir): New functions.
104876         (enter_dir): Now returns bool.  Return true if successful, false
104877         if memory exhausted.  All callers changed.
104878         Do not bother partly cleaning up on
104879         memory allocation failure; that is free_dir's job.
104880         However, free ad if hash_insert fails, to avoid memory leak.
104881         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
104882         fts->fts_options to see which union member to use.
104884 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
104886         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
104887         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
104889 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
104891         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
104893 2005-05-20  Jim Meyering  <jim@meyering.net>
104895         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
104896         Now a macro, to pacify GCC.
104898 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
104900         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
104901         of -1.
104903 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
104905         * lib/chown.c (rpl_chown): Return -1 on failure.
104907 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
104909         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
104910         Don't check for stddef.h.
104911         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
104912         don't use its results.
104913         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
104914         since we include them unconditionally.  Don't require
104915         AM_STDBOOL_H, since stdbool is a prerequisite.
104916         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
104917         since we assume C89 or better.
104918         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
104919         as we don't use their results.
104920         Don't check for fchdir, memmove, memset, strrchr, as we use
104921         them unconditionally.
104922         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
104923         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
104925 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
104927         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
104928         Include <stddef.h> unconditionally, since we assume C89 now.
104929         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
104930         * lib/fts.c: Include fts_.h first, to check interface.
104931         Do not include intprops.h; no longer needed.
104932         Include cycle-check.h and hash.h, since fts_.h no longer does.
104933         Remove unnecessary casts of closedir to void.
104934         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
104935         decide whether to decrement nlinks.
104936         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
104937         (FTS): Use struct hash_table * instead of Hash_table, so that
104938         we no longer need to include hash.h here.
104940 2005-05-18  Jim Meyering  <jim@meyering.net>
104942         * modules/dirfd (License): Change to LGPL.  Most of the code
104943         is already in the public domain.
104945 2005-05-18  Jim Meyering  <jim@meyering.net>
104947         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
104948         Reported by Yoann Vandoorselaere.
104950 2005-05-17  Jim Meyering  <jim@meyering.net>
104952         * m4/fts.m4: New file, from coreutils.
104954 2005-05-17  Jim Meyering  <jim@meyering.net>
104956         * lib/fts.c, lib/fts_.h: New files, from coreutils.
104958 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
104960         Sync from coreutils.
104961         * m4/unlinkdir.m4: New file.
104963 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
104965         Sync from coreutils.
104966         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
104967         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
104968         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
104969         White space changes only.
104970         * lib/makepath.c (make_path): Port to hosts where leading "//" is
104971         special.
104972         * lib/yesno.c: Include getline.h, not ctype.h.
104973         (yesno): Don't remove leading white space; POSIX doesn't allow it.
104974         Use getline to remove arbitrary restriction on response length.
104976 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
104978         * config/srclist-update: Spell out "Street" in FSF postal
104979         mail address; this is the style the FSF seems to prefer.
104981         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
104982         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
104983         this updates FSF postal mail address.
104985         Sync from coreutils.
104986         * modules/unlinkdir: New file.
104987         * modules/yesno (Depends-on): Add getline.
104988         * MODULES.html.sh (File system functions): Add unlinkdir.
104990 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
104992         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
104993         lib/strsep.h:
104994         Change the initial comment to refer to GPL, not LGPL.
104995         gnulib-tool will change it to LGPL as needed.
104997         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
104998         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
104999         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
105000         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
105001         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
105002         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
105003         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
105004         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
105005         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
105006         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
105007         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
105008         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
105009         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
105010         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
105011         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
105012         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
105013         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
105014         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
105015         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
105016         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
105017         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
105018         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
105019         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
105020         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
105021         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
105022         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
105023         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
105024         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
105025         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
105026         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
105027         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
105028         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
105029         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
105030         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
105031         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
105032         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
105033         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
105034         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
105035         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
105036         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
105037         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
105038         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
105039         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
105040         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
105041         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
105042         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
105043         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
105044         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
105045         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
105046         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
105047         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
105048         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
105049         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
105050         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
105051         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
105052         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
105053         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
105054         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
105055         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
105056         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
105057         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
105058         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
105059         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
105060         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
105061         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
105062         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
105063         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
105064         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
105065         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
105066         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
105067         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
105068         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
105069         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
105070         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
105071         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
105072         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
105073         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
105074         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
105075         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
105076         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
105077         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
105078         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
105079         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
105080         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
105081         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
105082         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
105083         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
105084         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
105085         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
105086         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
105087         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
105088         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
105089         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
105090         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
105091         lib/yesno.c, lib/yesno.h:
105092         Update FSF postal mail address.
105094 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
105096         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
105097         tests/test-memmem.c, tests/test-stpncpy.c:
105098         Update FSF postal mail address.
105100 2005-05-13  Bruno Haible  <bruno@clisp.org>
105102         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
105103         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
105104         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
105105         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
105106         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
105107         Add support for 64-bit integers in the MSVC compiler.
105109 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105111         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
105113 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
105115         * gnulib-tool (func_import): Sort and uniquify recommended includes.
105117 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
105119         * doc/getdate.texi (General date syntax): Don't say that date
105120         date --iso-8601=ns generates acceptable dates; it doesn't yet.
105121         Problem reported by Nic Ferrier.
105123 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105125         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
105126         specified in ai_socktype. Fix invalid ai_protocol
105127         check. ai_protocol is usually set to 0 or depending on
105128         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
105129         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
105130         ai_socktype / ai_protocol in the returned addrinfo structure.
105132 2005-05-10  Simon Josefsson  <jas@extundo.com>
105134         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
105135         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
105137 2005-05-10  Karl Berry  <karl@gnu.org>
105139         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
105140         (from http://www.gnu.org/licenses).
105141         * doc/COPYING.LIB: also rename to COPYING.LESSER.
105142         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
105143         fdl.texi suffices.
105145 2005-05-10  Karl Berry  <karl@gnu.org>
105147         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
105148         (COPYING.DOC): remove.
105150         * config/srclist-update: new FSF address.
105152 2005-05-10  Derek Price  <derek@ximbiot.com>
105154         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
105155         possible.
105157 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105158             Bruno Haible  <bruno@clisp.org>
105160         * modules/inet_ntop: New file.
105161         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105162         inet_ntop.
105164 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105165             Bruno Haible  <bruno@clisp.org>
105167         * m4/inet_ntop.m4: New file.
105169 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105170             Bruno Haible  <bruno@clisp.org>
105172         * lib/inet_ntop.h: New file.
105173         * lib/inet_ntop.c: New file, from glibc with modifications.
105175 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
105177         * modules/time_r (License): Change to LGPL.
105178         * modules/extensions (License): Change to LGPL.  Actually,
105179         the license is more permissive than that, but currently gnulib-tool
105180         doesn't know how to handle more-permissive licenses.
105182         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
105183         Problem reported by Dave Love.
105185 2005-05-08  Jim Meyering  <jim@meyering.net>
105187         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
105188         blank.
105190 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
105192         * modules/argmatch (Depends-on): Add stdbool.
105193         * modules/backupfile (Depends-on): Likewise.
105194         * modules/chdir-long (Depends-on): Likewise.
105195         * modules/closeout (Depends-on): Likewise.
105196         * modules/cycle-check (Depends-on): Likewise.
105197         * modules/dirname (Depends-on): Likewise.
105198         * modules/fnmatch (Depends-on): Likewise.
105199         * modules/fsusage (Depends-on): Likewise.
105200         * modules/fwriteerror (Depends-on): Likewise.
105201         * modules/getcwd (Depends-on): Likewise.
105202         * modules/getloadavg (Depends-on): Likewise.
105203         * modules/hard-locale (Depends-on): Likewise.
105204         * modules/makepath (Depends-on): Likewise.
105205         * modules/mountlist (Depends-on): Likewise.
105206         * modules/nanosleep (Depends-on): Likewise.
105207         * modules/posixtm (Depends-on): Likewise.
105208         * modules/quotearg (Depends-on): Likewise.
105209         * modules/readtokens (Depends-on): Likewise.
105210         * modules/readtokens0 (Depends-on): Likewise.
105211         * modules/readutmp (Depends-on): Likewise.
105212         * modules/save-cwd (Depends-on): Likewise.
105213         * modules/strftime (Depends-on): Likewise.
105214         * modules/userspec (Depends-on): Likewise.
105215         * modules/utimecmp (Depends-on): Likewise.
105216         * modules/xgetcwd (Depends-on): Likewise.
105217         * modules/xnanosleep (Depends-on): Likewise.
105218         * modules/xstrtod (Depends-on): Likewise.
105219         * modules/yesno (Depends-on): Likewise.
105221 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
105223         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
105224         needless checks.
105226 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
105228         Merge from coreutils.  Among other things,
105229         add bulletproofing for cases where stdin, stdout, or stderr are closed.
105230         * lib/fd-safer.c: New file.
105231         * lib/fcntl-safer.h, open-safer.c: Remove.
105232         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
105233         * lib/dup-safer.c: Include unistd-safer.h first.
105234         Don't include errno.h.
105235         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
105236         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
105237         * lib/file-type.c: Rely on file-type.h change.
105238         * lib/getloadavg.c: Include unistd-safer.h.
105239         (getloadavg): Use safer open.
105240         * lib/getusershell.c: Include "stdio-safer.h".
105241         (getusershell): Use safer fopen.
105242         * lib/long-options.c (long_options): Use NULL rather than 0.
105243         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
105244         'free'.
105245         * lib/modechange.c: Likewise.
105246         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
105247         (MODE_DONE): New constant.
105248         (struct mode_change): Remove 'next' member.
105249         (make_node_op_equals): New function; like the old one of the
105250         same name, except it allocates an array.
105251         (mode_compile, mode_create_from_ref): Use it.
105252         (mode_compile): Allocate result as an array, not a linked list.
105253         Parse octal string ourself, so that we catch mistakes like "+0".
105254         (mode_adjust): Arg is an array, not a linked list.
105255         * lib/modechange.c: Include stat-macros.h, xalloc.h.
105256         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
105257         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
105258         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
105259         Remove.  This is now stat-macros.h's job.
105260         (talloc): Remove.  All callers replaced by xalloc, so that
105261         our invokers don't have to worry about reporting memory failures.
105262         (make_node_op_equals): Remove.
105263         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
105264         New constants.
105265         (struct mode_change): Moved here from modechange.h.
105266         (mode_append_entry): Remove.
105267         (mode_compile): Remove MASKED_OPS arg, since it encouraged
105268         apps to have incorrect behavior.  Use simpler algorithm for head
105269         and tail.  Don't futz with umask; that's now the job of mode_adjust.
105270         Detect more invalid usages rather than having somewhat-random behavior.
105271         Don't insert an "a=" action, as that leads to incorrect behavior.
105272         (mode_compile, mode_create_from_ref): Return NULL on error instead
105273         of an enum, since now there's only one way to have an error.  All
105274         callers changed.
105275         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
105276         at the correct time.  Simplify calculation of "+u" and its ilk.
105277         Don't mishandle "+X".
105278         (mode_free): Remove "register" and localize decls.
105279         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
105280         (struct mode_change): Move to modechange.c; callers don't
105281         need to see this stuff.
105282         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
105283         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
105284         (mode_change, mode_adjust): Reflect the new signatures noted above.
105285         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
105286         that might redefine system include files.
105287         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
105288         (my_usleep): Use NULL rather than (void *) 0.
105289         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
105290         Use siginterrupt to specify that system calls should be interrupted.
105291         (rpl_nanosleep): Move initialization of suspended closer to call of
105292         my_usleep.
105293         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
105294         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
105295         (desirable_utmp_entry): New function.
105296         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
105297         using x2nrealloc, to simplify logic.
105298         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
105299         size calculation.  Do not assume utmp file is a regular file.
105300         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
105301         (READ_UTMP_CHECK_PIDS): New constant.
105302         * lib/save-cwd.c: Include unistd-safer.h.
105303         (save_cwd): Use fd_safer.
105304         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
105305         [!_LIBC] Include "stat-macros.h" instead.
105306         * lib/unistd-safer.h (fd_safer): New decl.
105308 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
105310         * modules/getloadavg (Depends-on): Add unistd-safer.
105311         * modules/getusershell (Depends-on): Add stdio-safer.
105312         * modules/lstat (Depends-on): Remove xalloc.
105313         * modules/mkstemp (Depends-on): Add stat-macros.
105314         * modules/modechange (Depends-on): Remove xstrtol.
105315         Add stat-macros, xalloc.
105316         * modules/save-cwd (Depends-on): Add unistd-safer.
105317         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
105318         * modules/unistd-safer (Files): Add lib/fd-safer.c
105319         (Makefile.am): Remove lib_SOURCES.
105321         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
105322         Remove fcntl-safer; unistd-safer supersedes it.
105324 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
105326         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
105327         AC_HEADER_STAT.
105328         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
105329         (gl_PREREQ_CHOWN): Remove.
105330         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
105331         it.  Don't require AC_HEADER_STAT.
105332         (gl_PREREQ_LSTAT): Remove.
105333         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
105334         Don't require AC_HEADER_STAT.
105335         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
105336         (gl_PREREQ_RMDIR): Remove.
105337         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
105338         mention stat-macros.h or AC_HEADER_STAT, since we'll make
105339         the stat-macros module a prerequisite.
105340         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
105341         * m4/filemode.m4 (gl_FILEMODE): Likewise.
105342         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
105343         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
105344         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
105345         variable names.
105346         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
105347         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
105348         variable prefixes.
105349         * m4/fcntl-safer.m4: Remove.
105350         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
105351         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
105352         Invoke gl_PREREQ_FD_SAFER.
105353         (gl_PREREQ_FD_SAFER): New macro.
105354         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
105355         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
105356         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
105357         Remove duplicate call to AC_LIBOBJ(readutmp).
105358         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
105360         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
105361         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
105363 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
105365         * MODULES.html.sh (Misc): Add byteswap.
105367 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
105369         * modules/getcwd (Depends-on): Add extensions.
105370         * modules/openat (Depends-on): Likewise.
105372 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
105374         * modules/byteswap: New file.
105376 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
105378         * m4/byteswap.m4: New file.
105380 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
105382         * lib/byteswap_.h: New file.
105384 2005-04-25  Karl Berry  <karl@gnu.org>
105386         * m4/gettext.m4: Update from GNU gettext 0.14.4.
105388 2005-04-25  Albert Chin  <china@thewrittenword.com>
105390         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
105391         Toolkit C bug.
105393 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
105395         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
105396         (func_ln_if_changed): Remove forcibly for no error message
105397         in case file does not exist.
105399 2005-04-19  Simon Josefsson  <jas@extundo.com>
105401         * gnulib-tool (Options): Make --symlink mean --symbolic.
105403 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
105405         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
105407 2005-04-16  Simon Josefsson  <jas@extundo.com>
105409         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
105411 2005-04-15  Simon Josefsson  <jas@extundo.com>
105413         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
105415 2005-04-15  Simon Josefsson  <jas@extundo.com>
105417         * gnulib-tool: Rename --symlink to --symbolic.
105419 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
105421         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
105422         symbolic links to files instead of copying/moving.  Add --aux-dir,
105423         specifying directory relative --dir where auxiliary build tools
105424         are placed.
105426 2005-04-14  Bruno Haible  <bruno@clisp.org>
105428         * modules/allocsa (License): Change to LGPL.
105429         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
105431 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
105433         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
105434         that "UTC +1 second" continues to work.  Problem reported
105435         by Dmitry V. Levin.
105436         (relunit_snumber): New rule.
105437         (relunit): Use it.
105439 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
105441         * lib/getdate.y (universal_time_zone_table): New constant.
105442         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
105443         universal_time_zone_table.
105444         (lookup_zone): Prefer universal_time_zone_table to
105445         local_time_zone_table, so that "GMT" time stamps are allowed in
105446         London during the summer.  Problem reported by Ian Abbott.
105448 2005-04-12  Jim Meyering  <jim@meyering.net>
105450         * lib/human.c (humblock): Set *options even when returning due to
105451         xstrtoumax conversion failure.  Thanks to a used-uninitialized
105452         warning from gcc-4.
105454 2005-04-09  Jim Meyering  <jim@meyering.net>
105456         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
105457         -Wuninitialized: initialize tm0.tm_year.
105459 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
105461         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
105462         count, since there's no maximum.  All uses changed.
105463         Add member dsts_seen.
105464         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
105465         not being INT_MAX.
105466         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
105467         Use pc_rels_seen to decide whether a date is absolute.
105469         * lib/getdate.y (number): Don't overwrite year.
105470         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
105471         check.
105473 2005-04-02  Simon Josefsson  <jas@extundo.com>
105475         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
105476         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
105478 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
105480         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
105481         where no absolute path name can be longer than PATH_MAX.
105483 2005-03-27  Jim Meyering  <jim@meyering.net>
105485         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
105487 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
105489         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
105490         "one's complement" -> "ones' complement" in comment, as per Knuth.
105491         "value of type" -> "type or expression" in comment.
105492         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
105494 2005-03-26  Jim Meyering  <jim@meyering.net>
105496         Comment nits.
105497         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
105498         Correct typos: s/or/of/.
105500 2005-03-26  Jim Meyering  <jim@meyering.net>
105502         * modules/check-include-files: Move to ../ and rename to...
105503         * check-module: ...this.
105505 2005-03-25  Jim Meyering  <jim@meyering.net>
105507         * modules/xvasprintf (Files): Add xalloc.h.
105509 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
105511         * modules/gettext (Files): config/config.rpath ->
105512         build-aux/config.rpath
105513         * modules/iconv (Files): Likewise.
105514         Problem reported by Oskar Liljeblad.
105516 2005-03-23  Jim Meyering  <jim@meyering.net>
105518         * modules/check-include-files: New script to check for
105519         missing dependencies, multiple includes, etc.
105521         * modules/c-strtold (Depends-on): Add xalloc.
105522         * modules/c-strtod (Depends-on): Add xalloc.
105523         * modules/hash (Depends-on): Add xalloc.
105524         (Files): Remove lib/xalloc.h.
105526         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
105527         * modules/userspec (Files): Add lib/inttostr.h.
105529 2005-03-23  Jim Meyering  <jim@meyering.net>
105531         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
105533 2005-03-22  Jim Meyering  <jim@meyering.net>
105535         * modules/stat-macros: New module.
105536         * modules/canonicalize, modules/euidaccess, modules/file-type,
105537         * modules/filemode, modules/lchown, modules/makepath,
105538         * modules/rmdir, modules/stat: Depend on new stat-macros module
105539         rather than listing lib/stat-macros.h manually.
105540         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
105542 2005-03-22  Jim Meyering  <jim@meyering.net>
105544         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
105546 2005-03-22  Bruno Haible  <bruno@clisp.org>
105548         * config/srclist.txt: Replace target directory 'config' with
105549         'build-aux'.
105550         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
105551         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
105552         ../build-aux/.
105554 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
105556         * modules/chdir-long (Depends-on): Add mempcpy.
105558         * modules/acl, modules/backupfile, modules/c-strtod,
105559         modules/c-strtold, modules/canon-host, modules/canonicalize,
105560         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
105561         modules/exclude, modules/exitfail, modules/file-type,
105562         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
105563         modules/getdate, modules/getline, modules/getpagesize,
105564         modules/getpass, modules/getugroups, modules/group-member,
105565         modules/hard-locale, modules/hash, modules/human, modules/idcache,
105566         modules/inttostr, modules/long-options, modules/makepath,
105567         modules/md5, modules/memcasecmp, modules/memcoll,
105568         modules/modechange, modules/mountlist, modules/path-concat,
105569         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
105570         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
105571         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
105572         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
105573         modules/strftime, modules/strndup, modules/strverscmp,
105574         modules/timespec, modules/unlocked-io, modules/userspec,
105575         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
105576         modules/yesno:
105577         Remove lib_SOURCES line from Makefile.am section, as this is now
105578         done automatically by the corresponding Autoconf macro.
105580 2005-03-21  Jim Meyering  <jim@meyering.net>
105582         Changes imported from coreutils.
105584         * lib/cycle-check.c: Don't include xalloc.h.
105586         * lib/path-concat.c: Don't include assert.h.
105587         (path_concat): Remove assertion that would have triggered
105588         for ABASE starting with more than one slash.
105589         Reported by Andreas Schwab.
105591         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
105592         properly when ABASE is an absolute file name.
105593         Correct the description of this function.
105594         Include <assert.h>.
105595         Add an assertion and a test driver.
105596         This fixes a bug introduced on 2004-07-02.
105597         Andreas Schwab reported the resulting failure of cp --parents:
105598         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
105600 2005-03-21  Jim Meyering  <jim@meyering.net>
105602         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
105603         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
105605 2005-03-21  Jim Meyering  <jim@meyering.net>
105606         and  Paul Eggert  <eggert@cs.ucla.edu>
105608         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
105609         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
105610         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
105611         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
105612         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
105613         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
105614         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
105615         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
105616         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
105617         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
105618         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
105619         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
105620         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
105621         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
105622         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
105623         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
105624         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
105625         for these modules.
105627 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
105629         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
105630         (which shouldn't happen), generate nothing instead of returning 0
105631         immediately, so that nstrftime (NULL, ...) doesn't return 0.
105633 2005-03-16  Bruno Haible  <bruno@clisp.org>
105635         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
105636         HAVE_LONGLONG_64BIT.
105638 2005-03-16  Bruno Haible  <bruno@clisp.org>
105640         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
105641         HAVE_LONGLONG_64BIT.
105643 2005-03-16  Bruno Haible  <bruno@clisp.org>
105645         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
105646         HAVE_LONGLONG_64BIT.
105648 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
105650         * lib/strftime.c (my_strftime): Prepend space to format so that we can
105651         reliably distinguish strftime failure from empty output on POSIX
105652         hosts.
105654 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
105656         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
105657         (iconv_string): Don't guess a size-zero buffer, as that might cause
105658         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
105659         result would be 'too large', where 'too large' is (heuristically)
105660         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
105661         overflow concerns.  This will prevent some unwanted malloc failures
105662         when the inputs are very large.
105664 2005-03-15  Karl Berry  <karl@gnu.org>
105666         * config/srclist.txt (config.rpath): from gettext.
105667         * config/config.rpath: update.
105669 2005-03-15  Bruno Haible  <bruno@clisp.org>
105671         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
105672         to 'negate'.
105674         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
105675         variable.
105677         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
105678         results.
105680 2005-03-14  Simon Josefsson  <jas@extundo.com>
105682         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
105683         <fx@gnu.org>.
105685 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
105687         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
105688         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
105689         intprops.h.
105690         * lib/strtol.c: Likewise.
105692 2005-03-14  Jim Meyering  <jim@meyering.net>
105694         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
105695         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
105696         to be nonzero so that we (and caller) can detect the difference
105697         between a valid zero-length expansion and an error return, even
105698         when the underlying strftime fails before writing anything into
105699         that location.
105701 2005-03-14  Bruno Haible  <bruno@clisp.org>
105703         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
105704         Update from GNU gettext 0.14.3.
105706 2005-03-10  Jim Meyering  <jim@meyering.net>
105708         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
105710 2005-03-10  Jim Meyering  <jim@meyering.net>
105712         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
105713         so that this module works on systems without fchdir.
105715 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
105717         Factor int-properties macros into a single file, except for
105718         glibc-related files.
105719         * lib/intprops.h: New file.
105720         * lib/getloadavg.c: Include it instead of limits.h.
105721         (INT_STRLEN_BOUND): Remove.
105722         * lib/human.c: Include intprops.h.
105723         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
105724         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
105725         302/1000.
105726         * lib/inttostr.h: Include intprops.h instead of limits.h.
105727         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
105728         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
105729         for consistency with intprops.h.
105730         (time_t_is_integer, twos_complement_arithmetic): Use them.
105731         * lib/sig2str.h: Include <signal.h>, intprops.h.
105732         (INT_STRLEN_BOUND): Remove.
105733         * lib/strftime.c (TYPE_SIGNED): Remove.
105734         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
105735         * lib/strtol.c: Adjust comments to match intprops.h.
105736         * lib/userspec.c: Include intprops.h.
105737         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
105738         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
105739         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
105740         instead of rolling our own expressions.
105741         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
105743         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
105744         instead of int.
105745         (my_strftime): Do not mishandle years close to INT_MAX, by doing
105746         the right thing even if adding 1900 would overflow.  Similarly
105747         for tm_mon + 1 and tm_yday + 1.
105748         Make %Y always equivalent to %C%y, and similarly for %G and %g.
105749         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
105750         (DO_SIGNED_NUMBER): New macro.
105751         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
105753 2005-03-07  Bruno Haible  <bruno@clisp.org>
105755         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
105757 2005-03-07  Bruno Haible  <bruno@clisp.org>
105759         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
105761 2005-03-04  Derek R. Price  <derek@ximbiot.com>
105763         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
105764         (func_import): Only replace files via --import when they have actually
105765         changed.
105767 2005-03-03  Derek R. Price  <derek@ximbiot.com>
105769         * m4/mmap-anon.m4: New file.
105770         * m4/pagealign_alloc.m4: New file.
105772 2005-03-03  Derek R. Price  <derek@ximbiot.com>
105773             Bruno Haible  <bruno@clisp.org>
105775         * modules/pagealign_alloc: New file.
105776         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
105778 2005-03-03  Derek R. Price  <derek@ximbiot.com>
105779             Bruno Haible  <bruno@clisp.org>
105781         * lib/pagealign_alloc.h: New file.
105782         * lib/pagealign_alloc.c: New file.
105784 2005-03-03  Bruno Haible  <bruno@clisp.org>
105786         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
105787         Use an all-permissive copyright notice, recommended by RMS.
105789 2005-03-02  Bruno Haible  <bruno@clisp.org>
105791         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
105792         of AIX, the replacement has to be done only after <string.h> is
105793         included, therefore not in config.h. stpncpy.h does the replacement,
105794         and stpncpy.c uses it.
105796 2005-03-02  Bruno Haible  <bruno@clisp.org>
105798         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
105799         stpncpy.c uses it.
105801 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
105803         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
105804         The workaround isn't strictly needed for POSIX conformance, and
105805         it's too much of a pain to configure and maintain.  We'll ask
105806         people to fix their kernels instead.
105807         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
105808         (NANOSLEEP_BUG_WORKAROUND): Remove.
105809         (xnanosleep): Remove the workaround.
105811 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
105813         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
105814         Reported by Derek Price.
105815         (Include): Add "timespec.h".
105817         * modules/xnanosleep (Depends-on): Remove gethrxtime.
105819 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
105821         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
105822         to detect nanosleep bug.
105824 2005-03-01  Bruno Haible  <bruno@clisp.org>
105826         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
105828 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
105830         * modules/gethrxtime: New file.
105831         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
105832         (Depends-on): Add gethrxtime.
105833         (configure.ac): Add gl_XNANOSLEEP.
105834         (Makefile.am): Remove lib_SOURCES line.
105836 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
105838         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
105839         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
105841 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
105843         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
105844         * lib/timespec.h (gettime): Return void, since it always
105845         succeeds now.  All uses changed.
105846         * lib/gettime.c (gettime): Likewise.
105847         [HAVE_NANOTIME]: Prefer nanotime.
105848         Assume gettimeofday succeeds, as POSIX requires.
105849         Assime time () succeeds, since other code already does.
105850         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
105851         (timespec_subtract): Remove.
105852         (NANOSLEEP_BUG_WORKAROUND): New constant.
105853         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
105854         things considerably.  Use it only on GNU/Linux hosts, since the
105855         workaround shouldn't be needed elsewhere.
105857 2005-02-24  Bruno Haible  <bruno@clisp.org>
105859         * modules/gettext (Files): Add m4/glibc2.m4.
105861 2005-02-24  Bruno Haible  <bruno@clisp.org>
105863         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
105864         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
105865         * m4/progtest.m4:
105866         Update from GNU gettext 0.14.2.
105867         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
105869 2005-02-24  Bruno Haible  <bruno@clisp.org>
105871         * lib/localcharset.c: Update from GNU gettext 0.14.2.
105872         * lib/config.charset: Update from GNU gettext 0.14.2.
105874 2005-02-24  Bruno Haible  <bruno@clisp.org>
105876         * lib/gettext.h: Update from GNU gettext 0.14.2.
105878 2005-02-23  Simon Josefsson  <jas@extundo.com>
105880         * m4/iconvme.m4: New file.
105882 2005-02-23  Jim Meyering  <jim@meyering.net>
105884         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
105885         change.
105886         Thanks to Bruno Haible for catching it.
105888 2005-02-22  Simon Josefsson  <jas@extundo.com>
105890         * modules/iconvme: New file.
105892         * MODULES.html.sh: Add iconvme.
105894 2005-02-22  Simon Josefsson  <jas@extundo.com>
105896         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
105898 2005-02-22  Simon Josefsson  <jas@extundo.com>
105900         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
105902 2005-02-22  Jim Meyering  <jim@meyering.net>
105904         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
105905         s/ifndef/ifdef/.
105907 2005-02-20  Neil Conway  <neilc@samurai.com>
105909         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
105910         returned by OSX/Darwin if the specified buffer is not large
105911         enough for the hostname.
105913 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105915         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
105916         pass it to _help, otherwise the latter coredumps trying to
105917         dereference state.root_argp.
105919 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
105921         * modules/chdir-long (Depends-on): Add memrchr.
105922         * modules/memrchr (Files): Add lib/memrchr.h.
105923         (Include): "memrchr.h".
105925 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
105927         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
105929 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
105931         * lib/memrchr.h: New file.
105932         * lib/chdir-long.c: Include it.
105933         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
105934         Don't bother including stddef.h.
105936 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
105938         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
105939         inclusion.
105940         Include <sys/types.h>, for dev_t.
105941         (ME_DUMMY, ME_REMOTE): Move from here....
105942         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
105943         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
105944         Dmitry V. Levin.
105945         Include mountlist.h first, to test the interface.
105947 2005-01-29  Bruno Haible  <bruno@clisp.org>
105949         * lib/progname.c (program_name): Initialize.
105950         Needed when linking statically on MacOS X.
105952 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
105954         Sync from coreutils.
105955         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
105956         (Depends-on): Add c-strtod.
105957         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
105959 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
105961         Sync from coreutils.
105962         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
105964         Remove files that are specific to coreutils.
105965         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
105967 2005-01-28  Bruno Haible  <bruno@clisp.org>
105969         * modules/javacomp: New file.
105970         * MODULES.html.sh (Java): Add javacomp.
105972 2005-01-28  Bruno Haible  <bruno@clisp.org>
105974         * m4/javacomp.m4: New file, from GNU gettext.
105976 2005-01-28  Bruno Haible  <bruno@clisp.org>
105978         * lib/javacomp.sh.in: New file, from GNU gettext.
105979         * lib/javacomp.h: New file, from GNU gettext.
105980         * lib/javacomp.c: New file, from GNU gettext.
105982 2005-01-26  Simon Josefsson  <jas@extundo.com>
105984         * lib/gai_strerror.c: Use GPL in header.
105986 2005-01-26  Bruno Haible  <bruno@clisp.org>
105988         * modules/javaexec: New file.
105989         * MODULES.html.sh (Java): Add javaexec.
105991 2005-01-26  Bruno Haible  <bruno@clisp.org>
105993         * m4/javaexec.m4: New file, from GNU gettext.
105995 2005-01-26  Bruno Haible  <bruno@clisp.org>
105997         * lib/javaexec.sh.in: New file, from GNU gettext.
105998         * lib/javaexec.h: New file, from GNU gettext.
105999         * lib/javaexec.c: New file, from GNU gettext.
106001 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106003         * modules/lchown (Depends-on): Remove lchown.h
106005 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106007         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
106008         must be defined if the header file was not found, in order
106009         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
106011 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106013         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
106014         initializers for struct pentry_state.
106015         (__argp_error): Check return value of __asprintf
106016         (__argp_failure): Translate error message
106018         * lib/argp-parse.c: Removed braces around the expansion of N_()
106020 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
106022         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
106023         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
106024         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
106025         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
106026         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
106027         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
106028         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
106029         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
106030         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
106031         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
106032         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
106033         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
106034         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
106035         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
106036         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
106037         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
106038         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
106039         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
106040         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
106041         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
106042         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
106043         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
106044         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
106045         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
106046         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
106047         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
106048         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
106049         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
106050         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
106051         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
106052         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
106053         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
106054         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
106055         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
106056         xstrtol.m4, xstrtoumax.m4, yesno.m4:
106057         Use an all-permissive copyright notice, recommended by RMS.
106059 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
106061         * modules/chdir-long (Depends-on): Remove mempcpy.
106063 2005-01-21  Jim Meyering  <jim@meyering.net>
106065         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
106066         same value as for Solaris 9.
106068         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
106069         component length.  This included changing the parameter to be
106070         of type `char *' rather than `char const *'.
106071         * lib/chdir-long.h (chdir_long): Update prototype.
106073         * lib/openat.c (fdopendir, fstatat): New functions.
106074         * lib/openat.h: Include headers required for use of DIR and struct
106075         stat.
106076         [AT_SYMLINK_NOFOLLOW]: Define.
106077         (fdopendir, fstatat): Add prototypes.
106079 2005-01-21  Bruno Haible  <bruno@clisp.org>
106081         * modules/classpath: New file.
106082         * MODULES.html.sh (Java): Add classpath.
106084 2005-01-21  Bruno Haible  <bruno@clisp.org>
106086         * lib/classpath.h: New file, from GNU gettext.
106087         * lib/classpath.c: New file, from GNU gettext.
106089 2005-01-20  Simon Josefsson  <jas@extundo.com>
106091         * modules/version-etc-fsf: New file.
106093 2005-01-20  Simon Josefsson  <jas@extundo.com>
106095         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
106096         * lib/version-etc.c: Remove version_etc_copyright.
106097         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
106098         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
106100 2005-01-20  Simon Josefsson  <jas@extundo.com>
106102         * lib/base64.h (isbase64): Add.
106104         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
106105         using a unsigned prototype, don't inline.
106106         (base64_decode): Use it.
106108 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
106110         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
106111         it.
106113 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
106115         * lib/save-cwd.c (save_cwd): Remove code to support the case
106116         where fchdir is missing or flaky.
106118 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
106120         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
106122 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
106124         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
106125         AC_LIBSOURCES now does this.
106126         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
106127         with new ullong_max module.
106129 2005-01-19  Bruno Haible  <bruno@clisp.org>
106131         * modules/sh-quote: New file.
106132         * MODULES.html.sh (Executing programs): Add sh-quote.
106134 2005-01-19  Bruno Haible  <bruno@clisp.org>
106136         * lib/sh-quote.h: New file, from GNU gettext.
106137         * lib/sh-quote.c: New file, from GNU gettext.
106139 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
106141         Merge from coreutils.
106142         * m4/ullong_max.m4: New file.
106143         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
106144         (gl_MACROS): Assume localeconv exists.
106146 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
106148         Merge changes from coreutils, as described below in several
106149         changelogs dated today.
106151         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
106152         (O_DIRECTORY): Remove; not needed here, since "." must be
106153         a directory.  All uses removed.
106154         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
106155         universal on Suns, and we also need to test for IRIX.
106156         Revamp code to use 'if' rather than '#if'.
106157         Avoid unnecessary comparison of cwd->desc to 0.
106159         * lib/utimens.c (futimens): Robustify the previous patch, by checking
106160         for known valid error numbers rather than observed invalid ones.
106162 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
106164         * modules/ullong_max: New file.
106166         * modules/chdir-long, modules/openat: New files.
106167         * modules/save-cwd (Depends-on): Depend on chdir-long.
106168         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
106170 2005-01-18  Jim Meyering  <jim@meyering.net>
106172         Merge from coreutils.
106173         * m4/chdir-long.m4, m4/openat.m4: New files.
106174         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
106175         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
106176         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
106177         is sane and DOES follow symlinks.  Besides, testing 20 different
106178         systems found no broken chown implementations.
106179         Prompted by a change in rsync's copy of this macro.
106180         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
106182         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
106184         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
106185         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
106186         NULL-means-set-to-current-time semantics.
106187         Remove temporary file immediately, rather than waiting
106188         for configure's at-exit trap code to do it.
106190 2005-01-18  Jim Meyering  <jim@meyering.net>
106192         * lib/version-etc.c (version_etc_copyright): Update copyright date.
106194         * lib/utimens.c (futimens): Account for the fact that futimes
106195         can also fail with errno == ENOSYS or errno == ENOENT.
106196         Patch from Dmitry V. Levin.
106198         Change the name of the robust chdir function from chdir to chdir_long.
106199         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
106200         (restore_cwd): Use chdir_long, not chdir.
106201         * lib/chdir-long.c: Renamed from chdir.c.
106202         * lib/chdir-long.h: Renamed from chdir.h.
106203         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
106204         Hurd.
106206 2005-01-18  Bruno Haible  <bruno@clisp.org>
106208         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
106209         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
106210         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
106211         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
106212         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
106213         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
106214         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
106215         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
106216         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
106217         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
106218         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
106219         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
106220         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
106221         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
106222         Use an all-permissive copyright notice, recommended by RMS.
106224 2005-01-18  Bob Proulx  <bob@proulx.com>
106226         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
106227         simplify offsetof() macro construct to avoid compile failure with
106228         native HP-UX 11.0 ANSI C compiler.
106230 2005-01-17  Bruno Haible  <bruno@clisp.org>
106232         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
106233         redundant because stpncpy.m4 takes care of it.
106235 2005-01-17  Bruno Haible  <bruno@clisp.org>
106237         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
106239 2005-01-17  Bruno Haible  <bruno@clisp.org>
106241         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
106242         used.
106244 2005-01-17  Bruno Haible  <bruno@clisp.org>
106246         * lib/fwriteerror.h (fwriteerror): Change specification to include
106247         fclose.
106248         * lib/fwriteerror.c: Include <stdbool.h>.
106249         (fwriteerror): At the end, close the file stream. Record whether
106250         stdout was already closed.
106252 2005-01-17  Bruno Haible  <bruno@clisp.org>
106254         * lib/execute.c (environ): Declare if needed.
106255         * lib/pipe.c (environ): Likewise.
106256         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
106258 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106260         * modules/argp: Depend on vsnprintf
106262 2005-01-10  Jim Meyering  <jim@meyering.net>
106264         * modules/closeout (Depends-on): Add atexit.
106266 2005-01-06  Bruno Haible  <bruno@clisp.org>
106268         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
106270 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
106272         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
106273         definitions to be after all include files, to avoid collisions.
106274         Problem reported by Bob Proulx.
106276 2005-01-04  Jim Meyering  <jim@meyering.net>
106278         Changes imported from coreutils.
106279         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
106280         as the mkstemp template, use a temporary directory and an
106281         8.3-friendly template to avoid trouble on systems like DJGPP.
106282         Reported by Juan M. Guerrero via Stepan Kasal.
106283         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
106284         close. Remove the temporary directory right away, rather than waiting
106285         for configure's at-exit trap code to do it.
106286         Suggestion from Stepan Kasal.
106288 2005-01-01  Simon Josefsson  <jas@extundo.com>
106290         * gnulib-tool: Print #include directives when --import'ing.
106292 2004-12-28  Simon Josefsson  <jas@extundo.com>
106294         * tests/test-base64.c: Include required header files.  Remove
106295         unused variables.
106297 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
106299         * modules/error (Depends-on): Remove gettext.
106301 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
106303         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
106304         not needed.  This removes a dependency on the gettext module.
106305         [defined _LIBC]: Do not include <libintl.h>; not needed.
106307 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
106309         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
106310         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
106312 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
106314         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
106315         HAVE_DECL_STRTOLD.
106317 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
106319         * modules/getdate (Depends-on): Remove alloca-opt.
106321 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
106323         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
106325 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
106327         * lib/argp-parse.c: Include <stddef.h>.
106328         (alignof, alignto): New macros.
106329         (parser_init): Don't assume that void * is aligned sufficiently
106330         for struct option.
106332         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
106333         need to extend the stack.
106334         (YYINITDEPTH): New macro, so that the initial stack isn't overly
106335         large.
106337 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106339         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
106341 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
106343         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
106344         (2004-10-24) change.  Apparently this was a false alarm.
106346         * modules/getdate: Depend on alloca-opt, not alloca.
106348 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
106350         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
106351         Remove now-obsolete comment about AIX.
106352         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
106353         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
106354         (YYMAXDEPTH): New macro.
106356 2004-12-18  Simon Josefsson  <jas@extundo.com>
106358         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
106360 2004-12-18  Bruno Haible  <bruno@clisp.org>
106362         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
106364 2004-12-18  Bruno Haible  <bruno@clisp.org>
106366         * lib/fatal-signal.c (fatal_signals): Make non-const.
106367         (init_fatal_signals): New function.
106368         (uninstall_handlers, install_handlers): Ignore signals that were set to
106369         SIG_IGN.
106370         (at_fatal_signal): Call init_fatal_signals.
106371         (init_fatal_signal_set): Likewise. Ignore signals that were set to
106372         SIG_IGN.
106373         Reported by Paul Eggert.
106375 2004-12-18  Bruno Haible  <bruno@clisp.org>
106377         * doc/alloca.texi: New file.
106378         * doc/alloca-opt.texi: New file.
106380 2004-12-17  Jim Meyering  <jim@meyering.net>
106382         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
106383         Otherwise, install-sh could exit with improper exit status when
106384         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
106386 2004-12-16  Simon Josefsson  <jas@extundo.com>
106388         * tests/test-base64.c: Add license.
106390 2004-12-15  Stepan Kasal  <address@hidden>
106392         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
106394 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
106396         * modules/getcwd (Files): Add m4/d-ino.m4.
106397         Suggested by Mark D. Baushke.
106399 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
106401         * lib/getdate.y (textint): New member "negative".
106402         (time_zone_hhmm): New function.
106403         Expect 14 shift-reduce conflicts, not 13.
106404         (o_colon_minutes): New rule.
106405         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
106406         (yylex): Set the "negative" member of signed numbers.
106408 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
106410         * doc/getdate.texi (Time of day items, Time zone items):
106411         Describe new formats +00:00, UTC+00:00.
106413 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
106415         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
106416         spurious "-l"s.  Problem reported by Stepan Kasal.
106418 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
106420         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
106421         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
106423 2004-12-04  Simon Josefsson  <jas@extundo.com>
106425         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
106426         Vandoorselaere <yoann@prelude-ids.org>.
106428 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
106430         Changes imported from coreutils.
106431         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
106432         exist.
106433         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
106435 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
106437         Changes imported from coreutils.
106438         * lib/hard-locale.c: Assume <locale.h> exists.
106439         Include "strdup.h".
106440         (GLIBC_VERSION): New macro.
106441         (hard_locale): Assume setlocale exists.
106442         Rewrite to avoid #ifdef.
106443         Use strdup rather than malloc + strcpy.
106444         * lib/human.c: Assume <locale.h> exists.
106445         (human_readable): Assume localeconv exists.
106447 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
106449         * modules/hard-locale (Depends-on): Add strdup.
106451 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
106453         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
106454         convert T2, not T.  (Imported from libc.)
106456 2004-11-30  Simon Josefsson  <jas@extundo.com>
106458         * modules/restrict (License): Change to LGPL.
106460 2004-11-30  Simon Josefsson  <jas@extundo.com>
106462         * m4/restrict.m4: Add copyright and copying conditions.
106464 2004-11-30  Simon Josefsson  <jas@extundo.com>
106466         * m4/base64.m4: New file.
106468 2004-11-30  Simon Josefsson  <jas@extundo.com>
106470         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
106471         base64.
106473         * tests/test-base64.c: New file.
106475         * modules/base64: New file.
106477 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
106479         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
106480         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
106482         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
106484 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
106486         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
106487         (__getcwd.c): Don't restore errno; glibc doesn't.
106488         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
106489         first, falling back to our code only if its results look suspicious.
106490         Ensure that the resulting buffer is only as large as necessary.
106492         * lib/readutmp.c: Include readutmp.h first.
106493         Include <errno.h>, since readutmp.h no longer does that.
106494         * lib/readutmp.h: Don't include <errno.h>,
106495         <sys/param.h>, <time.h>; not needed to establish interface.
106496         (errno): Remove decl.
106497         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
106498         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
106499         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
106501 2004-11-28  Simon Josefsson  <jas@extundo.com>
106503         * lib/base64.h, base64.c: New file.
106505 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
106507         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
106509 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
106511         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
106512         (Depends-on): Remove pathmax, same.  Add mempcpy.
106513         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
106514         (Makefile.am): Append getcwd.h to lib_SOURCES.
106515         (Include): Add getcwd.h.
106516         (Maintainer): Change from Jim Meyering to "all, glibc",
106517         since getdate now uses intended-for-glibc code.
106518         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
106519         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
106521 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
106523         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
106524         HP's ANSI C compiler.
106525         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
106526         Declaring int functions causes warnings on some modern systems and
106527         shouldn't be needed to compile on ancient ones.
106528         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
106529         defined.
106531         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
106532         with the following changes.
106533         (__set_errno): Parenthesize properly.
106534         Include <stdbool.h>.
106535         (MIN, MAX, MATCHING_INO): New macros.
106536         (__getcwd): Define with prototype, not K&R form.
106537         Use heuristics to allocate default buffer on stack if possible.
106538         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
106539         behavior, and to avoid the PATH_MAX limit when computing
106540         ../../../../...
106541         Use MATCHING_INO to compare inode number to file.
106542         Check for arithmetic overflow in size calculations.
106543         Fix bug in reallocation of dot array that caused getcwd to fail
106544         on directories nested deeper than 75.
106545         Be more careful about saving errno on error.
106546         Do not use realloc; use only free+malloc, as this is a bit
106547         more flexible and avoids a needless copy operation.
106548         Do not inspect st_dev and st_ino for symbolic links; POSIX
106549         doesn't specify the latter.
106550         Check for closedir errors.
106551         Avoid needless casts.
106552         Use "#ifdef weak_alias" around weak_alias, to be like other
106553         glibc code.
106554         The following changes to getcwd.c have effect only when used in
106555         gnulib; they have no effect inside glibc proper.
106556         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
106557         as alloca isn't used.
106558         (alloca, __alloca): Likewise.
106559         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
106560         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
106561         unconditionally, as gnulib assumes C89 or better.
106562         Do not include <sys/param.h>.
106563         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
106564         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
106565         better.
106566         (NULL) [!defined NULL]: Remove; we assume C89 or better.
106567         Include <dirent.h> in a way that is compatible with modern Autoconf.
106568         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
106569         New macros, if not already defined.
106570         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
106571         Use "_LIBC", not "defined _LIBC", for consistency.
106572         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
106573         a mempcpy module.
106574         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
106575         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
106576         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
106577         credit only to Jim Meyering and adjust the copyright dates.
106578         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
106579         <stdlib.h>, <unistd.h>, "pathmax.h".
106580         Instead, include "xgetcwd.h" (first) and "getcwd.h".
106581         (INITIAL_BUFFER_SIZE): Remove.
106582         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
106584 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
106586         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
106587         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
106588         Use the _ONCE methods, for efficiency.
106589         Check for fcntl.h.  In test program, include <errno.h>
106590         and <fcntl.h> if available.  Remove old K&R cruft from
106591         test program.  Check for common errors in GNU/Linux,
106592         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
106593         don't do AC_LIBOBJ, as that's getcwd.m4's job.
106594         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
106595         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
106596         name accordingly.
106597         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
106598         accommodate new getcwd.c.
106599         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
106600         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
106601         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
106602         that's all we need now.
106604 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106606         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
106607         argp-parse.c depends on getopt internals, that means we should
106608         always use our getopt, to be on the safe side.
106609         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
106610         order not to spoil the result of an eventual previous invocation
106611         of gl_GETOPT_SUBSTITUTE.
106613 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106615         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
106616         redefinition warnings. To avoid them, include the defines
106617         in `#if !defined __need_getopt ... #endif'. The only place
106618         where __getopt_argv_const is used is in definitions
106619         of getopt_long and getopt_long_only below, which are as well
106620         protected by `#ifndef __need_getopt'.
106621         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
106622         __need_getopt after including <stdio.h> and <unistd.h> These
106623         headers might have defined it.
106625 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
106627         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
106629 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
106631         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
106632         (futimens): New function, which uses futimes if available.
106633         (futimens, utimens): Support timespec==NULL, with same semantics
106634         as utime and utimens.
106635         * lib/utimens.h (futimens): New decl.
106637 2004-11-23  Jim Meyering  <jim@meyering.net>
106639         * lib/getopt_.h: Remove trailing blanks.
106641 2004-11-23  Jim Meyering  <jim@meyering.net>
106643         * lib/__fpending.c: Add comment.
106645 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
106647         * modules/canonicalize (Depends-on): Add xreadlink.
106648         Problem reported by James Youngman.
106650 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
106652         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
106653         New macros.
106654         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
106655         optopt): Use them instead of invoking ## directly; otherwise, the
106656         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
106658 2004-11-19  Bruno Haible  <bruno@clisp.org>
106660         * lib/strtok_r.c: Move comments from here...
106661         * lib/strtok_r.h: ... to here.
106663 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
106665         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
106666         implementations that mishandle size_t overflow.
106668 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
106670         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
106671         might fail.  Problem reported by Yoann Vandoorselaere.
106672         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
106673         implementations that mishandle size_t overflow.
106675 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
106677         * modules/canon-host (Depends-on): Add strdup.
106679 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
106681         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
106683 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
106685         * lib/canon-host.c: Include "strdup.h".
106686         (canon_host): Use getaddrinfo if available, so that IPv6 works.
106687         Use strdup instead of malloc/strcpy to duplicate strings.
106689         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
106690         (human_space_before_unit): New constant.
106691         * lib/human.c (human_readable): Support it.
106693         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
106694         (xgetcwd): Set errno correctly when failing.
106695         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
106696         the failure is actually due to a PATH_MAX problem.
106698         Further getopt changes to make it more likely that glibc will
106699         buy the changes back.
106700         * lib/getopt.c (POSIXLY_CORRECT): New constant.
106701         (getopt): Use it, so to preserve glibc semantic
106702         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
106703         when compiling for libc.
106704         * lib/getopt_.h (__getopt_argv_const): Bring it back.
106705         (getopt_long, getopt_long_only): Use it.
106707         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
106708         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
106709         (getopt): Argv is now char * const *, as per standard.
106710         (_getopt_internal_r, _getopt_internal): Argv is now char **,
106711         not char *__getopt_argv_const *.
106712         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
106713         _getopt_long_only_r): Likewise.
106714         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
106715         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
106716         _getopt_long_r, _getopt_long_only_r): Likewise.
106717         * lib/getopt_.h (__getopt_argv_const): Remove.
106718         (getopt): Argv is now char * const *, as per standard.
106720         * lib/getdate.y (tORDINAL): New token.
106721         (day, relunit): Allow it for relative times.
106722         (relative_time_table): Use tORDINAL for ordinals.
106724 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
106726         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
106727         Document that "second" isn't allowed as an ordinal number.
106729 2004-11-16  Jim Meyering  <jim@meyering.net>
106731         * modules/closeout (Depends-on): Add fpending.
106733 2004-11-15  Jim Meyering  <jim@meyering.net>
106735         * lib/closeout.c: Include "__fpending.h" once again.
106736         Include <stdbool.h>.
106737         (close_stdout): Don't fail just because stdout was closed initially,
106738         since some programs don't write to stdout in the normal course of
106739         operation (other than --version and --help), and we don't want this
106740         function to make e.g. `touch file >&-' fail.
106741         But do fail if it was closed and someone has tried to write to it.
106742         E.g., `printf foo >&-' must fail.
106744 2004-11-13  Jim Meyering  <jim@meyering.net>
106746         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
106748 2004-11-12  Simon Josefsson  <jas@extundo.com>
106750         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
106751         small doc fix is still pending.
106753 2004-11-11  Simon Josefsson  <jas@extundo.com>
106755         * modules/strtok_r: New file.
106757         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106758         strtok_r.
106760 2004-11-11  Simon Josefsson  <jas@extundo.com>
106762         * m4/strtok_r.m4: New file.
106764         * m4/getopt.m4: Replace opterr.
106766 2004-11-11  Simon Josefsson  <jas@extundo.com>
106768         * lib/strtok_r.h, strtok_r.c: New file.
106770 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
106772         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
106773         of replacing opterr, getopt, etc.  This should handle the
106774         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
106776 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
106778         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
106779         we can stop lying to compilers about the constness of argv when we
106780         are compiled outside glibc.
106781         (getopt, getopt_long, getopt_long_only): Use it.
106782         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
106783         _getopt_internal, getopt): Likewise.
106784         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
106785         _getopt_long_only_r): Likewise.
106786         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
106787         _getopt_long_r, _getopt_long_only_r): Likewise.
106789         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
106790         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
106791         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
106792         the other external symbols.
106793         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
106794         declaration, since the above renaming now works around collisions.
106796 2004-11-11  Jim Meyering  <jim@meyering.net>
106798         * lib/linebreak.c: Remove trailing blanks.
106799         * lib/alloca_.h: Likewise.
106800         * lib/acosl.c: Likewise.
106801         * lib/euidaccess.c: Likewise.
106802         * lib/allocsa.h: Likewise.
106804 2004-11-10  Simon Josefsson  <jas@extundo.com>
106806         * m4/getaddrinfo.m4: New file.
106808 2004-11-10  Simon Josefsson  <jas@extundo.com>
106810         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
106812 2004-11-10  Simon Josefsson  <jas@extundo.com>
106814         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106815         getaddrinfo.
106817         * modules/getaddrinfo: New file.
106819 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
106821         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
106823 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
106825         * lib/mktime.c (SHR): New macro, which is a portable
106826         substitute for >> that should work even on Crays.
106827         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
106828         Problem reported by Mark D. Baushke in
106829         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
106830         * lib/getdate.y (SHR): Likewise.
106831         (tm_diff): Use it.
106832         * lib/strftime.c (SHR): Likewise.
106833         (tm_diff): Use it.
106834         * lib/quotearg.c (struct quoting_options): Use unsigned int for
106835         quote_these_too, so that right shifts are well defined.  All uses
106836         changed.
106838 2004-11-10  Jim Meyering  <jim@meyering.net>
106840         Ensure that no close failure goes unreported.
106841         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
106842         return early when it seems there's nothing to flush.
106843         Don't include __fpending.h.
106845 2004-11-10  Jim Meyering  <jim@meyering.net>
106847         * modules/closeout (Depends-on): Remove fpending.
106849 2004-11-10  Jim Meyering  <jim@meyering.net>
106851         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
106853 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
106855         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
106856         gl_FUNC_STRFTIME.
106857         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
106858         and AC_REQUIRE when possible, to avoid duplicate checks.
106859         Check for <wchar.h>.
106861 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
106863         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
106865 2004-11-09  Bruno Haible  <bruno@clisp.org>
106867         * m4/sockpfaf.m4: New file.
106869 2004-11-05  Bruno Haible  <bruno@clisp.org>
106871         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
106872         Reported by Mark D. Baushke <mdb@cvshome.org>.
106874 2004-11-04  Bruno Haible  <bruno@clisp.org>
106876         2004-09-11  Bruno Haible  <bruno@clisp.org>
106877                 * allocsa.valgrind: New file.
106878         2004-02-06  Bruno Haible  <bruno@clisp.org>
106879                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
106880                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
106881                 Reported by Christopher Seip <chris.seip@hp.com>.
106883 2004-11-04  Bruno Haible  <bruno@clisp.org>
106885         * modules/allocsa (Files): Add lib/allocsa.valgrind.
106886         (Makefile.am): Distribute it.
106888 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
106890         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
106891         with errno == ERANGE if the buffer is too small.
106892         Problem reported by Mark D. Baushke.
106894 2004-11-03  Albert Chin  <china@thewrittenword.com>
106895             Paul Eggert  <eggert@cs.ucla.edu>
106897         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
106898         equivalent, substitute $ac_type for equivalent type rather than
106899         blindly using uint32_t *always* which won't work if uint32_t is not
106900         available.  Define _UINT32_T to work around typedef of uint32_t if
106901         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
106902         2.5.1.
106904 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
106906         * m4/jm-macros.m4: Sync from coreutils.
106907         (gl_MACROS): Check for mbrlen, for pathchk.
106908         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
106910 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
106912         * lib/xreadlink.c (MAXSIZE): New macro.
106913         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
106914         size does not exceed MAXSIZE.  Avoid cast.
106915         As suggested by Mark D. Baushke in
106916         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
106917         if readlink fails with buffer size just under MAXSIZE, try again
106918         with MAXSIZE.
106920 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
106922         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
106924 2004-11-02  Derek R. Price  <derek@ximbiot.com>
106925         and  Paul Eggert  <eggert@cs.ucla.edu>
106927         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
106928         (get_date): Overparenthesize to avoid GCC warning.
106930 2004-11-02  Bruno Haible  <bruno@clisp.org>
106932         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
106933         returns void.
106935 2004-11-02  Bruno Haible  <bruno@clisp.org>
106937         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
106938         function returns void.
106940 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
106942         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
106943         fflush_unlocked, flockfile, funlockfile, funlockfile,
106944         fputs_unlocked, putc_unlocked.
106946 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
106948         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
106949         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
106950         already declared.
106952 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
106954         * modules/getdate (Files): Add doc/getdate.texi.
106955         (Depends-on): Add setenv, xalloc.
106957 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
106959         * lib/getdate.y: Add support for TZ="foo" within a date string.
106960         Fix some bugs near time_t boundaries.  Reject dates with
106961         out-of-range components, e.g., "Sept 31".
106962         Include <stdlib.h>, "setenv.h", "xalloc.h".
106963         (ISDIGIT_LOCALE): Remove; unused.
106964         Note that the TZ and time functions used here are not reentrant.
106965         (mktime_ok, get_tz): New functions.
106966         (TZBUFSIZE): New constant.
106967         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
106968         This requires that we sometimes generate our own TZ="XXX..." setting.
106970 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
106972         * doc/getdate.texi: New file, from coreutils with modifications for
106973         the new TZ parsing.
106975 2004-10-27  Derek R. Price  <derek@ximbiot.com>
106977         * lib/mktime.c (not_equal_tm): Remove redundant check.
106979 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
106981         * modules/regex (lib_SOURCES): Add regex.c.
106982         Reported by James Youngman in
106983         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
106985 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
106987         * lib/getdate.y: Use Bison 1.875 features, and some minor
106988         code cleanups.  This change does not affect semantics.
106989         Don't include <stdlib.h>; no longer needed.
106990         Don't include unlocked-io.h; only the "#if TEST" code uses
106991         stdio, and performance isn't crucial there.
106992         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
106993         Bison 1.875 features as described below.
106994         All uses of "PC." replaced by "pc->".
106995         (YYSTYPE): Add a forward declaration.
106996         (yylex, yyerror): Use full prototypes in forward decls.
106997         Use "%pure-parser" rather than obsolescent "%pure_parser".
106998         Use %parse-param and %lex-param instead of obsolescent
106999         YYPARSE_PARAM and YYLEX_PARAM.
107000         (meridian_table, month_and_day_table, time_units_table,
107001         relative_time_table, time_zone_table, military_table,
107002         lookup_zone, lookup_word, get_date):
107003         Use NULL instead of 0 where appropriate.
107004         (to_hour): Avoid abort (), to avoid a dependency on
107005         stdlib.h.
107006         (yyerror, yylex): Now accepts parser_control * arg.
107007         (main) [TEST]: Use '\0' rather than 0 for char.
107009 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
107011         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
107013 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
107015         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
107016         It's now the caller's responsibility to handle the case where
107017         !HAVE_GETPAGESIZE && !defined getpagesize.
107019         * lib/mktime.c (leapyear): Arg is long int, not int.
107021 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
107023         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
107025 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
107027         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
107028         missing.  Problem reported by James Youngman.
107030 2004-10-16  Simon Josefsson  <jas@extundo.com>
107032         * gnulib-tool: Fix comments.  Fix parse problem.
107033         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
107035 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
107037         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
107038         implementation of getopt_long.  Problem reported by Alexander Taler in:
107039         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
107041 2004-10-15  Bruno Haible  <bruno@clisp.org>
107043         * gnulib-tool: Untabify. Initialize supplied_libname.
107044         (func_usage): More homogenous output.
107045         (func_modules_transitive_closure, func_modules_to_filelist,
107046         func_emit_lib_Makefile_am): New functions.
107047         (func_import): New function, extracted from big case statement. Use
107048         func_get_license, func_modules_transitive_closure,
107049         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
107050         opt_lgpl. Don't use test -a, as it's not portable.
107051         (func_create_testdir): Use func_modules_transitive_closure,
107052         func_modules_to_filelist, func_emit_lib_Makefile_am.
107054 2004-10-15  Bruno Haible  <bruno@clisp.org>
107056         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
107058 2004-10-15  Bruno Haible  <bruno@clisp.org>
107060         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
107061         the portions belonging to each module.
107062         Suggested by Derek Robert Price <derek@ximbiot.com>.
107064 2004-10-12  Simon Josefsson  <jas@extundo.com>
107066         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
107067         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
107068         to real functions.
107070 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107072         * modules/vsnprintf: New file.
107074 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107076         * m4/vsnprintf.m4: New file.
107078 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107080         * lib/vsnprintf.h: New file.
107081         * lib/vsnprintf.c: New file.
107083 2004-10-11  Bruno Haible  <bruno@clisp.org>
107085         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
107086         vsnprintf.
107088 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
107090         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
107092 2004-10-07  Bruno Haible  <bruno@clisp.org>
107094         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
107095         fits into the provided buffer.
107097 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
107099         * lib/diacrit.c, diacrit.h: Add GPL notice.
107101         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
107102         notice.
107103         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
107104         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
107105         This avoids a potential constant-folding bug.
107107 2004-10-05  Bruno Haible  <bruno@clisp.org>
107109         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
107110         for the declaration of strsep.
107112 2004-10-05  Bruno Haible  <bruno@clisp.org>
107114         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
107116 2004-10-04  Simon Josefsson  <jas@extundo.com>
107118         * modules/memmem: New file.
107119         * tests/test-memmem.c: New file.
107120         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
107122 2004-10-04  Simon Josefsson  <jas@extundo.com>
107124         * m4/memmem.m4: New file.
107126 2004-10-04  Simon Josefsson  <jas@extundo.com>
107128         * lib/memmem.h: New file.
107129         * lib/memmem.c: New file, taken from glibc.
107131 2004-10-04  Simon Josefsson  <jas@extundo.com>
107133         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
107134         '#ifdef USE_UNLOCKED_IO'.
107136 2004-10-04  Simon Josefsson  <jas@extundo.com>
107138         * config/srclist.txt: Add memmem from glibc.
107140 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
107142         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
107144         * modules/argmatch, modules/argp, modules/closeout, modules/error,
107145         modules/exclude, modules/getdate, modules/getline,
107146         modules/getndelim2, modules/getpass, modules/getpass-gnu,
107147         modules/getusershell, modules/linebuffer, modules/md5,
107148         modules/mountlist, modules/posixtm, modules/readtokens,
107149         modules/readutmp, modules/regex, modules/sha1,
107150         modules/version-etc, modules/yesno:
107151         Remove dependency on unlocked-io.
107153 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
107155         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
107157         * m4/unlocked-io.m4: Add copyright notice.
107158         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
107160 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
107162         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
107163         * lib/xmalloc.c (xmemdup): Likewise.
107164         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
107165         XFREE): Remove these long-obsolescent macros.
107166         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
107167         * lib/xstrdup.c: Remove.
107169         * lib/regex.c (re_comp): Cast gettext return value to char *,
107170         Problem reported by Martin Neitzel via Mark D. Baushke.
107172 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
107174         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
107175         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
107176         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
107177         regex.c, sha1.c, version-etc.c, yesno.c:
107178         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
107179         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
107180         the includer's responsibility.
107182         Sync from coreutils.
107184         * lib/modechange.c (mode_compile): Don't decrement a pointer that
107185         points to the start of a string, as the C Standard says the
107186         resulting behavior is undefined.
107188         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
107189         simple -> simple_backups, numbered_existing ->
107190         numbered_existing_backups, numbered -> numbered_backups
107191         to avoid shadowing problems.  All uses changed.
107192         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
107193         * lib/backupfile.c (check_extension, numbered_backup):
107194         Rename locals to avoid shadowing 'basename'.
107195         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
107196         once.
107198         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
107199         * lib/.cvsignore: Add getopt.h.
107201 2004-10-04  Bruno Haible  <bruno@clisp.org>
107203         * modules/README: New file.
107204         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
107205         not a module.
107207 2004-10-02  Jim Meyering  <jim@meyering.net>
107209         * lib/dirfd.h, getpagesize.h: Add copyright notice.
107211 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107213         * modules/strsep: New file.
107215 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107217         * m4/strsep.m4: New file.
107219 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107221         * lib/strsep.h: New file.
107222         * lib/strsep.c: New file.
107224 2004-10-01  Simon Josefsson  <jas@extundo.com>
107226         * lib/snprintf.c (snprintf): Handle size==0.
107228 2004-10-01  Simon Josefsson  <jas@extundo.com>
107229             Bruno Haible  <bruno@clisp.org>
107231         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
107232         (snprintf): Declare 'args'.
107234 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
107236         * lib/snprintf.c: Remove comments as to why each header is needed.
107238 2004-10-01  Bruno Haible  <bruno@clisp.org>
107240         * MODULES.html.sh: Add strsep.
107242 2004-09-30  Simon Josefsson  <jas@extundo.com>
107244         * modules/snprintf: New file.
107246 2004-09-30  Simon Josefsson  <jas@extundo.com>
107248         * m4/snprintf.m4: New file.
107250 2004-09-30  Simon Josefsson  <jas@extundo.com>
107252         * lib/snprintf.h, lib/snprintf.c: New files.
107254 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107256         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
107257         (hol_entry_help): Never translate an empty string.
107258         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
107259         * lib/argp.h (OPTION_NO_TRANS): New option.
107261 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
107263         * modules/argp (Maintainer): Replace Simon Josefsson
107264         by Sergey Poznyakoff.
107266 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
107268         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
107269         changes merged back into glibc.
107271 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
107273         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
107275 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
107277         * lib/xvasprintf.c: Include xalloc.h.
107278         (xvasprintf): Use xalloc_die, not xmalloc_die.
107280 2004-09-29  Bruno Haible  <bruno@clisp.org>
107282         * modules/alloca-opt: New file, derived from modules/alloca.
107283         * modules/allocsa: Depend on alloca-opt instead of alloca.
107284         * modules/setenv: Likewise.
107285         * modules/vasnprintf: Likewise.
107286         * MODULES.html.sh: Add alloca-opt.
107288 2004-09-28  Simon Josefsson  <jas@extundo.com>
107290         * gnulib-tool: New parameter --lgpl, to asseert that modules are
107291         LGPL, and to replace license template from GPL to LGPL.
107293 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
107295         * modules/dummy: Change license to LGPL.
107297 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
107299         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
107301 2004-09-24  Simon Josefsson  <jas@extundo.com>
107303         * modules/minmax (License): Change from GPL to LGPL.
107305 2004-09-23  Simon Josefsson  <jas@extundo.com>
107307         * gnulib-tool (--import): Typo.
107309 2004-09-23  Simon Josefsson  <jas@extundo.com>
107311         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
107313 2004-09-22  Bruno Haible  <bruno@clisp.org>
107315         * modules/*: Add 'License' field.
107316         * gnulib-tool: Accept --extract-license option.
107317         (func_get_license): New function.
107319 2004-09-21  Bruno Haible  <bruno@clisp.org>
107321         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
107322         Reported by Simon Josefsson.
107324 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
107326         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
107327         gl_AC_TYPE_LONG_LONG.
107329 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
107331         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
107333 2004-09-18  Simon Josefsson  <jas@extundo.com>
107334         and  Paul Eggert  <eggert@cs.ucla.edu>
107336         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
107337         calls with autoreconf.  Define GL_LIB.
107339 2004-09-14  Karl Berry  <karl@gnu.org>
107341         * config/srclist.txt: unsync setenv.c, sigh.
107343 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
107345         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
107346         Problem reported by Bruno Haible in:
107347         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
107349 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
107351         * config/srclist.txt: Comment out argp-pvh.c.
107353 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
107355         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
107356         in case some system header has #define'd it.  Problem reported by
107357         Soeren D. Schulze in
107358         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
107360 2004-09-09  Karl Berry  <karl@gnu.org>
107362         * regex.[ch]: delete from the root.  These were supposed to be
107363                 synced with emacs cvs, but this has not happened for about
107364                 a year, and anyway nothing else uses emacs regex.[ch].
107365                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
107366                 lib/regex[.ch] is untouched.
107368 2004-09-09  Bruno Haible  <bruno@clisp.org>
107370         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
107372 2004-09-09  Bruno Haible  <bruno@clisp.org>
107374         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
107375         modifications.
107376         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
107378 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
107380         * modules/xvasprintf: New file.
107381         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
107383 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
107385         * lib/xvasprintf.h: New file.
107386         * lib/xvasprintf.c: New file.
107387         * lib/xasprintf.c: New file.
107389 2004-09-08  Bruno Haible  <bruno@clisp.org>
107391         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
107393 2004-09-08  Bruno Haible  <bruno@clisp.org>
107395         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
107396         length is > INT_MAX.
107397         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
107398         more.
107400 2004-09-08  Bruno Haible  <bruno@clisp.org>
107402         * lib/stdint_.h: New file, taken from GNU clisp.
107404 2004-09-08  Bruno Haible  <bruno@clisp.org>
107405             Oskar Liljeblad  <oskar@osk.mine.nu>
107407         * modules/stdint: New file.
107408         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
107410 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
107412         Import from coreutils.
107413         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
107414         strings on unbounded length.  alloca's performance benefits aren't
107415         that important here.
107416         (V_STRDUP): Remove.
107417         (parse_with_separator): New function, with most of the internals
107418         of the old parse_user_spec.  Allow user to omit both user and group,
107419         for compatibility with FreeBSD.
107420         Clone only the user name, not the entire spec.
107421         Do not set *uid, *gid unless entirely successful.
107422         Avoid memory leak in some failing cases.
107423         Fix regression for USER.GROUP reported by Dmitry V. Levin in
107424         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
107425         (parse_user_spec): Rewrite to use parse_with_separator.
107427 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
107429         * modules/userspec: Don't depend on alloca.
107431 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
107433         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
107435 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
107437         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
107438         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
107439         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
107441 2004-08-16  Simon Josefsson  <jas@extundo.com>
107443         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
107444         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
107445         Add --dry-run for --import.
107446         Let user provided command line parameters override configure.ac
107447         settings.
107449 2004-08-12  Simon Josefsson  <jas@extundo.com>
107451         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
107452         as discussed with Paul Eggert in threads rooted at
107453         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
107454         and
107455         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
107456         Before, the test was empty, and relied on ELIDE_CODE in source
107457         code.)
107458         (gl_PREREQ_GETOPT): New macro.
107459         (gl_GETOPT): Use them.
107461 2004-08-12  Simon Josefsson  <jas@extundo.com>
107463         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
107464         * lib/getopt_.h: Renamed from getopt.h.
107466 2004-08-12  Simon Josefsson  <jas@extundo.com>
107468         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
107469         Change default library name from libfoo to libgnu.
107470         Now, if you have a configure.ac that says:
107471                 gl_SOURCE_BASE(gl)
107472                 gl_M4_BASE(gl/m4)
107473                 gl_MODULES(error getopt etcetera)
107474                 gl_INIT
107475         you can import all you need by running:
107476                 ../gnulib/gnulib-tool --import
107478         * modules/getopt (Files): Rename getopt.h to getopt_.h.
107479         (Makefile.am): Rewrite, use logic from argz.
107480         (Include): Use <getopt.h> instead of "getopt.h".
107482 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
107484         * modules/argp (Files): Add m4/unlocked-io.m4.
107485         (Depends-on): Add extensions.
107487 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
107489         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
107490         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
107491         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
107492         Check for program_invocation_name, program_invocation_short_name,
107493         flockfile, funlockfile, features.h, _getopt_long_only_r.
107495 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
107497         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
107498         its complicated substitute.
107499         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
107500         and program_invocation_name.
107501         (__argp_basename) [!_LIBC]: Remove; the only use was
107502         replaced by its body.
107503         (__argp_short_program_name): Change condition from
107504         !defined __argp_short_program_name to
107505         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
107506         to match argp-namefrob.h.
107507         (__argp_failure): Don't assume strerror_r returns char *.
107508         * lib/argp-parse.c (N_): Define unconditionally.
107509         (argp_default_options): Fill out initializers with 0 to avoid
107510         gcc warnings.
107512 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
107514         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
107515         getopt1.c.
107517 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
107519         Merge from coreutils.
107521         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
107523         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
107524         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
107526 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
107528         Merge from coreutils.
107530         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
107531         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
107532         for Reliant Unix 5.43.
107534         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
107535         (union fooround): Use uintmax_t, not long int.
107536         The rest is a merge from libc:
107537         [defined _LIBC]: Include <shlib-compat.h>.
107538         (_obstack) [defined _LIBC]: Remove after 2.3.4.
107540         * lib/settime.c (settime): Recode to avoid warning with
107541         Sun Forte C 6U2.
107543         * lib/strverscmp.c: Convert to UTF-8.
107545 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
107547         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
107548         m4/uintmax_t.m4.
107550 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
107552         * modules/xalloc-die: New file.
107553         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
107555         * modules/md5 (Files): Add m4/uint32_t.m4.
107556         * modules/sha1: Renamed from modules/sha.
107557         (Files):
107558         Rename lib/sha.h to lib/sha1.h.
107559         Rename lib/sha.c to lib/sha1.c.
107560         Rename m4/sha.m4 to m4/sha1.m4.
107561         (lib_SOURCES): Likewise.
107562         (configure.ac): Rename gl_SHA to gl_SHA1.
107563         (Include): sha.h -> sha1.h.
107565 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
107567         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
107568         * m4/sha1.m4: Renamed from sha.m4.
107569         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
107571 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
107573         * lib/obstack.h (obstack_empty_p):
107574         Don't assume that chunk->contents is suitably aligned.
107575         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
107576         Likewise. Problem reported by Benno in
107577         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
107579         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
107580         readable.  This could be improved further but it'd take some work.
107582 2004-08-08  Simon Josefsson  <jas@extundo.com>
107584         * modules/xgethostname (Depends-on): Remove exit and error (not
107585         used).
107587         * modules/getpass-gnu: Add getpass.h.
107588         (Depends-on): Add stdbool.
107589         * modules/getpass: Add getpass.h.
107591 2004-08-08  Simon Josefsson  <jas@extundo.com>
107593         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
107594         Check getpass declaration.
107596 2004-08-08  Simon Josefsson  <jas@extundo.com>
107598         * lib/xgethostname.c: Don't include error.h (not used).
107600         * lib/getpass.h: Add.
107601         * lib/getpass.c: Include getpass.h first.
107603 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
107605         * lib/xalloc-die.c: New file.
107606         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
107607         All uses removed.
107608         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
107609         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
107610         xalloc-die.c.
107611         (_, N_, xalloc_die): Move to xalloc-die.c.
107612         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
107613         so that we needn't mess with xalloc_msg_memory_exhausted.
107615         * lib/sha1.h: Renamed from sha.h.
107616         (SHA1_H): Renamed from _SHA_H.
107617         (sha1_ctx): Renamed from sha_ctx.
107618         (sha1_init_ctx): Renamed from sha_init_ctx.
107619         (sha1_process_block): Renamed from sha_process_block.
107620         (sha1_process_bytes): Renamed from sha_process_bytes.
107621         (sha1_finish_ctx): Renamed from sha_finish_ctx.
107622         (sha1_read_ctx): Renamed from sha_read_ctx.
107623         (sha1_stream): Renamed from sha_stream.
107624         (sha1_buffer): Renamed from sha_buffer.
107625         * lib/sha1.c: Likewise; renamed from sha.c.
107626         Do not include <sys/types.h>.
107627         Include <stddef.h> rather than <stdlib.h>.
107629 2004-08-08  Bruno Haible  <bruno@clisp.org>
107631         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
107632         FILESYSTEM_PREFIX_LEN.
107633         * lib/progreloc.c: Likewise.
107634         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
107636 2004-08-06  Simon Josefsson  <jas@extundo.com>
107638         * modules/progname (Depends-on): Don't depend on stdbool.
107640 2004-08-06  Simon Josefsson  <jas@extundo.com>
107642         * modules/getsubopt: New file.
107643         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107644         getsubopt.
107646 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
107648         More merge from coreutils.
107650         * m4/utimens.m4, m4/utimecmp.m4: New files.
107651         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
107652         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
107653         prereq.m4, sha.m4: Import changes from coreutils.
107655 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
107657         More merge from coreutils.
107658         * modules/raise, modules/readtokens0, modules/utimens:
107659         * modules/utimecmp, module/xnanosleep: New files.
107660         * modules/strftime: Add lib/strftime.h.
107661         Change include from <time.h> to "strftime.h".
107662         * modules/yesno: Add lib/yesno.h.
107663         * modules/backupfile: Remove lib/addext.c.
107664         * modules/euidaccess: Add stat-macros.h.
107665         * modules/canonicalize, modules/euidaccess,
107666         modules/filemode, modules/lchown, modules/makepath,
107667         modules/rmdir, modules/stat: Likewise.
107669 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
107671         Merge from tar.
107672         * lib/argp-help.c (make_hol, hol_append): Don't assume that
107673         SIZE_MAX is a valid preprocessor constant.
107674         (__argp_basename): Change from "#ifndef _LIBC"
107675         to "#ifndef __argp_short_program_name", so that
107676         we don't compile these functions for tar.
107678         More merges from coreutils.
107679         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
107680         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
107681         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
107682         * lib/addext.c: Remove; no longer needed.
107683         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
107684         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
107685         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
107686         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
107687         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
107688         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
107689         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
107690         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
107691         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
107692         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
107693         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
107694         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
107695         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
107696         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
107697         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
107698         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
107699         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
107700         Import changes from coreutils.
107702 2004-08-05  Simon Josefsson  <jas@extundo.com>
107704         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
107706 2004-08-05  Simon Josefsson  <jas@extundo.com>
107708         * m4/getsubopt.m4: New file.
107710 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
107712         Merge from coreutils.
107714         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
107715         * m4/getcwd-path-max.m4: New files.
107717         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
107718         FILESYSTEM_PREFIX_LEN ->
107719         FILE_SYSTEM_PREFIX_LEN.
107720         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
107721         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
107722         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
107723         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
107725         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
107726         prerequisite modules now handle the DOS stuff.
107727         Don't check for unistd.h.
107729 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
107731         Merge from coreutils.
107733         * lib/.gdb-history: Remove; this doesn't belong here.
107735         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
107736         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
107737         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
107738         * lib/getcwd.c: New files.
107740         * lib/dirname.h: Include <stdbool.h>.
107741         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
107742         for consistency with POSIX terminology.  All uses changed.
107743         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
107744         (strip_trailing_slashes): Use bool for booleans.
107745         * lib/stripslash.c (strip_trailing_slashes): Likewise.
107747         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
107748         sometimes returns a positive errno value even when it succeeds.
107749         (print_errno_message) [!LIBC]: Fall back on strerror if
107750         __strerror_r fails.
107752         * lib/path-concat.c (mempcpy): Don't define if a system header defines
107753         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
107754         (longest_relative_suffix): New function.
107755         (path_concat): Use it.  Assume first argument is not NULL.
107756         Port to DOS.  Omit redundant separators.
107757         Report an error instead of returning NULL.
107758         Use mempcpy instead of memcpy.
107759         (xpath_concat): Remove: not declared or used.
107761         * lib/same.h: Include <stdbool.h>
107762         (same_name): Return bool, not int.
107763         * lib/same.c (same_name): Likewise.
107764         (errno): Don't declare; we assume C89 or better now.
107766         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
107767         if not already defined.
107769         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
107770         * lib/dup-safer.c (errno): Likewise.
107772 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
107774         Merge from coreutils.
107775         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
107776         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
107777         * modules/path-concat: Don't depend on strdup.
107779 2004-08-03  Simon Josefsson  <jas@extundo.com>
107781         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
107782         * lib/progname.h: Don't include stdbool.h.
107784 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
107786         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
107787         * MODULES.html.sh (func_all_modules): Remove fatal.
107789 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
107791         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
107793 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
107795         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
107796         working.
107798 2004-08-02  Simon Josefsson  <jas@extundo.com>
107800         * lib/getsubopt.h: New file, with comments from Bruno Haible.
107801         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
107802         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
107804 2004-08-01  Simon Josefsson  <jas@extundo.com>
107806         * lib/xgetdomainname.c: Include stdlib.h, for free().
107808 2004-07-19  Bruno Haible  <bruno@clisp.org>
107810         * MODULES.html.sh (func_all_modules): Add dummy.
107812 2004-07-16  Simon Josefsson  <jas@extundo.com>
107814         * modules/dummy: New file.
107816 2004-07-16  Simon Josefsson  <jas@extundo.com>
107818         * lib/dummy.c: New file.
107820 2004-07-16  Bruno Haible  <bruno@clisp.org>
107822         * lib/backupfile.h: Add extern "C" for C++.
107823         * lib/closeout.h: Likewise.
107824         * lib/copy-file.h: Likewise.
107825         * lib/findprog.h: Likewise.
107826         * lib/full-write.h: Likewise.
107827         * lib/pathname.h: Likewise.
107828         * lib/progname.h: Likewise.
107829         * lib/stpcpy.h: Likewise.
107830         * lib/stpncpy.h: Likewise.
107831         * lib/strcase.h: Likewise.
107832         * lib/strstr.h: Likewise.
107833         * lib/xalloc.h: Likewise.
107835         * lib/mbswidth.h: Add extern "C" for C++.
107836         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
107838 2004-07-13  Robert Millan  <robertmh@gnu.org>
107840         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
107842 2004-07-09  Simon Josefsson  <jas@extundo.com>
107844         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
107845         failed without this.)
107847 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
107849         * modules/chown (Files): Add lib/fchown-stub.c, since
107850         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
107852 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
107854         * lib/fchown-stub.c: New file.
107856 2004-06-24  Jim Meyering  <jim@meyering.net>
107858         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
107860 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
107862         * modules/argz: Omit "#include".
107864         * MODULES.html.sh (func_all_modules): Add calloc, to match
107865         2004-06-01 addition of calloc module.
107867 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
107869         * m4/argz.m4: New file, which is autoupdated from libtool.
107871 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
107873         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
107874         libtool.
107876 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
107878         * config/srclist-update: Don't insist on "USA." before the
107879         close-comment, as libtool omits the period and puts the */ on a
107880         separate line.
107881         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
107882         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
107884 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
107886         * modules/argz: New file.
107887         * MODULES.html.sh (func_all_modules): Add argz.
107889 2004-06-12  Jim Meyering  <jim@meyering.net>
107890         and  Paul Eggert  <eggert@cs.ucla.edu>
107892         * modules/hash (Files): Add lib/xalloc.h.
107893         * modules/pipe (Depends-on): Add wait-process.
107894         * modules/stat (Depends-on): Add xalloc.
107895         * modules/userspec (Files): Add lib/userspec.h.
107896         * modules/xstrto
107898         Upgrade from gettext-0.13.
107899         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
107900         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
107901         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
107903 2004-06-10  Jim Meyering  <jim@meyering.net>
107905         * lib/calloc.c: New file.
107907 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
107909         * lib/getdate.y (yylex): Allow space between sign and number.
107910         Problem reported by Dan Jacobson.
107912 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
107914         Merge from coreutils CVS.
107916         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
107917         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
107918         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
107919         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
107920         xstrtol.m4: Fix copyright date and/or serial number.
107922         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
107923         See if we need an fchown replacement.
107924         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
107925         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
107926         and use the replacement function if we detect either defect.
107928         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
107929         gl_UTIMECMP.
107931 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
107932         and  Jim Meyering  <jim@meyering.net>
107934         Merge from coreutils CVS.
107936         * lib/stat-macros.h: New file, with contents from file-type.h
107937         and coreutils' system.h.
107938         * lib/file-type.c: Include "stat-macros.h".
107939         * lib/file-type.h (file_type): Move all macro definitions to new file,
107940         stat-macros.h.
107942         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
107943         Wrap old code with this conditional.
107944         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
107945         function that does not dereference symlinks.
107946         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
107948         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
107949         dependency problems.
107950         (xreadlink): Accept new arg SIZE, for efficiency.
107951         All decls and uses changed.
107952         * lib/xreadlink.h: Include <stddef.h>, for size_t.
107954         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
107955         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
107957         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
107958         sysexits.h.
107960 2004-06-01  Jim Meyering  <jim@meyering.net>
107962         * m4/calloc.m4: New file.
107964 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
107966         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
107967         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
107968         Also, fix a typo in a diagnostic.
107970 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
107972         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
107973         or AC_FUNC_REALLOC.
107975 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
107977         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
107978         macros to be defined.
107979         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
107980         the allocator returns NULL because the requested size is zero.
107982 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
107984         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
107985         var.  Add comment explaining why libc still defines it.  This
107986         merges the following patch from glibc:
107987         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
107989 2004-05-20  Andreas Schwab  <schwab@suse.de>
107991         * m4/free.m4: Replace free if it not known to work, not the other
107992         way round.
107994 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
107996         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
107997         present in glibc since revision 1.1 of this file.
107998         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
107999         obstack_alignment_mask, obstack_alloc, obstack_base,
108000         obstack_blank, obstack_blank_fast, obstack_chunk_size,
108001         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
108002         obstack_grow0, obstack_init, obstack_int_grow,
108003         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
108004         obstack_next_free, obstack_object_size, obstack_ptr_grow,
108005         obstack_ptr_grow_fast, obstack_room): Remove declarations of
108006         nonexistent functions.
108008 2004-05-18  Karl Berry  <karl@gnu.org>
108010         * config/srclist.txt: break link for vasnprintf.c.
108012 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
108014         Port obstack to the AS/400, where pointers are 16 bytes wide and
108015         you cannot cast an integer to a valid pointer.  This patch is
108016         currently waiting to be integrated into glibc; see
108017         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
108019         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
108020         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
108021         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
108022         (struct obstack): temp member is now a union of a pointer and
108023         an integer, instead of an integer.  All integer uses changed.
108024         This does not affect the physical layout of struct obstack,
108025         except on hosts (like the AS/400) where the size or alignment of
108026         void * is greater than that of ptrdiff_t.
108027         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
108028         __STDC__)]: Store temporary in pointer member of union, not
108029         integer member.
108030         * lib/obstack.c: Include <stddef.h>, for offsetof.
108031         (struct fooalign): Remove; it doesn't need a name.
108032         (union fooround): Change double to long double, and add void *.
108033         (DEFAULT_ALIGNMENT): Use offsetof to compute.
108034         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
108035         not a macro.  Hence the values are always int; so remove all
108036         casts-to-int in uses.
108038 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
108040         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
108041         we can get this patch merged into glibc.
108043 2004-05-17  Derek R. Price  <derek@ximbiot.com>
108044             Paul Eggert  <eggert@cs.ucla.edu>
108046         * m4/argp: Depend on alloca.
108048 2004-05-17  Derek R. Price  <derek@ximbiot.com>
108049             Paul Eggert  <eggert@cs.ucla.edu>
108051         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
108052         freecoding.
108054 2004-05-17  Bruno Haible  <bruno@clisp.org>
108056         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
108057         precision that consists of a '.' followed by an empty digit string.
108058         Patch by Tor Lillqvist <tml@iki.fi>.
108060 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
108062         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
108063         for backward compatibility with older code.  We need our own
108064         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
108065         it under some other name, and our alloca.h will define it.
108067 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
108068             Derek Price  <derek@ximbiot.com>
108070         * lib/alloca.c: Include <alloca.h>, to get our interface.
108071         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
108072         include <alloca.h> first.  Use C89 prototype for alloca; this
108073         requires including <stddef.h> for size_t.  Use extern "C" if C++.
108074         Use #elif for simplicity, since we can assume C89 now.
108075         Don't try to source the system alloca.h since it will not be found
108076         and to prevent recursively including its replacement.
108077         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
108078         * lib/regex.c: Likewise.
108080 2004-05-16  Derek Price  <derek@ximbiot.com>
108081             Paul Eggert  <eggert@cs.ucla.edu>
108083         getline cleanup.  This changes the getndelim2 API: both order of
108084         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
108085         no delimiter).
108087         * lib/getline.c: Don't include stddef.h or stdio.h, since our
108088         interface does that.
108089         (getline): Always use getdelim, so that we don't have two
108090         copies of this code.
108091         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
108092         if available.
108093         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
108094         (GETNDELIM2_MAXIMUM): New macro.
108095         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
108096         instead of the old practice of delim2==0.  All callers changed.
108097         Return -1 on overflow, instead of returning junk.
108098         Do not set *linesize unless allocation succeeds.
108099         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
108100         that we include sys/types.h.
108101         * lib/getnline.h: Likewise.
108102         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
108103         (getndelim2): Reorder arguments.
108104         * lib/getnline.c (getnline, getndelim):
108105         Don't discard the NMAX argument.
108106         (getnline): Invoke getndelim, to avoid code duplication.
108107         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
108108         of (size_t) -1 by callers of the getnline family.
108110 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
108112         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
108113         Check for gettimeofday.
108114         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
108115         Check for settimeofday, stime.
108117 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
108119         * lib/nanosleep.c (suspended): Change its type from int to
108120         sig_atomic_t volatile.
108121         (first_call): Make it private to rpl_nanosleep, and have it
108122         be zero initially as that's a bit faster.
108123         (my_usleep): Round up fractional times instead of truncating them,
108124         as this is the usual meaning for 'sleep'.
108126         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
108127         doesn't work.
108128         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
108129         (ENOSYS): Define if not defined.
108130         (settime): Fall back on stime if it exists and settimeofday fails.
108131         But don't bother with fallbacks if a method fails with errno == EPERM.
108133 2004-05-11  Jim Meyering  <jim@meyering.net>
108135         Prior to this change, the save_cwd caller required read access to the
108136         current directory on most systems (ones with the fchdir function).
108138         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
108139         fails, try write-only, and finally, resort to using xgetcwd.
108141 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
108143         * lib/obstack.c, obstack.h: Import changes from libc.
108145 2004-04-28  Bruno Haible  <bruno@clisp.org>
108147         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
108148         also implicitly appends .exe to executables.
108149         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
108150         accepts Windows pathnames.
108151         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
108152         Treat Cygwin like Windows, since it now accepts Windows pathnames.
108153         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
108154         Treat Cygwin like Windows, since it now accepts Windows pathnames.
108155         Reported by Derek Robert Price <derek@ximbiot.com>.
108157 2004-04-21  Karl Berry  <karl@gnu.org>
108159         * config/srclist.txt (localcharset.c): break sync.
108161 2004-04-20  Paul Eggert  <eggert@twinsun.com>
108163         * m4/host-os.m4: Add a copyright notice.
108165 2004-04-20  Jim Meyering  <jim@meyering.net>
108167         Change UTILS_ to gl_ in AC_DEFINE'd names.
108168         Change utils_- and jm_-prefixed variables, too.
108169         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
108170         UTILS_FUNC_MKDIR_TRAILING_SLASH.
108171         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
108173         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
108174         Don't emit trailing blanks.
108175         Also rename jm_-prefixed variables to have gl_ prefix.
108177         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
108178         Also rename jm_-prefixed variables to have gl_ prefix.
108180         * m4/jm-macros.m4: Reflect the renamings.
108181         * m4/prereq.m4: Likewise.
108183 2004-04-20  Jim Meyering  <jim@meyering.net>
108185         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
108186         memory.
108188 2004-04-20  Jim Meyering  <jim@meyering.net>
108189             Bruno Haible  <bruno@clisp.org>
108191         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
108192         memory when realloc fails.
108194 2004-04-19  Jim Meyering  <jim@meyering.net>
108196         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
108197         now that readutmp.c may call `free (0)'.
108199 2004-04-19  Bruno Haible  <bruno@clisp.org>
108201         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
108202         * m4/inttypes_h.m4: Likewise.
108203         * m4/stdint_h.m4: Likewise.
108204         * m4/intmax_t.m4: Likewise.
108205         * m4/uintmax_t.m4: Likewise.
108207 2004-04-18  Jim Meyering  <jim@meyering.net>
108209         * m4/prereq.m4: Don't forbid jm_ prefix.
108211         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
108212         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
108213         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
108214         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
108215         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
108216         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
108217         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
108218         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
108219         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
108220         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
108221         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
108222         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
108223         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
108224         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
108225         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
108226         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
108227         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
108228         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
108229         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
108231 2004-04-18  Jim Meyering  <jim@meyering.net>
108233         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
108234         failure, don't leak memory and do call END_UTMP_ENT.
108236 2004-04-16  Jim Meyering  <jim@meyering.net>
108238         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
108239         coreutils' stat program.
108240         (gl_PREREQ): Don't require jm_PREREQ_STAT.
108242 2004-04-11  Paul Eggert  <eggert@twinsun.com>
108244         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
108245         C89.
108246         (CHAR_BIT): Remove, since we assume C89.
108247         Include <stdint.h> if available, as per current Autoconf CVS advice.
108249 2004-03-31  Jim Meyering  <jim@meyering.net>
108251         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
108252         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
108253         * m4/xalloc.m4: Likewise.
108255 2004-03-30  Paul Eggert  <eggert@twinsun.com>
108257         Merge from coreutils.
108259         * m4/inttostr.m4: New file.
108260         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
108261         Require AM_STDBOOL_H and gl_TIMESPEC instead.
108262         Require gl_CLOCK_TIME.
108263         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
108265 2004-03-30  Paul Eggert  <eggert@twinsun.com>
108267         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
108268         not bool, to be more consistent with Unix conventions.
108269         Suggested by Bruno Haible.
108271         Merge from coreutils.
108273         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
108274         * lib/umaxtostr.c: New files.
108276         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
108277         the usual <time.h> dance.
108278         (get_date): Change signature to support fractional time stamps.
108279         All callers changed.
108280         * lib/getdate.y: Include "getdate.h" first, as we can now
108281         assume C89 and don't need to worry about 'const'.
108282         Similarly, include "unlocked-io.h" near start, not in middle.
108283         Include <limits.h>.
108284         (textint.value): Use long int rather than int.
108285         (textint.digits): Use size_t rather than int.
108286         (BILLION, LOG10_BILLION): New constants.
108287         (parser_control): New member rel_ns.  Members day_ordinal,
108288         time_zone, month, day, hour, minutes, rel_year, rel_month,
108289         rel_day, rel_hour, rel_minutes, rel_seconds
108290         are now long int, not int.  Member seconds is now struct timespec,
108291         not int.  New member timespec_seen.  Members dates_seen, days_seen,
108292         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
108293         not int.
108294         (%union.intval): Now long int, not int.
108295         New member timespec.
108296         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
108297         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
108298         (spec): Now is a timespec or an item list.
108299         (timespec, items): New nonterminals.
108300         (time, rel, relunit, number, get_date):
108301         Add support for fractional seconds.
108302         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
108303         (gmtime, localtime, mktime): Remove decls; not needed with C89.
108304         (to_hour): First arg is now long int, not int.
108305         (to_year): Returns long int, not int.
108306         Don't treat year -70 like 70.
108307         (tm_diff): Returns long int, not int.
108308         (lookup_word): Use bool instead of int when appropriate.
108309         (yylex): Use size_t for count, not int.
108310         Detect overflow when parsing large integer constants.
108311         Add support for fractions.
108312         (get_date): Make pointers 'const' if possible.
108313         Use more-portable code to detect integer overflow.
108314         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
108315         Don't use ctime; it's not reliable if the year has >4 digits.
108317         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
108318         This is for compatibility with BSD.
108320         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
108321         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
108322         From coreutils' system.h.
108324         * lib/userspec.c: Don't include "posixver.h".
108325         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
108326         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
108327         compatible extension.  Simplify code by removing a boolean int
108328         that was always nonzero if a string was nonnull.
108330 2004-03-30  Jim Meyering  <jim@meyering.net>
108332         Merge from coreutils.
108334         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
108335         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
108336         on some systems one must include <grp.h> before it.
108337         Reported by Christian Krackowizer.
108339 2004-03-30  Jim Meyering  <jim@meyering.net>
108341         Merge from coreutils.
108343         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
108345         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
108346         an empty input stream.
108348         * lib/readtokens.c: Include <stdbool.h>.
108349         (readtoken): Use `size_t' rather than int/long.
108350         All callers adjusted.
108351         Use `bool' rather than `int' where appropriate.
108352         Use memset rather than an explicit loop.
108353         Use x2nrealloc rather than xrealloc.
108354         Allow the use of `\0' as a delimiter.
108355         (readtokens): Likewise.
108356         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
108358 2004-03-30  Jim Meyering  <jim@meyering.net>
108360         * m4/realloc.m4: Remove file, since now it does no more than
108361         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
108362         the `configure.ac' section of module/realloc.
108363         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
108365 2004-03-30  Bruno Haible  <bruno@clisp.org>
108367         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
108368         nonnull.
108370 2004-03-29  Paul Eggert  <eggert@twinsun.com>
108372         Merge changes to getloadavg.c from coreutils and Emacs.
108374         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
108375         Define to an expression, not to the empty string.
108376         Include cloexec.h and xalloc.h.
108377         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
108378         Use set_cloexec_flag rather than rolling our own.
108379         * lib/cloexec.c, lib/cloexec.h: New files.
108381 2004-03-29  Paul Eggert  <eggert@twinsun.com>
108383         * m4/cloexec.m4: New file.
108385 2004-03-18  Paul Eggert  <eggert@twinsun.com>
108387         * lib/getopt.h: Sync with libc CVS.
108389 2004-03-18  Paul Eggert  <eggert@twinsun.com>
108390             Bruno Haible  <bruno@clisp.org>
108392         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
108393         mbswidth.
108395 2004-03-18  Paul Eggert  <eggert@twinsun.com>
108396             Bruno Haible  <bruno@clisp.org>
108398         * lib/mbswidth.h: Include <wchar.h> only if
108399         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
108400         <wchar.h>.
108401         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
108403 2004-03-09  Paul Eggert  <eggert@twinsun.com>
108405         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
108406         Sync with libc CVS.
108407         * lib/getopt_int.h: New file, also synced from libc.
108409 2004-03-09  Paul Eggert  <eggert@twinsun.com>
108411         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
108412         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
108413         Bring back getopt.c, getopt.h, getopt1.c.
108415 2004-03-07  Paul Eggert  <eggert@twinsun.com>
108417         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
108418         All uses changed.  Check for sa_sigaction member; this fixes
108419         a bug first reported by Jason Andrade in
108420         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
108422 2004-03-07  Paul Eggert  <eggert@twinsun.com>
108424         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
108425         '#if' expressions.  Unlike the code it replaces, it does not
108426         depend on (defined _SC_PAGESIZE).  However, it does depend on
108427         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
108428         first reported by Jason Andrade in
108429         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
108431 2004-02-25  Simon Josefsson  <jas@extundo.com>
108433         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
108435 2004-02-25  Simon Josefsson  <jas@extundo.com>
108437         * lib/strdup.h: New file.
108438         * lib/strdup.c: Include it.
108439         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
108440         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
108442 2004-02-23  Karl Berry  <karl@gnu.org>
108444         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
108445         (from fencepost.gnu.org:/gd/gnuorg).
108447 2004-02-23  Karl Berry  <karl@gnu.org>
108449         * config/srclistvars.sh (GNUORG) [karl]: redefine.
108450         * config/srclist.txt: add maintain/standards documents.
108452 2004-02-18  Bruno Haible  <bruno@clisp.org>
108454         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
108455         Reported by Derek Robert Price <derek@ximbiot.com>.
108457 2004-02-16  Karl Berry  <karl@gnu.org>
108459         * config/mkinstalldirs, install-sh: update from automake.
108461 2004-02-06  Karl Berry  <karl@gnu.org>
108463         * m4/po.m4: update from gettext 0.14.1.
108465 2004-02-06  Karl Berry  <karl@gnu.org>
108467         * lib/config.charset: update from gettext 0.14.1.
108469 2004-02-05  Paul Eggert  <eggert@twinsun.com>
108471         Add comments and code, prompted by suggestions from Bruno Haible
108472         for sh-quote.
108473         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
108474         describing the enum quoting_style values.
108475         * lib/quotearg.c (quotearg_alloc): New function.
108476         (quotearg_buffer_restyled): Treat lone { and } as special.
108477         Treat = as special.  Work around bug with older shells
108478         that "see" a '\' that is really the 2nd byte of a multibyte char.
108479         Quote empty string with shell_quoting_style.
108481 2004-02-03  Bruno Haible  <bruno@clisp.org>
108483         * m4/pipe.m4: New file, from GNU gettext.
108485 2004-02-03  Bruno Haible  <bruno@clisp.org>
108487         * lib/pipe.h: New file, from GNU gettext.
108488         * lib/pipe.c: New file, from GNU gettext.
108490 2004-01-27  Bruno Haible  <bruno@clisp.org>
108492         * m4/execute.m4: New file, from GNU gettext.
108494 2004-01-27  Bruno Haible  <bruno@clisp.org>
108496         * lib/execute.h: New file, from GNU gettext.
108497         * lib/execute.c: New file, from GNU gettext.
108498         * lib/w32spawn.h: New file, from GNU gettext.
108500 2004-01-24  Paul Eggert  <eggert@twinsun.com>
108502         Merge from diffutils.
108504         * lib/file-type.c (file_type): Add typed memory objects.
108505         * lib/file-type.h (S_TYPEISTMO): New macro.
108507         * lib/c-stack.h (c_stack_action): Remove argv argument.
108508         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
108509         (die): Don't calculate message unless segv_action returns.
108510         (get_stack_location, min_address_from_argv, max_address_from_argv,
108511         volatile stack_base, volatile_stack_size): Remove.
108512         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
108513         that every segmentation violation is a stack overflow.  (Ouch!)
108514         See Debian bug 136249 (still outstanding) for more info about why
108515         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
108517 2004-01-24  Paul Eggert  <eggert@twinsun.com>
108519         Exit-status fix from coreutils.
108521         Use exit_failure consistently in place of EXIT_FAILURE,
108522         so that program exit statuses are consistent on failure.
108524         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
108525         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
108526         * lib/argmatch.h: Comment fix to match the above.
108527         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
108528         Now a macro referring to exit_failure, instead of a separate
108529         variable.  Include "exitfail.h" to get it.
108530         * lib/xstrtol.h: Include "exitfail.h".
108531         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
108533         * lib/long-options.c (parse_long_options): Use prototype
108534         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
108535         for clarity.
108537 2004-01-21  Jim Meyering  <jim@meyering.net>
108539         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
108540         so as not to conflict with a different-sized __mktime_internal
108541         function in GNU libc.
108542         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
108543         Problem building statically-linked `ls' reported by Michael Brunnbauer.
108545 2004-01-20  Karl Berry  <karl@gnu.org>
108547         * config/config.guess: update from config.
108549         * config/srclistvars.sh: GNUWWWLICENSES for karl.
108551 2004-01-20  Bruno Haible  <bruno@clisp.org>
108553         Safer stack allocation.
108554         * lib/setenv.c: Include allocsa.h.
108555         (alloca): Remove fallback definition.
108556         (freea): Remove macro.
108557         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
108558         instead of freea.
108560 2004-01-20  Bruno Haible  <bruno@clisp.org>
108562         * m4/eealloc.m4: New file, from GNU gettext.
108564 2004-01-20  Bruno Haible  <bruno@clisp.org>
108566         * m4/allocsa.m4: New file, from GNU gettext.
108568 2004-01-20  Bruno Haible  <bruno@clisp.org>
108570         * lib/xallocsa.h: New file, from GNU gettext.
108571         * lib/xallocsa.c: New file, from GNU gettext.
108573 2004-01-20  Bruno Haible  <bruno@clisp.org>
108575         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
108577 2004-01-20  Bruno Haible  <bruno@clisp.org>
108579         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
108580         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
108581         specially.
108583 2004-01-20  Bruno Haible  <bruno@clisp.org>
108585         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
108586         patch.
108588 2004-01-20  Bruno Haible  <bruno@clisp.org>
108590         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
108592 2004-01-20  Bruno Haible  <bruno@clisp.org>
108594         * lib/eealloc.h: New file.
108596 2004-01-20  Bruno Haible  <bruno@clisp.org>
108598         * lib/binary-io.h: Avoid warnings on Cygwin.
108600 2004-01-20  Bruno Haible  <bruno@clisp.org>
108602         * lib/allocsa.h: New file, from GNU gettext.
108603         * lib/allocsa.c: New file, from GNU gettext.
108605 2004-01-18  Karl Berry  <karl@gnu.org>
108607         * doc/gpl.texi, doc/lgpl.texi: new files.
108609 2004-01-18  Karl Berry  <karl@gnu.org>
108611         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
108612         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
108614 2004-01-15  Paul Eggert  <eggert@twinsun.com>
108616         Merge from coreutils.
108618         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
108619         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
108620         (gl_DEFAULT_POSIX2_VERSION): Move
108621         the documentation from 'configure' into 'config.hin',
108622         so that 'configure --help' isn't burdened by it and
108623         we don't have to worry about its formatting there.
108624         Reword the documentation so that it's more succinct
108625         and can be run together into a single paragraph.
108626         * m4/same.m4 (gl_SAME): Check for pathconf.
108628 2004-01-15  Paul Eggert  <eggert@twinsun.com>
108630         Merge from coreutils.
108632         * lib/posixver.c: Include posixver.h.
108634         * lib/same.c: Include <stdbool.h>, <limits.h>.
108635         (_POSIX_NAME_MAX): Define if not defined.
108636         (MIN): New macro.
108637         (same_name): If file names are silently truncated, report
108638         that the file names are the same if they are the same after
108639         the silent truncation.
108641         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
108642         conversion function.
108643         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
108644         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
108645         longer needed.
108647 2004-01-15  Jim Meyering  <jim@meyering.net>
108649         Merge from coreutils.
108651         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
108652         if no library is required.
108653         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
108654         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
108655         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
108656         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
108657         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
108658         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
108659         value, $ac_cv_search_crypt, if it's "none required".
108660         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
108661         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
108662         not gl_FUNC_GETLOADAVG.
108663         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
108664         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
108666 2004-01-15  Jim Meyering  <jim@meyering.net>
108668         Merge from coreutils.
108670         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
108671         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
108672         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
108674         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
108675         optional configure-time default.
108677         * lib/version-etc.c (version_etc_copyright): Update copyright date.
108679         * lib/xreadlink.c (xreadlink): Correct outdated comment.
108681 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
108683         Merge from coreutils.
108685         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
108686         value, $ac_cv_search_nanosleep, if it's "none required".
108688 2004-01-14  Paul Eggert  <eggert@twinsun.com>
108690         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
108691         with like-named macro in fnmatch.c.
108692         (EXT): Use an internal constant instead.
108694         Merge fnmatch patches from glibc.
108695         * lib/fnmatch.c (mbsinit): Remove define.
108696         Add libc_hidden_ver (__fnmatch, fnmatch).
108697         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
108698         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
108700 2004-01-14  Karl Berry  <karl@gnu.org>
108702         * config/install-sh: update from automake.
108704 2004-01-13  Karl Berry  <karl@gnu.org>
108706         * config/install-sh: update from automake.
108708 2004-01-09  Karl Berry  <karl@gnu.org>
108710         * config/install-sh: update from automake.
108712 2004-01-05  Karl Berry  <karl@gnu.org>
108714         * config/config.{sub,guess}: update from config.
108716 2003-12-31  Karl Berry  <karl@gnu.org>
108718         * config/depcomp: update from automake.
108720 2003-12-14  Karl Berry  <karl@gnu.org>
108722         * lib/config.charset: update from gettext-runtime.
108724 2003-12-03  Paul Eggert  <eggert@twinsun.com>
108726         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
108727         Bug reported by Alfred M. Szmidt.
108729 2003-12-03  Bruno Haible  <bruno@clisp.org>
108731         * m4/gettext.m4: Upgrade from gettext-0.13.
108732         * m4/po.m4: Upgrade from gettext-0.13.
108733         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
108734         * m4/intmax.m4: New file, from gettext-0.13.
108735         * m4/printf-posix.m4: New file, from gettext-0.13.
108737 2003-11-29  Karl Berry  <karl@gnu.org>
108739         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
108741 2003-11-25  Paul Eggert  <eggert@twinsun.com>
108742             Bruno Haible  <bruno@clisp.org>
108744         * lib/printf-parse.h: Don't include sys/types.h.
108745         (ARG_NONE): New macro.
108746         (char_directive): Change type of *arg_index fields to size_t.
108747         * lib/printf-parse.c: Don't include sys/types.h.
108748         (SSIZE_MAX): Remove macro.
108749         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
108750         Remove unnecessary overflow check.
108751         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
108752         fields.
108754 2003-11-25  Bruno Haible  <bruno@clisp.org>
108756         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
108758 2003-11-25  Bruno Haible  <bruno@clisp.org>
108760         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
108761         gt_TYPE_SSIZE_T.
108763 2003-11-24  Paul Eggert  <eggert@twinsun.com>
108765         * modules/alloca: Remove dependency on xalloc.
108767 2003-11-24  Paul Eggert  <eggert@twinsun.com>
108769         * lib/alloca.c: Remove dependency on xalloc module.
108770         (xalloc_die): Remove.
108771         (memory_full) [!defined emacs]: New macro.
108772         [!defined emacs]: Don't include xalloc.h.
108773         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
108774         address arithmetic overflows.  Change datatypes a bit to avoid
108775         unnecessary casts.
108777 2003-11-22  Jim Meyering  <jim@meyering.net>
108779         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
108780         s/size/size_t/.
108782 2003-11-21  Karl Berry  <karl@gnu.org>
108784         * config/config.{sub,guess}: update from config.
108786 2003-11-18  Karl Berry  <karl@gnu.org>
108788         * config/config.{sub,guess}: update from config.
108790         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
108792 2003-11-17  Paul Eggert  <eggert@twinsun.com>
108794         * README: Mention that S+T cannot overflow if S is the size of
108795         an existing object and T is sufficiently small.
108797 2003-11-17  Jim Meyering  <jim@meyering.net>
108799         On systems without utime and without a utimes function capable of
108800         dealing with a NULL struct utimbuf* argument, this utime replacement
108801         could -- in unusual circumstances -- leak a file descriptor.
108802         * lib/utime.c: Include <unistd.h> and <errno.h>.
108803         (utime_null): Be sure to close `fd' and to preserve errno.
108804         Reported by Geoff Collyer via Arnold Robbins.
108806 2003-11-17  Bruno Haible  <bruno@clisp.org>
108808         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
108809         (Depends-on): Add xsize.
108811 2003-11-17  Bruno Haible  <bruno@clisp.org>
108813         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
108815 2003-11-17  Bruno Haible  <bruno@clisp.org>
108817         * lib/vasnprintf.c (alloca): Remove fallback definition.
108818         (freea): Remove definition.
108819         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
108820         Reported by Paul Eggert.
108822 2003-11-16  Paul Eggert  <eggert@twinsun.com>
108823             Bruno Haible  <bruno@clisp.org>
108825         Protect against address arithmetic overflow.
108826         * lib/printf-args.h: Include stddef.h.
108827         (arguments): Change type of field 'count' to size_t.
108828         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
108829         'unsigned int' where appropriate.
108830         * lib/printf-parse.h: Include sys/types.h.
108831         (char_directive): Change type of *arg_index fields to ssize_t.
108832         (char_directives): Change type of fields 'count', max_*_length to
108833         size_t.
108834         * lib/printf-parse.c: Include sys/types.h and xsize.h.
108835         (SSIZE_MAX): Define fallback value.
108836         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
108837         instead of 'int' where appropriate. Check a_allocated, d_allocated
108838         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
108839         * lib/vasnprintf.c: Include xsize.h.
108840         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
108841         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
108842         overflow. Avoid wraparound when converting a width or precision from
108843         decimal to binary.
108845 2003-11-16  Bruno Haible  <bruno@clisp.org>
108847         Update from GNU gettext.
108848         * lib/printf-parse.c: Generalize to it can be compiled for wide
108849         strings.
108850         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
108851         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
108852         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
108853         SNPRINTF): New macros.
108854         Don't include <alloca.h> if the file is used inside libintl.
108855         (local_wcslen): New function, for Solaris 2.5.1.
108856         (VASNPRINTF): Use it instead of wcslen.
108858 2003-11-16  Bruno Haible  <bruno@clisp.org>
108860         * lib/xsize.h (xmax): New function.
108861         (xsum, xsum3, xsum4): Declare as "pure" functions.
108863 2003-11-12  Paul Eggert  <eggert@twinsun.com>
108865         * modules/xalloc (Files): Undo latest change, since xalloc.h
108866         no longer needs SIZE_MAX or PTRDIFF_MAX.
108868 2003-11-12  Paul Eggert  <eggert@twinsun.com>
108870         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
108871         gl_PTRDIFF_MAX.
108873 2003-11-12  Paul Eggert  <eggert@twinsun.com>
108875         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
108876         "return", to pacify some unknown compiler.  Problem reported
108877         by Joerg Schilling.
108879 2003-11-12  Paul Eggert  <eggert@twinsun.com>
108881         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
108882         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
108883         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
108884         heuristic is just as accurate as far as we know, and it removes a
108885         dependency on size_max.m4 and ptrdiff_max.m4.
108887 2003-11-11  Bruno Haible  <bruno@clisp.org>
108889         * modules/xsize (Files): Add m4/size_max.m4.
108890         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
108892 2003-11-11  Bruno Haible  <bruno@clisp.org>
108894         * m4/size_max.m4: New file.
108895         * m4/ptrdiff_max.m4: New file.
108896         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
108897         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
108898         (gl_XALLOC): Invoke it.
108900 2003-11-11  Bruno Haible  <bruno@clisp.org>
108902         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
108903         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
108904         defined.
108906 2003-11-10  Paul Eggert  <eggert@twinsun.com>
108908         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
108909         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
108910         rejected some allocations of exactly SIZE_MAX - 2 bytes.
108911         From Bruno Haible.
108912         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
108913         not (size_t) -1, since it's defined here.
108915 2003-11-09  Karl Berry  <karl@gnu.org>
108917         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
108919 2003-11-06  Paul Eggert  <eggert@twinsun.com>
108921         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
108922         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
108923         Reject sizes of exactly SIZE_MAX bytes.
108924         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
108925         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
108927 2003-11-05  Bruno Haible  <bruno@clisp.org>
108929         * lib/xsize.h: Include limits.h, to avoid a possible collision with
108930         SIZE_MAX defined in <limits.h> on Solaris.
108932 2003-11-04  Jim Meyering  <jim@meyering.net>
108934         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
108935         variable names, rather than @VAR@.
108936         * modules/poll: Likewise.
108938 2003-11-04  Bruno Haible  <bruno@clisp.org>
108940         * modules/xsize: New file.
108941         * modules/linebreak: Depend on xsize.
108942         * MODULES.html.sh (func_all_modules): Add xsize.
108944 2003-11-04  Bruno Haible  <bruno@clisp.org>
108946         * m4/xsize.m4: New file.
108948 2003-11-04  Bruno Haible  <bruno@clisp.org>
108950         * lib/xsize.h: New file.
108951         * lib/linebreak.c: Include xsize.h.
108952         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
108953         argument for overflow.
108954         Suggested by Paul Eggert.
108956 2003-11-03  Karl Berry  <karl@gnu.org>
108958         * config/config.{guess,sub}: update from config.
108960 2003-11-03  Jim Meyering  <jim@meyering.net>
108962         * modules/userspec (lib_SOURCES): Add userspec.h.
108963         (Include): Add "userspec.h".
108964         Improve description.
108966 2003-11-03  Jim Meyering  <jim@meyering.net>
108968         * lib/userspec.c: Include "userspec.h".
108969         * lib/userspec.h: New file.
108971 2003-11-03  Bruno Haible  <bruno@clisp.org>
108973         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
108975 2003-11-03  Bruno Haible  <bruno@clisp.org>
108977         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
108978         available, to avoid (extremely rare) race condition.
108979         Suggested by Paul Eggert.
108981 2003-11-02  Karl Berry  <karl@gnu.org>
108983         * config/srclist.txt (vasprintf.c): sync broken, sigh.
108985 2003-10-31  Paul Eggert  <eggert@twinsun.com>
108987         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
108988         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
108989         (read_filesystem_list): Set and use me_type_malloced.
108990         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
108991         whatever the type happens to be), for brevity and consistency.
108992         Check for size calculation overflow on Alphas running OSF/1.
108994 2003-10-31  Jim Meyering  <jim@meyering.net>
108996         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
108998         * lib/linebuffer.c: Include <string.h> for declaration of memset.
109000 2003-10-30  Paul Eggert  <eggert@twinsun.com>
109001             Bruno Haible  <bruno@clisp.org>
109003         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
109004         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
109006 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
109008         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
109009         netbsd*-gnu*.  Suggested by Robert Millan.
109011 2003-10-29  Paul Eggert  <eggert@twinsun.com>
109013         * modules/group-member: Depend on stdbool.
109015 2003-10-29  Paul Eggert  <eggert@twinsun.com>
109017         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
109019 2003-10-29  Paul Eggert  <eggert@twinsun.com>
109021         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
109022         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
109023         after the 'gnu' in these cases.  This fixes some bugs in the
109024         previous change, and is based on suggestions by Robert Millan.
109026 2003-10-29  Paul Eggert  <eggert@twinsun.com>
109028         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
109029         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
109030         no longer needed.
109031         * lib/quotearg.c (quotearg_n_options): Use it.
109032         * lib/group-member.c: Include <stdbool.h>.
109033         (free_group_info): Arg is now const *; don't free arg.
109034         (get_group_info): Now returns bool and accepts struct group_info *,
109035         rather than returning a malloc'ed struct group_info *.
109036         All uses changed.  Check for overflow in internal size calculation.
109038         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
109039         rather than xmalloc/xrealloc.
109040         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
109041         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
109042         conformance bug: the old code used a pointer after freeing the
109043         storage that it addressed.
109044         * lib/hash.c (hash_initialize): Simplify the code by using
109045         xalloc_oversized rather than doing it by hand.
109046         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
109047         the buffer preserved.  Use free and xmalloc instead.
109048         * lib/quotearg.c (quotearg_n_options): Likewise.
109049         Use a simpler test for size overflow.  Don't use xalloc_oversized
109050         because unsigned int might be wider than size_t (!); this suggests
109051         that we should switch from unsigned int to size_t for slot numbers.
109053 2003-10-28  Paul Eggert  <eggert@twinsun.com>
109055         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
109056         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
109057         NetBSD kernels.  Requested by Richard Stallman.
109059 2003-10-27  Paul Eggert  <eggert@twinsun.com>
109061         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
109062         to allocate the returned structure.  Do not allocate a subarray,
109063         as x2nrealloc will do that.
109064         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
109065         instead of xnrealloc.
109066         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
109068 2003-10-27  Bruno Haible  <bruno@clisp.org>
109070         * lib/stdbool_.h: Better support for BeOS.
109072 2003-10-26  Paul Eggert  <eggert@twinsun.com>
109074         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
109075         now uses inline.
109077 2003-10-26  Paul Eggert  <eggert@twinsun.com>
109079         * lib/xalloc.h (xalloc_oversized): New static inline function, for
109080         callers that want to do their own size-overflow checking.  Include
109081         <stdbool.h>, since xalloc_oversized returns bool.
109082         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
109083         to use xalloc_oversized.
109085         Add two functions x2realloc, x2nrealloc, for programs that grow
109086         arrays dynamically by doubling their sizes.
109087         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
109088         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
109089         New functions.
109091         Port to C99 semantics for 'inline' of external functions.
109092         Bug reported by Bruno Haible.
109093         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
109094         with the old contents of xnmalloc.
109095         (xnmalloc, xmalloc): Use it.
109096         (xnrealloc_inline): New static inline function,
109097         with the old contents of xnrealloc.
109098         (xnrealloc, xrealloc): Use it.
109100         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
109101         that.
109103 2003-10-26  Karl Berry  <karl@gnu.org>
109105         * config/srclist.txt (COPYING.DOC): no longer available from
109106         /gd/gnuorg; don't know where the ultimate source is.
109108 2003-10-25  Paul Eggert  <eggert@twinsun.com>
109110         Fix several address-calculation bugs in the hash modules,
109111         plus some minor code cleanup.
109113         * lib/hash.h: Include <stdbool.h>, for bool.
109114         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
109115         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
109116         hash_get_n_entries, hash_get_max_bucket_length,
109117         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
109118         hash_rehash): Use size_t rather than unsigned.
109119         * lib/hash.c (struct hash_table, hash_get_n_buckets,
109120         hash_get_n_buckets_used, hash_get_n_entries,
109121         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
109122         hash_get_entries, hash_do_for_each, hash_string, is_prime,
109123         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
109124         Likewise.
109125         (SIZE_MAX): Define if not defined.
109126         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
109127         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
109128         hash_print):
109129         Use const * when possible.
109130         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
109131         (check_tuning): Fix bug: if tuning parameters were very close to
109132         0 or 1, rounding errors could have caused subscript violations.
109133         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
109134         (hash_initialize): Add 'fail:' label
109135         to free table and return NULL, and use it to simplify code.
109136         Use calloc rather than clearing the storage ourself.
109137         (hash_initialize, hash_rehash): Check for arithmetic overflow in
109138         buffer size calculations.
109139         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
109140         Include <stddef.h>, for size_t.
109141         * lib/hash-pjw.c (hash_pjw): Likewise.
109142         Switch to method described by Bruno Haible.
109143         Include <limits.h>, for CHAR_BIT.
109144         (SIZE_BITS): New macro.
109146 2003-10-23  Paul Eggert  <eggert@twinsun.com>
109148         * m4/getline.m4 (AM_FUNC_GETLINE):
109149         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
109150         hosts.  Problem reported by Derek Robert Price in
109151         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
109152         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
109153         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
109155 2003-10-21  Paul Eggert  <eggert@twinsun.com>
109157         * lib/getndelim2.c (getndelim2): When size calculation overflows,
109158         ceiling the allocation at NMAX bytes rather than silently
109159         discarding input bytes before NMAX is reached.  This makes
109160         a difference only if NMAX exceeds SIZE_MAX / 2.
109162         * lib/obstack.c: Merge from glibc.
109163         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
109164         Add libc_hidden_def (_obstack_newchunk).
109165         (_obstack_free) [! defined _LIBC]: Remove.
109166         [defined _LIBC]: Make a strong alias from obstack_free, rather than
109167         a clone of the function body.
109168         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
109169         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
109171         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
109172         glibc.
109173         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
109174         arg to memcpy.
109176         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
109177         (obstack_ptr_grow_fast, obstack_int_grow_fast):
109178         Don't use lvalue casts, as GCC plans to remove support for them
109179         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
109180         was also present in the non-GCC version, indicating that this
109181         code had always been buggy and had never been widely used.
109182         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
109183         Use the fast variant of each macro, rather than copying the
109184         definiens of the fast variant; that way, we'll be more likely to
109185         catch future bugs in the fast variants.
109187 2003-10-20  Bruno Haible  <bruno@clisp.org>
109189         * modules/wait-process: New file.
109190         * MODULES.html.sh (func_all_modules): Add wait-process.
109192 2003-10-20  Bruno Haible  <bruno@clisp.org>
109194         * m4/wait-process.m4: New file.
109196 2003-10-20  Bruno Haible  <bruno@clisp.org>
109198         * lib/wait-process.h: New file, from GNU gettext.
109199         * lib/wait-process.c: New file, from GNU gettext.
109201 2003-10-19  Jim Meyering  <jim@meyering.net>
109203         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
109204         HPUX 10.20.
109206 2003-10-18  Karl Berry  <karl@gnu.org>
109208         * config/config.guess: update from config.
109210 2003-10-16  Paul Eggert  <eggert@twinsun.com>
109212         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
109213         (getgroups): First arg is int, not size_t.
109214         Don't let 'free' mangle errno.
109216 2003-10-16  Paul Eggert  <eggert@twinsun.com>
109218         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
109220 2003-10-16  Karl Berry  <karl@gnu.org>
109222         * config/config.{guess,sub}: update from config.
109224 2003-10-16  Jim Meyering  <jim@meyering.net>
109226         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
109227         memcpy.
109229 2003-10-15  Paul Eggert  <eggert@twinsun.com>
109231         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
109232         (SIZE_MAX): Remove.
109233         (new_exclude, add_exclude_file): Initial size no longer needs to
109234         be a power of 2.
109235         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
109236         our own address arithmetic overflow checking.
109238         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
109239         (fnmatch): Do not alloca more than 2000 wide characters;
109240         instead, use malloc for large buffers.
109241         Check for address arithmetic overflow, and return -1
109242         with errno set to ENOMEM in that case.
109243         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
109244         (NEW_PATTERN): Do not alloca more than 8000 bytes;
109245         instead, return -1.  Check for address arithmetic overflow.
109247 2003-10-14  Paul Eggert  <eggert@twinsun.com>
109249         Handle invalid suffixes and overflow independently, so that
109250         callers can treat them independently as needed.  Fix some bugs in
109251         suffix handling, e.g., "100k@" was not diagnosed as an invalid
109252         suffix for a human-readable blocksize.  The major caller-visible
109253         change is the addition of a new
109254         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
109255         that both overflow and suffix chars were found.
109257         * lib/human.c (humblock): Don't check separately for invalid suffix
109258         char; that is xstrtoumax's job (now that its bug is fixed).
109259         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
109260         INTMAX_MAX]: New macros.
109261         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
109262         TYPE_MAXIMUM): New macros.
109263         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
109264         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
109265         if overflow occurs, as it's what __strtol does and it's more useful
109266         in practice.
109267         (__xstrtol): If __strtol reports some error other than ERANGE,
109268         reflect it to the caller as LONGINT_INVALID.  If it reports
109269         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
109270         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
109271         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
109272         value.
109273         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
109274         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
109275         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
109276         [defined UINTMAX_MAX]: New macros.
109278 2003-10-14  Bruno Haible  <bruno@clisp.org>
109280         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
109282 2003-10-14  Bruno Haible  <bruno@clisp.org>
109284         * m4/sig_atomic_t: New file, from GNU gettext.
109285         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
109287 2003-10-14  Bruno Haible  <bruno@clisp.org>
109289         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
109290         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
109291         Also use volatile where needed.
109293 2003-10-12  Paul Eggert  <eggert@twinsun.com>
109295         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
109296         Change maintainer from Bruno Haible to 'all'.
109298 2003-10-12  Paul Eggert  <eggert@twinsun.com>
109300         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
109302 2003-10-12  Paul Eggert  <eggert@twinsun.com>
109304         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
109305         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
109306         and define in terms of the other primitives.
109307         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
109308         (SIZE_MAX): Define if not already defined.
109309         (array_size_overflow): New function.
109310         (xalloc_die): Abort instead of exiting if 'error' returns.
109311         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
109312         (xmalloc, xrealloc): Use them.
109313         (xcalloc): Check for address arithmetic overflow.
109314         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
109315         a bit faster than strcpy.
109317 2003-10-10  Simon Josefsson  <jas@extundo.com>
109319         * modules/argp (Depends-on): Add restrict and strcase.
109321 2003-10-10  Simon Josefsson  <jas@extundo.com>
109323         * m4/argp.m4: Add AC_C_INLINE.
109325 2003-10-08  Paul Eggert  <eggert@twinsun.com>
109327         Merge getpass from libc, plus a few fixes.
109329         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
109330         Include <stdbool.h>.
109331         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
109332         __fsetlocking to empty.
109333         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
109334         do include <bits/libc-lock.h>.
109335         Do not include <fcntl.h>; not needed.
109336         [_LIBC]: Include <wchar.h>.
109337         (NOTCANCEL_MODE): New macro.
109338         (flockfile, funlockfile) [_LIBC]: New macros.
109339         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
109340         [!_LIBC]: New macros.
109341         (call_fclose): New function.
109342         (getpass): Use it.  Save tty stream separately; this simplifies the
109343         code and makes it more reliable if stdin happens to equal stdout.
109344         Invoke __fsetlocking on tty.
109345         Handle thread cancellation if needed.
109346         Namespace cleanup (use __tcgetattr, __getline).
109347         Use bool for Booleans.
109348         [USE_IN_LIBIO]: Handle wide streams.
109349         [!_LIBC]: Unconditionally do the fseek, since we don't know what
109350         stream might go where.
109352         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
109353         doesn't have to include <stdio.h> before us.
109354         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
109355         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
109356         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
109357         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
109358         if not declared, so that we can use getpass.c code from libc without
109359         rewriting it.
109360         (flockfile, ftrylockfile, funlockfile): New macros.
109362 2003-10-08  Paul Eggert  <eggert@twinsun.com>
109364         * modules/getpass: Depend on stdbool.
109366 2003-10-08  Paul Eggert  <eggert@twinsun.com>
109368         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
109370 2003-10-07  Karl Berry  <karl@gnu.org>
109372         * config/config.{guess,sub}: update from config.
109374 2003-10-06  Jim Meyering  <jim@meyering.net>
109375             Bruno Haible  <bruno@clisp.org>
109377         This lets translators provide better translations for the
109378         "Written by ..." part of --version output.
109379         * lib/version-etc.h: Include stdarg.h.
109380         (version_etc_copyright): Declare as readonly.
109381         (version_etc): Make this function variadic with a NULL-terminated list
109382         of author name strings.
109383         (version_etc_va): New declaration.
109384         * lib/version-etc.c: Include stdarg.h, stdlib.h.
109385         (version_etc_copyright): Declare as readonly.
109386         (version_etc_va): New function. Provide a different translatable string
109387         for each possible number of authors < 10. Abbreviate when there are 10
109388         authors or more.
109389         (version_etc): Make this function variadic. Call version_etc_va.
109390         Suggestion from Gary V. Vaughan.
109392         * lib/long-options.h (parse_long_options): Change prototype: the
109393         authors string is moved to the end and becomes variadic.
109394         * lib/long-options.c: Include stdarg.h.
109395         (parse_long_options): Make this function variadic, too.
109396         Call version_etc_va, not version_etc.
109398 2003-10-06  Bruno Haible  <bruno@clisp.org>
109400         * modules/version-etc-2: Remove file.
109401         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
109403 2003-10-06  Bruno Haible  <bruno@clisp.org>
109405         * modules/fatal-signal: New file.
109406         * MODULES.html.sh (func_all_modules): Add fatal-signal.
109408 2003-10-06  Bruno Haible  <bruno@clisp.org>
109410         * m4/fatal-signal.m4: New file.
109411         * m4/signalblocking.m4: New file, from GNU gettext.
109413 2003-10-06  Bruno Haible  <bruno@clisp.org>
109415         * lib/version-etc-2.h: Remove file.
109416         * lib/version-etc-2.c: Remove file.
109418 2003-10-06  Bruno Haible  <bruno@clisp.org>
109420         * lib/fatal-signal.h: New file, from GNU gettext.
109421         * lib/fatal-signal.c: New file, from GNU gettext.
109423 2003-10-05  Paul Eggert  <eggert@twinsun.com>
109425         * README: Rework advice for preventing empty .o files.
109426         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
109427         not <sys/types.h>.
109429 2003-10-04  Karl Berry  <karl@gnu.org>
109431         * lib/argp*: update from libc.
109433 2003-10-04  Karl Berry  <karl@gnu.org>
109435         * config/config.{guess,sub}: update from config.
109437 2003-10-02  Bruno Haible  <bruno@clisp.org>
109439         * modules/lchown (Include): Add lchown.h.
109440         * modules/time_r (Include): Use "..." syntax.
109441         * modules/xgetdomainname (Include): Add xgetdomainname.h.
109443 2003-10-01  Simon Josefsson  <jas@extundo.com>
109445         * MODULES.html.sh (func_all_modules): Move gethostname from section
109446         'based on' to section 'lacking' POSIX:2001.
109448 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
109450         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
109451         to output mode on the same stream.
109453 2003-09-29  Paul Eggert  <eggert@twinsun.com>
109455         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
109456         Fix arg typo in previous patch.
109458 2003-09-28  Jim Meyering  <jim@meyering.net>
109460         * lib/error.c: Correct cpp indentation.
109462 2003-09-27  Paul Eggert  <eggert@twinsun.com>
109464         * modules/free: New file.
109466 2003-09-27  Paul Eggert  <eggert@twinsun.com>
109468         * m4/free.m4: New file.
109470 2003-09-27  Paul Eggert  <eggert@twinsun.com>
109472         * lib/minmax.h (MIN, MAX)
109473         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
109474         Omit the special code that used __typeof__, since we worry that
109475         it could be more trouble than it's worth.  See:
109476         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
109477         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
109479         * lib/free.c: New file.
109481 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
109483         Trivial fixes to Makefile.am parts of module listings.
109484         * modules/strstr: Append strstr.h to lib_SOURCES.
109485         * modules/strcase: Likewise, for strcase.h.
109487 2003-09-27  Karl Berry  <karl@gnu.org>
109489         * config/mkinstalldirs: update from automake.
109491 2003-09-26  Paul Eggert  <eggert@twinsun.com>
109493         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
109494         (error_tail): Do not loop, reallocating temporary buffer, since
109495         the output cannot contain more wide characters than the input
109496         contains bytes, the size must be big enough already.  This avoids
109497         one potential size overflow calculation.  Check for size overflow
109498         when calculating temporary buffer size.  Free temporary buffer
109499         when done, if it was allocated with malloc; this plugs a memory
109500         leak.  Remove casts from void * to pointers, that are no longer
109501         needed now that we're assuming C89 or better.
109503         Merge error changes from glibc.
109505         * lib/error.c, error.h: Update copyright notice header to match glibc.
109506         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
109507         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
109508         Disable cancellation while printing error.
109509         * lib/error.h: Prepend __ to parameter names.
109511 2003-09-26  Jim Meyering  <jim@meyering.net>
109513         * lib/error.c (error_tail): Move some declarations
109514         into inner scope where the local variables are used.
109516 2003-09-26  Bruno Haible  <bruno@clisp.org>
109518         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
109519         stpncpy().
109520         Don't define stpncpy through config.h; it's now done through stpncpy.h.
109522 2003-09-26  Bruno Haible  <bruno@clisp.org>
109524         * lib/stpncpy.h (gnu_stpncpy): New declaration.
109525         (stpncpy): Define as alias for gnu_stpncpy.
109526         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
109528 2003-09-25  Simon Josefsson  <jas@extundo.com>
109530         * lib/xgetdomainname.h: New file.
109531         * lib/xgetdomainname.c: New file.
109533 2003-09-25  Simon Josefsson  <jas@extundo.com>
109534             Bruno Haible  <bruno@clisp.org>
109536         * modules/getdomainname: New file.
109537         * modules/xgetdomainname: New file.
109538         * MODULES.html.sh (func_all_modules): Add getdomainname,
109539         xgetdomainname.
109541 2003-09-25  Simon Josefsson  <jas@extundo.com>
109542             Bruno Haible  <bruno@clisp.org>
109544         * m4/getdomainname.m4: New file.
109546 2003-09-25  Simon Josefsson  <jas@extundo.com>
109547             Bruno Haible  <bruno@clisp.org>
109549         * lib/getdomainname.h: New file.
109550         * lib/getdomainname.c: New file.
109552 2003-09-25  Karl Berry  <karl@gnu.org>
109554         * lib/argp-fmtstream.c, argp-help.c: update from libc.
109556 2003-09-25  Karl Berry  <karl@gnu.org>
109558         * config/install-sh: update from automake.
109560 2003-09-25  Bruno Haible  <bruno@clisp.org>
109562         * modules/version-etc-2: New file, from modules/version-etc with
109563         modifications.
109564         * MODULES.html.sh (func_all_modules): Add version-etc-2.
109566 2003-09-25  Bruno Haible  <bruno@clisp.org>
109568         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
109569         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
109571 2003-09-24  Simon Josefsson  <jas@extundo.com>
109573         * modules/xgethostname: Add xgethostname.h.
109575 2003-09-24  Paul Eggert  <eggert@twinsun.com>
109577         * lib/linebuffer.c (freebuffer): Don't free the argument, just
109578         the buffer associated with the argument.  Bug reported by
109579         Simon Josefsson.
109581 2003-09-24  Paul Eggert  <eggert@twinsun.com>
109583         * README: Document assumptions that 'int' is at least 32 bits
109584         wide, that integer arithmetic is 2's complement without overflow,
109585         that there are no holes in integer values, that adding sizes of
109586         two nonoverlapping objects can't overflow, and that all-bits-zero
109587         yields scalar zero.  Fix spelling and capitalization typos.
109589 2003-09-19  Karl Berry  <karl@gnu.org>
109591         * lib/argp.h: update from libc.
109593 2003-09-17  Paul Eggert  <eggert@twinsun.com>
109595         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
109596         to avoid spurious warnings like "AC_RUN_IFELSE was called before
109597         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
109599 2003-09-17  Paul Eggert  <eggert@twinsun.com>
109601         * gnulib-tool: Use "test -h", not "test -L", for portability
109602         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
109603         (tags_regexp): Remove, since \| doesn't conform to POSIX.
109604         (sed_extract_prog): Issue s commands one-by-one, rather than
109605         using \| in one s command.
109607 2003-09-16  Paul Eggert  <eggert@twinsun.com>
109609         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
109610         input error, instead of returning NULL the next time we are called
109611         (and therefore losing track of errno).
109613 2003-09-16  Bruno Haible  <bruno@clisp.org>
109615         * gnulib-tool (func_create_testdir): Warn about duplicated
109616         dependencies.
109618 2003-09-15  Paul Eggert  <eggert@twinsun.com>
109620         * modules/argmatch, modules/fatal, modules/obstack,
109621         modules/xalloc, modules/xgethostname: Sort dependencies by
109622         importance, not alphabetically.
109624 2003-09-15  Paul Eggert  <eggert@twinsun.com>
109626         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
109627         fails, so that the caller gets the proper errno.
109629         * lib/readutmp.c (read_utmp): Likewise.
109630         Check for fstat error.  Close stream and free storage
109631         when failing.
109633 2003-09-14  Karl Berry  <karl@gnu.org>
109635         * config/srclist.txt (strdup.c): disable for c89 changes.
109637 2003-09-14  Jim Meyering  <jim@meyering.net>
109639         * lib/getloadavg.c: Correct cpp indentation.
109640         * lib/strdup.c: Likewise.
109641         * lib/vasnprintf.c: Likewise.
109643 2003-09-14  Bruno Haible  <bruno@clisp.org>
109645         * modules/fwriteerror: New file.
109646         * MODULES.html.sh (func_all_modules): Add fwriteerror.
109648 2003-09-14  Bruno Haible  <bruno@clisp.org>
109650         * lib/fwriteerror.h: New file.
109651         * lib/fwriteerror.c: New file.
109653 2003-09-12  Paul Eggert  <eggert@twinsun.com>
109655         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
109656         modules/xgethostname, modules/xalloc: Depend on exit.
109658 2003-09-12  Paul Eggert  <eggert@twinsun.com>
109660         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
109662         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
109663         and AC_MINIX, too, so that their extensions are available.
109665         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
109666         This macro has been superseded by gl_BACKUPFILE.
109668         More patches to assume C89 or better.
109670         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
109672         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
109673         unconditionally.
109674         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
109675         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
109676         Include <string.h>, <stdlib.h> unconditionally.
109677         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
109678         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
109679         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
109680         headers or for string.h.
109681         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
109682         or strtoul.
109684         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
109685         headers.
109686         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
109687         * m4/userspec.m4 (gl_USERSPEC): Likewise.
109688         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
109689         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
109690         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
109691         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
109692         memcpy, memset.
109693         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
109694         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
109695         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
109696         strtol.
109697         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
109698         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
109699         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
109700         strtoul.
109702 2003-09-12  Paul Eggert  <eggert@twinsun.com>
109704         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
109705         * lib/obstack.c [!defined _LIBC]: Likewise.
109706         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
109707         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
109708         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
109710         More changes to assume C89 or better.
109712         * lib/error.c (error_tail): Assume vprintf.
109714         * lib/argmatch.c (getenv): Remove decl.
109715         * lib/progreloc.c (get_full_program_name): Define via prototype.
109716         * lib/setenv.c (clearenv): Likewise.
109717         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
109718         needed.
109719         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
109720         (malloc, memcpy): Remove decls.
109721         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
109722         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
109723         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
109724         (memcpy): Remove macro.
109725         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
109726         (__P): Remove.  All uses removed.
109727         (PTR): Remove.  All uses changed to void *.
109728         (CHAR_BIT, NULL): Remove.
109729         (spaces, zeros, memset_space, memset_zero)
109730         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
109731         Remove.
109732         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
109733         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
109734         Define with prototype.
109735         Remove now-unnecessary prototype decl.
109736         (extra_args_spec): Assume ANSI C.  All uses changed.
109737         (extra_args_spec_iso): Remove.
109738         (my_strftime, emacs_strftimeu): Define via prototype.
109739         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
109740         unconditionally.
109741         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
109742         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
109743         (strtoul, strtol): Remove decls.
109744         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
109745         LONG_MAX): Remove.
109746         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
109747         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
109748         (LOCALE_PARAM_PROTO): New macro.
109749         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
109750         (INTERNAL (strtol), strtol): Define with a prototype.
109751         (PARAMS): Remove.  All uses removed.
109752         * lib/tempname.c: Include <string.h> unconditionally.
109753         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
109754         * lib/xgethostname.c (main): Define with a prototype.
109755         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
109756         Include <stdlib.h> unconditionally.
109757         (calloc, malloc, realloc, free): Remove decls.
109758         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
109759         Include <stdlib.h> unconditionally.  Sort include file names.
109760         (strtod): Remove.
109761         (xstrtod): Define with a prototype.
109762         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
109763         (strtol, strtoul): Remove decls.
109765 2003-09-11  Paul Eggert  <eggert@twinsun.com>
109767         More patches to assume C89 or better.
109768         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
109769         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
109770         string.h, memchr, STDC_HEADERS.
109772 2003-09-11  Paul Eggert  <eggert@twinsun.com>
109774         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
109775         Include <stdlib.h>, <string.h> unconditionally.
109776         Remove now-unnecessary cast to char *.
109777         * lib/strnlen.c: Include <string.h> unconditionally.
109778         * lib/yesno.c (yesno): Define with a prototype.
109780 2003-09-11  Bruno Haible  <bruno@clisp.org>
109782         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
109784 2003-09-10  Jim Meyering  <jim@meyering.net>
109786         * lib/error.c: Correct indentation of cpp directives.
109788 2003-09-10  Bruno Haible  <bruno@clisp.org>
109790         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
109791         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
109792         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
109793         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
109794         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
109795         <stdlib.h> and <string.h> checks.
109796         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
109797         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
109799 2003-09-10  Bruno Haible  <bruno@clisp.org>
109801         * lib/strcspn.c: Include <string.h> unconditionally.
109802         * lib/strpbrk.c: Include <string.h> unconditionally.
109803         * lib/strstr.c: Include <string.h> unconditionally.
109804         * lib/unicodeio.c: Include <string.h> unconditionally.
109805         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
109806         * lib/unsetenv.c: Likewise.
109807         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
109808         * lib/yesno.c: Include <stdlib.h> unconditionally.
109809         (rpmatch): Add prototype.
109811 2003-09-09  Paul Eggert  <eggert@twinsun.com>
109813         More patches to assume C89 or better.
109814         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
109815         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
109816         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
109817         or for string.h.
109818         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
109819         stdlib.h.
109820         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
109821         C headers.
109822         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
109823         string.h.
109824         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
109825         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
109826         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
109827         or for string.h.
109828         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
109829         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
109830         C headers.
109831         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
109832         memcpy.
109833         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
109834         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
109835         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
109836         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
109837         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
109838         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
109839         string.h, free.
109840         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
109841         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
109842         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
109843         C headers, or for string.h.
109844         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
109845         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
109846         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
109847         headers, memory.h, stdlib.h, string.h, strings.h.
109848         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
109849         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
109850         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
109851         strchr.
109852         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
109853         headers, memory.h, string.h.
109854         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
109855         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
109856         free.
109857         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
109858         headers.
109859         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
109860         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
109861         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
109862         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
109863         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
109865 2003-09-09  Paul Eggert  <eggert@twinsun.com>
109867         More K&R removal.
109869         * lib/acosl.c (main): Use a prototype.
109870         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
109871         tanl.c: Likewise.
109873         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
109875         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
109876         (getopt, etopt_long, getopt_long_only, _getopt_internal)
109877         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
109878         with a prototype.
109879         * lib/getopt.c (const): Remove macro.
109880         Include <string.h> unconditionally.
109881         (my_index): Remove; all uses changed to strchr.
109882         (strlen): Remove decl.
109883         (exchange): Remove forward decl; no longer needed.
109884         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
109885         Define with prototype.
109886         * lib/getopt1.c (const): Remove macro.
109887         (getopt_long, getopt_long_only, main): Define with prototype.
109889         * lib/getugroups.c: Include <string.h> unconditionally.
109891         * lib/getusershell.c: Include <stdlib.h> unconditionally.
109892         (getusershell, setusershell, endusershell, readname, main):
109893         Define with prototypes.
109895         * lib/group-member.c: Include group-member.h first.
109896         Include <stdlib.h> unconditionally.
109898         * lib/hard-locale.c: Include hard-locale.h first.
109899         Include <stdlib.h>, <string.h> unconditionally.
109901         * lib/hash.c (free, malloc): Remove decls.
109902         Include <stdlib.h> unconditionally.
109904         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
109905         (getenv): Do not declare.
109907         * lib/idcache.c: Include <string.h> unconditionally.
109909         * lib/long-options.c: Include long-options.h first, to test interface.
109910         Include <stdlib.h> unconditionally.
109912         * lib/makepath.c: Include makepath.h first, to test interface.
109913         Include <stdlib.h> and <string.h> unconditionally.
109915         * lib/linebuffer.c: Include <stdlib.h>.
109916         (free): Remove decl.
109918         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
109919         stddef.h. rpl_malloc returns void *, not char *.
109920         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
109921         prototype.
109923         * lib/md5.h: Include <limits.h> unconditionally.
109924         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
109925         (__P): Remove; all uses removed.
109926         * lib/md5.c: Include "md5.h" first.
109927         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
109928         md5_buffer, md5_process_bytes, md5_process_block):
109929         Define with prototypes.
109930         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
109931         * lib/sha.c: Include "sha.h" first.
109932         Include <stdlib.h>, <string.h> unconditionally.
109934         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
109935         * lib/memcmp.c (__ptr_t): Likewise.
109936         * lib/memrchr.c (__ptr_t): Likewise.
109937         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
109938         Include <string.h> unconditionally.
109939         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
109940         * lib/memchr.c: Include <stdlib.h> unconditionally.
109941         * lib/memchr.c (LONG_MAX): Remove.
109942         * lib/memrchr.c (LONG_MAX): Likewise.
109943         * lib/memchr.c (__memchr): Define via a prototype.
109944         * lib/memrchr.c (__memrchr): Likewise.
109945         * lib/memcmp.c (__P): Remove, and remove all uses.
109946         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
109947         Remove forward decls; no longer needed.
109948         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
109949         Use types required by C89 in prototype.
109951         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
109952         * lib/savedir.c: Likewise.
109953         * lib/mkdir.c (free): Remove decl.
109954         * lib/rmdir.c (rmdir): Define with a prototype.
109955         * lib/savedir.c: Include savedir.h first, to test interface.
109957         * lib/mktime.c (STDC_HEADERS): Remove.
109958         Include <stdlib.h>, <string.h> unconditionally.
109960         * lib/modechange.c: Include <stdlib.h> unconditionally.
109961         (malloc): Remove decl.
109963         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
109964         (free): Remove decl.
109966         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
109967         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
109968         (This type really should be intptr_t, but that's a C99ism.)
109969         (_obstack_memcpy): Remove: all uses changed to memcpy.
109970         Include <string.h> unconditionally.
109971         (struct obstack): Assume __STDC__ for types of members
109972         chunkfun, freefun, extra_arg.
109973         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
109974         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
109975         obstack_begin, obstack_specify_allocation,
109976         obstack_specify_allocation_with_arg, obstack_chunkfun,
109977         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
109978         Remove unprototyped decls and the macros that use them.
109979         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
109980         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
109981         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
109982         (defined __STDC__ && __STDC__)]:
109983         Remove nonprototyped code.
109984         Include <stdlib.h> unconditionally.
109985         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
109986         _obstack_allocated_p, _obstack_free, obstack_free,
109987         _obstack_memory_used, print_and_abort):
109988         Define using prototypes.
109989         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
109990         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
109991         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
109992         obstack_next_free, obstack_object_size, obstack_room) [0]:
109993         Remove unused, unprototyped code.
109995         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
109997         * lib/physmem.c (physmem_total, physmem_available, main): Define
109998         with prototypes.
110000         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
110001         (main): Define with a prototype.
110003         * lib/posixver.c (getenv): Remove decl.
110005         * lib/putenv.c (malloc): Returns void *, not char *.
110006         Include <string.h> unconditionally.
110007         (strchr, memcpy, NULL): Do not define.
110009         * lib/readtokens.c: Include readtokens.h first, to test interface.
110010         Include <stdlib.h>, <string.h> unconditionally.
110011         (init_tokenbuffer): Define with a prototype.
110013         * lib/regex.c (PARAMS): Remove.  All uses removed.
110014         All uses of _RE_ARGS removed, too.
110015         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
110016         unconditionally.
110017         (bzero): Assume memset exists.
110018         (memcmp, memcpy, NULL): Remove.
110019         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
110020         char, or assignments to local vars of type signed char.
110021         (init_syntax_once, PREFIX(extract_number_and_incr),
110022         PREFIX(print_partial_compiled_pattern),
110023         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
110024         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
110025         PREFIX(regex_grow_registers), PREFIX(regex_compile),
110026         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
110027         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
110028         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
110029         wcs_compile_range, byte_compile_range, truncate_wchar,
110030         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
110031         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
110032         count_mbs_length, wcs_re_match_2_internal,
110033         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
110034         PREFIX(alt_match_null_string_p),
110035         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
110036         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
110037         regfree, PREFIX(extract_number)): Define with prototype.  Remove
110038         now-unnecessary declaration, if any.
110039         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
110040         regcomp, regexec):
110041         Remove now-unnecessary casts among pointer types.
110042         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
110044         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
110045         (free): Remove decl.
110047         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
110049         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
110050         (free): Remove decl.
110052         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
110053         * lib/xgetcwd.c: Likewise.
110055         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
110056         (free): Remove decl.
110058         * lib/strchrnul.c (strchrnul): Define with a prototype.
110059         Fix bug: c_in was not converted to char before searching.
110061         The following changes are not K&R related:
110063         * lib/group-member.h: Include <sys/types.h>, so that this file is
110064         self-contained.
110065         * lib/makepath.h: Likewise.
110067         * lib/getusershell.c (readname, default_index, line_size, readname):
110068         Use size_t, not int, for sizes.
110069         (readname): If the size overflows, report an error instead of
110070         looping forever.
110072 2003-09-09  Paul Eggert  <eggert@twinsun.com>
110074         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
110075         libc.
110077 2003-09-09  Paul Eggert  <eggert@twinsun.com>
110079         * README: New section: portability guidelines.
110081 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
110083         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
110084         C89 spec.
110086 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
110088         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
110090 2003-09-08  Paul Eggert  <eggert@twinsun.com>
110092         Assume C89 or better; remove K&R cruft.
110093         A few of these changes were first proposed by Derek Robert Price
110094         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
110096         * lib/addext.c: Include <string.h> unconditionally.
110097         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
110098         Don't declare getenv or malloc.
110100         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
110101         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
110102         (NULL): Remove.
110103         (find_stack_direction, alloca): Use prototypes.
110105         * lib/atexit.c (atexit): Define using a prototype.
110107         * lib/basename.c, dirname.c, stripslash.c:
110108         Include <string.h> unconditionally.
110110         * lib/bcopy.c: Include <stddef.h>.
110111         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
110113         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
110115         * lib/error.h (error, error_at_line, error_print_progname)
110116         [! (defined (__STDC__) && __STDC__)]: Remove decls.
110117         * lib/error.c: Include error.h first, to check interface.
110118         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
110119         (VA_START): Remove; all uses changeed to va_start.
110120         (exit, strerror): Remove decls.
110121         (error_print_progname): Prototype uncondionally.
110122         Don't include <errno.h>; no longer needed.
110123         (private_strerror): Remove.
110124         (error_tail): Always define.
110125         (error, error_at_line): Assume C89 or better; always use prototypes.
110126         * lib/fatal.c: Include "fatal.h" first, to test interface.
110127         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
110128         (VA_START): Remove; all uses changed to va_start.
110129         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
110130         this case.
110131         (exit): Remove decl.
110132         (fatal): Prototype unconditionally.  Assume va_start works.
110133         Abort at end, to pacify gcc.
110135         * lib/euidaccess.c (main): Define with a prototype.
110137         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
110139         * lib/exitfail.c: Include <stdlib.h> unconditionally.
110141         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
110142         prototypes.
110143         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
110144         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
110145         (getenv): Remove decl.
110146         (fnmatch): Define using a prototype.
110147         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
110148         (FCT): Define using a prototype.
110150         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
110152         * lib/gethostname.c: Include <stddef.h>.
110153         (gethostname): Define with prototype.  Length is size_t, not int.
110155 2003-09-08  Paul Eggert  <eggert@twinsun.com>
110157         Assume C89 or better; remove K&R cruft.
110158         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
110159         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
110160         string.h, getenv, malloc.
110161         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
110162         headers.
110163         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
110164         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
110165         do not check for strerror.
110166         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
110167         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
110168         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
110169         do not check for doprnt or vprintf.
110170         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
110171         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
110173 2003-09-08  Paul Eggert  <eggert@twinsun.com>
110175         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
110176         getversion.c should have been removed then, but was accidentally
110177         preserved.
110179         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
110180         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
110182 2003-09-08  Karl Berry  <karl@gnu.org>
110184         * config/config.sub, config.guess, srclistvars.sh: update from savannah
110185                 config, forget about prep.
110187         * config/depcomp, missing: update from automake.
110189 2003-09-07  Paul Eggert  <eggert@twinsun.com>
110191         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
110192         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
110194 2003-09-07  Paul Eggert  <eggert@twinsun.com>
110196         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
110197         copy_tm_result.  Bug reported by Simon Josefsson in
110198         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
110200 2003-09-06  Paul Eggert  <eggert@twinsun.com>
110202         * m4/time_r.m4: New file.
110203         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
110204         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
110205         is. Check for timegm declaration.
110206         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
110207         Do not check for gmtime_r.
110208         Replace mktime if __mktime_internal does not exist and if mktime
110209         hasn't been replaced already.
110211 2003-09-06  Paul Eggert  <eggert@twinsun.com>
110213         * lib/time_r.c, lib/time_r.h: New files.
110215         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
110216         __localtime_r.
110217         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
110218         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
110220         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
110221         __gmtime_r.
110222         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
110223         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
110224         Include <time_r.h>.
110226         * lib/timegm.c: Switch to glibc implementation, with the following
110227         changes:
110228         [defined HAVE_CONFIG_H]: Include <config.h>.
110229         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
110230         (__mktime_internal) [!defined _LIBC]: New decl.
110231         (__gmtime_r) [!defined _LIBC]: New macro and function.
110232         (timegm): Use a prototype, since gnulib assumes C89.
110233         Do not bother declaring tmp to be const, as it's not really usefu.
110234         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
110235         (timegm): Declare only if HAVE_DECL_TIMEGM.
110237 2003-09-06  Paul Eggert  <eggert@twinsun.com>
110239         * MODULES.html.sh (func_all_modules): Add time_r.
110240         * modules/time_r: New file.
110241         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
110242         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
110244 2003-09-03  Paul Eggert  <eggert@twinsun.com>
110246         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
110247         Bug reported by Lute Kamstra in
110248         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
110250         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
110251         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
110252         course with correspondingly smaller numbers for tomorrow and
110253         yesterday.  From Tadayoshi Funaba.  Originally installed into
110254         sh-utils on 1999-08-07, but the patch got lost (I guess during the
110255         coreutils merge?).
110257 2003-08-31  Simon Josefsson  <jas@extundo.com>
110259         * modules/timegm: New file.
110260         * MODULES.html.sh (func_all_modules): Add timegm.
110262 2003-08-31  Simon Josefsson  <jas@extundo.com>
110264         * m4/timegm.m4: New file.
110266 2003-08-31  Simon Josefsson  <jas@extundo.com>
110268         * lib/timegm.h: New file.
110269         * lib/timegm.c: New file.  Based on
110270         wget-1.8.2/src/http.c:mktime_from_utc.
110272 2003-08-31  Karl Berry  <karl@gnu.org>
110274         * lib/argp.h: update from libc.
110276 2003-08-28  Bruno Haible  <bruno@clisp.org>
110278         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
110279         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
110280         followed by '#define fnmatch fnmatch_posix' gives an error.
110282 2003-08-28  Bruno Haible  <bruno@clisp.org>
110284         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
110285         warning on QNX, which defines O_BINARY to 000000.
110287 2003-08-27  Jim Meyering  <jim@meyering.net>
110289         * m4/mkstemp.m4: Require that the system mkstemp be able to create
110290         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
110291         would fail after 32.  Reported by Danny Levinson.  Details here:
110292         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
110294 2003-08-24  Bruno Haible  <bruno@clisp.org>
110296         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
110297         MSVC7 <stdio.h> is included later.
110299 2003-08-22  Simon Josefsson  <jas@extundo.com>
110301         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
110303 2003-08-20  Karl Berry  <karl@gnu.org>
110305         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
110307 2003-08-20  Bruno Haible  <bruno@clisp.org>
110309         * modules/progname: New file.
110310         * MODULES.html.sh (func_all_modules): Add progname.
110312 2003-08-20  Bruno Haible  <bruno@clisp.org>
110314         * lib/progname.h: New file, from GNU gettext.
110315         * lib/progname.c: New file, from GNU gettext.
110316         * lib/progreloc.c: New file, from GNU gettext.
110318 2003-08-19  Jim Meyering  <jim@meyering.net>
110320         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
110321         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
110323 2003-08-19  Bruno Haible  <bruno@clisp.org>
110325         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
110326         more.
110328 2003-08-19  Bruno Haible  <bruno@clisp.org>
110330         * lib/xstrdup.c: Assume <string.h> exists.
110332 2003-08-18  Paul Eggert  <eggert@twinsun.com>
110334         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
110335         in makefile rules.
110337 2003-08-18  Jim Meyering  <jim@meyering.net>
110339         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
110340         * m4/lib-ld.m4: Likewise.
110342 2003-08-18  Jim Meyering  <jim@meyering.net>
110344         * lib/setenv.h: Indent nested cpp directive.
110345         * lib/vasnprintf.c: Remove trailing blanks.
110347 2003-08-17  Simon Josefsson  <jas@extundo.com>
110349         * modules/xstrndup: New file.
110350         * MODULES.html.sh (func_all_modules): Add xstrndup.
110352 2003-08-17  Simon Josefsson  <jas@extundo.com>
110354         * modules/argp: Fix autoconf macro name. Add more dependencies.
110356 2003-08-17  Simon Josefsson  <jas@extundo.com>
110358         * m4/xstrndup.m4: New file.
110360 2003-08-17  Simon Josefsson  <jas@extundo.com>
110362         * m4/argp.m4: New file.
110364 2003-08-17  Simon Josefsson  <jas@extundo.com>
110365             Bruno Haible  <bruno@clisp.org>
110367         * lib/xstrndup.h: New file.
110368         * lib/xstrndup.c: New file.
110370 2003-08-17  Bruno Haible  <bruno@clisp.org>
110372         * modules/strndup (Files, Include): Add lib/strndup.h.
110374 2003-08-17  Bruno Haible  <bruno@clisp.org>
110376         * modules/euidaccess (Files): Add lib/euidaccess.h.
110378 2003-08-17  Bruno Haible  <bruno@clisp.org>
110380         * lib/strndup.h: New file.
110382 2003-08-17  Bruno Haible  <bruno@clisp.org>
110384         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
110385         like AC_GNU_SOURCE.
110386         * modules/extensions (configure.ac): Comment out the invocation of
110387         gl_USE_SYSTEM_EXTENSIONS.
110389 2003-08-16  Paul Eggert  <eggert@twinsun.com>
110391         Merges from coreutils, etc.
110392         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
110393         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
110394         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
110395         fixing a typo.
110396         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
110397         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
110399 2003-08-16  Paul Eggert  <eggert@twinsun.com>
110401         Document merge from coreutils.
110402         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
110403         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
110404         * modules/utime: Add m4/utimes-null.m4.
110406 2003-08-16  Paul Eggert  <eggert@twinsun.com>
110408         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
110409         space, undoing this 2003-08-12 change:
110410         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
110412 2003-08-16  Paul Eggert  <eggert@twinsun.com>
110414         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
110415         strtoul.c from libc, undoing this 2003-08-12 change:
110416         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
110418 2003-08-16  Jim Meyering  <jim@meyering.net>
110420         Merges from coreutils.
110421         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
110422         prefix.  Adjust cache variables similarly.  Create 500 rather than
110423         just 300 files, to exercise bug on Darwin6.5, too.
110424         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
110425         $missing_dir.
110426         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
110427         AM_SYS_POSIX_TERMIOS.
110428         Reported by mkc@mathdogs.com.
110429         Also change use of $am_cv_sys_posix_termios
110430         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
110431         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
110432         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
110433         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
110434         in /proc/mounts until it finds one with matching device number.  This
110435         is unnecessary when the FILE argument *is* a mount point.  No stat call
110436         is necessary in that case.  So, disable the statvfs-testing code on
110437         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
110438         as RedHat bug# 84846.
110439         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
110440         to 1MB, so as not to render systems with no stack size limit (e.g.,
110441         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
110442         Include <unistd.h>.  On some systems,
110443         it is required for the definition of _SC_PAGESIZE.
110445 2003-08-16  Jim Meyering  <jim@meyering.net>
110447         Merge from coreutils.
110448         * lib/xstrtoimax.c: #else #if -> #elif.
110449         * lib/xstrtoumax.c: Likewise.
110451 2003-08-16  Jim Meyering  <jim@meyering.net>
110453         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
110454         * m4/utimes.m4: Removed.
110455         * m4/utimes-null.m4: Renamed from utimes.m4.
110457         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
110458         to 1MB, so as not to render systems with no stack size limit (e.g.,
110459         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
110460         Include <unistd.h>.  On some systems,
110461         it is required for the definition of _SC_PAGESIZE.
110463 2003-08-16  Jim Meyering  <jim@meyering.net>
110464         and Paul Eggert  <eggert@cs.ucla.edu>
110466         Merges from coreutils, etc.
110468         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
110469         using the latest version from cvs.  This avoids problems with #line
110470         directives using a vendor (Sun) compiler.
110471         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
110472         Don't set GETGROUPS_LIB here; now it's
110473         done via getgroups.m4's wrapper function.
110474         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
110475         rather than just in sh-util/configure.in, so that the
110476         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
110477         same.
110478         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
110479         AC_FUNC_GETLOADAVG where to find getloadavg.c.
110480         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
110481         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
110482         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
110483         Remove code that is now done by the newly-required macros.
110484         Append $(EXEEXT) to DF_PROG.
110485         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
110486         Do not invoke or require the following here,
110487         since prereq.m4 or some gnulib .m4 now does this for us:
110488         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
110489         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
110490         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
110491         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
110492         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
110493         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
110494         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
110495         AC_FUNC_OBSTACK.
110496         Do not replace the following functions, as this is now the job
110497         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
110498         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
110499         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
110500         atexit getpass, strdup, getpagesize.
110501         Replace 'raise'.
110502         Do not check for the following functions, as this is now the job
110503         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
110504         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
110505         setregid.
110506         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
110507         Check for sys/sysctl.h.
110508         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
110509         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
110510         of checking for ssize_t ourselves.
110512         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
110513         Require every macro that gnulib/modules/* suggests for us.
110514         (jm_PREREQ_ADDEXT): New macro.
110515         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
110516         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
110518         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
110519         (gl_PHYSMEM): Use it.
110520         Also check for `table' function.
110521         Check for new headers and functions.
110522         Add check for sys/sysmp.h.
110523         With suggestions from Kaveh Ghazi.
110524         Ignore headers that are present but cannot be compiled.  This
110525         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
110526         C 5.4.
110528 2003-08-15  Paul Eggert  <eggert@twinsun.com>
110530         Document merge from coreutils.
110531         * modules/userspec: Depend on posixver.
110532         * modules/strftime: Depend on tzset.
110534 2003-08-15  Paul Eggert  <eggert@twinsun.com>
110536         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
110537         rather than tab, after '#' in shell-script copyright notices.
110538         Suggested by Bruno Haible.
110540 2003-08-15  Paul Eggert  <eggert@twinsun.com>
110542         * config/srclist-update: Use three spaces, rather than tab, after '#'
110543         in shell-script copyright notices.  Suggested by Bruno Haible.
110544         Remove unnecessary parenthesization in regular expression.
110546 2003-08-15  Jim Meyering  <jim@meyering.net>
110548         Merge from coreutils.
110549         * lib/xgethostname.c: Include <stdlib.h>.
110550         (xghostname): Don't exit for anything other than memory-related
110551         failure; just return NULL.
110552         * lib/userspec.c: Include "posixver.h".
110553         (parse_user_spec): Accept `.' as a separator only
110554         in pre-POSIX-200112 mode.
110555         * lib/strtoimax.c: Use #elif rather than #else #if.
110556         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
110557         Remove function, now that we can rely on a working tzset function.
110558         [!_LIBC]: Ensure that the required autoconf test has been run.
110559         [!defined _NL_CURRENT && HAVE_STRFTIME]:
110560         Use underlying_strftime for %r.
110561         * lib/sha.c: Merge in some clean-up and optimization changes from
110562         glibc.
110563         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
110564         Ensure that it is a multiple of 64.
110565         Rearrange loop exit tests so as to avoid performing an
110566         additional fread after encountering an error or EOF.
110567         * lib/realloc.c: Update copyright date.
110569 2003-08-15  Jim Meyering  <jim@meyering.net>
110570         and Paul Eggert  <eggert@twinsun.com>
110572         Merge from coreutils.
110573         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
110574         member but strut utmpx does not.  Needed for AIX 4.3.3.
110575         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
110577 2003-08-15  Jim Meyering  <jim@meyering.net>
110578         and Paul Eggert  <eggert@cs.ucla.edu>
110580         Merges from coreutils, etc.
110581         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
110582         Require gl_FUNC_TZSET_CLOBBER.
110583         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
110584         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
110585         members.
110587 2003-08-14  Paul Eggert  <eggert@twinsun.com>
110589         Help the merge from coreutils.
110590         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
110591         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
110592         * m4/tzset.m4: Use it too.
110594 2003-08-14  Paul Eggert  <eggert@twinsun.com>
110596         * modules/tzset: New file.
110598 2003-08-14  Jim Meyering  <jim@meyering.net>
110600         Merges from coreutils.
110601         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
110602         variable names, rather than @FNMATCH_H@.
110603         * modules/alloca: Likewise for $(ALLOCA_H).
110605         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
110606         the three copies of the literal target, `fnmatch.h'.
110607         * modules/alloca (alloca.h): Likewise.
110609 2003-08-14  Jim Meyering  <jim@meyering.net>
110611         Merge from coreutils.
110612         * m4/tzset.m4: New file.
110613         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
110614         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
110615         otherwise, AIX 5.1 systems would end up using the latter.
110616         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
110617         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
110618         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
110619         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
110621 2003-08-14  Jim Meyering  <jim@meyering.net>
110623         Merge from coreutils.
110624         * lib/obstack.h: Whitespace changes.
110625         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
110626         and xcalloc return values.
110627         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
110628         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
110629         hang on OSF/1 5.1 for DIR on both local and remote file systems.
110630         Reported by (and fix confirmed by) Nelson H. F. Beebe.
110631         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
110632         error from mntctl.
110633         Use mntctl's return value to drive the entry-processing loop, since
110634         we can't rely on the value of the vmt_length member in the last
110635         entry.  On some systems doing so could result in exhausting
110636         virtual memory.  Based in part on a patch from Mike Jetzer.
110638 2003-08-14  Jim Meyering  <jim@meyering.net>
110639         and Paul Eggert  <eggert@twinsun.com>
110641         Merges from coreutils, plus other fixes.
110642         * lib/physmem.c: Merge in portability changes from gcc/libiberty
110643         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
110644         for credits and details.  Thanks to Kaveh Ghazi for helping
110645         to keep these files in sync.
110646         (ARRAY_SIZE): Define it.
110647         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
110648         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
110649         (memcasecmp): Don't assume size_t fits in unsigned int.
110650         Remove casts and duplicate code.
110651         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
110652         (memcpy): Remove definition.
110653         Merge in some clean-up and optimization changes from glibc.
110654         [BLOCKSIZE]: Move definition to top of file.
110655         Ensure that it is a multiple of 64.
110656         Rearrange loop exit tests so as to avoid performing an
110657         additional fread after encountering an error or EOF.
110658         * lib/md5.h (md5_uintptr): Define.
110659         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
110660         return to the initial working directory.  Preserve errno
110661         for caller.
110662         * lib/idcache.c: Include "xalloc.h".
110663         (xmalloc, xrealloc): Remove decls.
110664         (getuser): Remove casts no longer required in C89.
110665         * lib/human.c: Include stdio.h, for sprintf.
110666         * lib/group-member.c: Include "xalloc.h".
110667         (xmalloc, xrealloc): Remove decls.
110668         (get_group_info): Remove casts no longer required in C89.
110669         * lib/getusershell.c (readname): Remove casts no longer required in
110670         C89.
110671         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
110672         * lib/getline.c: Whitespace fix, from coreutils.
110674 2003-08-13  Paul Eggert  <eggert@twinsun.com>
110676         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
110677         Check for isascii.
110679         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
110680         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
110681         Undo previous (whitespace-only) change.
110683 2003-08-13  Paul Eggert  <eggert@twinsun.com>
110685         * lib/exclude.c: Include <ctype.h>
110686         (IN_CTYPE_DOMAIN): New macro.
110687         (is_space): New fn.
110688         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
110689         and empty lines.
110691         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
110692         Undo previous (whitespace-only) change.
110694 2003-08-13  Paul Eggert  <eggert@twinsun.com>
110696         * config/srclist-update: Change update back to the old behavior,
110697         leaving whitespace alone.  Use one 'sed' command rather than a
110698         pipeline.
110699         (fixlicense): Now a variable, not a function.
110700         (remove_trailing_blanks): Remove.
110701         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
110702         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
110703         Undo previous (whitespace-only) change.
110705 2003-08-12  Paul Eggert  <eggert@twinsun.com>
110707         Merge from coreutils.
110708         * modules/euidaccess: Add lib_SOURCES, include for new
110709         file euidaccess.h
110711 2003-08-12  Paul Eggert  <eggert@twinsun.com>
110713         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
110714         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
110715         Normalize leading white space and remove trailing white space.
110717         Merge from coreutils
110718         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
110720         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
110721         0.12.1.  These files are now being upgraded automatically by
110722         ../config/srclist-update.
110724 2003-08-12  Paul Eggert  <eggert@twinsun.com>
110726         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
110727         Normalize leading white space and remove trailing white space.
110728         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
110729         notice, as per ../config/srclist-update.
110731         Merge from coreutils.
110732         * lib/euidaccess.h: New file.
110733         * lib/euidaccess.c: Include it.
110734         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
110735         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
110736         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
110738 2003-08-12  Paul Eggert  <eggert@twinsun.com>
110740         * config/srclist-update: Add copyright notice.
110741         (remove_id_lines, remove_trailing_blanks): New constants.
110742         (fixfile): Use them to normalize spacing a bit in copied files.
110743         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
110744         Normalize leading white space and remove trailing white space.
110746         * config/texinfo.tex: Sync with texinfo.
110748         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
110749         strtoul.c from libc, to merge coreutils whitespace changes.
110751         * config/srclist.txt: Get the following m4 files from gettext:
110752         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
110753         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
110754         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
110755         wint_t.m4.
110757 2003-08-12  Karl Berry  <karl@gnu.org>
110759         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
110760         been made.
110762 2003-08-11  Paul Eggert  <eggert@twinsun.com>
110764         * modules/gnu-source, m4/gnu-source.m4:
110765         Remove; we're assuming Autoconf 2.54 or later now.
110766         Suggested by Bruno Haible.
110767         * MODULES.html.sh (func_all_modules): Remove gnu-source.
110769 2003-08-11  Bruno Haible  <bruno@clisp.org>
110771         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
110773 2003-08-11  Bruno Haible  <bruno@clisp.org>
110775         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
110776         (vasnprintf): Use it instead of wcslen.
110778 2003-08-11  Bruno Haible  <bruno@clisp.org>
110780         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
110781         value to ensure that _Bool promotes to int. Use #define for _Bool when
110782         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
110784 2003-08-10  Karl Berry  <karl@gnu.org>
110786         * lib/regex.h: update from libc (whitespace fix).
110788 2003-08-09  Paul Eggert  <eggert@twinsun.com>
110790         Merge some files from coreutils.  These changes were
110791         originally made by Jim Meyering.
110792         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
110793         many older Unixes require this.
110794         * lib/alloca.c (alloca): Remove cast to argument of free;
110795         no longer needed in C89.
110796         * lib/alloca_.h, regex.h: Fix white space to match
110797         what GNU indent does.
110799 2003-08-09  Paul Eggert  <eggert@twinsun.com>
110801         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
110802         apparently Emacs's Unicode mode got confused before my 2003-08-05
110803         checkin.
110805 2003-08-08  Paul Eggert  <eggert@twinsun.com>
110807         * m4/extensions.m4: New file.
110808         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
110809         Require gl_USE_SYSTEM_EXTENSIONS.
110810         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
110811         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
110813 2003-08-08  Paul Eggert  <eggert@twinsun.com>
110815         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
110816         * modules/extensions, modules/gnu-source: New files.
110817         * modules/timespec, modules/unlocked-io: Depend on extensions.
110819 2003-08-07  Paul Eggert  <eggert@twinsun.com>
110821         * modules/restrict: New file.
110822         * MODULES.html.sh (func_all_modules): Add restrict.
110823         * modules/regex: Depend on restrict.
110825 2003-08-07  Paul Eggert  <eggert@twinsun.com>
110827         * m4/restrict.m4: New file.
110828         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
110830 2003-08-07  Bruno Haible  <bruno@clisp.org>
110832         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
110833         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
110835 2003-08-07  Bruno Haible  <bruno@clisp.org>
110837         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
110838         makes the module 'getndelim2' compatible with the module 'getline'.
110840 2003-08-05  Paul Eggert  <eggert@twinsun.com>
110842         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
110843         byte with "\201" to avoid glitches when editing that source file
110844         with multi-gnome-terminal.
110846 2003-08-05  Paul Eggert  <eggert@twinsun.com>
110848         * lib/bumpalloc.h: Remove.
110850 2003-08-05  Paul Eggert  <eggert@twinsun.com>
110852         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
110853         * modules/bumpalloc: Remove.
110855 2003-08-04  Paul Eggert  <eggert@twinsun.com>
110857         * lib/getloadavg.c: Change copyright notice and spacing to conform to
110858         GNU coding style.
110860         Merge from coreutils.
110861         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
110862         1. From glibc.
110863         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
110864         from Karl Berry, implemented by Jim Meyering.
110865         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
110866         from Dmitry V. Levin.
110867         Remove anachronistic cast of xrealloc.
110868         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
110869         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
110870         type. Otherwise, it wouldn't compile with at least /bin/cc on
110871         ymp-cray-unicos9.0.2.X.
110872         Combine two mostly-identical uses of alloca into one.
110873         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
110875 2003-08-04  Dave Love  <d.love@dl.ac.uk>
110877         [From Emacs.]
110879         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
110880         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
110881         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
110882         obsolete NLIST_NAME_UNION.
110883         [__GNU__]: Undef BSD and FSCALE.
110884         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
110886 2003-08-03  Paul Eggert  <eggert@twinsun.com>
110888         * lib/stdbool_.h (_Bool): Make it signed char, instead of
110889         an enum type, so that it's guaranteed to promote to int.  See:
110890         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
110892 2003-08-03  Karl Berry  <karl@gnu.org>
110894         * config/depcomp: update from automake.
110896 2003-07-31  Paul Eggert  <eggert@twinsun.com>
110898         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
110899         (strerror): Don't assume that a printable int fits in 14 bytes.
110901 2003-07-31  Bruno Haible  <bruno@clisp.org>
110903         * modules/getpass-gnu: New file.
110904         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
110906 2003-07-31  Bruno Haible  <bruno@clisp.org>
110908         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
110910 2003-07-24  Karl Berry  <karl@gnu.org>
110912         * config/missing: update from automake.
110914 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
110915             Bruno Haible  <bruno@clisp.org>
110917         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
110918         * lib/getline.c (getline, getdelim): Likewise.
110919         Remove _GNU_SOURCE define; now it's defined in config.h through
110920         m4/getline.m4.
110922 2003-07-23  Karl Berry  <karl@gnu.org>
110924         * config/config.sub: update from prep.
110926 2003-07-22  Paul Eggert  <eggert@twinsun.com>
110928         * modules/xalloc (Depends-on): Add exitfail.
110929         * modules/xmemcoll: Likewise.
110931 2003-07-22  Paul Eggert  <eggert@twinsun.com>
110933         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
110934         over-parenthesization in macros.
110936         Sync with coreutils.
110938         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
110939         required by C99.
110941         Use `exit_failure' for xalloc and xmemcoll instead of their own
110942         private exit-failure variables.
110943         * lib/xalloc.h (xalloc_exit_failure): Remove.
110944         * lib/xmalloc.c: Likewise.  Include exitfail.h.
110945         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
110946         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
110947         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
110948         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
110950 2003-07-20  Jim Meyering  <jim@meyering.net>
110952         * modules/closeout (Depends-on): Add exitfail.
110953         Suggestion from Bruno Haible.
110955 2003-07-19  Karl Berry  <karl@gnu.org>
110957         * config/config.sub: update from prep.
110959 2003-07-18  Paul Eggert  <eggert@twinsun.com>
110961         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
110962         Remove.
110963         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
110964         to test that it can stand by itself.  Include "exitfail.h".
110965         Clients should set exit_failure instead.
110966         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
110968 2003-07-18  Bruno Haible  <bruno@clisp.org>
110970         * modules/getndelim2: New file.
110971         * modules/getline: Share files with module getndelim2.
110972         * modules/getnline: Depend on getndelim2 instead of sharing files with
110973         it. Add getnline.c to lib_SOURCES.
110974         * MODULES.html.sh (func_all_modules): Add getndelim2.
110976 2003-07-18  Bruno Haible  <bruno@clisp.org>
110978         * m4/getndelim2.m4: New file.
110979         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
110980         invoke gl_PREREQ_GETNDELIM2.
110981         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
110982         gl_PREREQ_GETNDELIM2.
110983         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
110984         gl_GETNDELIM2.
110986 2003-07-18  Bruno Haible  <bruno@clisp.org>
110988         * lib/getndelim2.h: New file.
110989         * lib/getndelim2.c: Make into a module of its own. Include config.h,
110990         getndelim2.h.
110991         (getndelim2): Make non-static. Change return type to ssize_t.
110992         * lib/getline.h: Change argument names.
110993         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
110994         * lib/getnline.c: Include getndelim2.h.
110996 2003-07-18  Andreas Schwab  <schwab@suse.de>
110998         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
111000 2003-07-17  Karl Berry  <karl@gnu.org>
111002         * config/config.sub: update from prep.
111004 2003-07-17  Bruno Haible  <bruno@clisp.org>
111006         * modules/getnline: New file.
111007         * modules/getline: Add lib/getndelim2.c to source file list.
111008         * MODULES.html.sh (func_all_modules): Add getnline.
111010 2003-07-17  Bruno Haible  <bruno@clisp.org>
111012         * m4/getnline.m4: New file.
111014 2003-07-17  Bruno Haible  <bruno@clisp.org>
111016         * m4/Makefile.am.in: Remove file.
111017         * m4/Makefile.am: Remove file.
111018         * m4/Makefile.in: Remove file.
111020 2003-07-17  Bruno Haible  <bruno@clisp.org>
111022         * lib/getnline.h: New file.
111023         * lib/getnline.c: New file.
111024         * lib/getndelim2.c: New file, extracted from getline.c.
111025         (getndelim2): Renamed from getdelim2, with added nmax argument.
111026         * lib/getline.c: Include getndelim2.c.
111027         (getdelim2): Moved out to getndelim2.c.
111028         (getline, getdelim): Update.
111030 2003-07-17  Bruno Haible  <bruno@clisp.org>
111032         * lib/Makefile.am: Remove file.
111033         * lib/Makefile.in: Remove file.
111035 2003-07-17  Bruno Haible  <bruno@clisp.org>
111037         * configure.in: Remove file.
111038         * Makefile.in: Remove file.
111040 2003-07-17  Bruno Haible  <bruno@clisp.org>
111042         * MODULES.html.sh: Put the </BODY> right before </HTML>.
111044 2003-07-16  Karl Berry  <karl@gnu.org>
111046         * config/srclist-update: was running fixlicense twice, which caused
111047                 texinfo.tex to be nullified for some reason.  Simplify,
111048                 $gplsrc is no longer needed as far as I can see?
111050 2003-07-16  Jim Meyering  <jim@meyering.net>
111052         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
111054 2003-07-15  Paul Eggert  <eggert@twinsun.com>
111056         * config/srclist.txt: Get the following files from gettext-runtime/intl
111057         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
111058         ref-del.sin.  From Bruno Haible.
111059         * config/srclist-update (fixfile): Change grep pattern again, since the
111060         previous fix didn't work (there was another trailing $).  Use
111061         '[$]' to escape the $s.
111063 2003-07-15  Karl Berry  <karl@gnu.org>
111065         * lib/vasnprintf.c: update from gettext.
111067 2003-07-15  Karl Berry  <karl@gnu.org>
111069         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
111070         gets expanded when surrounded by '$'.
111072 2003-07-15  Jim Meyering  <jim@meyering.net>
111074         * modules/save-cwd: Don't depend on error.  From Derek Price.
111076 2003-07-15  Jim Meyering  <jim@meyering.net>
111078         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
111080 2003-07-14  Simon Josefsson  <jas@extundo.com>
111082         * modules/mempcpy: New file.
111083         * MODULES.html.sh (func_all_modules): Add mempcpy.
111085 2003-07-14  Simon Josefsson  <jas@extundo.com>
111087         * m4/mempcpy.m4: New file.
111089 2003-07-14  Simon Josefsson  <jas@extundo.com>
111091         * lib/mempcpy.h: New file.
111092         * lib/mempcpy.c: New file.
111094 2003-07-14  Paul Eggert  <eggert@twinsun.com>
111096         * modules/getdate, modules/posixtm: Depend on mktime.
111098 2003-07-14  Paul Eggert  <eggert@twinsun.com>
111100         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
111101         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
111102         unicodeio.c, unicodeio.h, unlocked-io.h:
111103         Switch from LGPL to GPL.
111105 2003-07-14  Paul Eggert  <eggert@twinsun.com>
111107         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
111108         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
111109         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
111110         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
111111         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
111112         updated automatically by ../config/srclist-update.  This changes
111113         their license from LPGL to GPL.
111115 2003-07-14  Paul Eggert  <eggert@twinsun.com>
111117         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
111118         assumed to refer to the root of the most recent stable gettext version.
111119         * config/srclistvars.sh: Add defaults for eggert.
111120         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
111121         Match "This program" as well as "The program".  This is needed
111122         for gettext.
111124 2003-07-14  Jim Meyering  <jim@meyering.net>
111126         Don't emit diagnostics.  Let callers do that.
111127         * lib/save-cwd.c: Don't include "error.h".
111128         (save_cwd): Don't call error.  Ensure that errno is valid
111129         when returning nonzero.
111131         * lib/save-cwd.h (restore_cwd): Update prototype.
111132         * lib/save-cwd.c (restore_cwd): Remove two parameters.
111133         Simplify.  Don't call error upon failure.  Let callers do that.
111134         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
111135         when auditing is enabled.  But don't bother updating the #if.
111137 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
111139         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
111140         it breaks C++ compilation.
111141         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
111143 2003-07-10  Simon Josefsson  <jas@extundo.com>
111145         * modules/strchrnul (Makefile.am): Add strchrnul.h.
111147 2003-07-10  Jim Meyering  <jim@meyering.net>
111149         * m4/clock_time.m4: Remove trailing blank.
111150         * m4/intmax_t.m4: Likewise.
111152 2003-07-10  Jim Meyering  <jim@meyering.net>
111154         * lib/vasnprintf.c: Remove trailing blanks.
111155         Make cpp indentation consistent.
111157 2003-07-09  Paul Eggert  <eggert@twinsun.com>
111159         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
111160         posixver.c, strftime.c, strnlen.c, strverscmp.c:
111161         Switch from LGPL to GPL.
111163 2003-07-09  Paul Eggert  <eggert@twinsun.com>
111165         * config/srclist.txt: Sort sublists.  Add
111166         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
111167         that differ from gnulib for one reason or another; we'd like this list
111168         to be smaller but for now let's document what we have.
111170 2003-07-08  Paul Eggert  <eggert@twinsun.com>
111172         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
111173         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
111174         and sweeter "eval x=$x".
111175         * config/srclist.txt: Get lib/argp* from glibc.
111177 2003-07-07  Paul Eggert  <eggert@twinsun.com>
111179         * lib/mktime.c: Fix some boundary cases and remove need for floating
111180         point.
111182         Issue a compile-time diagnostic if time_t is floating point, or if
111183         two's complement arithmetic is not in effect, or if arithmetic
111184         right shift does not propagate the sign.  These assumptions were
111185         all in the original code but they weren't checked.
111187         (TIME_T_MIDPOINT, verify): New macros.
111188         (__isleap): Remove; it has integer overflow problems.
111189         (leapyear): New function, without those problems.
111190         (ydhms_tm_diff): Remove; splitting into two parts.
111191         (ydhms_diff): New function, containing the arithmetic part of
111192         the old ydhms_tm_diff function.  Issue a compile-time
111193         diagnostic if we are not using C99 integer division.
111194         Avoid casts when possible.
111195         (guess_time_tm): New function, containing the checking part of
111196         the old ydhms_tm_diff function.  Return the new value, rather than
111197         the difference between it and the old.  Accept a new argument T
111198         so that *T specifies the old value.  Check for overflow in the result.
111200         (__mktime_internal): Use a time_t offset, not a long int offset.
111201         This undoes the 2003-06-04 change, which is no longer needed now
111202         that we have better overflow checking.
111203         (localtime_offset): Likewise.
111205         (__mktime_internal): Avoid harmful overflow on hosts where time_t
111206         and long are 64-bit but int is only 32-bit.
111207         (ydhms_diff): Use long int to store year1 and yday1.
111208         Issue a compile-time diagnostic if long int is not wide enough.
111210         (__mktime_internal): Use long int to store adjusted year and yday.
111211         Use plain C rather than preprocessor commands, if that doesn't
111212         affect efficiency.
111213         Check for overflow (and try to repair) after each probe
111214         rather than checking only at the very end.  This avoids some bugs
111215         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
111216         does not equal GMT offset at maximum time).
111217         Use integer to check for overflow rather than floating point; this
111218         is more portable to non-IEEE hosts, and is a tad faster.
111219         When we detect that we are oscillating between two values,
111220         don't check whether tm_isdst has the requested value, since
111221         we already know the answer.  When tm_isdst has the wrong value,
111222         use a different heuristic to find the right one, based on the
111223         extreme values actually observed in practice in tz2003a,
111224         rather than the (overly optimistic) "previous 3 calendar quarters".
111226         (not_equal_tm, print_tm, check_result): Use "const T" rather than
111227         "T const" to accommodate glibc style.
111228         (check_result): Use less-confusing report format.  "long" -> "long int.
111229         (main): Likewise.
111230         Don't loop if the iteration overflows time_t.
111231         Allow a negative step in the iteration.
111233 2003-07-06  Karl Berry  <karl@gnu.org>
111235         * config/depcomp: update from automake.
111236         * config/config.sub: update from prep.
111238 2003-07-03  Karl Berry  <karl@gnu.org>
111240         * config/config.guess: update from prep.
111242 2003-07-01  Paul Eggert  <eggert@twinsun.com>
111244         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
111245         xreadlink.c now includes it unconditionally.
111247 2003-07-01  Paul Eggert  <eggert@twinsun.com>
111249         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
111250         having it depend on HAVE_SYS_TYPES_H.
111252 2003-07-01  Bruno Haible  <bruno@clisp.org>
111254         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
111255         <sys/types.h> should be sufficient.
111256         Reported by Paul Eggert.
111258 2003-06-26  Karl Berry  <karl@gnu.org>
111260         * config/depcomp: update from automake.
111262 2003-06-26  Bruno Haible  <bruno@clisp.org>
111264         * modules/human: Depend on module stdbool.
111266 2003-06-25  Bruno Haible  <bruno@clisp.org>
111268         * modules/readlink: New file.
111269         * modules/xreadlink: Depend on it.
111270         * MODULES.html.sh (func_all_modules): Add readlink.
111272 2003-06-25  Bruno Haible  <bruno@clisp.org>
111274         * m4/readlink.m4: New file.
111276 2003-06-25  Bruno Haible  <bruno@clisp.org>
111278         * lib/readlink.c: New file.
111280 2003-06-22  Karl Berry  <karl@gnu.org>
111282         * config/srclist.txt: update mkinstalldirs from automake.
111283         * config/mkinstalldirs: update.
111285 2003-06-22  Bruno Haible  <bruno@clisp.org>
111287         Portability to mingw32.
111288         * m4/ssize_t.m4: New file, from GNU gettext.
111289         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
111290         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
111292 2003-06-22  Bruno Haible  <bruno@clisp.org>
111294         * modules/safe-read: Add m4/ssize_t.m4.
111295         * modules/xreadlink: Add m4/ssize_t.m4.
111297 2003-06-20  Bruno Haible  <bruno@clisp.org>
111299         Assume C89, so PARAMS isn't needed.
111300         * lib/unicodeio.h (PARAMS): Remove.
111301         * lib/unicodeio.c: Don't use PARAMS.
111303 2003-06-18  Karl Berry  <karl@gnu.org>
111305         * config/config.{guess,sub}: update from prep.
111307 2003-06-18  Jim Meyering  <jim@meyering.net>
111309         Merge changes from coreutils.
111310         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
111311         Remove explicit declarations of xmalloc and realloc.
111312         Include xalloc.h.
111313         (read_utmp): Remove anachronistic cast of xmalloc.
111315 2003-06-17  Paul Eggert  <eggert@twinsun.com>
111317         Assume C89, so PARAMS isn't needed.
111318         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
111319         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
111320         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
111321         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
111322         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
111323         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
111324         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
111325         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
111326         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
111327         lib/xstrtod.h, lib/xstrtol.h: Likewise.
111328         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
111329         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
111330         no longer needed. Anyway, config.h should always be included before any
111331         other file.
111333 2003-06-11  Simon Josefsson  <jas@extundo.com>
111335         * modules/sysexits: New file.
111336         * MODULES.html.sh (func_all_modules): Add sysexits.
111338 2003-06-11  Simon Josefsson  <jas@extundo.com>
111340         * lib/sysexit_.h: New file.
111342 2003-06-11  Derek Price  <derek@ximbiot.com>
111344         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
111345         necessary.
111347 2003-06-11  Bruno Haible  <bruno@clisp.org>
111349         * m4/sysexits.m4: New file.
111351 2003-06-10  Simon Josefsson  <jas@extundo.com>
111353         * lib/argp.h: New file, from glibc.
111354         * lib/argp-ba.c: New file, from glibc.
111355         * lib/argp-eexst.c: New file, from glibc.
111356         * lib/argp-fmtstream.c: New file, from glibc.
111357         * lib/argp-fmtstream.h: New file, from glibc.
111358         * lib/argp-fs-xinl.c: New file, from glibc.
111359         * lib/argp-help.c: New file, from glibc.
111360         * lib/argp-namefrob.h: New file, from glibc.
111361         * lib/argp-parse.c: New file, from glibc.
111362         * lib/argp-pv.c: New file, from glibc.
111363         * lib/argp-pvh.c: New file, from glibc.
111364         * lib/argp-xinl.c: New file, from glibc.
111366 2003-06-10  Simon Josefsson  <jas@extundo.com>
111368         * modules/strchrnul: New file.
111370 2003-06-10  Simon Josefsson  <jas@extundo.com>
111372         * modules/argp: New file.
111374 2003-06-10  Simon Josefsson  <jas@extundo.com>
111376         * m4/strchrnul.m4: New file.
111378 2003-06-10  Simon Josefsson  <jas@extundo.com>
111380         * lib/strchrnul.h: New file.
111381         * lib/strchrnul.c: New file.
111383 2003-06-10  Bruno Haible  <bruno@clisp.org>
111385         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
111387 2003-06-07  Karl Berry  <karl@gnu.org>
111389         * config/config.{guess,sub}: update from prep.
111391 2003-06-07  Jim Meyering  <jim@meyering.net>
111393         * modules/strtod: Use $(...) notation, not @...@ for
111394         AC_REPLACE'd variables.
111395         * modules/localcharset: Likewise.
111397 2003-06-07  Jim Meyering  <jim@meyering.net>
111399         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
111400         in place of my name in the copyright comment.
111401         Remove definition and uses of __P.
111403         From coreutils.
111404         * lib/stat.c: Don't declare xmalloc explicitly.
111405         Instead, include "xalloc.h".
111406         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
111407         xrealloc, and xcalloc return values.
111408         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
111409         Improve comment.
111410         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
111412 2003-06-07  Bruno Haible  <bruno@clisp.org>
111414         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
111415         avoid AC_CONFIG_LINKS.
111416         * modules/fnmatch (Makefile.am): Use explicit creation rule for
111417         fnmatch.h, to avoid AC_CONFIG_LINKS.
111418         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
111420 2003-06-07  Bruno Haible  <bruno@clisp.org>
111422         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
111423         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
111424         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
111425         directory.
111426         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
111427         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
111428         directory.
111430 2003-06-06  Jim Meyering  <jim@meyering.net>
111432         Merge from coreutils.
111433         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
111434         Consolidate declarations and initializations of *_base* locals.
111436         Merge from coreutils.
111437         This avoids a core dump on systems without GNU putenv,
111438         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
111439         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
111440         (unsetenv): New static function, from GNU libc.
111441         (rpl_putenv): Use it.
111443         * lib/modechange.c: Remove trailing blanks.
111445         Merge from coreutils.
111446         * lib/fsusage.c: Remove declaration of statfs.
111447         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
111449         * lib/posixtm.c: Include <stdbool.h> unconditionally.
111451 2003-06-06  Jim Meyering  <jim@meyering.net>
111453         * lib/stdbool_.h: Renamed from stdbool.h.in.
111455 2003-06-06  Jim Meyering  <jim@meyering.net>
111456             Bruno Haible  <bruno@clisp.org>
111458         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
111459         Adjust Makefile.am snippet not to redirect directly to target.
111460         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
111462 2003-06-05  Paul Eggert  <eggert@twinsun.com>
111464         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
111465         mismatch, look in future quarters as well as past.  This fixes a
111466         bug when processing fall-backwards gaps immediately after a long
111467         period of daylight-saving time.
111469         * lib/mktime.c: Assume freestanding C89 or better.
111470         (HAVE_LIMITS_H): Remove.  Assume it's 1.
111471         (__P): Remove; not used.
111472         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
111473         (mktime, not_equal_tm, print_tm, check_result,
111474         main): Use prototypes.  Use const * where appropriate.
111475         (main): Fix typo in testing code that uncovered by above changes.
111476         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
111478 2003-06-04  Paul Eggert  <eggert@twinsun.com>
111480         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
111481         locale.h, localeconv.  This merges changes from coreutils.
111483         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
111484         It can be removed after the next Autoconf is released.
111485         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
111486         needed.
111488 2003-06-04  Paul Eggert  <eggert@twinsun.com>
111490         * lib/mktime.c: Fix Debian bug 177940
111491         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
111492         (localtime_offset): Now long int, not time_t, because we want it
111493         to be guaranteed to be signed.  All uses changed.
111494         (__mktime_internal): If overflow would occur when adding offset,
111495         don't add it.
111497         Merge 'human' changes from coreutils.  Rewrite to support
111498         locale-specific notations like thousands separators.
111499         * lib/human.c: Simplify authorship notice.
111500         Include human.h immediately after config.h.
111501         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
111502         <limits.h>: Do not include, since human.h does.
111503         (SIZE_MAX, UINTMAX_MAX): New macros.
111504         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
111505         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
111506         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
111507         (power_letter): Renamed from suffixes.
111508         (generate_suffix_backwards): Remove.
111509         (adjust_value): Now takes int style (because of human.h changes)
111510         and long double value (for greater precision on some platforms).
111511         (group_number): New function.
111512         (human_readable): Use it.  Use integer options, not enum.
111513         Put the options before the sizes in the arg list.
111514         Support all the new options.
111515         The old human_readable function has been removed;
111516         use inttostr.h instead.
111517         (human_readable, default_block_size, humblock):
111518         Use uintmax_t, not int, for block sizes.
111519         (human_readable_inexact, block_size_types): Remove.
111520         (block_size_opts): New constant.
111521         (human_options): Renamed from human_block_size, with new signature
111522         that allows block sizes up to UINTMAX_MAX.  All callers changed.
111523         * lib/human.h: Add copyright and authorship notice.
111524         Include <limits.h> and <stdbool.h> unconditionally.
111525         (PARAMS): Remove.  All uses removed.
111526         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
111527         (enum human_inexact_style): Remove tag; now a nameless enum.
111528         (human_floor, human_ceiling, human_round_to_even): Now have
111529         values 2, 0, 1 rather than -1, 1, 0.
111530         (human_group_digits, human_suppress_point_zero, human_autoscale,
111531         human_base_1024, human_SI, human_B): New constants.
111532         (human_readable_inexact, human_block_size): Remove.
111533         (human_readable): Size args are now uintmax_t, not int.
111534         (human_options): New decl.
111536         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
111537         unnecessary now that we assume C89 or better.  This change
111538         imported from coreutils.
111540         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
111541         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
111542         in the 2003-05-30 sync from glibc.
111544         .h files should stand alone, but we shouldn't include <sys/types.h>
111545         if we can get away with just <stddef.h>.
111547         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
111548         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
111549         rather than <sys/types.h>, as we merely need size_t.
111550         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
111551         to get size_t.
111552         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
111553         Include <stdio.h>, to get FILE.
111554         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
111555         memcasecmp.h has included <stddef.h> and all we need is size_t.
111556         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
111557         our interface, instead of including <sys/types.h>
111559 2003-06-04  Paul Eggert  <eggert@twinsun.com>
111561         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
111562         now, as glibc mktime is buggy on non-glibc systems.
111564 2003-06-03  Karl Berry  <karl@gnu.org>
111566         * config/config.sub: update from prep.
111568 2003-06-02  Paul Eggert  <eggert@twinsun.com>
111570         [from coreutils]
111571         Fix some minor time-related bugs with POSIX time arguments.
111572         Some valid time stamps were being rejected (notably -1, and
111573         time stamps before 1900 on 64-bit hosts).  And some invalid
111574         time stamps were being accepted, e.g. September 31.
111576         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
111577         that we can return (time_t) -1 successfully.
111578         * lib/posixtm.c: Likewise.
111579         [HAVE_STDBOOL_H]: Include <stdbool.h>.
111580         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
111581         (t): Remove static var.
111582         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
111583         of static var.  All uses changed.
111584         (year): Do not reject years before 1900; they can occur with
111585         64-bit time_t.
111586         (posix_time_parse): Do not check for out-of-range components;
111587         that is now the caller's responsibility, since our checks were
111588         only approximations.
111589         (posixtime): Use mktime to check for out-of-range components,
111590         since it knows them exactly.
111591         If mktime returns (time_t) -1, check whether an error actually occurred
111592         by invoking localtime on -1.
111593         (main) [TEST_POSIXTIME]: Check for input data errors, and report
111594         posixtime failures better.
111595         Improve the test data (in comments only).
111597 2003-06-02  Karl Berry  <karl@gnu.org>
111599         * config/mkinstalldirs (version): new variable.
111600         (--version): new option.
111601         (usage): improve message.
111603 2003-05-30  Karl Berry  <karl@gnu.org>
111605         * lib/mktime.c: update from libc.
111607 2003-05-30  Bruno Haible  <bruno@clisp.org>
111609         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
111610         * config/config.rpath: Upgrade to gettext-0.12.1.
111612 2003-05-30  Bruno Haible  <bruno@clisp.org>
111614         * m4/gettext.m4: Upgrade to gettext-0.12.1.
111615         * m4/nls.m4: New file, from gettext-0.12.1.
111616         * m4/po.m4: New file, from gettext-0.12.1.
111617         * m4/progtest.m4: Upgrade to gettext-0.12.1.
111619 2003-05-30  Bruno Haible  <bruno@clisp.org>
111621         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
111622         * lib/localcharset.h: Likewise.
111623         * lib/localcharset.c: Likewise.
111625 2003-05-29  Karl Berry  <karl@gnu.org>
111627         * config/config.rpath: update from gettext.
111629 2003-05-28  Paul Eggert  <eggert@twinsun.com>
111631         Assume the headers required for C89 freestanding compilers.
111632         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
111633         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
111634         * m4/human.m4 (gl_HUMAN): Likewise.
111635         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
111636         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
111637         * m4/userspec.m4 (gl_USERSPEC): Likewise.
111638         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
111639         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
111640         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
111642 2003-05-28  Paul Eggert  <eggert@twinsun.com>
111644         Assume the headers required for C89 freestanding compilers.
111645         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
111646         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
111647         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
111648         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
111649         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
111650         define, since <limits.h> is guaranteed to do that.
111651         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
111652         * lib/exclude.c: Include <stdbool.h> unconditionally.
111653         * lib/tempname.c: Include <stddef.h> unconditionally.
111654         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
111655         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
111656         <stddef.h> does that.
111657         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
111658         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
111659         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
111660         needed.
111661         * lib/xstrtol.c: Likewise.
111662         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
111663         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
111665         * lib/addext.c (addext): Use assignment rather than cast, to avoid
111666         warnings on some platforms.
111668         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
111669         arbitrarily.
111671 2003-05-26  Jim Meyering  <jim@meyering.net>
111673         Merge in a change from coreutils:
111674         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
111675         that is guaranteed to be `no'.  Use `no_such_member' to indicate
111676         that condition, rather than `-1' which is slightly misleading.
111677         Change the name of the cache variable to have the gl_ prefix.
111678         Prompted by a patch from Richard Dawe for DJGPP.
111680 2003-05-24  Karl Berry  <karl@gnu.org>
111682         * config/config.guess: update from prep.
111684 2003-05-22  Karl Berry  <karl@gnu.org>
111686         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
111688 2003-05-20  Karl Berry  <karl@gnu.org>
111690         * config/config.guess: update from prep.
111692 2003-05-18  Karl Berry  <karl@gnu.org>
111694         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
111695         might actually be set by the user.
111697         * config/depcomp, install-sh, mdate-sh: update from automake.
111699 2003-05-17  Bruno Haible  <bruno@clisp.org>
111701         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
111702         invalid expansion for AC_EGREP_CPP.
111703         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
111704         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
111705         Suggested by Akim Demaille <akim@epita.fr> in
111706         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
111708 2003-05-12  Jim Meyering  <jim@meyering.net>
111710         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
111711         the space-padded-by-default conversion specifiers, %e, %k, %l.
111713 2003-05-12  Bruno Haible  <bruno@clisp.org>
111715         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
111716         the string is longer than 4 KB.
111718 2003-05-11  Karl Berry  <karl@gnu.org>
111720         * config/config.{guess,sub}: update from prep.
111722 2003-05-09  Bruno Haible  <bruno@clisp.org>
111724         * modules/error: Add m4/strerror_r.m4 to file list.
111726 2003-05-03  Bruno Haible  <bruno@clisp.org>
111728         Upgrade to Unicode-4.0.
111729         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
111730         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
111731         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
111732         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
111733         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
111734         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
111735         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
111736         Change width of U+E0100..U+E01EF from 1 to 0.
111738 2003-04-25  Jim Meyering  <jim@meyering.net>
111740         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
111741         of type size_t, not int.
111743 2003-04-25  Bruno Haible  <bruno@clisp.org>
111745         * lib/copy-file.c: Include <stddef.h>, for size_t.
111747 2003-04-21  Paul Eggert  <eggert@twinsun.com>
111749         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
111750         code which expansion is under static control.  Patch imported from
111751         Akim Demaille's patch to Bison; see
111752         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
111754 2003-04-14  Bruno Haible  <bruno@clisp.org>
111756         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
111758 2003-04-11  Jim Meyering  <jim@meyering.net>
111760         Merge changes from Coreutils.
111762         2003-03-22  Jim Meyering  <jim@meyering.net>
111764         * lib/strftime.c (widen): Cast alloca return value to proper type.
111766         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
111768         From GNU libc.
111769         * lib/strftime.c (my_strftime): Handle very large width
111770         specifications for numeric values correctly.  Improve checks for
111771         overflow.
111773         2003-01-19  Jim Meyering  <jim@meyering.net>
111775         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
111776         definitions.
111777         (nl_get_alt_digit) [! defined my_strftime]: Define.
111778         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
111779         _nl_get_alt_digit and _nl_get_walt_digit.
111781         * lib/strftime.c (my_strftime): Merge in locale-related changes from
111782         libc. These changes have no effect outside of _LIBC.
111784 2003-04-10  Bruno Haible  <bruno@clisp.org>
111786         * modules/findprog: New file.
111787         * MODULES.html.sh (func_all_modules): Add it.
111789 2003-04-10  Bruno Haible  <bruno@clisp.org>
111791         * m4/findprog.m4: New file.
111792         * m4/eaccess.m4: New file.
111794 2003-04-10  Bruno Haible  <bruno@clisp.org>
111796         * lib/findprog.h: New file, from GNU gettext.
111797         * lib/findprog.c: New file, from GNU gettext.
111799 2003-04-05  Jim Meyering  <jim@meyering.net>
111801         Merge changes from Coreutils.
111803         * lib/exclude.h (PARAMS): Remove definition and uses.
111804         * lib/exclude.c: Remove uses of `PARAMS'.
111806         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
111807         Add test-cases for DOS filenames. Declare program_name.
111808         (main): Set up program_name.  Patch by Rich Dawe.
111810         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
111811         error from mntctl.
111812         Use mntctl's return value to drive the entry-processing loop, since
111813         we can't rely on the value of the vmt_length member in the last
111814         entry.  On some systems doing so could result in exhausting
111815         virtual memory.  Based in part on a patch from Mike Jetzer.
111817 2003-04-04  Bruno Haible  <bruno@clisp.org>
111819         * modules/linebreak: New file.
111820         * MODULES.html.sh (func_all_modules): Add it.
111822 2003-04-04  Bruno Haible  <bruno@clisp.org>
111824         * m4/linebreak.m4: New file.
111826 2003-04-04  Bruno Haible  <bruno@clisp.org>
111828         * lib/linebreak.h: New file, from GNU gettext.
111829         * lib/linebreak.c: New file, from GNU gettext with slight
111830         modifications.
111831         * lib/lbrkprop.h: New file, from GNU gettext.
111833 2003-04-03  Bruno Haible  <bruno@clisp.org>
111835         * modules/utf8-ucs4: New file.
111836         * modules/utf16-ucs4: New file.
111837         * modules/ucs4-utf8: New file.
111838         * modules/ucs4-utf16: New file.
111839         * MODULES.html.sh (func_all_modules): Add them.
111841 2003-04-03  Bruno Haible  <bruno@clisp.org>
111843         * m4/utf-ucs4.m4: New file.
111844         * m4/ucs4-utf.m4: New file.
111846 2003-04-03  Bruno Haible  <bruno@clisp.org>
111848         * lib/utf8-ucs4.h: New file, from GNU gettext.
111849         * lib/utf16-ucs4.h: New file, from GNU gettext.
111850         * lib/ucs4-utf8.h: New file, from GNU gettext.
111851         * lib/ucs4-utf16.h: New file, from GNU gettext.
111853 2003-04-02  Bruno Haible  <bruno@clisp.org>
111855         * modules/binary-io: New file.
111856         * MODULES.html.sh (func_all_modules): Add it.
111858 2003-04-02  Bruno Haible  <bruno@clisp.org>
111860         * lib/binary-io.h: New file, from GNU gettext.
111862 2003-04-01  Bruno Haible  <bruno@clisp.org>
111864         * modules/pathname: New file.
111865         * MODULES.html.sh (func_all_modules): Add it.
111867 2003-04-01  Bruno Haible  <bruno@clisp.org>
111869         * lib/pathname.h: New file, from GNU gettext.
111870         * lib/concatpath.c: New file, from GNU gettext.
111872 2003-03-30  Bruno Haible  <bruno@clisp.org>
111874         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
111876 2003-03-30  Bruno Haible  <bruno@clisp.org>
111878         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
111879         function chown() doesn't exist.
111881 2003-03-28  Bruno Haible  <bruno@clisp.org>
111883         * modules/copy-file: New file.
111884         * MODULES.html.sh (func_all_modules): Add it.
111886 2003-03-28  Bruno Haible  <bruno@clisp.org>
111888         * m4/copy-file.m4: New file.
111890 2003-03-28  Bruno Haible  <bruno@clisp.org>
111892         * lib/copy-file.h: New file, from GNU gettext.
111893         * lib/copy-file.c: New file, from GNU gettext.
111895 2003-03-18  Jim Meyering  <jim@meyering.net>
111897         * lib/quote.c (quote_n): Fix typo in comment.
111899 2003-03-18  Bruno Haible  <bruno@clisp.org>
111901         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
111902         checking.
111903         * m4/onceonly_2_57.m4: Likewise.
111905 2003-03-17  Bruno Haible  <bruno@clisp.org>
111907         * m4/onceonly.m4: Require autoconf 2.54 or newer.
111908         (m4_quote): Remove macro.
111909         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
111911 2003-03-14  Jim Meyering  <jim@meyering.net>
111913         Merge changes from Coreutils.
111914         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
111915         to be const, in order to avoid warnings.
111916         (obstack_room): Likewise.
111917         (obstack_empty_p): Likewise.
111919 2003-03-14  Bruno Haible  <bruno@clisp.org>
111921         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
111922         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
111924 2003-03-13  Paul Eggert  <eggert@twinsun.com>
111926         Merge changes from Bison.
111927         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
111928         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
111929         when compiling Bison 1.875's `bitset bset = obstack_alloc
111930         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
111931         * lib/hash.c: Include <stdbool.h> unconditionally.
111933 2003-03-13  Paul Eggert  <eggert@twinsun.com>
111935         * m4/onceonly.m4 (m4_quote): New macro.
111936         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
111937         Quote AC_FOREACH variable-expansions properly.
111939 2003-03-13  Paul Eggert  <eggert@twinsun.com>
111941         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
111943 2003-03-09  Paul Eggert  <eggert@twinsun.com>
111945         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
111946         Reported by Bruce Becker; see:
111947         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
111949 2003-03-03  Paul Eggert  <eggert@twinsun.com>
111950             Bruno Haible  <bruno@clisp.org>
111952         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
111953         Reported by John Hughes, see
111954         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
111956 2003-02-20  Bruno Haible  <bruno@clisp.org>
111958         * MODULES.html.sh (func_all_modules): Add poll.
111960 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
111962         * modules/poll: New file.
111964 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
111966         * lib/poll_.h: New file.
111967         * lib/poll.c: New file.
111969 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
111971         * m4/poll.m4: New file.
111973 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
111975         * modules/mathl: New file.
111977 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
111979         * lib/mathl.h: New file.
111980         * lib/acosl.c: New file.
111981         * lib/asinl.c: New file.
111982         * lib/atanl.c: New file.
111983         * lib/ceill.c: New file.
111984         * lib/cosl.c: New file.
111985         * lib/expl.c: New file.
111986         * lib/floorl.c: New file.
111987         * lib/frexpl.c: New file.
111988         * lib/ldexpl.c: New file.
111989         * lib/logl.c: New file.
111990         * lib/sincosl.c: New file.
111991         * lib/sinl.c: New file.
111992         * lib/sqrtl.c: New file.
111993         * lib/tanl.c: New file.
111994         * lib/trigl.c: New file.
111995         * lib/trigl.h: New file.
111997 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
111999         * m4/mathl.m4: New file.
112001 2003-02-18  Bruno Haible  <bruno@clisp.org>
112003         * MODULES.html.sh (func_all_modules): Add mathl.
112005 2003-02-17  Bruno Haible  <bruno@clisp.org>
112007         * modules/mkdtemp: New module.
112008         * MODULES.html.sh (func_all_modules): Add it.
112010 2003-02-17  Bruno Haible  <bruno@clisp.org>
112012         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
112014 2003-02-17  Bruno Haible  <bruno@clisp.org>
112016         * lib/mkdtemp.h: New file, from GNU gettext.
112017         * lib/mkdtemp.c: New file, from GNU gettext.
112019 2003-02-02  Jim Meyering  <jim@meyering.net>
112021         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
112022         e.g. glibc-2.2.93.
112024 2003-01-31  Bruno Haible  <bruno@clisp.org>
112026         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
112027         'rpl_rename'.
112028         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
112029         'rpl_strnlen'.
112030         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
112031         'rpl_strtod'.
112032         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
112033         'rpl_utime'.
112035 2003-01-31  Bruno Haible  <bruno@clisp.org>
112037         * lib/rename.c: #undef rename before defining rpl_rename.
112038         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
112040 2003-01-30  Bruno Haible  <bruno@clisp.org>
112042         * modules/vasnprintf, modules/vasprintf: New modules.
112043         * MODULES.html.sh (func_all_modules): Add them.
112045 2003-01-30  Bruno Haible  <bruno@clisp.org>
112047         * m4/signed.m4: New file, from GNU gettext.
112048         * m4/longdouble.m4: New file, from GNU gettext.
112049         * m4/wchar_t.m4: New file, from GNU gettext.
112050         * m4/wint_t.m4: New file, from GNU gettext.
112051         * m4/vasnprintf.m4: New file.
112052         * m4/vasprintf.m4: New file.
112054 2003-01-30  Bruno Haible  <bruno@clisp.org>
112056         * lib/printf-args.h: New file, from GNU gettext.
112057         * lib/printf-args.c: New file, from GNU gettext.
112058         * lib/printf-parse.h: New file, from GNU gettext.
112059         * lib/printf-parse.c: New file, from GNU gettext.
112060         * lib/vasnprintf.h: New file, from GNU gettext.
112061         * lib/vasnprintf.c: New file, from GNU gettext.
112062         * lib/asnprintf.c: New file, from GNU gettext.
112063         * lib/vasprintf.h: New file, from GNU gettext with modifications.
112064         * lib/vasprintf.c: New file, from GNU gettext.
112065         * lib/asprintf.c: New file, from GNU gettext.
112067 2003-01-29  Bruno Haible  <bruno@clisp.org>
112069         * modules/stpncpy: New module.
112070         * MODULES.html.sh (func_all_modules): Add it.
112072 2003-01-29  Bruno Haible  <bruno@clisp.org>
112074         * m4/stpncpy.m4: New file.
112076 2003-01-29  Bruno Haible  <bruno@clisp.org>
112078         * lib/stpncpy.h: New file, from GNU gettext with modifications.
112079         * lib/stpncpy.c: New file, from GNU gettext with modifications.
112081 2003-01-28  Bruno Haible  <bruno@clisp.org>
112083         * modules/c-ctype: New module.
112084         * MODULES.html.sh (func_all_modules): Add it.
112086 2003-01-28  Bruno Haible  <bruno@clisp.org>
112088         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
112089         Paul Eggert.
112090         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
112091         Paul Eggert.
112093 2003-01-27  Bruno Haible  <bruno@clisp.org>
112095         * modules/xsetenv: New module.
112096         * MODULES.html.sh (func_all_modules): Add it.
112098 2003-01-27  Bruno Haible  <bruno@clisp.org>
112100         * lib/xsetenv.h: New file, from GNU gettext.
112101         * lib/xsetenv.c: New file, from GNU gettext.
112103 2003-01-23  Jim Meyering  <jim@meyering.net>
112105         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
112106         from working on systems without dirfd (at least Irix and OSF1/Tru64).
112108 2003-01-23  Bruno Haible  <bruno@clisp.org>
112110         * modules/minmax: New module.
112111         * MODULES.html.sh (func_all_modules): Add it.
112113 2003-01-23  Bruno Haible  <bruno@clisp.org>
112115         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
112116         Eggert.
112118 2003-01-22  Bruno Haible  <bruno@clisp.org>
112120         * modules/exit: New module.
112121         * MODULES.html.sh (func_all_modules): Add it.
112123 2003-01-22  Bruno Haible  <bruno@clisp.org>
112125         * lib/exit.h: New file, from GNU gettext.
112127 2003-01-19  Bruno Haible  <bruno@clisp.org>
112129         * gnulib-tool: Recognize option --extract-maintainer.
112130         (func_get_maintainer): New function.
112131         * modules/*: Add Maintainer entry.
112133 2003-01-16  Jim Meyering  <jim@meyering.net>
112135         * m4/regex.m4: The `regex' struct is both input and output.
112136         Initialize it before each use.  Patch by Tim Waugh.
112138 2003-01-16  Bruno Haible  <bruno@clisp.org>
112140         * MODULES.html.sh: Add a table of contents. Add the module name as
112141         leftmost column. Add hyperlinks.
112143 2003-01-15  Bruno Haible  <bruno@clisp.org>
112145         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
112147 2003-01-15  Bruno Haible  <bruno@clisp.org>
112149         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
112150         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
112151         suffix.
112153 2003-01-15  Bruno Haible  <bruno@clisp.org>
112155         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
112157 2003-01-15  Bruno Haible  <bruno@clisp.org>
112159         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
112160         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
112162 2003-01-14  Jim Meyering  <jim@meyering.net>
112164         * lib/same.c (same_name): Tweak a comment.
112166 2003-01-14  Bruno Haible  <bruno@clisp.org>
112168         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
112169         when a string comparison is sufficient.
112171 2003-01-14  Bruno Haible  <bruno@clisp.org>
112173         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
112174         'unsigned int'.
112176 2003-01-14  Bruno Haible  <bruno@clisp.org>
112178         * lib/hash-pjw.c: Add comment about low quality of this function.
112180 2003-01-13  Bruno Haible  <bruno@clisp.org>
112182         * modules/stpcpy: Distribute lib/stpcpy.h.
112183         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
112185 2003-01-13  Bruno Haible  <bruno@clisp.org>
112187         * modules/*: Add a description.
112188         * modules/strpbrk: Fix Makefile.am snippet.
112189         * modules/strtoimax: Fix dependencies.
112190         * modules/strtoumax: Likewise.
112192 2003-01-13  Bruno Haible  <bruno@clisp.org>
112194         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
112195         * modules/alloca (Makefile.am): All object files depend on alloca.h.
112196         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
112198 2003-01-13  Bruno Haible  <bruno@clisp.org>
112200         * gnulib-tool (func_create_testdir): Store config/* files in the main
112201         directory.
112202         * config.rpath: Move to ...
112203         * config/config.rpath: ... here.
112204         * modules/gettext: Contains config/config.rpath, not config.rpath.
112205         * modules/iconv: Likewise.
112207 2003-01-12  Paul Eggert  <eggert@twinsun.com>
112209         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
112210         to avoid collisions with libcurses and libreadline.
112212         * m4/getstr.m4: Remove.
112213         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
112215 2003-01-12  Paul Eggert  <eggert@twinsun.com>
112217         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
112218         to avoid collisions with libcurses and libreadline.
112220         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
112221         * lib/getstr.h, getstr.c: Remove.
112222         * lib/getline.c: Include "getline.h", to check interface.
112223         Move body of old getstr.c here: this defines MIN_CHUNK and
112224         declares getdelim2, which is renamed from getstr.
112225         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
112227         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
112228         All uses changed.
112229         * lib/linebuffer.h: Likewise.
112230         (readline): Remove backward-compatibility macro.
112232 2003-01-12  Paul Eggert  <eggert@twinsun.com>
112234         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
112235         to avoid collisions with libcurses and libreadline.
112236         * getstr: Remove.
112237         * MODULES.html.sh: Remove getstr.
112238         * modules/getline: Depend on unlocked-io, not getstr.
112240 2003-01-12  Jim Meyering  <jim@meyering.net>
112242         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
112244 2003-01-10  Bruno Haible  <bruno@clisp.org>
112246         * modules/alloca: Change Makefile.am requirements. Simplify Include
112247         requirements. Add lib/alloca_.h to file list.
112249 2003-01-10  Bruno Haible  <bruno@clisp.org>
112251         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
112253 2003-01-10  Bruno Haible  <bruno@clisp.org>
112255         * lib/alloca_.h: New file.
112256         * lib/getdate.y: Unconditionally include alloca.h.
112257         * lib/makepath.c: Likewise.
112258         * lib/setenv.c: Likewise.
112259         * lib/userspec.c: Likewise.
112261 2003-01-09  Karl Berry  <karl@gnu.org>
112263         * MODULES.html.sh: include `dirname $0` in PATH, to find
112264         gnulib-tool.
112266 2003-01-09  Bruno Haible  <bruno@clisp.org>
112268         * modules/stdbool: Change configure.ac, Makefile.am requirements.
112269         Simplify Include requirements. Add lib/stdbool.h.in to file list.
112271 2003-01-09  Bruno Haible  <bruno@clisp.org>
112273         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
112275 2003-01-09  Bruno Haible  <bruno@clisp.org>
112277         * lib/stdbool.h.in: New file.
112279 2003-01-09  Bruno Haible  <bruno@clisp.org>
112281         * gnulib-tool (func_all_modules): Ignore files ending in ~.
112282         * MODULES.html.sh: Likewise.
112284 2003-01-08  Jim Meyering  <jim@meyering.net>
112286         * lib/full-write.c: Undefine and define-away `const' after inclusion
112287         of errno.h, not before.  Suggestion from Bruno Haible.
112289 2003-01-08  Bruno Haible  <bruno@clisp.org>
112291         * modules/full-read: Depend on full-write.
112293 2003-01-08  Bruno Haible  <bruno@clisp.org>
112295         * lib/safe-read.c: Include specification header first, to ensure its
112296         selfcontainedness.
112297         * lib/full-write.c: Likewise.
112299 2003-01-07  Jim Meyering  <jim@meyering.net>
112301         * lib/full-write.c: Rework so that it may serve to define full_read,
112302         too.
112303         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
112305 2003-01-07  Bruno Haible  <bruno@clisp.org>
112307         * lib/strtoimax.c: Include <stdint.h> as an alternative to
112308         <inttypes.h>.
112309         * lib/xstrtol.h: Likewise.
112310         * lib/xstrtoimax.c: Likewise.
112311         * lib/xstrtoumax.c: Likewise.
112312         * lib/human.h: Likewise.
112314         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
112315         on systems that have <inttypes.h> but not <stdint.h>.
112317 2003-01-07  Bruno Haible  <bruno@clisp.org>
112319         * MODULES.html.sh: Add copyright notice.
112320         (missed_files): Omit CVS directory entries.
112321         (func_module): Make it work with sed-3.02.
112322         * MODULES.txt: Remove file.
112324 2003-01-06  Jim Meyering  <jim@meyering.net>
112326         * lib/version-etc.c: Update year in translatable copyright string.
112328 2003-01-03  Karl Berry  <karl@gnu.org>
112330         * config/config.{guess,sub}: update from prep.
112332 2003-01-02  Karl Berry  <karl@gnu.org>
112334         * doc/COPYING.DOC: belatedly updated to 1.2.
112336 2003-01-01  Karl Berry  <karl@gnu.org>
112338         * gnulib-tool (func_verify_module): report module name $module in
112339         error message, not $1.
112340         * gnulib-tool (create-testdir): don't complain if destdir couldn't
112341         be created, only if it doesn't exist.
112342         * gnulib-tool (last_checkin_date): don't expand the $Date here.
112344 2002-12-31  Paul Eggert  <eggert@twinsun.com>
112346         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
112348 2002-12-31  Paul Eggert  <eggert@twinsun.com>
112350         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
112351         memcmp if strcoll doesn't work.
112353 2002-12-31  Bruno Haible  <bruno@clisp.org>
112355         * lib/utime.c (utime_null): No need to call ftruncate if the file was
112356         nonempty.
112358 2002-12-31  Bruno Haible  <bruno@clisp.org>
112360         * lib/memcoll.c (STRCOLL): New macro.
112361         (memcoll): Use it.
112363 2002-12-31  Bruno Haible  <bruno@clisp.org>
112365         * lib/localcharset.h: New file.
112366         * lib/localcharset.c: Include it.
112367         * lib/unicodeio.c: Likewise.
112369 2002-12-31  Bruno Haible  <bruno@clisp.org>
112371         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
112372         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
112374 2002-12-31  Bruno Haible  <bruno@clisp.org>
112376         * lib/getline.h: Include <stddef.h>, for size_t.
112378         * lib/unicodeio.h: Include <stddef.h>, for size_t.
112379         * lib/unicodeio.c: Don't include <stddef.h>.
112381 2002-12-31  Bruno Haible  <bruno@clisp.org>
112383         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
112384         HAVE_TM_ZONE.
112386 2002-12-24  Karl Berry  <karl@gnu.org>
112388         * config/config.guess: update from prep.
112390 2002-12-24  Bruno Haible  <bruno@clisp.org>
112392         General infrasructure.
112393         * m4/README: Rewritten.
112394         * m4/onceonly.m4: New file.
112395         * m4/onceonly_2_57.m4: New file.
112397         Module atexit.
112398         * m4/atexit.m4: New file.
112400         Module strtod.
112401         * m4/strtod.m4: New file.
112403         Module strtol.
112404         * m4/strtol.m4: New file.
112406         Module strtoul.
112407         * m4/strtoul.m4: New file.
112409         Module memchr.
112410         * m4/memchr.m4: New file.
112412         Module memcmp.
112413         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
112414         (jm_FUNC_MEMCMP): Invoke it.
112416         Module memcpy.
112417         * m4/memcpy.m4: New file.
112419         Module memmove.
112420         * m4/memmove.m4: New file.
112422         Module memset.
112423         * m4/memset.m4: New file.
112425         Module strcspn.
112426         * m4/strcspn.m4: New file.
112428         Module strpbrk.
112429         * m4/strpbrk.m4: New file.
112431         Module strstr.
112432         * m4/strstr.m4: New file.
112434         Module strerror.
112435         * m4/strerror.m4: New file.
112437         Module mktime.
112438         * m4/mktime.m4: Renamed from jm-mktime.m4.
112439         (gl_PREREQ_MKTIME): New macro.
112440         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
112442         Module malloc.
112443         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
112444         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
112445         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
112447         Module realloc.
112448         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
112449         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
112450         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
112452         Module strftime.
112453         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
112454         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
112455         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
112456         gl_TM_GMTOFF.
112457         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
112459         Module xalloc.
112460         * m4/xalloc.m4: New file.
112462         Module alloca.
112463         * m4/alloca.m4: New file.
112465         Module putenv.
112466         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
112467         (jm_FUNC_PUTENV): Invoke it.
112469         Module setenv.
112470         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
112471         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
112472         when invoked twice.
112473         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
112474         gt_FUNC_SETENV.
112476         Module memrchr.
112477         * m4/memrchr.m4: New file.
112479         Module stpcpy.
112480         * m4/stpcpy.m4: New file.
112482         Module strcase.
112483         * m4/strcase.m4: New file.
112485         Module strdup.
112486         * m4/strdup.m4: New file.
112488         Module strnlen.
112489         * m4/strnlen.m4: New file.
112491         Module strndup.
112492         * m4/strndup.m4: New file.
112494         Module xstrtod.
112495         * m4/xstrtod.m4: New file.
112497         Module xstrtol.
112498         * m4/xstrtol.m4: New file.
112500         Module getdate.
112501         * m4/getdate.m4: New file.
112503         Module unlocked-io.
112504         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
112505         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
112506         * m4/jm-glibc-io.m4n: Remove file.
112508         Module long-options.
112509         * m4/long-options.m4: New file.
112511         Module md5.
112512         * m4/md5.m4: New file.
112514         Module sha.
112515         * m4/sha.m4: New file.
112517         Module getstr.
112518         * m4/getstr.m4: New file.
112520         Module getline.
112521         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
112522         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
112523         <sys/types.h>, for size_t. Use the function name gnu_getline, not
112524         simply getline. Infoke gl_PREREQ_GETLINE.
112526         Module obstack.
112527         * m4/obstack.m4: New file.
112529         Module hash.
112530         * m4/hash.m4: New file.
112532         Module readtokens.
112533         * m4/readtokens.m4: New file.
112535         Module strverscmp.
112536         * m4/strverscmp.m4: New file.
112538         Module stdbool.
112539         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
112540         OSF/1.
112542         Module strtoll.
112543         * m4/strtoll.m4: New file.
112545         Module strtoull.
112546         * m4/strtoull.m4: New file.
112548         Module strtoimax.
112549         * m4/strtoimax.m4: New file.
112551         Module strtoumax.
112552         * m4/strtoumax.m4: New file.
112554         Module xstrtoimax.
112555         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
112556         jm_AC_PREREQ_XSTRTOIMAX.
112557         Moved the strtol prerequisites to strtol.m4.
112558         Moved the strtoll prerequisites to strtoll.m4.
112559         Moved the strtoimax prerequisites to strtoimax.m4.
112561         Module xstrtoumax.
112562         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
112563         jm_AC_PREREQ_XSTRTOUMAX.
112564         Moved the strtoul prerequisites to strtoul.m4.
112565         Moved the strtoull prerequisites to strtoull.m4.
112566         Moved the strtoumax prerequisites to strtoumax.m4.
112568         Module chown.
112569         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
112570         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
112572         Module dup2.
112573         * m4/dup2.m4: New file.
112575         Module ftruncate.
112576         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
112577         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
112579         Module getgroups.
112580         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
112581         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
112583         Module gettimeofday.
112584         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
112585         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
112586         gl_PREREQ_GETTIMEOFDAY.
112588         Module mkdir.
112589         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
112590         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
112592         Module mkstemp.
112593         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
112594         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
112595         jm_AC_TYPE_UINTMAX_T.
112596         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
112598         Module stat.
112599         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
112600         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
112602         Module lstat.
112603         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
112604         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
112606         Module timespec.
112607         * m4/timespec.m4 (gl_TIMESPEC): New macro.
112608         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
112609         * m4/st_mtim.m4: Indentation.
112611         Module nanosleep.
112612         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
112613         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
112614         gl_PREREQ_NANOSLEEP.
112616         Module regex.
112617         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
112618         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
112619         (gl_REGEX): New macro.
112621         Module rename.
112622         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
112623         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
112625         Module rmdir.
112626         * m4/rmdir.m4: New file.
112628         Module utime.
112629         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
112630         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
112631         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
112633         Module dirname.
112634         * m4/dirname.m4: New file.
112636         Module getopt.
112637         * m4/getopt.m4: New file.
112639         Module unistd-safer.
112640         * m4/unistd-safer.m4: New file.
112642         Module fnmatch.
112643         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
112644         declaration.
112645         (gl_PREREQ_FNMATCH_EXTRA): New macro.
112646         (gl_FUNC_FNMATCH_POSIX): New macro.
112647         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
112648         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
112649         simply fnmatch.
112651         Module exclude.
112652         * m4/exclude.m4: New file.
112654         Module human.
112655         * m4/human.m4: New file.
112657         Module acl.
112658         * m4/acl.m4: Nop.
112660         Module backupfile.
112661         * m4/backupfile.m4: New file.
112662         * m4/d-ino.m4: Indentation.
112664         Module fsusage.
112665         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
112666         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
112667         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
112669         Module dirfd.
112670         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
112671         requirements.
112673         Module euidaccess.
112674         * m4/euidaccess.m4: New file.
112676         Module file-type.
112677         * m4/file-type.m4: New file.
112679         Module fileblocks.
112680         * m4/fileblocks.m4: New file.
112682         Module filemode.
112683         * m4/filemode.m4: New file.
112685         Module isdir.
112686         * m4/isdir.m4: New file.
112688         Module lchown.
112689         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
112690         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
112692         Module makepath.
112693         * m4/makepath.m4: New file.
112695         Module modechange.
112696         * m4/modechange.m4: New file.
112698         Module mountlist.
112699         * m4/mountlist.m4: New file.
112700         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
112701         Indentation.
112703         Module path-concat.
112704         * m4/path-concat.m4: New file.
112706         Module pathmax.
112707         * m4/pathmax.m4: New file.
112709         Module same.
112710         * m4/same.m4: New file.
112712         Module save-cwd.
112713         * m4/save-cwd.m4: New file.
112715         Module savedir.
112716         * m4/savedir.m4: New file.
112718         Module xgetcwd.
112719         * m4/xgetcwd.m4: New file.
112720         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
112722         Module xreadlink.
112723         * m4/xreadlink.m4: New file.
112725         Module safe-read.
112726         * m4/safe-read.m4: New file.
112728         Module safe-write.
112729         * m4/safe-write.m4: New file.
112731         Module closeout.
112732         * m4/closeout.m4: New file.
112734         Module stdio-safer.
112735         * m4/stdio-safer.m4: New file.
112737         Module getpass.
112738         * m4/getpass.m4: New file.
112740         Module getugroups.
112741         * m4/getugroups.m4: New file.
112743         Module group-member.
112744         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
112745         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
112747         Module idcache.
112748         * m4/idcache.m4: New file.
112750         Module userspec.
112751         * m4/userspec.m4: New file.
112753         Module gettime.
112754         * m4/clock_time.m4: New file.
112755         * m4/gettime.m4: New file.
112757         Module settime.
112758         * m4/settime.m4: New file.
112760         Module posixtm.
112761         * m4/posixtm.m4: New file.
112763         Module gethostname.
112764         * m4/gethostname.m4: New file.
112766         Module canon-host.
112767         * m4/canon-host.m4: New file.
112769         Module gettext.
112770         * m4/codeset.m4: New file, from gettext-0.11.5.
112771         * m4/gettext.m4: New file, from gettext-0.11.5.
112772         * m4/glibc21.m4: New file, from gettext-0.11.5.
112773         * m4/iconv.m4: New file, from gettext-0.11.5.
112774         * m4/intdiv0.m4: New file, from gettext-0.11.5.
112775         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
112776         * m4/inttypes.m4: New file, from gettext-0.11.5.
112777         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
112778         * m4/isc-posix.m4: New file, from gettext-0.11.5.
112779         * m4/lcmessage.m4: New file, from gettext-0.11.5.
112780         * m4/lib-ld.m4: New file, from gettext-0.11.5.
112781         * m4/lib-link.m4: New file, from gettext-0.11.5.
112782         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
112783         * m4/progtest.m4: New file, from gettext-0.11.5.
112784         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
112785         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
112786         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
112788         Module localcharset.
112789         * m4/localcharset.m4: New file.
112791         Module hard-locale.
112792         * m4/hard-locale.m4: New file.
112794         Module mbswidth.
112795         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
112796         onceonly macros.
112797         * m4/mbrtowc.m4: Add comment.
112799         Module memcasecmp.
112800         * m4/memcasecmp.m4: New file.
112802         Module memcoll.
112803         * m4/memcoll.m4: New file.
112805         Module unicodeio.
112806         * m4/unicodeio.m4: New file.
112808         Module rpmatch.
112809         * m4/rpmatch.m4: New file.
112811         Module yesno.
112812         * m4/yesno.m4: New file.
112814         Module exitfail.
112815         * m4/exitfail.m4: New file.
112817         Module c-stack.
112818         * m4/c-stack.m4 (gl_C_STACK): New macro.
112819         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
112821         Module error.
112822         * m4/error.m4 (gl_ERROR): New macro.
112823         (jm_PREREQ_ERROR): Use onceonly macros.
112825         Module fatal.
112826         * m4/fatal.m4: New file.
112828         Module getloadavg.
112829         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
112830         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
112832         Module getpagesize.
112833         * m4/getpagesize.m4: New file.
112835         Module getusershell.
112836         * m4/getusershell.m4: New file.
112838         Module physmem.
112839         * m4/physmem.m4: New file.
112841         Module posixver.
112842         * m4/posixver.m4: New file.
112844         Module quotearg.
112845         * m4/quotearg.m4: New file.
112847         Module quote.
112848         * m4/quote.m4: New file.
112850         Module readutmp.
112851         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
112853         Module sig2str.
112854         * m4/sig2str.m4: New file.
112856         Other.
112857         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
112858         ulonglong.m4.
112859         * m4/intmax_t.m4: New file.
112860         * m4/d-type.m4: Indentation.
112861         * m4/jm-macros.m4: Update.
112862         * m4/prereq.m4 (jm_PREREQ): Update.
112863         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
112864         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
112865         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
112866         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
112867         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
112868         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
112869         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
112870         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
112871         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
112872         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
112873         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
112874         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
112875         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
112876         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
112877         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
112878         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
112879         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
112880         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
112881         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
112883 2002-12-24  Bruno Haible  <bruno@clisp.org>
112885         * MODULES.txt: Update according to m4/ changes.
112887         Module gettext.
112888         * config.rpath: New file, from gettext-0.11.5.
112890         * modules/*: New module descriptions.
112891         * gnulib-tool: New file.
112892         * MODULES.html.sh: New file.
112894 2002-12-21  Karl Berry  <karl@gnu.org>
112896         * doc/fdl.texi: update to version 1.2.
112898 2002-12-19  Karl Berry  <karl@gnu.org>
112900         * config/config.guess: update from prep.
112902 2002-12-18  Bruno Haible  <bruno@clisp.org>
112904         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
112905         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
112907 2002-12-17  Bruno Haible  <bruno@clisp.org>
112909         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
112910         stdlib.h, string.h.
112912 2002-12-17  Bruno Haible  <bruno@clisp.org>
112914         * lib/canon-host.c (strdup): Remove unused declaration.
112916         * lib/fsusage.c: Include full_read.h.
112917         (get_fs_usage): Use full_read instead of safe_read.
112919         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
112921 2002-12-12  Karl Berry  <karl@gnu.org>
112923         * config/config.guess: update from prep.
112925 2002-12-11  Bruno Haible  <bruno@clisp.org>
112927         * m4/setenv.m4: New file, from gettext-0.11.5.
112929 2002-12-11  Bruno Haible  <bruno@clisp.org>
112931         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
112932         not unsetenv().
112933         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
112934         modifications:
112936         2002-12-11  Bruno Haible  <bruno@clisp.org>
112938                 * setenv.c (alloca): Fall back to malloc.
112939                 (freea): New macro.
112940                 (setenv): Use freea() to free memory allocated with alloca().
112942         2002-11-13  Bruno Haible  <bruno@clisp.org>
112944                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
112945                 function declarations.
112946                 * unsetenv.c (unsetenv): Likewise.
112948         2002-03-04  Bruno Haible  <bruno@clisp.org>
112950                 Portability to AIX 4.3.3.
112951                 * unsetenv.c: New file, extracted from setenv.c.
112952                 * setenv.c: Move the unsetenv() function to unsetenv.c.
112954         2001-12-20  Bruno Haible  <bruno@clisp.org>
112956                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
112957                 use malloc instead. For SunOS 4.
112959         2001-12-11  Bruno Haible  <bruno@clisp.org>
112961                 * setenv.c: Declare alloca.
112962                 (compar_fn_t): New typedef.
112963                 (KNOWN_VALUE, STORE_VALUE): Use it.
112965         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
112966         setenv.h.
112968 2002-12-10  Paul Eggert  <eggert@twinsun.com>
112970         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
112971         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
112972         Choose values that are less likely to collide with system fnmatch
112973         options.
112974         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
112975         defined (e.g., a pure POSIX system).
112976         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
112977         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
112979 2002-12-06  Paul Eggert  <eggert@twinsun.com>
112981         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
112982         a pain in practice to deal with generated m4 files.  This change
112983         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
112985         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
112986         and jm-glibc-io.m4, as they are no longer a special case.
112987         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
112988         kludge and the auto-generation stuff.  Check only whether the
112989         functions are declared, not whether they exist, since older hosts
112990         that don't declare the functions can't use the optimization anyway.
112992 2002-12-06  Jim Meyering  <jim@meyering.net>
112994         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
112996         Merge in changes from libc's misc/error.c, in preparation
112997         for the merge of gnulib's changes back into libc.
112999         * lib/error.c (_): Define only if not already defined.
113000         Move definition to follow all #include directives.
113001         Include unlocked-io.h only if !_LIBC.
113002         [_LIBC]: Include <libio/libioP.h>.
113003         [USE_IN_LIBIO]: Include <libio/iolibio.h>
113004         (fflush): Tweak definition to use INTUSE.
113005         (putc): Define.
113007 2002-12-05  Paul Eggert  <eggert@twinsun.com>
113009         * lib/alloca.c [defined emacs]: Include "lisp.h".
113010         (xalloc_die) [defined emacs]: New macro.
113011         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
113012         [! defined emacs]: Include <xalloc.h>.
113013         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
113014         (pointer): Typedef to POINTER_TYPE *.
113015         (malloc): Remove decl; we now always use xmalloc.
113016         (alloca): Use old-style definition, since Emacs needs this.
113017         Check for arithmetic overflow when computing combined size.
113019 2002-12-04  Paul Eggert  <eggert@twinsun.com>
113021         Do not generate unlocked-io.h automatically, since it's easier to
113022         maintain it by hand.
113024         * lib/unlocked-io.h: New file, from GNU diffutils,
113025         but with proper copyright notice and attribution.
113026         * lib/gen-uio: Remove.
113027         * lib/Makefile.am: Add copyright notice.
113028         (libfetish_a_SOURCES): Add unlocked-io.h.
113029         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
113030         (DISTCLEANFILES, io_functions): Remove macros.
113031         (EXTRA_DIST): Remove gen_uio.
113032         (unlocked-io.h): Remove rule.
113034 2002-12-04  Jim Meyering  <jim@meyering.net>
113036         Reflect the fact that stat.c and lstat.c are no longer generated.
113037         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
113038         (DISTCLEANFILES): Likewise.
113039         (EXTRA_DIST): Likewise.
113040         (all_local): Don't depend on stat.c or lstat.c.
113041         (stat.c, lstat.c): Remove rules.
113042         (EXTRA_DIST): Remove xstat.in.
113044         * lib/xstat.in: Remove file.  Contents moved into stat.c.
113045         * lib/stat.c: New file.  Contents mostly from xstat.in.
113046         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
113047         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
113049         * lib/safe-read.c: Rework so that it may serve to define safe_write,
113050         too.
113051         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
113053 2002-12-03  Jim Meyering  <jim@meyering.net>
113055         * lib/safe-read.c, safe-write.c: Change variable names and comments,
113056         but not semantics, to minimize the differences between these two files.
113057         (safe_read): Change comment to mention SAFE_READ_ERROR.
113059         * lib/safe-read.c (IS_EINTR): Define.
113060         (safe_read): Use IS_EINTR in place of in-function cpp directives.
113062 2002-12-02  Jim Meyering  <jim@meyering.net>
113064         * lib/safe-read.c (EINTR): Define.
113065         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
113066         (INT_MAX): Provide fallback.
113067         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
113069         * lib/safe-read.h (SAFE_READ_ERROR): Define.
113071 2002-12-02  Bruno Haible  <bruno@clisp.org>
113073         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
113074         Define, taken from safe-read.c.
113075         (INT_MAX): Provide fallback.
113076         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
113077         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
113079         * lib/safe-read.c (EINTR): Remove definition.
113080         (safe_read): Don't use EINTR if it is absent.
113082 2002-12-01  Jim Meyering  <jim@meyering.net>
113084         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
113085         zero.
113086         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
113088 2002-11-27  Paul Eggert  <eggert@twinsun.com>
113090         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
113091         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
113092         with `if (! (value < limit)) abort ();', for readability.
113094 2002-11-26  Karl Berry  <karl@gnu.org>
113096         * lib/strdup.c: copy from libc again, with jim's ok.
113097         * lib/.cppi-disable: re-add strdup.c
113099 2002-11-25  Karl Berry  <karl@gnu.org>
113101         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
113102         instead of "strtol.c".
113104 2002-11-25  Karl Berry  <karl@gnu.org>
113106         * config/install-sh: update from automake for variable quoting, $0 in
113107         error msgs, etc.
113109         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
113110         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
113111         entry.
113113 2002-11-25  Jim Meyering  <jim@meyering.net>
113115         * lib/mktime.c: Sync from libc, now that it has the latest fix.
113117 2002-11-24  Karl Berry  <karl@gnu.org>
113119         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
113120         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
113122 2002-11-24  Jim Meyering  <jim@meyering.net>
113124         Update from coreutils:
113126         * lib/mktime.c: Merge in changes from libc.
113128         Avoid a link-time failure on some Linux systems.
113129         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
113130         (otherwise).
113131         (__mon_yday): Declare with the STATIC attribute.
113132         (__mktime_internal): Likewise.
113133         Based on a report from Greg Schafer.
113135 2002-11-23  Jim Meyering  <jim@meyering.net>
113137         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
113138         Use `unsigned', not `int', as type of index.
113140         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
113142         * lib/fsusage.c: Remove unneeded parentheses around operands of
113143         `defined'.
113145 2002-11-22  Paul Eggert  <eggert@twinsun.com>
113147         * lib/quotearg.h: Allow multiple inclusion by surrounding with
113148         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
113149         so that we can be included first.
113150         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
113151         * lib/quotearg.c: Include quotearg.h immediately after config.h.
113152         No need to include stddef.h or sys/types.h any more.
113153         Surround local include files with "", not "<>".
113154         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
113155         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
113156         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
113157         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
113158         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
113159         (ISPRINT): Remove; no longer needed now that we assume C89.
113161         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
113162         Preserve errno.
113164         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
113165         quotearg_char): Use SIZE_MAX rather than
113166         (size_t) -1 when we are talking about "infinity".
113168         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
113170 2002-11-22  Paul Eggert  <eggert@twinsun.com>
113172         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
113173         hint that one should use `if (! x) abort ();' rather than `assert
113174         (x);', and anyway it's one less thing to worry about configuring.
113175         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
113176         hash_rehash, hash_insert): Use abort rather than assert.
113178 2002-11-22  Bruno Haible  <bruno@clisp.org>
113180         * lib/safe-read.h: Assume C89. Add comments.
113181         (safe_read): Change return type to size_t.
113182         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
113183         byte counts > SSIZE_MAX correctly.
113184         * lib/safe-write.h: New file.
113185         * lib/safe-write.c: New file.
113186         * lib/full-read.h: New file.
113187         * lib/full-read.c: New file.
113188         * lib/full-write.h: Assume C89. Add comments.
113189         * lib/full-write.c: Include safe-write.h.
113190         (full_write): Rewritten to use safe_write.
113191         Suggested by Jim Meyering and Paul Eggert.
113193 2002-11-21  Jim Meyering  <jim@meyering.net>
113195         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
113197         Merge in changes from the coreutils.
113199         2002-09-25  Paul Eggert  <eggert@twinsun.com>
113200         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
113201         <stdint.h>.
113202         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
113203         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
113204         int.  Work more efficiently if X is the same width as uintmax_t.
113205         Do not compare X to -1, to avoid bogus compiler warning.
113206         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
113207         Don't assume that f_frsize and f_bsize are the same type.
113209         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
113210         warning on FreeBSD.
113212         * lib/makepath.c (make_path): Restore umask *before* creating the final
113213         component.
113214         (make_path): Minor reformatting.
113216         * lib/xmalloc.c: Adjust to work with new autoconf macros,
113217         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
113218         HAVE_MALLOC/HAVE_REALLOC.
113220         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
113221         dummy ones.  At least on GNU/Linux systems, `auto' means something
113222         else.
113223         From Michael Stone.
113225 2002-11-21  Bruno Haible  <bruno@clisp.org>
113227         Remove case insensitive option matching.
113228         * lib/argmatch.h (argcasematch): Remove declaration.
113229         (ARGCASEMATCH): Remove macro.
113230         (__xargmatch_internal): Remove case_sensitive argument.
113231         (XARGMATCH): Update.
113232         (XARGCASEMATCH): Remove macro.
113233         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
113234         case_sensitive argument.
113235         (argcasematch): Remove function.
113236         (__xargmatch_internal): Remove case_sensitive argument.
113237         (main): Use XARGMATCH instead of XARGCASEMATCH.
113239         * lib/xmalloc.c: Change compile-time error message. Add comment about
113240         required autoconf version.
113242 2002-11-20  Paul Eggert  <eggert@twinsun.com>
113244         Merge argmatch cleanups from Bison.  Assume C89.
113246         * lib/argmatch.c: Include config.h here, not in argmatch.h.
113247         Include stdlib.h, for EXIT_FAILURE.
113248         Always include <string.h>, since we assume C89.
113249         (EXIT_FAILURE): Remove pre-C89 bug workaround.
113250         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
113251         Include <stddef.h> instead, since it's all we need for size_t.
113252         (PARAMS): Remove.  All uses removed.
113253         (ARRAY_CARDINALITY): Do not bother to #undef.
113254         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
113255         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
113256         Remove unnecessary parentheses.
113257         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
113258         Insert necessary parentheses.
113259         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
113260         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
113262 2002-11-19  Bruno Haible  <bruno@clisp.org>
113264         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
113265         * lib/mbswidth.h: Include <stddef.h>, for size_t.
113267         * lib/mbswidth.h (PARAMS): Remove macro.
113268         (mbswidth, mbsnwidth): Use ANSI C function declarations.
113269         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
113271         * lib/gcd.h (PARAMS): Remove macro.
113272         (gcd): Use ANSI C function declarations.
113273         * lib/gcd.c (gcd): Likewise.
113275 2002-11-15  Bruno Haible  <bruno@clisp.org>
113277         * lib/strcspn.c: Include <stddef.h>.
113278         (strcspn): Use ANSI C function declaration. Change return type to
113279         size_t. Use NULL.
113280         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
113281         (strpbrk): Use NULL.
113282         * lib/strpbrk.h (PARAMS): Remove macro.
113283         (strpbrk): Use ANSI C function declaration.
113284         * lib/strstr.c: Don't include <sys/types.h>.
113285         * lib/strstr.h (PARAMS): Remove macro.
113286         (strstr): Use ANSI C function declarations.
113288 2002-11-14  Karl Berry  <karl@gnu.org>
113290         * config/mkinstalldirs: `do' on separate line, instead of
113291         `for var; do'.
113293 2002-11-06  Bruno Haible  <bruno@clisp.org>
113295         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
113296         * lib/gcd.c (gcd): Likewise.
113298 2002-11-05  Bruno Haible  <bruno@clisp.org>
113300         * lib/gcd.h: New file, from gettext-0.11.5.
113301         * lib/gcd.c: New file, from gettext-0.11.5.
113303 2002-11-05  Bruno Haible  <bruno@clisp.org>
113305         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
113306         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
113307         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
113308         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
113310         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
113311         <libintl.h>.
113312         * lib/makepath.c: Include gettext.h instead of <locale.h> and
113313         <libintl.h>.
113315         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
113316         * lib/human.c: Include gettext.h instead of <libintl.h>.
113317         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
113318         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
113319         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
113320         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
113321         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
113322         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
113323         (textdomain): Remove definition.
113324         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
113326         * lib/long-options.c: Remove include of <libintl.h> and definition of
113327         _.
113328         * lib/same.c: Remove include of <libintl.h> and definition of _.
113330 2002-11-04  Owen Taylor  <otaylor@redhat.com>
113332         * lib/config.charset: A few additions for Solaris.
113334 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
113336         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
113337         * lib/localcharset.c (locale_charset): Declare as extern "C".
113339 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
113341         * lib/config.charset: msdos in uk_UA uses CP1125.
113343 2002-11-04  Bruno Haible  <bruno@clisp.org>
113345         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
113346         * lib/strcase.h: New file, from GNU gettext-0.11.5.
113347         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
113348         * lib/strstr.h: New file, from GNU gettext-0.11.5.
113349         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
113351 2002-11-04  Bruno Haible  <bruno@clisp.org>
113353         * lib/localcharset.c (locale_charset): Don't return an empty string.
113355 2002-11-04  Bruno Haible  <bruno@clisp.org>
113357         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
113358         aliases.
113360 2002-11-04  Bruno Haible  <bruno@clisp.org>
113362         * lib/config.charset: Update for newest glibc. Add canonical names
113363         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
113365 2002-11-04  Bruno Haible  <bruno@clisp.org>
113367         * lib/config.charset: Add support for NetBSD.
113369 2002-11-04  Bruno Haible  <bruno@clisp.org>
113371         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
113373 2002-11-01  Bruno Haible  <bruno@clisp.org>
113375         * configure.in: Add AC_CONFIG_AUX_DIR call.
113376         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
113377         test/Makefile.
113378         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
113380 2002-09-28  Karl Berry  <karl@gnu.org>
113382         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
113383         installed automake until the next release, since changes have been
113384         made.
113386 2002-09-25  Karl Berry  <karl@gnu.org>
113388         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
113389         * lib/getopt*: copy from libc/posix.
113390         * lib/gettext.h: copy from gettext.
113391         * lib/.cppi-disable: add strdup.c, gettext.h.
113393 2002-09-25  Karl Berry  <karl@gnu.org>
113395         * config/srclist.txt: enable gettext.h check.
113396         * config/config.{guess,sub}: update from prep.
113397         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
113398                 from automake 1.6.3.
113399         See srclist*.
113401 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
113403         * regex.c (PATFETCH): Remove the translating fetch.
113404         (PATFETCH_RAW): Rename to PATFETCH.
113405         (set_image_of_range): New fun.
113406         (SET_RANGE_TABLE_WORK_AREA): Use it.
113407         (regex_compile): Don't translate the pattern chars so eagerly.
113408         Only do it when inserting an `exactn' bytecode or when handling
113409         a char-range.
113410         (mutually_exclusive_p): Avoid empty statement.
113412 2002-07-06  Jim Meyering  <meyering@lucent.com>
113414         * m4/README: Don't mention Makefile.am.in.
113415         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
113417 2002-07-01  Jim Meyering  <meyering@lucent.com>
113419         * lib/c-stack.c: Include sys/time.h.
113420         From Volker Borchert.
113422 2002-06-26  Paul Eggert  <eggert@twinsun.com>
113424         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
113426 2002-06-26  Paul Eggert  <eggert@twinsun.com>
113428         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
113429         New macro.  Use it uniformly instead of
113430         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
113431         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
113432         reported by Vin Shelton.
113434 2002-06-22  Paul Eggert  <eggert@twinsun.com>
113436         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
113437         Do not assume SA_SIGINFO behavior.
113438         Bug reported by Jim Meyering on NetBSD 1.5.2.
113440 2002-06-22  Jim Meyering  <meyering@lucent.com>
113442         * m4/c-stack.m4: New file, from diffutils-2.8.2.
113443         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
113445         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
113446         now that configure.ac uses AC_GNU_SOURCE.
113447         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
113448         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
113450         Update to latest tools.  Suggestions from Paul Eggert.
113451         * m4/stdbool.m4: New file, from diffutils-2.8.2.
113452         * m4/gnu-source.m4: Update from diffutils-2.8.2.
113453         * m4/fnmatch.m4: Likewise.
113454         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
113455         to AC_HEADER_STDBOOL
113457 2002-06-22  Jim Meyering  <meyering@lucent.com>
113459         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
113460         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
113462 2002-06-22  Jim Meyering  <meyering@lucent.com>
113464         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
113466         * lib/exitfail.c, exitfail.h: Likewise.
113467         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
113469         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
113470         of fnmatch.h.
113471         (EXTRA_DIST): Add fnmatch_loop.c.
113472         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
113474         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
113475         * lib/fnmatch.c: Update from diffutils-2.8.2.
113476         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
113477         * lib/fnmatch.h: Remove file.
113479 2002-06-21  Jim Meyering  <meyering@lucent.com>
113481         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
113482         * m4/mbrtowc.m4: Likewise.
113484         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
113485         * m4/mbswidth.m4: Reflect name change:
113486         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
113487         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
113489         * m4/lib-link.m4: Update from gettext-0.11.2.
113490         * m4/gettext.m4: Likewise.
113492         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
113493         From Alfred M. Szmidt.
113495 2002-06-18  Paul Eggert  <eggert@twinsun.com>
113497         * lib/file-type.h: Report an error if neither S_ISREG nor
113498         S_IFREG is defined, instead of using a test specific to glibc
113499         2.2.  This should be safe, since POSIX requires S_ISREG and
113500         Unix Version 7 had S_IFREG.  We don't need to check for
113501         <sys/types.h> since we don't use any symbols that it defines.
113503 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
113505         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
113506         $@-t, so that each temporary file name is unique and valid in the first
113507         8 characters, for operation under DOS.
113509 2002-06-15  Paul Eggert  <eggert@twinsun.com>
113511         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
113513 2002-06-15  Jim Meyering  <meyering@lucent.com>
113515         Work even with DJGPP 2.03, which lacks support for symlinks.
113516         From Richard Dawe.
113517         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
113518         is defined.
113519         * lib/lchown.c (S_ISLNK): Likewise.
113521 2002-06-15  Jim Meyering  <meyering@lucent.com>
113523         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
113524         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
113525         have been included before this file.
113527 2002-06-14  Jim Meyering  <meyering@lucent.com>
113529         * lib/file-type.h: Use the version from diffutils-2.8.2.
113530         * lib/file-type.c: Likewise.
113532 2002-06-07  Jim Meyering  <meyering@lucent.com>
113534         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
113535         They're needed at least for NetBSD 1.5.2.
113536         ($statxfs_includes): Include those same headers.
113537         ($statxfs_includes): Include sys/vfs.h if available.
113538         ($statxfs_includes): Likewise for sys/statvfs.h.
113539         Check for the following members in both structs statfs and statvfs:
113540         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
113542 2002-06-01  Jim Meyering  <meyering@lucent.com>
113544         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
113545         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
113547 2002-05-28  Jim Meyering  <meyering@lucent.com>
113549         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
113550         Reported by Volker Borchert.
113552 2002-05-27  Jim Meyering  <meyering@lucent.com>
113554         Fix a problem seen only on nonconforming systems whereby ls.c's
113555         use of localtime, and then of gettimeofday would cause trouble:
113556         the localtime call used to initialize rpl_gettimeofday's save
113557         mechanism would clobber ls's current local time information so
113558         that in any long listing the first file would always be listed
113559         with date 1970-01-01.  Analysis by Volker Borchert.
113561         * lib/gettimeofday.c (localtime): Undefine.
113562         (rpl_localtime): New function.
113564 2002-05-27  Jim Meyering  <meyering@lucent.com>
113566         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
113567         localtime.
113569         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
113570         use the replacement function; it wouldn't resolve at link time.
113571         Reported by Volker Borchert.
113573 2002-05-22  Jim Meyering  <meyering@lucent.com>
113575         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
113576         file-type.h.
113577         * lib/file-type.h: New file.
113578         * lib/file-type.c (file_type): New file/function.  Extracted from
113579         diffutils.
113581 2002-04-30  Jim Meyering  <meyering@lucent.com>
113583         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
113585 2002-04-29  Paul Eggert  <eggert@twinsun.com>
113587         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
113589 2002-04-29  Paul Eggert  <eggert@twinsun.com>
113591         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
113592         Do not check for alloca.h (no longer used) or stdbool.h (was never
113593         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
113595 2002-04-29  Paul Eggert  <eggert@twinsun.com>
113597         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
113599 2002-04-29  Jim Meyering  <meyering@lucent.com>
113601         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
113602         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
113603         Use AC_FUNC_STRNLEN here instead.
113605         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
113606         With autoconf-2.53a, it's part of AC_PROG_CC.
113608 2002-04-28  Paul Eggert  <eggert@twinsun.com>
113610         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
113611         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
113613 2002-04-28  Paul Eggert  <eggert@twinsun.com>
113615         * lib/sig2str.h, lib/sig2str.c: New files.
113616         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
113618 2002-04-28  Paul Eggert  <eggert@twinsun.com>
113620         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
113621         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
113622         of 127, since 64 is the largest conceivable number for ancient
113623         nonstandard hosts.
113624         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
113626 2002-04-28  Jim Meyering  <meyering@lucent.com>
113628         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
113630 2002-04-24  Jim Meyering  <meyering@lucent.com>
113632         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
113633         (jm_PREREQ): Use it.
113635         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
113636         mach/mach.h fcntl.h.
113637         Check for this function: setlocale.
113639 2002-04-24  Jim Meyering  <meyering@lucent.com>
113641         * lib/gettext.h: New file, from Gettext.
113642         * lib/Makefile.am (INCLUDES): Remove -I../intl.
113643         (libfetish_a_SOURCES): Add gettext.h.
113645 2002-04-16  Jim Meyering  <meyering@lucent.com>
113647         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
113648         ut_pid, ut_id, ut_exit.
113650 2002-04-16  Jim Meyering  <meyering@lucent.com>
113652         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
113653         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
113654         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
113656 2002-04-12  Jim Meyering  <meyering@lucent.com>
113658         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
113659         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
113660         existence of the getmntinfo function.  Needed for Darwin 5.3.
113662         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
113663         This is necessary at least on Darwin 5.3.
113665         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
113666         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
113667         strnlen.o in the library, and that makes some versions of ranlib
113668         object.
113670 2002-04-12  Jim Meyering  <meyering@lucent.com>
113672         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
113674 2002-04-09  Jim Meyering  <meyering@lucent.com>
113676         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
113677         to be more precise.  Rather than saying we're checking whether the
113678         function `works', say what we're testing.
113679         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
113680         Reported by Bruno Haible.
113682 2002-03-10  Jim Meyering  <meyering@lucent.com>
113684         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
113685         Suggestion from Santiago Vila.
113687 2002-03-08  Jim Meyering  <meyering@lucent.com>
113689         * lib/rename.c: Mention that this wrapper is needed also on
113690         mips-dec-ultrix4.4 systems.
113692 2002-03-02  Jim Meyering  <meyering@lucent.com>
113694         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
113695         not HAVE_CLOCK_SETTIME.
113697 2002-02-27  Paul Eggert  <eggert@twinsun.com>
113699         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
113700         Check for clock_settime.
113702 2002-02-27  Paul Eggert  <eggert@twinsun.com>
113704         * lib/nanosleep.h: Rename to....
113705         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
113707         * lib/gettime.c: New file.
113708         * lib/settime.c: New file.
113709         * lib/stime.c: Remove.
113711         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
113712         timespec.h.  Remove nanosleep.h.
113714 2002-02-25  Paul Eggert  <eggert@twinsun.com>
113716         * m4/acl.m4: New file.
113717         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
113718         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
113720 2002-02-25  Paul Eggert  <eggert@twinsun.com>
113722         * lib/acl.c, lib/acl.h: New files.
113723         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
113725 2002-02-24  Jim Meyering  <meyering@lucent.com>
113727         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
113728         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
113729         cause trouble.  Reported by Nelson Beebe.
113731 2002-02-23  Paul Eggert  <eggert@twinsun.com>
113733         * lib/path-concat.c (xpath_concat): Reorder code to pacify
113734         compilers that don't know that xalloc_die never returns.
113736 2002-02-20  Jim Meyering  <meyering@lucent.com>
113738         * lib/getdate.c: Regenerate using bison-1.33.
113740 2002-02-17  Jim Meyering  <meyering@lucent.com>
113742         * config/config.guess (main): Don't use `head -1'; it's no longer
113743         portable. Use `sed 1q' instead.
113745 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
113747         * m4/codeset.m4: Upgrade to gettext-0.11.
113748         * m4/gettext.m4: Upgrade to gettext-0.11.
113749         * m4/glibc21.m4: Upgrade to gettext-0.11.
113750         * m4/iconv.m4: Upgrade to gettext-0.11.
113751         * m4/isc-posix.m4: Upgrade to gettext-0.11.
113752         * m4/lcmessage.m4: Upgrade to gettext-0.11.
113753         * m4/lib-ld.m4: New file, from gettext-0.11.
113754         * m4/lib-link.m4: New file, from gettext-0.11.
113755         * m4/lib-prefix.m4: New file, from gettext-0.11.
113756         * m4/progtest.m4: Upgrade to gettext-0.11.
113758 2002-02-15  Paul Eggert  <eggert@twinsun.com>
113760         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
113761         (jm_PREREQ): Use it.
113763 2002-02-15  Paul Eggert  <eggert@twinsun.com>
113765         * lib/posixver.c, lib/posixver.h: New files.
113766         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
113768 2002-02-02  Paul Eggert  <eggert@twinsun.com>
113769             Bruno Haible  <bruno@clisp.org>
113771         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
113772         (fwrite_success_callback): New declaration.
113773         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
113774         print_unicode_char. Call failure callback instead of error.
113775         (fwrite_success_callback): New function.
113776         (exit_failure_callback): New function.
113777         (fallback_failure_callback): New function.
113778         (print_unicode_char): Call unicode_to_mb.
113780 2002-01-26  Jim Meyering  <meyering@lucent.com>
113782         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
113783         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
113785 2002-01-26  Jim Meyering  <meyering@lucent.com>
113787         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
113789 2002-01-22  Paul Eggert  <eggert@twinsun.com>
113791         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
113793 2002-01-22  Jim Meyering  <meyering@lucent.com>
113795         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
113796         Otherwise, some versions of automake would omit the rule that makes
113797         Makefile from Makefile.in.
113799 2002-01-21  Paul Eggert  <eggert@twinsun.com>
113801         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
113802         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
113803         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
113804         (memcoll): Set errno to zero if there is no error.
113806         * lib/quotearg.c (quotearg_buffer_restyled):
113807         Fix bug with quoting buffers containing NUL when backslashing escapes.
113808         This bug was exposed by the other changes in this patch.
113809         (quotearg_n_options): New arg ARGSIZE.
113810         All callers changed.
113811         (quoting_options_from_style): New function.
113812         (quotearg_n_style): Use it.
113813         (quotearg_n_style_mem): New function.
113815         * lib/quotearg.h (quotearg_n_style_mem): New function.
113817 2002-01-19  Jim Meyering  <meyering@lucent.com>
113819         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
113820         Remove useless quotes: DF_PROG="df".
113821         * m4/strnlen.m4: New file.
113823 2002-01-16  Paul Eggert  <eggert@twinsun.com>
113825         * lib/backupfile.c (ISDIGIT): Comment fix.
113826         * lib/getdate.y (ISDIGIT): Likewise.
113827         * lib/posixtm.c (ISDIGIT, year): Likewise.
113828         * lib/strverscmp.c (ISDIGIT): Likewise.
113829         * lib/userspec.c (ISDIGIT): Likewise.
113831 2002-01-16  Jim Meyering  <meyering@lucent.com>
113833         * lib/getdate.y: Add three semicolons, each just before a closing
113834         brace. Bison (as of version 1.31) no longer papers over that mistake.
113836 2002-01-05  Jim Meyering  <meyering@lucent.com>
113838         * lib/version-etc.c (version_etc_copyright): Update copyright year.
113840 2001-12-19  Paul Eggert  <eggert@twinsun.com>
113842         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
113843         not silently exit merely because the output buffer happens to
113844         have nothing pending.
113846 2001-12-18  Paul Eggert  <eggert@twinsun.com>
113848         See the big note in ../ChangeLog.
113849         * lib/human.c (suffixes): Prefer K to k for 1024.
113850         (generate_suffix_backwards): New function.
113851         (human_readable_inexact): Use it.
113852         * lib/xstrtol.c (__xstrtol): If there is no number but there
113853         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
113854         Accept 'K' as well as 'k'.
113856 2001-12-15  Jim Meyering  <meyering@lucent.com>
113858         * lib/regex.h (__restrict_arr): Update from libc.
113860         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
113861         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
113862         (STREQ): Define.
113864 2001-12-14  Jim Meyering  <meyering@lucent.com>
113866         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
113867         Suggestion from Bruno Haible.
113869 2001-12-10  Jim Meyering  <meyering@lucent.com>
113871         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
113872         xrealloc, Instead, include "xalloc.h".
113873         (initbuffer): Don't cast xmalloc return value to char*.
113874         (readline): Reword comment.
113875         Don't cast xrealloc return value to char*
113876         Return NULL, not 0.
113878 2001-12-09  Jim Meyering  <meyering@lucent.com>
113880         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
113881         about `signed and unsigned type in conditional expression'.
113882         * lib/posixtm.c (posix_time_parse): Likewise.
113884         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
113886         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
113887         to avoid a pedantic warning.
113889         * lib/getstr.c: Don't include assert.h.
113890         (getstr): Remove warning-evoking assertions.
113891         Return -1 if offset parameter is out of bounds.
113892         Change the type of a local from int to size_t.
113894         * lib/strftime.c (my_strftime_localtime_r): Include this function
113895         definition in the `#if ! HAVE_TM_GMTOFF' block.
113897         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
113898         Include xalloc.h instead.
113900 2001-12-02  Jim Meyering  <meyering@lucent.com>
113902         * lib/tempname.c: Don't declare getenv, thus reverting the change of
113903         2001-11-18.  It's no longer necessary, now that stdlib.h is always
113904         included.
113906         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
113907         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
113909 2001-11-30  Akim Demaille  <akim@epita.fr>
113911         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
113912         before being defined.
113914 2001-11-27  Paul Eggert  <eggert@twinsun.com>
113916         * lib/quotearg.h (quotearg_n, quotearg_n_style):
113917         First arg is int, not unsigned.
113918         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
113919         (SIZE_MAX, UINT_MAX): New macros.
113920         (quotearg_n_options): Abort if N is negative.
113921         Avoid overflow check on hosts where size_t is 64 bits and int
113922         is 32 bits, as overflow is impossible there.
113923         Fix off-by-one typo that caused unnecessary reallocation.
113925 2001-11-27  Jim Meyering  <meyering@lucent.com>
113927         * lib/tempname.c: Merge with version from libc.
113928         * lib/regex.c: Likewise.
113930         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
113931         systems for which STDC_HEADERS is 0, it was not included, resulting in
113932         a warning about an integer-to-pointer conversion problem with getenv.
113933         Reported by Volker Borchert.
113935 2001-11-26  Jim Meyering  <meyering@lucent.com>
113937         * lib/gtod.h: Remove file.
113938         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
113939         * lib/gettimeofday.c: Don't include gtod.h.
113940         (GTOD_init): Remove function.
113941         (rpl_gettimeofday): Do its job here instead, rather than aborting.
113942         Suggestion from Volker Borchert.
113944 2001-11-23  Jim Meyering  <meyering@lucent.com>
113946         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
113947         it.
113948         * lib/hash.c (struct hash_table): Define it here instead.
113950 2001-11-22  Jim Meyering  <meyering@lucent.com>
113952         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
113954 2001-11-20  Jim Meyering  <meyering@lucent.com>
113956         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
113957         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
113959 2001-11-19  Jim Meyering  <meyering@lucent.com>
113961         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
113962         directory.  Use "conftestXXXXXX" as the template.
113963         Suggestion from Paul Eggert.
113965         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
113966         immediately, so the test doesn't mistakenly hit the max-open-files
113967         limit.
113969 2001-11-18  Paul Eggert  <eggert@twinsun.com>
113971         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
113972         (TEMPORARIES): New macro.
113973         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
113974         removes an artificial limitation (e.g. HP-UX 10.20, where
113975         TMP_MAX is 17576).
113977 2001-11-18  Jim Meyering  <meyering@lucent.com>
113979         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
113981 2001-11-18  Jim Meyering  <meyering@lucent.com>
113983         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
113984         on SunOS 4.
113986         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
113987         files will be created before anything else.
113989 2001-11-17  Paul Eggert  <eggert@twinsun.com>
113991         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
113992         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
113994 2001-11-17  Jim Meyering  <meyering@lucent.com>
113996         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
113997         Prompted by a report from Bob Proulx.
113999         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
114000         Instead, require UTILS_FUNC_MKSTEMP.
114002 2001-11-17  Jim Meyering  <meyering@lucent.com>
114004         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
114005         Now, that's done as part of AC_FUNC_STRTOD.
114007 2001-11-17  Jim Meyering  <meyering@lucent.com>
114009         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
114010         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
114011         rather than group writable.  Patch by Juan F. Codagnone.
114013         * lib/readtokens.c: Remove explicit declarations of xmalloc and
114014         xrealloc, Instead, include "xalloc.h".
114016         * lib/mountlist.c: Include unlocked-io.h after all system headers.
114017         Remove explicit declarations of xmalloc, xrealloc,
114018         and xstrdup.  Instead, include "xalloc.h".
114020         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
114021         unlocked-io.h.
114022         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
114023         Likewise.
114024         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
114026         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
114027         Reported by Padraig Brady.
114029         * lib/mkstemp.c: #undef mkstemp.
114030         Include config.h.
114031         (rpl_mkstemp): Rename from mkstemp.
114032         Protoize.
114034 2001-11-16  Jim Meyering  <meyering@lucent.com>
114036         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
114037         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
114038         determine the amount of total physical memory, use pstat_getstatic.
114039         HPUX-11 doesn't define _SC_PHYS_PAGES.
114040         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
114041         If sysconf couldn't be used to determine the amount of available
114042         physical memory, use both pstat_getstatic and pstat_getdynamic.
114043         Based on a patch from Bob Proulx.
114045 2001-11-10  Jim Meyering  <meyering@lucent.com>
114047         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
114048         (jm_PREREQ): Use it.
114050 2001-11-09  Jim Meyering  <meyering@lucent.com>
114052         * m4/jm-macros.m4: Require autoconf-2.52f.
114053         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
114054         Use these AC_-prefixed names, not the AM_-prefixed ones.
114056         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
114058 2001-11-05  Jim Meyering  <meyering@lucent.com>
114060         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
114062 2001-11-04  Jim Meyering  <meyering@lucent.com>
114064         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
114065         $DEFS.
114067 2001-11-03  Jim Meyering  <meyering@lucent.com>
114069         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
114070         of AC_DEFUN.
114072         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
114073         know the name of the variable in the macro definition.
114075 2001-11-03  Jim Meyering  <meyering@lucent.com>
114077         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
114078         in argmatch_to_argument call.
114080         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
114081         argument.
114083         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
114084         e.g., a fault due to an attempt to free a NULL pointer.
114086 2001-11-01  Jim Meyering  <meyering@lucent.com>
114088         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
114089         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
114091 2001-11-01  Jim Meyering  <meyering@lucent.com>
114093         * lib/dirfd.c, lib/dirfd.h: New files.
114094         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
114096         * lib/hash.c (hash_print) [TESTING]: Clean up.
114098 2001-10-22  Paul Eggert  <eggert@twinsun.com>
114100         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
114101         to avoid a warning if -Wall.
114103 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
114105         * README: New file
114106         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
114107         (per RMS's instructions, this is now the canonical source)
114108         * lgpl/, gpl/: New directories.
114110 2001-10-21  Paul Eggert  <eggert@twinsun.com>
114112         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
114114 2001-10-21  Jim Meyering  <meyering@lucent.com>
114116         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
114117         this code would end up calling gettext even in packages built
114118         with --disable-nls.
114119         * lib/getopt.c (_): Likewise.
114120         * lib/regex.c (_): Likewise.
114122 2001-10-20  Paul Eggert  <eggert@twinsun.com>
114124         * m4/error.m4 (jm_PREREQ_ERROR):
114125         Do not invoke AC_CHECK_FUNCS with strerror_r, as
114126         AC_FUNC_STRERROR_R does that.
114127         Check for strerror declaration.
114129         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
114130         are supposed to have them these days.
114131         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
114132         Merge changes from latest Autoconf CVS.
114133         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
114134         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
114135         POSIX decided to standardize on the int flavor of strerror_r.
114137 2001-10-20  Paul Eggert  <eggert@twinsun.com>
114139         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
114140         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
114141         Use strerror_r that is only a macro, even if it is not a function.
114142         (strerror): Check for HAVE_DECL_STRERROR before declaring.
114143         (private_strerror): Use prototypes, not old-style function definition.
114144         (print_errno_message): New function.
114145         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
114146         char*-flavored one.
114147         (error_tail, error, error_at_line): Use it.
114149 2001-10-11  Jim Meyering  <meyering@lucent.com>
114151         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
114152         and quote_n (1, ... to avoid clobbering a buffer.
114154 2001-10-05  Jim Meyering  <meyering@lucent.com>
114156         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
114157         hash-pjw.h.
114158         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
114159         * lib/hash-pjw.h: New file.
114161 2001-09-30  Jim Meyering  <meyering@lucent.com>
114163         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
114164         `struct fsstat' has the `f_fstypename' member.
114165         Use that to define FS_TYPE, which is now used to make
114166         the getfsstat link test tighter.
114168 2001-09-30  Jim Meyering  <meyering@lucent.com>
114170         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
114171         Include <sys/ucred.h>, for Apple Darwin.
114172         Include sys/mount.h and sys/fs_types.h only if available.
114173         (FS_TYPE): Define.
114174         (read_filesystem_list): Use FS_TYPE.
114176 2001-09-29  Paul Eggert  <eggert@twinsun.com>
114178         * lib/exclude.c (excluded_filename): 0 -> false, since it's
114179         a boolean context.
114181 2001-09-29  Jim Meyering  <meyering@lucent.com>
114183         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
114184         [one-argument getmntent function]): Include stdio.h before mntent.h.
114185         SunOS 4.1.x needs it for the declaration of `FILE'.
114186         Patch by Volker Borchert.
114188         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
114189         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
114190         sys/fs_types.h, and make the link-test for getfsstat guard #include
114191         directives with appropriate #if HAVE_*_H tests so that we can
114192         detect getfsstat on Apple Darwin1.3.7 systems.
114193         Reported by Nelson Beebe.
114194         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
114196 2001-09-28  Paul Eggert  <eggert@twinsun.com>
114198         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
114199         #defines strtoimax.  Also treat the other strto* functions
114200         like strtoimax.
114202         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
114203         Check for strtoul and strtoumax,
114204         as those declarations are made even in the signed case.
114205         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
114206         Likewise, for strtol and strtoimax.
114208 2001-09-28  Paul Eggert  <eggert@twinsun.com>
114210         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
114211         #defines strtoimax.  Also treat the other strto* functions
114212         like strtoimax.
114214         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
114215         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
114216         (strtoimax, strtoumax): Do not declare if already defined as a macro.
114218 2001-09-26  Jim Meyering  <meyering@lucent.com>
114220         Most macros in unlocked-io.h had the wrong number of arguments.
114221         * lib/gen-uio: New script.
114222         (USE_UNLOCKED_IO): Define to 1 if not already defined.
114223         * lib/unlocked-io.hin: Remove file.
114224         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
114225         rather than trying to embed it here.
114226         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
114227         Reported by Padraig Brady.
114229 2001-09-25  Volker Borchert  <bt@teknon.de>
114231         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
114232         `result'.
114234 2001-09-24  Jim Meyering  <meyering@lucent.com>
114236         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
114238 2001-09-23  Jim Meyering  <meyering@lucent.com>
114240         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
114241         instead of the mere test for existence of mntent.h.  The latter
114242         would get a false-positive on AIX 3.4 systems.
114243         In the outer getmntent if-block, don't die if neither of the getmntent
114244         tests succeeds.  Instead, just fall through and continue with the
114245         remaining tests.
114247 2001-09-23  Jim Meyering  <meyering@lucent.com>
114249         * lib/mountlist.c: Remove useless parentheses in #if directives.
114250         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
114251         the deprecated MOUNTED symbol is no longer defined in mntent.h.
114253 2001-09-22  Jim Meyering  <meyering@lucent.com>
114255         * m4/gettext.m4: New file.  From gettext.
114256         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
114257         * m4/progtest.m4: Likewise
114258         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
114259         * m4/glibc21.m4: Likewise.
114261         * m4/libintl.m4: Remove.  No longer used.
114263 2001-09-22  Jim Meyering  <meyering@lucent.com>
114265         * lib/localcharset.c: Update from latest gettext.
114266         * lib/config.charset: Likewise.
114268 2001-09-20  Jim Meyering  <meyering@lucent.com>
114270         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
114271         strtoimax.
114272         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
114273         strtoumax.
114275 2001-09-20  Jim Meyering  <meyering@lucent.com>
114277         * lib/xstrtol.c (strtoimax): Guard declaration with
114278         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
114279         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
114280         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
114281         (strtoumax): Likewise, for completeness (it wasn't necessary).
114283 2001-09-17  Paul Eggert  <eggert@twinsun.com>
114285         * lib/strtoimax.c (HAVE_LONG_LONG):
114286         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
114287         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
114288         to work around bug in IBM C compiler.
114290 2001-09-17  Jim Meyering  <meyering@lucent.com>
114292         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
114293         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
114294         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
114295         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
114296         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
114297         whenever the right hand side need not be expanded by the shell.
114299 2001-09-16  Paul Eggert  <eggert@twinsun.com>
114301         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
114302         library.  It's not correct, as some older glibcs are buggy.
114303         fnmatch wasn't fixed until glibc 2.2.
114305         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
114306         special shell magic here.
114308 2001-09-16  Jim Meyering  <meyering@lucent.com>
114310         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
114311         * m4/jm-macros.m4: Require it.
114313 2001-09-16  Jim Meyering  <meyering@lucent.com>
114315         * lib/mkdir.c: New file.
114317 2001-09-15  Jim Meyering  <meyering@lucent.com>
114319         * m4/jm-macros.m4: Check for help2man.
114321 2001-09-11  Jim Meyering  <meyering@lucent.com>
114323         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
114324         The body, by Paul Eggert, was moved here from configure.in.
114325         * m4/jm-macros.m4: Require UTILS_HOST_OS.
114327 2001-09-04  Paul Eggert  <eggert@twinsun.com>
114329         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
114330         (jm_PREREQ): Use it.
114332 2001-09-04  Paul Eggert  <eggert@twinsun.com>
114334         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
114335         Use ssize_t, not int, to store result of readlink.
114336         Check for ssize_t overflow as well as size_t overflow,
114337         as POSIX says the result of readlink is implementation-defined
114338         when ssize_t overflows.
114339         Remove unnecessary cast to char*.
114340         Use free+malloc instead of realloc, as the storage doesn't need
114341         to be preserved and it's clearer and can be more efficient that way.
114342         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
114343         * lib/xreadlink.h (xreadlink): Update prototype.
114345 2001-09-04  Paul Eggert  <eggert@twinsun.com>
114347         * lib/xgetcwd.c: Revert some of the previous change; intead,
114348         fix the HAVE_GETCWD_NULL code to behave more like the
114349         !HAVE_GETCWD_NULL code used to.
114351         Include "xalloc.h".
114352         (xgetcwd): Do not return NULL when memory is exhausted; instead,
114353         invoke xalloc_die.
114355 2001-09-03  Paul Eggert  <eggert@twinsun.com>
114357         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
114358         sys/param.h, as pathmax.h includes them.
114360 2001-09-03  Paul Eggert  <eggert@twinsun.com>
114362         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
114363         (jm_PREREQ_XGETCWD): New macro.
114365         * m4/getcwd.m4: New file.
114367 2001-09-03  Paul Eggert  <eggert@twinsun.com>
114369         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
114370         like the HAVE_GETCWD_NULL code.
114371         Include pathmax.h if not HAVE_GETCWD.
114372         Do not include xalloc.h.
114373         (INITIAL_BUFFER_SIZE): New symbol.
114374         Do not use xmalloc / xrealloc, since the caller is responsible for
114375         handling errors.  Preserve errno around `free' during failure.
114376         Do not overrun buffer when using getwd.
114378 2001-09-03  Paul Eggert  <eggert@twinsun.com>
114380         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
114381         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
114382         getcwd (NULL, 0).
114384 2001-09-03  Paul Eggert  <eggert@twinsun.com>
114386         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
114387         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
114388         spotted by Jim Meyering.
114390 2001-09-03  Jim Meyering  <meyering@lucent.com>
114392         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
114393         failure.
114395 2001-09-02  Jim Meyering  <meyering@lucent.com>
114397         * lib/error.c: Update from GNU libc.
114399 2001-09-01  Jim Meyering  <meyering@lucent.com>
114401         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
114402         Used by df.
114404 2001-09-01  Jim Meyering  <meyering@lucent.com>
114406         * lib/xreadlink.c: New file.
114407         * lib/xreadlink.h: New file.
114408         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
114409         xreadlink.h.
114411         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
114412         doesn't conflict with sparc Solaris 7's definition in
114413         /usr/include/sys/int_types.h.
114415         * lib/exclude.c: Use `""', not `<>' to #include non-system header
114416         files.
114417         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
114418         and strncasecmp as r-values.  Unixware didn't have declarations.
114420 2001-08-31  Paul Eggert  <eggert@twinsun.com>
114422         * lib/xstrtol.h: Add copyright notice.
114423         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
114424         LONGINT_INVALID_SUFFIX_CHAR.
114426 2001-08-31  Paul Eggert  <eggert@twinsun.com>
114428         * lib/xstrtol.c (strtoimax): New decl.
114430 2001-08-31  Paul Eggert  <eggert@twinsun.com>
114432         * lib/xgetcwd.c: Don't include pathmax.h.
114433         Include stdlib.h and unistd.h if available.
114434         Include xalloc.h.
114435         (xmalloc, xstrdup, free): Remove decls.
114436         (xgetcwd): Don't assume sizes fit in unsigned.
114437         Check for overflow when computing sizes.
114438         Simplify reallocation code.
114440 2001-08-31  Paul Eggert  <eggert@twinsun.com>
114442         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
114443         a directory's st_size can have an arbitrary value, so the old
114444         usage could waste an arbitrary amount of memory.  All uses
114445         changed.
114446         * lib/savedir.h: Update prototype.
114448 2001-08-31  Paul Eggert  <eggert@twinsun.com>
114450         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
114452         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
114453         old strtoimax.c.
114455         Also, make the following further changes to make this file's
114456         configuration more similar to that of strtol.c:
114457         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
114458         (strtoumax, uintmax_t, strtoull, strtol): Remove.
114459         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
114460         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
114461         changed to signed values.
114463         And make the following changes as well:
114464         Fix copyright notice, as 1999 was missing.
114465         (verify): New macro.
114466         (strtoimax): Check sizes at compile-time, not run-time.
114467         Prefer strtol to strtoll if both work.
114468         (main): Remove; it was not that useful and was a pain to maintain.
114470         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
114472 2001-08-31  Jim Meyering  <meyering@lucent.com>
114474         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
114475         Use an initial, malloc'd, buffer of length 128 rather than
114476         a statically allocated one of length 1024.
114478 2001-08-30  Paul Eggert  <eggert@twinsun.com>
114480         Simplify code, partly by assuming autoconf 2.52 semantics.
114482         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
114484         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
114485         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
114486         All uses removed.
114487         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
114488         Move AC_REQUIRE to next-to-top level, to avoid confusion.
114489         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
114490         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
114491         jm_AC_HEADER_INTTYPES_H.
114492         * m4/jm-macros.m4 (jm_MACROS): Likewise.
114494         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
114496         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
114497         Quote first arg of AC_DEFUN.
114498         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
114499         since they are needed to parse the include file even if we need
114500         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
114501         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
114502         but with opposite signedness.
114504 2001-08-30  Paul Eggert  <eggert@twinsun.com>
114506         Merge 'exclude' changes from tar 1.13.22.
114507         This fixes one or two unlikely storage allocation overflow bugs,
114508         but doesn't change user-visible behavior otherwise.
114510 2001-08-30  Paul Eggert  <eggert@twinsun.com>
114512         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
114513         (jm_PREREQ_EXCLUDE): New macro.
114515 2001-08-30  Paul Eggert  <eggert@twinsun.com>
114517         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
114518         tm to be declared.
114520 2001-08-30  Paul Eggert  <eggert@twinsun.com>
114522         * lib/hash.c: Remove '2001' from copyright notice.
114524 2001-08-30  Paul Eggert  <eggert@twinsun.com>
114526         * lib/full-write.h: New file.
114527         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
114528         * lib/full-write.c: Correct credits, as cccp.c no longer
114529         exists and anyway it was so heavily changed from the old cccp
114530         code as to be unrecognizable.  Include full-write.h.
114531         (full_write): Return size_t, with short writes meaning failure.
114532         All callers changed.  This fixes a bug with large buffers
114533         on 64-bit hosts.
114534         * lib/utime.c: Include full-write.h.
114536 2001-08-30  Paul Eggert  <eggert@twinsun.com>
114538         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
114539         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
114540         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
114541         Include if available.
114542         (<xalloc.h>): Include
114543         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
114544         (verify): New macro.  Use it to verify that EXCLUDE macros do not
114545         collide with FNM macros.
114546         (struct patopts): New struct.
114547         (struct exclude): Use it, as exclude patterns now come with options.
114548         (new_exclude): Support above changes.
114549         (new_exclude, add_exclude_file):
114550         Initial size must now be a power of two to simplify overflow checking.
114551         (free_exclude, fnmatch_no_wildcards): New function.
114552         (excluded_filename): No longer requires options arg, as the options
114553         are determined by add_exclude.  Now returns bool, not int.
114554         (excluded_filename, add_exclude):
114555         Add support for the fancy new exclusion options.
114556         (add_exclude, add_exclude_file): Now takes int options arg.
114557         Check for arithmetic overflow when computing sizes.
114558         (add_exclude_file): xrealloc might modify errno, so don't
114559         realloc until after errno might be used.
114561         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
114562         New macros.
114563         (free_exclude): New decl.
114564         (add_exclude, add_exclude_file): Now takes int options arg.
114565         (excluded_filename): No longer requires options arg, as the options
114566         are determined by add_exclude.  Now returns bool, not int.
114568 2001-08-30  Paul Eggert  <eggert@twinsun.com>
114570         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
114572 2001-08-27  Jim Meyering  <meyering@lucent.com>
114574         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
114576         * lib/version-etc.c (N_): Remove definition.
114577         Revert most of last change.
114578         Instead, simply don't mark the `Copyright...' string for translation.
114579         Based on advice from Paul Eggert.
114581         * lib/strtoxmax.c: Tweak comment.
114583 2001-08-26  Jim Meyering  <meyering@lucent.com>
114585         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
114587         * m4/xstrtoimax.m4: New file.
114588         * m4/xstrtoumax.m4: Add comments explaining why we
114589         AC_REPLACE_FUNCS(strtol).
114591 2001-08-26  Jim Meyering  <meyering@lucent.com>
114593         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
114594         of copyright with `%s' so translators don't get an untranslated
114595         message in 2002.
114596         (COPYRIGHT_YEAR): Define.
114597         (version_etc): Use fprintf rather than fputs.
114598         Suggestion from Ulrich Drepper.
114600         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
114602         * lib/strtoll.c: New file, from GNU libc.
114603         * lib/xstrtoimax.c: New file.
114605         * lib/xstrtol.h: Add xstrtoimax.
114606         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
114607         * lib/strtoimax.c: New file.  Likewise, but first define
114608         STRTOUXMAX_SIGNED.
114610         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
114611         ...
114612         * lib/strtoxmax.c: ... then renamed to this.
114614 2001-08-18  Paul Eggert  <eggert@twinsun.com>
114616         * m4/inttypes.m4: Add AC_PREREQ(2.13).
114617         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
114618         (jm_AC_TYPE_INTMAX_T): New macro.
114619         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
114621         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
114623         * m4/longlong.m4: Renamed from ulonglong.m4.
114624         * m4/inttypes.m4: Renamed from inttypes_h.m4.
114625         * m4/uintmax_t.m4: Removed.
114627 2001-08-13  Paul Eggert  <eggert@twinsun.com>
114629         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
114630         Port to Solaris 8, where 'sed' requires a space after the 'r'
114631         command, and where sh dislikes "$/".  Clean up the spacing a bit.
114632         Redirect output to $tmp just once.
114634 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
114636         * lib/addext.c (<errno.h>): Include.
114637         (errno): Declare if not defined.
114638         (addext): Work correctly when pathconf returns -1 and leaves
114639         errno alone because there is no limit.  Also, work even if
114640         pathconf returns a value greater than SIZE_MAX.
114642 2001-08-12  Jim Meyering  <meyering@lucent.com>
114644         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
114645         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
114646         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
114647         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
114648         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
114649         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
114650         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
114651         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
114652         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
114653         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
114654         utime.m4, utimes.m4, xstrtoumax.m4:
114655         Quote the first argument in each use of AC_DEFUN.
114657 2001-08-12  Jim Meyering  <meyering@lucent.com>
114659         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
114660         Simply `return getcwd (NULL, 0);'.
114661         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
114662         Use 1300 as initial value for length, not PATH_MAX.
114664         * lib/pathmax.h: Clean up cpp syntax.
114666 2001-08-12  Jim Meyering  <meyering@lucent.com>
114668         * lib/gettimeofday.c: New file.
114669         * lib/gtod.h: New file.
114670         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
114672 2001-08-05  Jim Meyering  <meyering@lucent.com>
114674         * m4/jm-macros.m4: Require autoconf-2.52.
114676 2001-08-04  Jim Meyering  <meyering@lucent.com>
114678         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
114679         stmt, to get in sync with glibc.
114681 2001-08-03  Paul Eggert  <eggert@twinsun.com>
114683         The following changes are from gettext 0.10.39 as maintained by
114684         Bruno Haible.
114686         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
114687         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
114688         with inverted sense.  All uses changed.
114690         * lib/mbswidth.c: Don't include <limits.h>.
114691         Include <stdlib.h> and <string.h> unconditionally.
114692         (iswcntrl, mbsinit, ISCNTRL): New macros.
114693         (mbsnwidth): Use K&R style function declarations.
114694         Don't bother checking for MB_LEN_MAX == 1, since the compiler
114695         can optimize it when MB_CUR_MAX == 1.
114696         The width of control characters is zero, not 1.
114698 2001-08-03  Paul Eggert  <eggert@twinsun.com>
114700         The following changes are from gettext 0.10.39 as maintained by
114701         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
114703         * m4/codeset.m4: Upgrade to serial AM1.
114704         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
114705         all uses changed.  Quote first arg of AC_DEFUN.
114706         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
114708         * m4/iconv.m4: Upgrade to serial AM2.
114709         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
114710         Add --with-libconv-prefix.
114711         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
114712         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
114713         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
114714         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
114715         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
114717         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
114718         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
114719         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
114720         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
114721         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
114722         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
114723         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
114724         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
114725         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
114727         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
114728         string.h any more.
114730         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
114731         not the default value.
114733         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
114734         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
114735         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
114736         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
114737         Also check for iswcntrl, used for wcwidth fallback.
114738         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
114739         to Autoconf 2.13.
114741 2001-08-03  Jim Meyering  <meyering@lucent.com>
114743         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
114744         as it was in the original.  Reported by Paul Eggert.
114746 2001-07-16  Jim Meyering  <meyering@lucent.com>
114748         * m4/gettimeofday.m4: New file.
114749         Prompted by a report from Bernhard Baehr.
114751 2001-07-15  Jim Meyering  <meyering@lucent.com>
114753         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
114754         stuff. Now it's in ../Makefile.cfg.
114756 2001-07-15  Jim Meyering  <meyering@lucent.com>
114758         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
114759         (BUILT_SOURCES): Add unlocked-io.h.
114760         (io_functions): Define.
114761         (unlocked-io.h): New rule.
114762         (DISTCLEANFILES): Add unlocked-io.h.
114763         (all-local): Depend on unlocked-io.h, to ensure it is created.
114765         * lib/unlocked-io.hin: New file
114767         * lib/regex.c: Update from glibc.
114769 2001-07-05  Jim Meyering  <meyering@lucent.com>
114771         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
114772         recommendation.
114773         (libfetish_a_SOURCES): Put all .h files here instead.
114774         Remove a thus-exposed (better checks in automake) duplicate and
114775         two unnecessary .h files.
114777 2001-07-04  Jim Meyering  <meyering@lucent.com>
114779         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
114780         that generates jm-glibc-io.m4 so that it doesn't trigger any make
114781         distcheck failure.
114783 2001-07-02  Jim Meyering  <meyering@lucent.com>
114785         The following changes were prompted by suggestions from Bruno Haible.
114787         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
114788         is now generated.
114789         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
114790         definition of EXTRA_DIST.
114791         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
114792         ensure that the generated file is created/updated whenever the list
114793         of $(unlocked_functions) is changed.
114794         (jm-glibc-io.m4): New rule.
114795         (unlocked-io.h): New rule -- currently unused.
114797 2001-06-24  Jim Meyering  <meyering@lucent.com>
114799         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
114800         unmatched right bracket, rather than kludging it with an extra,
114801         falsely-matching quote in a comment.  Patch by Akim Demaille.
114803 2001-06-11  Jim Meyering  <meyering@lucent.com>
114805         * lib/regex.c: Update from GNU libc.
114807 2001-05-27  Jim Meyering  <meyering@lucent.com>
114809         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
114810         Check for ut_type in struct utmp.
114812 2001-05-27  Jim Meyering  <meyering@lucent.com>
114814         * lib/readutmp.h (UT_TYPE): Define.
114816 2001-05-24  Jim Meyering  <meyering@lucent.com>
114818         * lib/argmatch.c: Include "quote.h".
114819         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
114820         quote function.  Reported by Göran Uddeborg.
114822 2001-05-22  Jim Meyering  <meyering@lucent.com>
114824         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
114825         now that we use the package-supplied version unconditionally.
114826         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
114828 2001-05-21  Jim Meyering  <meyering@lucent.com>
114830         * m4/regex.m4: Change a couple backticks to single quotes to avoid
114831         shell syntax errors.
114833 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
114835         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
114837 2001-05-20  Paul Eggert  <eggert@twinsun.com>
114839         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
114840         Don't bother to check library strftime, since
114841         we'll be using our own my_strftime function anyway.
114842         Define my_strftime instead of strftime.
114844 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
114846         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
114847         which is not yet declared.
114849 2001-05-15  Jim Meyering  <meyering@lucent.com>
114851         * m4/regex.m4: Use proper quoting so brackets appear in the test
114852         program.
114853         Reported by, and with help from, Bruno Haible.
114855 2001-05-13  Jim Meyering  <meyering@lucent.com>
114857         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
114858         undefined.
114860 2001-05-11  Paul Eggert  <eggert@twinsun.com>
114862         dirname code cleanup.  base_name now behaves more compatibly
114863         with POSIX basename when given file names that have trailing
114864         slashes, and similarly for dir_name.  Add new primitives
114865         base_len and dir_len.  Put the directory-name-related decls
114866         into dirname.h.
114868         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
114869         * lib/backupfile.c (base_name): Likewise.
114870         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
114871         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
114872         * lib/makepath.c (strip_trailing_slashes): Likewise.
114873         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
114874         ISSLASH): Likewise.
114875         * lib/rename.c (strip_trailing_slashes): Likewise.
114876         * lib/same.c (base_name): Likewise.
114877         * lib/stripslash.c (ISSLASH): Likewise.
114879         * lib/addext.c: Include <dirname.h> after size_t is defined.
114880         * lib/backupfile.c: Likewise.
114882         * lib/addext.c (addext): Use base_len to trim redundant
114883         trailing slashes instead of doing it ourselves.
114884         But do not trim the last slash if it is not redundant.
114886         * lib/backupfile.c (find_backup_file_name,
114887         max_backup_version): Use base_len instead of rolling it ourselves.
114888         Handle the case of "" and (on DOS) "C:" correctly.
114890         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
114891         needed. Include <string.h>, <dirname.h>.
114892         (base_name): Allow file names ending in slashes, other than names
114893         that are all slashes.  In this case, return the basename followed
114894         by the slashes.  This is more general, and can be used in places
114895         where the original base_name purposely had an assertion failure.
114896         (base_len): New function.
114898         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
114899         Do not include <assert.h>; no longer needed.
114900         Include xalloc.h.
114901         (memrchr): Remove decl.
114902         (dir_name_r): Remove.
114903         (dir_len): Renamed from dirlen.  All callers changed.
114904         Rewrite in terms of base_name, for simplicity and consistency.
114905         (dir_name): Never return NULL.  All callers changed.
114906         Do not include <stdlib.h> in test program; no longer needed.
114907         return 0; is fine for test program.
114909         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
114910         New macros.
114911         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
114913         * lib/path-concat.c (path_concat): Use base_len to compute
114914         base length, not strlen; this means we cannot rely on memcpy
114915         to null-terminate.
114917         * lib/same.c (STREQ): Remove.
114918         (same_name): Handle the case where the basename ends in trailing '/'.
114920         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
114921         a slash was stripped.  Do not strip the last slash after a
114922         file system prefix.
114924 2001-05-11  Paul Eggert  <eggert@twinsun.com>
114926         * lib/Makefile.am (libfetish_a_SOURCES):
114927         Add strftime.c, since we now compile it on all hosts.
114929         * lib/strftime.c (my_strftime):
114930         Define to nstrftime if emacs, but only if my_strftime is not defined.
114931         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
114932         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
114933         Add one more extra argument: a nanoseconds value.
114934         All uses changed.
114935         (ns): New macro.
114936         (my_strftime function): Add %N format.
114937         (emacs_strftimeu): Renamed from emacs_strftime,
114938         with extra ut argument.
114940 2001-05-09  Paul Eggert  <eggert@twinsun.com>
114942         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
114944 2001-04-21  Jim Meyering  <meyering@lucent.com>
114946         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
114947         doesn't interfere.
114949 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
114951         * m4/ftruncate.m4: Check for chsize.
114952         Link with ftruncate.o unconditionally if ftruncate is missing.
114953         This was required when cross-compiling to i586-mingw32msvc.
114955 2001-04-08  Jim Meyering  <meyering@lucent.com>
114957         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
114958         recomputed; that's necessary when the offset spans a DST transition.
114959         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
114961 2001-04-02  Jim Meyering  <meyering@lucent.com>
114963         * lib/regex.h, regex.c: Update from GNU libc.
114965 2001-03-24  Jim Meyering  <meyering@lucent.com>
114967         * m4/jm-macros.m4: Require autoconf-2.49d.
114969 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
114971         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
114973 2001-03-19  Paul Eggert  <eggert@twinsun.com>
114975         * lib/version-etc.c (version_etc_copyright): Update to 2001.
114977 2001-03-17  Jim Meyering  <meyering@lucent.com>
114979         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
114980         now that the version in autoconf is equivalent.
114981         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
114983         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
114984         Suggestion from Akim Demaille.
114986         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
114987         (jm_PREREQ_TEMPNAME): New function.
114989 2001-03-16  Paul Eggert  <eggert@twinsun.com>
114991         * lib/tempname.c (uint64_t): Define to uintmax_t if
114992         not defined, and if UINT64_MAX is not defined.
114993         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
114994         Reported by John David Anglin.
114996 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
114998         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
114999         resolve alias if codeset is empty.
115000         * lib/config.charset (BeOS): Use wildcard syntax.
115002 2001-03-13  Jim Meyering  <meyering@lucent.com>
115004         * lib/path-concat.c (path_concat)
115005         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
115006         concatenating e.g., `C:' and `foo'.
115007         From Bruno Haible.
115009 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
115011         * lib/localcharset.c (locale_charset): Don't use
115012         setlocale(LC_CTYPE,NULL). Don't return NULL.
115013         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
115015 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
115017         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
115018         support for DOS/DJGPP.
115020 2001-03-01  Paul Eggert  <eggert@twinsun.com>
115022         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
115023         lacks mkstemp.  Compile our own tempname.c if we compile our own
115024         mkstemp.c, as mkstemp relies on tempname.
115026 2001-03-01  Jim Meyering  <meyering@lucent.com>
115028         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
115029         AH_VERBATIM really does output its argument verbatim.
115031 2001-02-28  Paul Eggert  <eggert@twinsun.com>
115033         * lib/Makefile.am (libfetish_a_SOURCES):
115034         Add dup-safer.c, fopen-safer.c.
115035         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
115037         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
115038         * lib/unistd-safer.h: New files.
115040 2001-02-25  Paul Eggert  <eggert@twinsun.com>
115042         The mkstemp replacement is taken from glibc 2.2.2, with some
115043         portability fixes for use outside glibc, as follows:
115045         * lib/tempname.c (struct_stat64): New macro.
115046         (direxists, __gen_tempname): Use it.
115047         This avoids a portability problem with Solaris 8.
115049         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
115050         (<stddef.h>, <stdint.h>, <string.h>):
115051         Include only if STDC_HEADERS || _LIBC.
115052         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
115053         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
115054         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
115055         (__set_errno): Define this macro if <errno.h> doesn't.
115056         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
115057         Define these macros if <stdio.h> doesn't.
115058         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
115059         Define these macros if <sys/stat.h>
115060         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
115061         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
115062         __xstat64): Define if not _LIBC.
115063         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
115064         (__gen_tempname): Invoke gettimeofday only if
115065         HAVE_GETTIMEOFDAY || _LIBC;
115066         otherwise, fall back on plain "time".
115067         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
115069         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
115071         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
115073 2001-02-18  Paul Eggert  <eggert@twinsun.com>
115075         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
115077 2001-02-17  Paul Eggert  <eggert@twinsun.com>
115079         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
115080         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
115081         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
115082         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
115084 2001-02-17  Paul Eggert  <eggert@twinsun.com>
115086         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
115087         Remove workaround macros for hosts that have mbrtowc but not
115088         mbstate_t, as we now insist on proper declarations for both
115089         before using mbrtowc.
115091 2001-02-17  Jim Meyering  <meyering@lucent.com>
115093         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
115094         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
115095         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
115096         UnixWare 7.1.1.
115098         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
115099         rather than AC_CACHE_VAL.
115101 2001-02-17  Jim Meyering  <meyering@lucent.com>
115103         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
115104         around included file name.
115106         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
115108         * lib/strftime.c: Update from GNU libc (the only changes were to
115109         comments).
115111 2001-02-17  Jim Meyering  <meyering@lucent.com>
115113         * lib/regex.c: Update from libc.
115115 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
115117         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
115118         clash.
115120 2001-02-16  Paul Eggert  <eggert@twinsun.com>
115122         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
115123         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
115124         Reported by Mark Hounschell via Paul Eggert.
115126 2001-02-07  Jim Meyering  <meyering@lucent.com>
115128         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
115130 2001-02-05  Jim Meyering  <meyering@lucent.com>
115132         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
115133         it includes the patch required for `large file' support with at least
115134         HP-UX's 10.20 /bin/cc.
115136 2001-02-03  Jim Meyering  <meyering@lucent.com>
115138         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
115139         AS_IF, now that it works once again (mysteriously).
115140         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
115142 2001-01-30  Jim Meyering  <meyering@lucent.com>
115144         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
115145         * m4/chown.m4: Rename conftestchown to conftest.chown.
115146         * m4/rename.m4: s/conftestdir/conftest.d1/ and
115147         s/conftestdir2/conftest.d2/.
115148         * m4/utimes.m4: s/conftestdata/conftest.data/
115149         Inspired by Pavel Roskin's change in autoconf.
115151 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
115153         * lib/config.charset: Update for FreeBSD 4.2.
115155 2001-01-27  Jim Meyering  <meyering@lucent.com>
115157         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
115158         a use of AS_IF.
115159         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
115161 2001-01-26  Jim Meyering  <meyering@lucent.com>
115163         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
115164         quotearg.c includes it.
115166 2001-01-26  Jim Meyering  <meyering@lucent.com>
115168         * lib/quotearg.c: Include stddef.h.
115169         * lib/quote.c: Include stddef.h.
115170         Reported by Axel Kittenberger.
115172         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
115173         line in double quotes so that it evokes a better diagnostic.
115174         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
115175         Reported by Axel Kittenberger.
115177 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
115179         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
115180         as if it was a `charset'.
115182 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
115184         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
115185         has const.
115187 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
115189         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
115190         to avoid a warning.  Add back 'const' to inptr.
115192 2001-01-20  Jim Meyering  <meyering@lucent.com>
115194         Be sure that headers are checked before used in code compiled
115195         for the type checks.
115196         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
115197         In place of that, invoke jm_CHECK_ALL_TYPES.
115198         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
115199         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
115200         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
115201         The check for ssize_t was mistakenly run before the test for unistd.h.
115203         The configure-time check for stdbool.h was missing.
115204         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
115205         (jm_PREREQ_HASH): New function.
115207 2001-01-17  Jim Meyering  <meyering@lucent.com>
115209         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
115210         for autoconf-2.49c.
115211         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
115213 2001-01-16  Jim Meyering  <meyering@lucent.com>
115215         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
115216         From Bruno Haible.
115218 2001-01-14  Jim Meyering  <meyering@lucent.com>
115220         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
115221         foo and bar.  Create conftestdir/ in the script, not in the C code.
115222         Remove directories in the script, not in the C code.
115223         Remove conftestdir{,2} before trying to create the directory.
115224         Make the entire configure script fail if the mkdir fails.
115226 2001-01-14  Jim Meyering  <meyering@lucent.com>
115228         * lib/rename.c: New file.  From Volker Borchert.
115229         Include stdlib.h, string.h or strings.h, and xalloc.h.
115230         Use strip_trailing_slashes rather than open-coding it.
115232 2001-01-03  Paul Eggert  <eggert@twinsun.com>
115234         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
115236 2001-01-03  Jim Meyering  <meyering@lucent.com>
115238         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
115239         of local `inptr' to avoid warning with some system declarations of
115240         iconv.
115242 2001-01-02  Volker Borchert  <bt@teknon.de>
115244         * m4/rename.m4: New file.
115245         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
115247 2001-01-01  Jim Meyering  <meyering@lucent.com>
115249         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
115250         even on systems with utmpx.h.  It's necessary for the declaration of
115251         utmp's ut_user member.  Reported by Andreas Jaeger.
115253         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
115254         available. They are required for the declarations of getgrgid and
115255         getpwuid resp.
115256         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
115257         Reported by Andreas Jaeger.
115259 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
115261         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
115262         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
115263         so `make install' also works in VPATH builds.
115265 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
115267         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
115268         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
115269         can be used in subdirectories.
115271 2000-12-29  Paul Eggert  <eggert@twinsun.com>
115273         * lib/modechange.c: Do not assume that mode_t uses the
115274         traditional octal encoding.  E.g. "chmod 1 FOO" should set
115275         the other-execute bit of FOO even if S_IXOTH != 1.
115277         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
115278         WOTH, XOTH, ALLM): New macros.
115279         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
115280          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
115281         Use them.
115282         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
115283         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
115284         (mode_compile):
115285         No need to use uintmax_t; unsigned long is long enough.
115286         Don't bother to get suffix since we don't use it.
115288 2000-12-26  Jim Meyering  <meyering@lucent.com>
115290         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
115291         better with autoheader.
115293 2000-12-24  Jim Meyering  <meyering@lucent.com>
115295         * lib/hash.c (is_prime): Return explicit boolean values.
115296         (hash_get_first): Return NULL to appease Irix5.6's 89.
115297         Reported by Nelson Beebe.
115299 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
115301         * lib/localcharset.c (locale_charset): Add support for Win32.
115303 2000-12-18  Paul Eggert  <eggert@twinsun.com>
115305         * lib/physmem.h, lib/physmem.c: New files.
115307         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
115308         (noinst_HEADERS): Add physmem.h.
115310         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
115311         't' for compatibility with Solaris 8 sort.
115313 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
115315         * lib/config.charset: Add support for BeOS.
115317 2000-12-17  Jim Meyering  <meyering@lucent.com>
115319         * m4/dos.m4 (jm_AC_DOS): New file and macro.
115320         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
115322 2000-12-16  Jim Meyering  <meyering@lucent.com>
115324         This bug had a serious impact on chown: `chown N:M FILE' (for integer
115325         N and M) would have treated it like `chown N:N FILE'.
115327         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
115329 2000-12-16  Jim Meyering  <meyering@lucent.com>
115331         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
115332         SHELLS_FILE to a file name that's useful on djgpp systems.
115333         Include stdlib.h.
115334         (ADDITIONAL_DEFAULT_SHELLS): Define.
115335         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
115336         Based mostly on a patch from Prashant TR.
115338 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
115340         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
115341         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
115342         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
115344 2000-12-08  Andreas Schwab  <schwab@suse.de>
115346         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
115347         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
115349 2000-12-07  Jim Meyering  <meyering@lucent.com>
115351         * lib/stripslash.c (ISSLASH): Define.
115352         (strip_trailing_slashes): Use ISSLASH rather than comparing against
115353         `/'.
115354         From Prashant TR.
115356         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
115357         (dir_name_r): Declare this function as static.
115358         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
115359         manifest itself on a name containing a mix of slashes and
115360         backslashes.
115361         Make this function work with names starting with a DOS-style
115362         drive letter and colon prefix.
115363         (dir_name): Append `.' if necessary.
115364         Based mostly on patches from Prashant TR and Eli Zaretskii.
115366         * lib/dirname.h (dir_name_r): Remove prototype.
115368 2000-12-06  Paul Eggert  <eggert@twinsun.com>
115370         * m4/off_t-format.m4: Remove this file.
115371         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
115373 2000-12-06  Jim Meyering  <meyering@lucent.com>
115375         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
115376         replacement strtoull, we may well need the replacement strtoul, too.
115377         Check for declarations of strtoul and strtoull.
115378         Check for strtol.  Mainly as a cue to cause automake to include
115379         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
115380         Check for limits.h -- strtol.c needs it.
115382 2000-12-05  Jim Meyering  <meyering@lucent.com>
115384         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
115386 2000-12-04  Jim Meyering  <meyering@lucent.com>
115388         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
115389         Also include memory.h, stdlib.h, unistd.h if appropriate.
115390         Reported by Andreas Jaeger (conflicting declaration of malloc).
115392 2000-12-02  Jim Meyering  <meyering@lucent.com>
115394         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
115395         * m4/jm-macros.m4 (jm_MACROS): require it.
115397 2000-12-02  Jim Meyering  <meyering@lucent.com>
115399         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
115401 2000-12-01  Paul Eggert  <eggert@twinsun.com>
115403         * lib/memrchr.c: Include <config.h> before any system include file.
115405 2000-11-30  Jim Meyering  <meyering@lucent.com>
115407         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
115409 2000-11-30  Jim Meyering  <meyering@lucent.com>
115411         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
115413 2000-11-29  Paul Eggert  <eggert@twinsun.com>
115415         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
115417 2000-11-26  Jim Meyering  <meyering@lucent.com>
115419         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
115421 2000-11-22  Paul Eggert  <eggert@twinsun.com>
115423         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
115424         size of (size_t) -1; it's not portable.
115426 2000-11-17  Jim Meyering  <meyering@lucent.com>
115428         * lib/strstr.c: Update from GNU libc.
115430 2000-11-17  Akim Demaille  <akim@epita.fr>
115432         * lib/obstack.h: Formatting changes.
115433         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
115434         prevent type checking.
115435         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
115436         cast the value to (void *): assigning a `foo *' to a `void *'
115437         variable is valid.
115438         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
115440 2000-11-16  Jim Meyering  <meyering@lucent.com>
115442         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
115444 2000-11-11  Jim Meyering  <meyering@lucent.com>
115446         * lib/error.c: Add a couple #includes, merging from GNU libc version.
115448 2000-11-10  Jim Meyering  <meyering@lucent.com>
115450         * lib/obstack.h: Update from GNU libc.
115451         * lib/obstack.c: Likewise.
115453 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
115455         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
115457 2000-11-06  Paul Eggert  <eggert@twinsun.com>
115459         * lib/getusershell.c (setusershell): Use rewind rather than
115460         fseek/fseeko, to avoid configuration hassles with fseeko.
115461         Don't bother opening SHELLS_FILE if shellstream is NULL;
115462         it's not necessary.
115464 2000-11-05  Jim Meyering  <meyering@lucent.com>
115466         * lib/makepath.h (make_dir): Declare.
115467         * lib/makepath.c (make_dir): Remove `static' attribute.
115468         Tweak a comment.
115470 2000-11-04  Jim Meyering  <meyering@lucent.com>
115472         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
115474 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
115476         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
115477         last one in a bucket, advance to the next bucket.
115479 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
115481         * lib/fnmatch.c: Do not comment out all the code if we are using
115482         the GNU C library, because in some cases we are replacing buggy
115483         code in the GNU C library itself.
115485 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
115487         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
115488         (regex_compile): Catch bogus \(\1\).
115490 2000-10-30  Paul Eggert  <eggert@twinsun.com>
115492         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
115493         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
115494         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
115496 2000-10-30  Paul Eggert  <eggert@twinsun.com>
115498         * lib/error.h, getline.h, modechange.h:
115499         Remove "2000" from Copyright line, as the file hasn't been
115500         changed this year other than in the copyright notice.
115502         * lib/xalloc.h: Add "2000" to Copyright line, as this file
115503         was changed this year.
115505 2000-10-29  Jim Meyering  <meyering@lucent.com>
115507         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
115508         renaming.
115509         * m4/ls-mntd-fs.m4: Likewise
115511 2000-10-29  Jim Meyering  <meyering@lucent.com>
115513         * lib/xstat.in: Fix grammar in comment.
115515 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
115517         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
115518         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
115519         doesn't define __restrict_arr.
115521 2000-10-28  Jim Meyering  <meyering@lucent.com>
115523         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
115524         (jm_PREREQ_MEMCHR): New function.
115526 2000-10-28  Jim Meyering  <meyering@lucent.com>
115528         * lib/memchr.c: Update from libc.
115529         Adjust for portability:
115530         [HAVE_STDLIB_H]: Include stdlib.h.
115531         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
115532         Undef __memchr, too.
115533         [!weak_alias]: Define __memchr to memchr.
115535         * lib/regex.c: Update from libc.
115536         * lib/regex.h: Likewise.
115537         * lib/getopt1.c: Likewise.
115538         * lib/memcmp.c: Likewise.
115540         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
115541         Avoid using fseek, when possible -- it's broken by design.
115542         Patch by Ulrich Drepper.
115544 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
115546         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
115547         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
115548         Giving in to popular pressure to shut up the compiler with casts.
115550 2000-10-26  Jim Meyering  <meyering@lucent.com>
115552         * lib/strftime.c: Update from libc.
115554 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
115556         * regex.c: More `unsigned char' -> `re_char' changes.
115557         Also change several `int' into `re_wchar_t'.
115558         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
115559         (PUSH_FAILURE_POINTER): Don't cast any more.
115560         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
115561         We want GCC to complain, since this piece of code makes
115562         re_match non-reentrant, which *should* be fixed.
115563         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
115564         (EXTEND_BUFFER): Use RETALLOC.
115565         (SET_LIST_BIT): Don't cast.
115566         (re_wchar_t): New type.
115567         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
115568         that those two functions will always properly return.
115569         (IMMEDIATE_QUIT_CHECK): Cast to void.
115570         (analyse_first): Use recursion rather than an explicit stack.
115571         (re_compile_fastmap): Can't fail anymore.
115572         (re_search_2): Don't check re_compile_fastmap for failure.
115573         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
115574         Now also sets the new value (passed in a new argument).
115575         (re_match_2_internal): Use it.
115576         Also, use a new var `reg' of type size_t when looping through regs
115577         rather than reuse the inappropriate `mcnt'.
115579 2000-10-25  Jim Meyering  <meyering@lucent.com>
115581         * lib/obstack.c: Update from libc.
115583 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
115585         * regex.c (regex_compile): Change the way of handling a range from
115586         a char less than 256 to a char not less than 256.
115588 2000-10-24  Andrew Innes  <andrewi@gnu.org>
115590         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
115591         NT-Emacs only.
115592         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
115593         so that re_search functions only quit when callers expect them to.
115595 2000-10-23  Jim Meyering  <meyering@lucent.com>
115597         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
115598         wrong.  That set_locale call must not have any side effects.
115599         From Paul Eggert.
115601 2000-10-22  Jim Meyering  <meyering@lucent.com>
115603         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
115604         [CYCLIC]: Remove now-unused definition.
115606         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
115607         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
115608         Suggestion from Ulrich Drepper.
115610 2000-10-21  Jim Meyering  <meyering@lucent.com>
115612         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
115613         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
115614         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
115616 2000-10-21  Jim Meyering  <meyering@lucent.com>
115618         * lib/dirname.c (memrchr): Declare if necessary.
115619         (dir_name): Remove the restriction that there be no
115620         trailing slashes.  Now, this code skips past them, effectively
115621         ignoring them.
115622         [TEST_DIRNAME] (main): New unit tests.
115624         * lib/memrchr.c: New file from GNU libc.
115625         Undef __memrchr, too.
115626         [!weak_alias]: Define __memrchr to memrchr.
115627         Guard weak_alias use with `#ifdef weak_alias'.
115629 2000-10-21  Jim Meyering  <meyering@lucent.com>
115631         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
115632         (dir_name): Use dir_name_r.
115633         * lib/dirname.h (dir_name_r): Declare it.
115635 2000-10-17  Jim Meyering  <meyering@lucent.com>
115637         * lib/quote.h (PARAMS): Define and use.
115638         Reported by Akim Demaille.
115640         * lib/getopt.c: Update from libc.
115642 2000-10-16  Jim Meyering  <meyering@lucent.com>
115644         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
115645         setlocale.
115646         From Jan Fedak.
115648 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
115650         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
115652 2000-09-25  Jim Meyering  <meyering@lucent.com>
115654         * lib/md5.h (rol): Define (from GnuPG).
115656         * lib/sha.c: Give credit (GnuPG) where due.
115657         (M): Use rol rather than open-coding it.
115658         Add a FIXME comment.
115660 2000-09-21  Jim Meyering  <meyering@lucent.com>
115662         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
115663         Reported by Michael Stone.
115665 2000-09-20  Jim Meyering  <meyering@lucent.com>
115667         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
115668         (noinst_HEADERS): Add sha.h.
115669         Based on code from Scott G. Miller and from GnuPG.
115671 2000-09-18  Jim Meyering  <meyering@lucent.com>
115673         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
115674         LIBS. Otherwise, everyone ends up linking with -lelf for some
115675         configurations.
115676         Reported by Mike Stone.
115678 2000-09-15  Jim Meyering  <meyering@lucent.com>
115680         * lib/regex.c: Update from libc.
115682 2000-09-10  Jim Meyering  <meyering@lucent.com>
115684         * lib/getopt.c (_getopt_internal): Update from glibc.
115686 2000-09-09  Jim Meyering  <meyering@lucent.com>
115688         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
115689         think it should be used as a general replacement for isascii.
115690         * lib/fnmatch.c: Likewise.
115691         * lib/mbswidth.c: Likewise
115692         * lib/regex.c: Likewise.
115694         Don't use atoi.
115695         * lib/userspec.c: Include sys/param.h and limits.h.
115696         Include xstrtol.h.
115697         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
115698         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
115699         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
115700         UID, GID.  Check range.
115702 2000-09-06  Jim Meyering  <meyering@lucent.com>
115704         * lib/getopt.c (_getopt_internal): Update from glibc.
115706 2000-08-30  Jim Meyering  <meyering@lucent.com>
115708         * lib/strftime.c: Merge in changes from GNU libc.
115710 2000-08-26  Jim Meyering  <meyering@lucent.com>
115712         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
115713         * m4/fpending.m4: New file.
115715 2000-08-26  Jim Meyering  <meyering@lucent.com>
115717         * lib/closeout.c: Include "__fpending.h".
115718         (close_stdout_status): Return right away if there's nothing to flush.
115720         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
115721         * lib/__fpending.c: New file.
115722         * lib/__fpending.h: New file.
115724 2000-08-20  Jim Meyering  <meyering@lucent.com>
115726         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
115727         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
115728         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
115730 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
115732         Improve fileutils installation on systems where running
115733         programs (like install) can't be unlinked.
115734         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
115735         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
115737 2000-08-07  Paul Eggert  <eggert@twinsun.com>
115739         Standardize on "memory exhausted" instead of "Memory exhausted"
115740         or "virtual memory exhausted".
115741         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
115742         "virtual memory exhausted".
115743         * lib/same.c (same_name): Invoke xalloc_die instead of printing
115744         our own message.
115745         * lib/userspec.c (parse_user_spec): Likewise.
115746         * lib/bumpalloc.h: comment fix
115747         * lib/same.c, userspec.c: Include xalloc.h.
115749         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
115750         not char *const and pointing to a constant array.
115751         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
115752         (xrealloc): Comment fix.
115754         * lib/userspec.c (parse_user_spec):
115755         Don't translate a message until just before returning,
115756         to avoid unnecessary translation.
115758 2000-08-07  Jim Meyering  <meyering@lucent.com>
115760         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
115761         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
115762         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
115763         getgroups.c, gethostname.c, getopt.h, group-member.c,
115764         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
115765         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
115766         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
115767         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
115768         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
115769         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
115770         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
115771         yesno.c: Back out Copyright date changes for each file with no change
115772         this year.  This eases coordination with other programs using the same
115773         source code modules.  From Paul Eggert.
115775 2000-08-06  Paul Eggert  <eggert@twinsun.com>
115777         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
115778         not char, for compatibility with glibc 2.1.3 strftime.c.
115780 2000-08-03  Greg McGary  <greg@mcgary.org>
115782         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
115783         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
115784         (EXTEND_BUFFER): Use them.
115786 2000-08-01  Jim Meyering  <meyering@lucent.com>
115788         * lib/dirname.c (ISSLASH): Define.
115789         (BACKSLASH_IS_PATH_SEPARATOR): Define.
115790         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
115791         both `\' and `/' may be use as path separators.
115792         Based on a patch from Prashant TR.
115794 2000-07-31  Paul Eggert  <eggert@twinsun.com>
115796         * lib/quotearg.c (quotearg_n_options): Don't make the initial
115797         slot vector a constant, since it might get modified.
115799 2000-07-31  Jim Meyering  <meyering@lucent.com>
115801         * lib/xmalloc.c: Use `virtual memory exhausted', not
115802         `Memory exhausted'.
115803         * lib/obstack.c (print_and_abort): Likewise.
115805 2000-07-30  Paul Eggert  <eggert@twinsun.com>
115807         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
115808         buffer, so that the caller can always quote one small
115809         component of a "memory exhausted" message in slot 0.
115810         From a suggestion by Jim Meyering.
115812 2000-07-30  Jim Meyering  <meyering@lucent.com>
115814         * lib/makepath.c (make_path): Quote the other instance, too.
115816         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
115817         (STATIC_BUF_SIZE): Define.
115818         (quotearg_n_options): Use only statically allocated storage when
115819         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
115820         than STATIC_BUF_SIZE.
115822 2000-07-29  Jim Meyering  <meyering@lucent.com>
115824         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
115825         * lib/dirname.c (dir_name): Likewise.
115827         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
115828         `/'.
115830         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
115831         (dir_name): Assert that there are no trailing slashes.
115833 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
115835         * lib/mbswidth.h (mbswidth): Add a flags argument.
115836         (mbswidth): New declaration.
115837         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
115838         * lib/mbswidth.c (mbswidth): Add a flags argument.
115839         (mbsnwidth): New function.
115841 2000-07-24  Jim Meyering  <meyering@lucent.com>
115843         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
115845 2000-07-23  Paul Eggert  <eggert@twinsun.com>
115847         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
115849 2000-07-23  Paul Eggert  <eggert@twinsun.com>
115851         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
115852         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
115853         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
115854         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
115855         invoke multibyte primitives.
115857 2000-07-23  Paul Eggert  <eggert@twinsun.com>
115859         * lib/quotearg.c:
115860         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
115861         so that mbstate_t is always defined.
115863         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
115864         be 1 in at least one GCC installation, and this configuration
115865         error is likely to be common.  Ignoring MB_LEN_MAX hurts
115866         performance on hosts that have mbrtowc but have only unibyte
115867         locales, but I assume these hosts are rare.
115869 2000-07-23  Paul Eggert  <eggert@twinsun.com>
115871         * lib/mbswidth.c (_XOPEN_SOURCE):
115872         Don't define; this causes problems on Solaris 7.
115873         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
115875 2000-07-23  Jim Meyering  <meyering@lucent.com>
115877         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
115878         too: getgrgid, getpwuid, getuid.
115880 2000-07-23  Jim Meyering  <meyering@lucent.com>
115882         * lib/basename.c (base_name): Add an assertion.
115884 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
115886         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
115887         shadow its mbsinit function.
115889 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
115891         * lib/mbswidth.h: New file.
115892         * lib/mbswidth.c: New file.
115893         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
115894         (noinst_HEADERS): Add mbswidth.h.
115896 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
115898         * lib/config.charset: Add support for FreeBSD. Improve support for
115899         HP-UX and IRIX 6.
115901 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
115903         * m4/mbswidth.m4: New file.
115904         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
115906 2000-07-15  Jim Meyering  <meyering@lucent.com>
115908         * lib/makepath.c: Include quote.h.
115909         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
115910         corresponding argument in a `quote (...)' call.
115911         Give better diagnostics.
115913         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
115914         (noinst_HEADERS): Add quote.h.
115916         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
115917         from tar's src/misc.c.
115918         * lib/quote.h: New file.  Prototypes for same.
115920 2000-07-14  Paul Eggert  <eggert@twinsun.com>
115922         From a suggestion by Bruno Haible.
115923         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
115924         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
115925         to decide whether to define the BeOS workaround macro;
115926         this adjusts to the change to AC_MBSTATE_T.
115928 2000-07-14  Jim Meyering  <meyering@lucent.com>
115930         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
115931         jm_AC_TYPE_UINTMAX_T.
115933 2000-07-13  Paul Eggert  <eggert@twinsun.com>
115935         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
115937         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
115938         quotearg_buffer_restyled): Add support for
115939         clocale_quoting_style.  Undo previous change to
115940         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
115941         and "{RIGHT QUOTATION MARK}" msgids.
115943 2000-07-10  Paul Eggert  <eggert@twinsun.com>
115945         From a suggestion by Bruno Haible.
115946         * m4/mbstate_t.m4 (AC_MBSTATE_T):
115947         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
115948         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
115949         and mbstate_t, to a single-part test that simply defines mbstate_t.
115950         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
115951         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
115953 2000-07-10  Jim Meyering  <meyering@lucent.com>
115955         * m4/strerror_r.m4: Mirror the correction made in autoconf.
115957         * m4/gnu-source.m4: Output to confdefs.h directly.
115958         Suggestion from Akim Demaille.
115960 2000-07-09  Paul Eggert  <eggert@twinsun.com>
115962         The old behavior of quoting `like this' doesn't look good with
115963         newer, ISO-style fonts.  See:
115964         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
115966         Instead, quote "like this" by default.  Let the translator
115967         tailor the locale-specific quoting behavior by providing
115968         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
115970         * lib/quotearg.c (N_): New macro.
115971         (gettext_default): New function.
115972         (quotearg_buffer_restyled): Use
115973         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
115974         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
115976 2000-07-09  Jim Meyering  <meyering@lucent.com>
115978         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
115979         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
115981         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
115982         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
115984 2000-07-09  Jim Meyering  <meyering@lucent.com>
115986         * lib/Most files: Update copyright dates to include 2000.
115988 2000-07-08  Jim Meyering  <meyering@lucent.com>
115990         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
115991         if not defined.
115992         (xgethostname): Remove now-unnecessary #ifdef.
115993         Move declaration of `err' into loop where it's used.
115995 2000-07-05  Paul Eggert  <eggert@twinsun.com>
115996         and Bruno Haible  <haible@clisp.cons.org>
115998         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
115999         only if the test for an object-type mbstate_t fails.  This
116000         prevents us from mistakenly reporting that mbstate_t is a
116001         system object type after we "#define mbstate_t int" to work
116002         around its lack.
116004 2000-07-05  Paul Eggert  <eggert@twinsun.com>
116005         and Bruno Haible  <haible@clisp.cons.org>
116007         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
116009 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
116011         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
116012         to strerror_r.
116013         Include <ctype.h> for use of isalpha.
116015 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
116017         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
116018         by allocating a larger buffer. Test the gethostname return value for
116019         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
116020         returns an error and ENAMETOOLONG isn't defined.
116022 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
116024         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
116025         dimension.
116027 2000-07-04  Jim Meyering  <meyering@lucent.com>
116029         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
116030         of the deprecated AC_CHECKING.
116032 2000-07-04  Jim Meyering  <meyering@lucent.com>
116034         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
116035         Reported by Bruno Haible.
116037 2000-07-04  Jim Meyering  <meyering@lucent.com>
116039         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
116040         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
116041         lacks mbrtowc.
116043 2000-07-03  Paul Eggert  <eggert@twinsun.com>
116045         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
116046         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
116048 2000-07-03  Paul Eggert  <eggert@twinsun.com>
116049         and Bruno Haible  <haible@clisp.cons.org>
116051         * lib/quotearg.c (mbrtowc):
116052         Assign to *pwc, and return 1 only if result is nonzero.
116053         (iswprint): Use ISPRINT when substituting our own mbrtowc.
116055 2000-07-03  Jim Meyering  <meyering@lucent.com>
116057         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
116059 2000-07-03  Jim Meyering  <meyering@lucent.com>
116061         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
116062         This is necessary to get a definition of e.g., UTMP_FILE on
116063         HP-UX 10.20.
116064         From Bob Proulx.
116066 2000-07-02  Jim Meyering  <meyering@lucent.com>
116068         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
116070         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
116071         AC_LIBOBJ(function_name).
116072         * m4/chown.m4: Likewise.
116073         * m4/fnmatch.m4: Likewise.
116074         * m4/ftruncate.m4: Likewise.
116075         * m4/getgroups.m4: Likewise.
116076         * m4/getline.m4: Likewise.
116077         * m4/group-member.m4: Likewise.
116078         * m4/jm-macros.m4: Likewise.
116079         * m4/lstat.m4: Likewise.
116080         * m4/malloc.m4: Likewise.
116081         * m4/memcmp.m4: Likewise.
116082         * m4/nanosleep.m4: Likewise.
116083         * m4/putenv.m4: Likewise.
116084         * m4/realloc.m4: Likewise.
116085         * m4/regex.m4: Likewise.
116086         * m4/stat.m4: Likewise.
116087         * m4/strftime.m4: Likewise.
116089 2000-07-02  Jim Meyering  <meyering@lucent.com>
116091         * lib/quotearg.c (mbstate_t): Don't define here.
116093 2000-07-02  Jim Meyering  <meyering@lucent.com>
116095         * lib/nanosleep.c (SIGCONT): Define if not already defined.
116097 2000-07-01  Jim Meyering  <meyering@lucent.com>
116099         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
116101 2000-07-01  Jim Meyering  <meyering@lucent.com>
116103         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
116104         problem.
116106 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
116108         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
116109         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
116111 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
116113         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
116114         per change in ../m4/ls-mntd-fs.m4.
116115         (read_filesystem_list): Ignore symbolic links.
116117 2000-06-29  Jim Meyering  <meyering@lucent.com>
116119         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
116120         for declaration of strcmp.
116122         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
116124         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
116125         Avoid warning by casting result to `char *' to remove `const'.
116127 2000-06-28  Jim Meyering  <meyering@lucent.com>
116129         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
116130         included by quotearg.c, for which we perform this test.  From
116131         Bruno Haible.
116133 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
116135         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
116136         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
116137         <utmpx.h> exists, put readutmp.o into LIBOBJS.
116139 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
116141         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
116143 2000-06-26  Paul Eggert  <eggert@twinsun.com>
116145         savedir now sets errno on failure and invokes xmalloc to get memory.
116146         Fix a couple of other minor bugs while we're at it.
116148         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
116149         (NAMLEN): Remove macro.
116150         (malloc, realloc): Remove decls.
116151         (stpcpy): Likewise.
116152         ("xalloc.h"): Include.
116153         (NAME_SIZE_DEFAULT): New macro.
116154         (savedir): Use xmalloc / xrealloc to allocate memory.
116155         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
116156         Skip "" directory entries.
116157         Use strlen to calculate directory entry length, since the old method
116158         is rarely used these days and isn't worth supporting.
116159         Don't use a pointer after freeing it.
116160         Check for integer overflow when calculating allocation size.
116161         Use memcpy to copy entries, instead of stpcpy.
116162         Set errno properly when returning NULL.
116163         Check for readdir error.
116165 2000-06-26  Jim Meyering  <meyering@lucent.com>
116167         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
116169 2000-06-25  Jim Meyering  <meyering@lucent.com>
116171         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
116172         Linux header bug when _XOPEN_SOURCE is defined to 500.
116174 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
116176         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
116177         deficiency.
116179 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
116181         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
116182         Include xalloc.h.
116183         Don't include <stdlib.h>.  Don't declare malloc, realloc.
116185 2000-06-24  Jim Meyering  <meyering@lucent.com>
116187         * m4/strerror_r.m4: Revive this file -- to try out an experimental
116188         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
116189         for which strerror does return char*, but which lacks a conveniently
116190         accessible declaration of the function.  If the compile-test says
116191         strerror_r doesn't work, then resort to a `run'-test that works on
116192         BeOS and segfaults on DEC Unix.
116194 2000-06-24  Jim Meyering  <meyering@lucent.com>
116196         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
116198 2000-06-23  Paul Eggert  <eggert@twinsun.com>
116200         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
116201         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
116203 2000-06-23  Paul Eggert  <eggert@twinsun.com>
116205         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
116206         (mbrtowc, mbstate_t): Define substitutes if
116207         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
116208         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
116209         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
116211 2000-06-23  Jim Meyering  <meyering@lucent.com>
116213         * m4/afs.m4: Add missing AC_MSG_RESULT.
116214         Reported by Bruno Haible.
116216         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
116217         Suggestion from Bruno Haible.
116219 2000-06-23  Jim Meyering  <meyering@lucent.com>
116221         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
116223 2000-06-21  Jim Meyering  <meyering@lucent.com>
116225         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
116227 2000-06-21  Jim Meyering  <meyering@lucent.com>
116229         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
116230         (noinst_HEADERS): Add getstr.h.
116232         * lib/getline.c (getstr): Move into a separate file.
116233         * lib/getstr.c (getstr): New file, extracted from getline.c, with
116234         the following changes: new parameter, delim2; both delim[12]
116235         parameters have type `int', not `char'.  The latter would lose
116236         with 8-bit delimiters.
116237         * lib/getstr.h: New file.
116239 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
116241         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
116242         than 1024, return a memory chunk of least possible size, instead
116243         of size PATH_MAX + 2. In the loop, increment the size proportionally.
116244         Use free/xmalloc instead of xrealloc to avoid copying for very long
116245         paths.
116247 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
116249         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
116250         the empty string.
116252 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
116254         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
116255         address, not strdup.  Include <stdlib.h> and don't declare free().
116257 2000-06-19  Jim Meyering  <meyering@lucent.com>
116259         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
116261 2000-06-18  Jim Meyering  <meyering@lucent.com>
116263         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
116265         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
116266         `checking whether...' message to be consistent with that of the
116267         lstat test.
116269 2000-06-18  Jim Meyering  <meyering@lucent.com>
116271         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
116272         Besides, these days every porting target provides a mkdir function.
116274         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
116275         needed. (this snippet comes from src/system.h).
116277 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
116279         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
116281 2000-06-15  Paul Eggert  <eggert@twinsun.com>
116283         * lib/human.c (adjust_value): New function.
116284         (human_readable_inexact): Apply rounding style even when
116285         printing approximate values.
116287 2000-06-14  Paul Eggert  <eggert@twinsun.com>
116289         * lib/human.c (human_readable_inexact): Allow an input block
116290         size that is not a multiple of the output block size, and vice versa.
116291         Reported by Piergiorgio Sartor.
116293 2000-06-14  Paul Eggert  <eggert@twinsun.com>
116295         * lib/getdate.y (get_date): Apply relative times after time
116296         zone indicator, not before.  Reported by Todd A. Jacobs.
116298 2000-06-13  Jim Meyering  <meyering@lucent.com>
116300         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
116302         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
116304 2000-06-12  Paul Eggert  <eggert@twinsun.com>
116306         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
116308 2000-06-12  Jim Meyering  <meyering@lucent.com>
116310         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
116311         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
116312         optional argument.
116313         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
116314         the optional argument, `lib'.
116316 2000-06-08  Jim Meyering  <meyering@lucent.com>
116318         * m4/largefile.m4: Remove file (now that it's part of autoconf).
116320 2000-06-04  Paul Eggert  <eggert@twinsun.com>
116322         Rewrite largefile configuration so that we don't need to run
116323         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
116324         AC_CANONICAL_HOST in configure.in -- jmm]
116326         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
116327         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
116328         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
116329         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
116330         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
116331         All uses changed.
116332         Instead of inspecting the output of getconf, try to compile the
116333         test program without and with the macro definition.
116334         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
116335         for getconf.  Instead, check for the needed flags by compiling
116336         test programs.
116338 2000-06-04  Paul Eggert  <eggert@twinsun.com>
116340         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
116342 2000-06-04  Jim Meyering  <meyering@lucent.com>
116344         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
116345         SunOS 4.1.4 for which gid_t is an unsigned type.
116347 2000-06-03  Jim Meyering  <meyering@lucent.com>
116349         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
116350         now that autoconf requires that.
116352         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
116353         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
116354         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
116356 2000-06-03  Jim Meyering  <meyering@lucent.com>
116358         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
116360 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
116362         * m4/glibc21.m4: New file.
116363         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
116365 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
116367         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
116368         newer, don't install charset.alias.
116369         * lib/config.charset: Change the Linux/glibc rules so they become empty
116370         on glibc-2.1 or newer.
116372 2000-06-02  Jim Meyering  <meyering@lucent.com>
116374         * lib/mountlist.c: Back out last change.  Instead, do this...
116375         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
116376         me_dummy member using the same `ignore'-testing code.
116377         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
116378         fs_type strings.
116379         From Mark D. Roth.
116381 2000-05-29  Jim Meyering  <meyering@lucent.com>
116383         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
116384         mounts with the `ignore' attribute.  Based on a patch from
116385         Mark D. Roth.
116387 2000-05-28  Jim Meyering  <meyering@lucent.com>
116389         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
116390         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
116391         * m4/stat.m4: Likewise.
116392         * m4/lstat.m4: Likewise.
116393         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
116395         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
116396         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
116398 2000-05-26  Jim Meyering  <meyering@lucent.com>
116400         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
116402 2000-05-24  Jim Meyering  <meyering@lucent.com>
116404         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
116405         autoconf requires that.
116406         * m4/lib-check.m4: Likewise.
116407         * m4/jm-macros.m4: Likewise.
116408         * m4/strftime.m4: Likewise.
116410         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
116411         AC_CHECK_DECLS, now that autoconf requires that.
116413 2000-05-22  Jim Meyering  <meyering@lucent.com>
116415         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
116416         * m4/lstat.m4: Likewise.
116418 2000-05-22  Jim Meyering  <meyering@lucent.com>
116420         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
116422 2000-05-20  Jim Meyering  <meyering@lucent.com>
116424         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
116425         (jm_PREREQ): Use it.
116427 2000-05-18  Jim Meyering  <meyering@lucent.com>
116429         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
116430         back, too, since it may have been modified by allocate_entry.
116431         (hash_delete): Rewrite to use neither the assignment operator
116432         nor the comma operator in an if-expression.
116434 2000-05-15  Paul Eggert  <eggert@twinsun.com>
116436         * lib/closeout.c:
116437         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
116438         Remove; no longer needed.
116439         "quotearg.h": Add include.
116440         (file_name): Do not bother to explicitly initialize to NULL; it's less
116441         efficient on some hosts.
116442         (close_stdout_status): Remove test as to whether stdout was already
116443         closed; it breaks for the case "echo x | sort >&-".
116444         Quote file name colons.
116445         Do not assume that _("write error") lacks format strings.
116447 2000-05-15  Jim Meyering  <meyering@lucent.com>
116449         * lib/version-etc.c (version_etc_copyright): Update the copyright
116450         string used in all --version output.
116452 2000-05-14  Jim Meyering  <meyering@lucent.com>
116454         * lib/closeout.c (close_stdout_set_file_name): New function.
116455         (close_stdout_status): Use new file-scoped global.
116456         Return right away if fstat says the stdout file descriptor is invalid.
116457         * lib/closeout.h (close_stdout_set_file_name): Declare.
116459 2000-05-10  Jim Meyering  <meyering@lucent.com>
116461         * lib/closeout.c [default_exit_status]: New file-scoped variable.
116462         (close_stdout_set_status): New function.
116463         * lib/closeout.h (close_stdout_set_status): Declare.
116465 2000-05-09  Jim Meyering  <meyering@lucent.com>
116467         * m4/gettext.m4: Rename this...
116468         * m4/libintl.m4: ...to this.
116470 2000-05-08  Jim Meyering  <meyering@lucent.com>
116472         * lib/long-options.c: Don't include closeout.h.
116473         (parse_long_options): Don't call close_stdout for --version.
116475 2000-05-06  Paul Eggert  <eggert@twinsun.com>
116477         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
116478         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
116479         2.1.3 bug.  This avoids a clash when files like regex.c define
116480         _GNU_SOURCE.
116482 2000-05-06  Jim Meyering  <meyering@lucent.com>
116484         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
116485         (AC_REPLACE_FUNCS): Add strnlen.
116487         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
116488         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
116490         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
116491         AC_SEARCH_LIBS call for nanosleep.
116492         (LIB_NANOSLEEP): Set and AC_SUBST.
116494 2000-05-06  Jim Meyering  <meyering@lucent.com>
116496         * lib/strnlen.c: Undefine __strnlen and strnlen.
116497         [!weak_alias]: Define __strnlen to strnlen.
116499         * lib/atexit.c: New file, from libiberty.
116501 2000-05-06  Jim Meyering  <meyering@lucent.com>
116503         * lib/closeout.c (close_stdout_status): Also check for errors on the
116504         stderr stream.
116506 2000-05-05  Jim Meyering  <meyering@lucent.com>
116508         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
116509         AC_SEARCH_LIBS call for clock_gettime.
116510         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
116512         * m4/search-libs.m4: Update from autoconf.
116514         su doesn't work on Solaris 2.6.
116515         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
116516         <shadow.h>.  Reported by Dragos Harabor.
116518 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
116520         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
116521         memcpy instead of xmalloc, xrealloc, path_concat.
116522         (locale_charset): Treat empty environment variables as absent.
116523         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
116525 2000-05-04  Jim Meyering  <meyering@lucent.com>
116527         * lib/getopt.c: Update from glibc.
116528         * lib/obstack.c: Likewise.
116529         * lib/obstack.h: Likewise.
116530         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
116531         file
116533         * lib/regex.h: Likewise.
116534         * lib/strndup.c: Likewise.
116535         * lib/strnlen.c: New file, from glibc.
116537 2000-05-03  Jim Meyering  <meyering@lucent.com>
116539         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
116541 2000-05-02  Paul Eggert  <eggert@twinsun.com>
116543         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
116544         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
116545         compile-time test, rather than inspecting host and OS, to
116546         decide whether to define _LARGEFILE_SOURCE.
116548 2000-05-01  Jim Meyering  <meyering@lucent.com>
116550         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
116552         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
116553         Based on a patch from Bruno Haible.
116555 2000-05-01  Jim Meyering  <meyering@lucent.com>
116557         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
116559 2000-04-29  Jim Meyering  <meyering@lucent.com>
116561         * lib/path-concat.c: Declare strdup only if it's not defined.
116562         * lib/canon-host.c: Likewise.
116564 2000-04-28  Jim Meyering  <meyering@lucent.com>
116566         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
116567         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
116568         is included first, then limits.h is included by locale.h by libintl.h.
116569         From John David Anglin.
116571 2000-04-25  Jim Meyering  <meyering@lucent.com>
116573         * lib/makepath.c (S_IRWXUGO): Define.
116574         (make_path): Always perform explicit chmod if MODE specifies any
116575         of the `special' permission bits.  Prompted by a bug report against
116576         install from Mate Wierdl and Joost van Baal.
116578 2000-04-18  Jim Meyering  <meyering@lucent.com>
116580         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
116581         (jm_PREREQ): Use it.
116583 2000-04-18  Jim Meyering  <meyering@lucent.com>
116585         * lib/README: New file.
116587         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
116588         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
116590 2000-04-17  Jim Meyering  <meyering@lucent.com>
116592         Get it right :-)
116593         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
116594         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
116595         Suggestion from Akim Demaille.
116597 2000-04-17  Jim Meyering  <meyering@lucent.com>
116599         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
116600         the definition of it to rpl_strftime also defined-away the system's
116601         declaration.
116603 2000-04-15  Jim Meyering  <meyering@lucent.com>
116605         Use `C' to denote so-called `contiguous' files, the same way
116606         that tar does.
116607         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
116608         (ftypelet): Use S_ISCTG.
116609         From Michael Deutschmann.
116611 2000-04-14  Jim Meyering  <meyering@lucent.com>
116613         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
116614         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
116615         clobbered.
116617 2000-04-14  Jim Meyering  <meyering@lucent.com>
116619         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
116621 2000-04-13  Jim Meyering  <meyering@lucent.com>
116623         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
116624         AH_VERBATIM to insert required #ifndef into config.h.in.
116625         Suggestion from Akim Demaille.
116627 2000-04-12  Jim Meyering  <meyering@lucent.com>
116629         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
116630         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
116631         Christian Krackowizer.
116633         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
116634         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
116635         (AC_SYS_LARGEFILE): Require.
116636         (AM_C_PROTOTYPES): Require.
116638 2000-04-08  Jim Meyering  <meyering@lucent.com>
116640         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
116641         names don't conflict.  Reported by Eli Zaretskii.
116643 2000-04-07  Jim Meyering  <meyering@lucent.com>
116645         * lib/putenv.c: Move inclusion of errno.h so it follows that of
116646         sys/types.h, to work around system header problems on AIX 3.2.5.
116647         From Bruno Haible.
116649 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
116651         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
116652         bug.  Deal with the different error behavior of Irix iconv.
116654 2000-04-05  Paul Eggert  <eggert@twinsun.com>
116656         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
116657         IRIX if the installer said otherwise.
116659 2000-04-05  Jim Meyering  <meyering@lucent.com>
116661         Portability tweaks required for ultrix4.3.
116662         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
116663         (jm_CHECK_DECLS): Add getutent to the list of functions.
116664         (_jm_DECL_HEADERS): Add utmpx.h.
116665         From John David Anglin.
116667         * m4/strftime.m4: Back out the 2000-04-02 change.
116668         Instead of that change, simply undefine putenv in the test program.
116670 2000-04-05  Jim Meyering  <meyering@lucent.com>
116672         Portability tweaks required for ultrix4.3.
116673         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
116674         getutent.
116675         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
116676         * lib/canon-host.c: Declare strdup.
116677         * lib/path-concat.c: Likewise.
116678         From John David Anglin.
116680 2000-04-04  Jim Meyering  <meyering@lucent.com>
116682         Be more DOS 8.3-friendly.
116683         * lib/ref-add.sin: Renamed from ref-add.sed.in.
116684         * lib/ref-del.sin: Renamed from ref-del.sed.in.
116685         * lib/Makefile.am: Reflect renaming.
116686         Reported by Eli Zaretskii.
116688         Use a temporary file name that won't clash with `charset.alias'
116689         in the DOS 8.3 name space.
116690         * lib/Makefile.am (charset_tmp): Define.
116691         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
116692         (uninstall-local): Likewise.
116693         Reported by Eli Zaretskii.
116695 2000-04-03  Jim Meyering  <meyering@lucent.com>
116697         * m4/gettext.m4: Fix typo in comment.
116699         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
116700         textutils/configure.in).  Suggestion from Paul Eggert.
116701         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
116703 2000-04-02  Paul Eggert  <eggert@twinsun.com>
116705         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
116706         variable in the shell rather than using putenv, which isn't
116707         portable.  This avoids the configure-time inter-test dependency
116708         on the potentially-renamed putenv function.
116710 2000-03-30  Paul Eggert  <eggert@twinsun.com>
116712         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
116713         before checking struct stat.st_blksize, so that
116714         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
116716 2000-03-29  Paul Eggert  <eggert@twinsun.com>
116718         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
116719         since strftime.c uses HAVE_STRFTIME to decide whether to use
116720         the underlying strftime.
116722 2000-03-29  Paul Eggert  <eggert@twinsun.com>
116724         * lib/time/strftime.c (my_strftime): Make sure we call the system
116725         strftime, not ourselves, when invoking the underlying strftime.
116727 2000-03-24  Jim Meyering  <meyering@lucent.com>
116729         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
116730         (charset_alias): Define.
116731         (install-exec-local): Factor out common code.
116732         (uninstall-local): Split lines longer than 80.
116733         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
116734         (SUFFIXES): Define.
116735         (.sed.in.sed): New rule.  Don't redirect directly to $@.
116736         (CLEANFILES): Add ref-add.sed and ref-del.sed.
116738 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
116740         * lib/config.charset: Output a line containing "Packages using this
116741         file".
116742         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
116743         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
116744         ref-del.sed): New rules.
116746 2000-03-17  Jim Meyering  <meyering@lucent.com>
116748         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
116749         Otherwise, include <strings.h>
116751 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
116753         * lib/unicodeio.c (utf8_wctomb): New function.
116754         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
116755         format instead of in UCS-4 with platform dependent endianness.
116757 2000-03-10  Jim Meyering  <meyering@lucent.com>
116759         * m4/lib-check.m4: Look for getspnam in -lgen, too.
116760         From Marco Franzen.
116762 2000-03-07  Paul Eggert  <eggert@twinsun.com>
116764         * lib/savedir.c (savedir): Work even if directory size is
116765         negative; this can happen with some screwy NFS configurations.
116767 2000-03-06  Jim Meyering  <meyering@lucent.com>
116769         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
116770         if it's NULL (because we ran out of memory).  From Bruno Haible.
116772 2000-03-05  Jim Meyering  <meyering@lucent.com>
116774         * lib/localcharset.c ("path-concat.h"): Include.
116775         (get_charset_aliases): Use path_concat instead of ANSI string
116776         concatenation.
116778         * lib/unicodeio.h (PARAMS): Define.
116779         Use it to guard prototype.
116781 2000-03-04  Jim Meyering  <meyering@lucent.com>
116783         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
116784         for lib/localcharset.c.
116786 2000-03-04  Jim Meyering  <meyering@lucent.com>
116788         * lib/Makefile.am (install-exec-local): Create $(libdir) before
116789         installing into it.
116790         (uninstall-local): Uncomment this rule so `make distcheck' works
116791         once again.
116793         * lib/unicodeio.c (<errno.h>): Include it.
116794         (errno): Declare if not defined.
116796         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
116798         * lib/config.charset: New version, incorporating remarks from a linux
116799         i18n mailing list.  From Bruno Haible.
116801 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
116803         * m4/codeset.m4: New file.
116804         * m4/iconv.m4: New file.
116805         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
116807 2000-03-03  Jim Meyering  <meyering@lucent.com>
116809         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
116811 2000-03-02  Jim Meyering  <meyering@lucent.com>
116813         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
116814         the messages come out on separate lines.
116816         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
116817         rather than jm_CHECK_DECLARATIONS.
116818         * m4/decl.m4: Remove now-unused file.
116820         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
116821         geteuid.
116823 2000-03-02  Jim Meyering  <meyering@lucent.com>
116825         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
116827 2000-03-01  Jim Meyering  <meyering@lucent.com>
116829         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
116830         * lib/unicodeio.c: Likewise.
116832 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
116834         * lib/config.charset: New file.
116835         * lib/localcharset.c: New file.
116836         * lib/unicodeio.h, lib/unicodeio.c: New files.
116837         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
116838         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
116839         (noinst_HEADERS): Add unicodeio.h.
116840         (all-local, install-exec-local, charset.alias): New targets.
116842 2000-02-28  Paul Eggert  <eggert@twinsun.com>
116844         * lib/quotearg.c (ALERT_CHAR): New macro.
116845         (quotearg_buffer_restyled): Use it.
116847 2000-02-27  Jim Meyering  <meyering@lucent.com>
116849         * m4/check-decl.m4: Add getenv to the list.
116851 2000-02-27  Jim Meyering  <meyering@lucent.com>
116853         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
116854         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
116856         * lib/backupfile.c: Guard inclusion of stdlib.h with
116857         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
116858         Declare malloc if needed.
116860         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
116861         `#ifndef HAVE_DECL..'
116862         now that autoconf always defines the HAVE_DECL_ symbols.
116863         * lib/human.c: Likewise.
116864         * lib/same.c: Likewise.
116865         * lib/strtoumax.c: Likewise.
116867         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
116868         declaration check was not run.
116869         * lib/hash.c: Likewise.
116870         * lib/human.c: Likewise.
116871         * lib/same.c: Likewise.
116872         * lib/strtoumax.c: Likewise.
116874         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
116875         `.', then first look up the entire `.'-containing string as a login
116876         name.
116878 2000-02-23  Jim Meyering  <meyering@lucent.com>
116880         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
116881         in place of my hack.
116883 2000-02-18  Paul Eggert  <eggert@twinsun.com>
116885         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
116886         (textint): New typedef.
116887         (parser_control): Member year changed from int to textint.
116888         All uses changed.
116889         (YYSTYPE): Removed; replaced by %union with int and textint members.
116890         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
116891         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
116892         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
116893         (tSNUMBER, tUNUMBER): Now of type <textintval>.
116894         (date, number, to_year): Use width of number in digits, not its value,
116895         to determine whether it's a 2-digit year, or a 2-digit time.
116896         (yylex): Store number of digits of numeric tokens.
116897         Reported by John Kendall.
116899         (parser_control): Changed from struct parser_control to typedef (for
116900         consistency).  All uses changed.
116902         (tID): Removed; not used.
116903         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
116905 2000-02-14  Paul Eggert  <eggert@twinsun.com>
116907         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
116908         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
116910 2000-02-12  Jim Meyering  <meyering@lucent.com>
116912         * lib/userspec.c (ISDIGIT): Define it.
116913         (isdigit): Remove definition.
116914         (is_number): Use ISDIGIT, not isdigit.
116915         <libintl.h>: Include.
116916         (_ and N_): Define.
116917         (parse_user_spec): Mark translatable strings.
116919 2000-02-10  Jim Meyering  <meyering@lucent.com>
116921         With these changes, nanosleep.[ch] are finally enough like the other
116922         lib/* replacement files to compile on a few more losing systems.
116924         * lib/nanosleep.h: Don't include config.h.
116925         Remove prototype from declaration of nanosleep.
116926         (PARAMS): Remove now-unneeded definition.
116927         * lib/nanosleep.c: #undef nanosleep.
116928         (rpl_nanosleep): Rename from nanosleep.
116930 2000-02-10  Jim Meyering  <meyering@lucent.com>
116932         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
116933         gnu_nanosleep to rpl_nanosleep.
116935 2000-02-09  Jim Meyering  <meyering@lucent.com>
116937         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
116938         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
116940 2000-02-08  Akim Demaille  <akim@epita.fr>
116942         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
116943         `[' and `]' and remove uses of `changequote'.
116944         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
116945         (AC_SYS_LARGEFILE): Likewise.
116946         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
116947         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
116948         of changequote.
116949         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
116950         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
116951         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
116952         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
116954 2000-02-05  Jim Meyering  <meyering@lucent.com>
116956         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
116957         Remove explicit use of AC_HEADER_TIME.  It is required by
116958         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
116959         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
116960         in autoconf whereby the expansion of the latter ended up preceding
116961         the expansion of its prerequisite, AC_HEADER_TIME.
116962         Reported by Volker Borchert.
116964 2000-02-03  Jim Meyering  <meyering@lucent.com>
116966         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
116968 2000-02-03  Jim Meyering  <meyering@lucent.com>
116970         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
116971         rather than with `#if HAVE_UTMPNAME'.
116973 2000-02-02  Jim Meyering  <meyering@lucent.com>
116975         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
116976         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
116977         Reported by Eli Zaretskii.
116979 2000-02-01  Jim Meyering  <meyering@lucent.com>
116981         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
116983 2000-01-31  Jim Meyering  <meyering@lucent.com>
116985         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
116986         functions.  Add the time.h and sys/time.h headers along with the
116987         AC_REQUIRE'ment of AC_HEADER_TIME.
116989 2000-01-31  Jim Meyering  <meyering@lucent.com>
116991         * lib/nanosleep.h (nanosleep): Guard declaration with
116992         `#if ! HAVE_DECL_NANOSLEEP'.
116993         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
116994         the declaration in that vendor's sys/timers.h.
116995         Reported by Christian Krackowizer.
116997         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
116998         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
116999         (ISPRINT): Likewise.
117000         Reported by Tom Tromey.
117002 2000-01-30  Jim Meyering  <meyering@lucent.com>
117004         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
117006         * m4/prereq.m4 (utmp_includes): Define.
117007         Check for ut_user and ut_name members in both struct utmpx
117008         and struct utmp.
117010 2000-01-30  Jim Meyering  <meyering@lucent.com>
117012         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
117013         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
117014         header files where only utmpx.ut_user is declared.
117016         * lib/readutmp.h (UT_USER): Define.
117018 2000-01-29  Jim Meyering  <meyering@lucent.com>
117020         * m4/lib-check.m4: New file containing library-related checks from
117021         fileutils and sh-utils (textutils had none).
117023 2000-01-28  Jim Meyering  <meyering@lucent.com>
117025         * m4/perl.m4: Change format of warning message to look more like that
117026         from the missing script.  Suggestion from François Pinard.
117028 2000-01-25  Jim Meyering  <meyering@lucent.com>
117030         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
117031         well as time.h in the compile check.
117032         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
117033         Fix typo in cross-compiling case: s/yes/no/.
117035 2000-01-23  Jim Meyering  <meyering@lucent.com>
117037         * m4/jm-macros.m4: Move df-related tests here from
117038         fileutils/configure.in
117040         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
117041         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
117043         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
117044         s/space/ac_fsusage_space/.
117045         (jm_FILE_SYSTEM_USAGE): Take two parameters.
117047         * m4/ftruncate.m4: New file (derived from part of
117048         fileutils/configure.in).
117049         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
117050         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
117052         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
117053         AC_SUBST these here, rather than just in sh-util/configure.in, so
117054         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
117055         all the same.
117056         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
117057         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
117058         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
117059         (AC_SUBST(POW_LIBM)): Likewise.
117060         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
117062 2000-01-23  Jim Meyering  <meyering@lucent.com>
117064         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
117065         obstack.c.
117067 2000-01-22  Jim Meyering  <meyering@lucent.com>
117069         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
117071         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
117073         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
117074         configure.in
117075         (AC_CHECK_HEADERS): Likewise for sh-utils.
117076         (AC_CHECK_HEADERS): Likewise for textutils.
117077         Merge the three lists of headers.
117079         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
117080         from fileutils' configure.in.
117082         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
117083         code. Moved tests into their own function (_jm_DECL_HEADERS) in
117084         check-decl.m4.
117086         * m4/check-decl.m4: Use #if rather than #ifdef.
117087         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
117088         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
117089         (_jm_DECL_HEADERS): Define new function.
117090         (jm_CHECK_DECLARATIONS): Require it.
117092 2000-01-22  Jim Meyering  <meyering@lucent.com>
117094         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
117095         [! HAVE_DECL_STRTOULL]: Declare strtoull.
117096         Required for some AIX systems.  Reported by Christian Krackowizer.
117097         [TESTING] (main): New function.
117099         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
117100         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
117101         letters.
117103         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
117104         iswprint.
117106         * lib/strverscmp.c (ISDIGIT): Define.
117107         (strverscmp): Use ISDIGIT, not isdigit.
117109 2000-01-19  Jim Meyering  <meyering@lucent.com>
117111         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
117112         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
117113         defines `struct timespec' in <sys/time.h>
117115         * m4/c-bs-a.m4: Remove uses of changequote altogether.
117116         Thanks to Akim for explaining.
117118 2000-01-17  Paul Eggert  <eggert@twinsun.com>
117120         * lib/nanosleep.c (nanosleep):
117121         Don't use SA_INTERRUPT to decide whether to call sigaction, as
117122         POSIX.1 doesn't require SA_INTERRUPT and some systems
117123         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
117124         it's been part of POSIX.1 since day 1 (in 1988).
117126 2000-01-17  Jim Meyering  <meyering@lucent.com>
117128         * lib/interlock: Remove unused file.  Reported by François Pinard.
117130 2000-01-16  Paul Eggert  <eggert@twinsun.com>
117132         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
117133         alert, backslash, formfeed, and vertical tab unnecessarily in
117134         shell quoting style.
117136 2000-01-16  Jim Meyering  <meyering@lucent.com>
117138         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
117139         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
117140         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
117141         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
117143 2000-01-16  Jim Meyering  <meyering@lucent.com>
117145         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
117146         because the latter didn't work.
117148 2000-01-15  Jim Meyering  <meyering@lucent.com>
117150         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
117151         (AC_REPLACE_FUNCS): Add memcpy and memset.
117152         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
117153         Add strpbrk.
117154         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
117156 2000-01-12  Jim Meyering  <meyering@lucent.com>
117158         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
117159         (jm_PREREQ): Use it.
117160         (jm_PREREQ_READUTMP): New macro.
117161         (jm_PREREQ): Use it.
117163 2000-01-11  Paul Eggert  <eggert@twinsun.com>
117165         Quote multibyte characters correctly.
117166         * m4/c-bs-a.m4: New file.
117167         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
117168         (jm_PREREQ): Use it.
117170 2000-01-11  Paul Eggert  <eggert@twinsun.com>
117172         * m4/uintmax_t.m4: Port to autoconf 2.13.
117174 2000-01-08  Jim Meyering  <meyering@ascend.com>
117176         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
117177         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
117179 2000-01-04  Jim Meyering  <meyering@ascend.com>
117181         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
117182         jm_STRUCT_DIRENT_D_TYPE.
117183         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
117184         jm_STRUCT_DIRENT_D_INO.
117185         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
117186         jm_STRUCT_UTIMBUF.
117187         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
117188         renamings.
117189         * m4/utime.m4: Likewise.
117191         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
117192         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
117194 2000-01-03  Paul Eggert  <eggert@twinsun.com>
117196         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
117197         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
117199 2000-01-02  Jim Meyering  <meyering@ascend.com>
117201         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
117202         remember if this is necessary.
117204 1999-12-26  Jim Meyering  <meyering@ascend.com>
117206         * m4/jm-macros.m4: Use it here.
117207         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
117209 1999-12-23  Jim Meyering  <meyering@ascend.com>
117211         * m4/jm-macros.m4: Check for clock_gettime (moved from
117212         fileutils/configure.in)
117213         Check for gettimeofday.
117215 1999-12-20  Jim Meyering  <meyering@ascend.com>
117217         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
117218         autoconf-2.14a-1999-12-20.
117220 1999-12-19  Jim Meyering  <meyering@ascend.com>
117222         * m4/lstat-slash.m4: New file.
117223         * m4/jm-macros.m4: Use the new macro:
117224         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117226 1999-12-07  Jim Meyering  <meyering@ascend.com>
117228         * m4/perl.m4: Require that File::Compare be available, too.
117229         Too many systems seem to lack it.
117231         * m4/strftime.m4: Add checks for most of the cpp macros tested in
117232         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
117234 1999-11-18  Paul Eggert  <eggert@twinsun.com>
117236         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
117237         problem with the QNX 4.25 shell, which doesn't propagate exit
117238         status of failed commands inside shell assignments.
117240 1999-11-17  Jim Meyering  <meyering@ascend.com>
117242         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
117244 1999-11-07  Jim Meyering  <meyering@ascend.com>
117246         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
117248 1999-11-06  Jim Meyering  <meyering@ascend.com>
117250         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
117251         * m4/jm-macros.m4 (jm_MACROS): Use it here.
117253 1999-11-05  Jim Meyering  <meyering@ascend.com>
117255         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
117256         configure.in of textutils, fileutils, and sh-utils into this one
117257         (shared between those packages) file.
117258         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
117259         AC_STRUCT_ST_BLKSIZE.
117261 1999-11-03  Jim Meyering  <meyering@ascend.com>
117263         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
117264         of AC_CHECK_TYPE checks includes unistd.h.
117265         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
117266         Suggestion from Akim Demaille.
117268 1999-10-30  Jim Meyering  <meyering@ascend.com>
117270         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
117271         m4-quoted string.
117272         * m4/ls-mntd-fs.m4: Likewise.
117273         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
117274         * m4/jm-winsz1.m4: Likewise.
117276         * m4/const.m4: Remove file, since the fix made it into the experimental
117277         version of autoconf.
117278         * m4/mktime.m4: Likewise.
117280         * m4/check-type.m4: Remove file, now that the latest version of
117281         AC_CHECK_TYPE takes a third arg to specify additional #includes.
117283         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
117284         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
117285         AC_CHECK_TYPE.
117287 1999-10-04  Jim Meyering  <meyering@ascend.com>
117289         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
117291 1999-09-22  Paul Eggert  <eggert@twinsun.com>
117293         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
117294         2.95.1 bug with HP-UX 10.20.
117296 1999-09-17  Jim Meyering  <meyering@ascend.com>
117298         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
117299         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
117300         due to missing strdup (against sh-utils-2.0).
117302 1999-08-29  Jim Meyering  <meyering@ascend.com>
117304         * m4/jm-macros.m4: Require jm_BISON.
117305         * m4/bison.m4: New file.
117307 1999-08-17  Paul Eggert  <eggert@twinsun.com>
117309         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
117310         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
117312 1999-08-05  Jim Meyering  <meyering@ascend.com>
117314         * m4/getline.m4: Rename test file from conftestdata to conftest.data
117315         to avoid conflicts with `conftest' on 8+3 filesystems.
117316         Suggestion from Eli Zaretskii.
117318 1999-08-04  Jim Meyering  <meyering@ascend.com>
117320         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
117321         fileutils and sh-utils (textutils's getline test was inadequate).
117322         (AM_FUNC_GETLINE): Run this test.
117323         (AC_CHECK_FUNCS): Check for getdelim.
117324         Reported by Bob Proulx.
117326 1999-08-02  Jim Meyering  <meyering@ascend.com>
117328         * m4/jm-macros.m4: Add a comment.
117330 1999-08-01  Paul Eggert  <eggert@twinsun.com>
117332         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
117333         <inttypes.h> defines strtoumax as a macro (and not as a
117334         function).
117336 1999-08-01  Paul Eggert  <eggert@twinsun.com>
117338         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
117339         that we can shift, multiply and divide unsigned long long
117340         values; Ultrix cc can't do it.
117342 1999-08-01  Paul Eggert  <eggert@twinsun.com>
117344         * m4/mktime.m4: New file, which is a preview of what should appear
117345         in the next public autoconf release.
117347 1999-08-01  Paul Eggert  <eggert@twinsun.com>
117349         * m4/lfs.m4: Remove this file.
117350         * m4/largefile.m4: New file.  It contains the old contents of
117351         lfs.m4, except that all names with prefix AC_LFS have been
117352         changed to use the prefix AC_SYS_LARGEFILE instead, to be
117353         compatible with future autoconf versions.  Also, some minor m4
117354         quoting problems have been fixed.
117356 1999-08-01  Paul Eggert  <eggert@twinsun.com>
117358         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
117359         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
117360         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
117361         and simplify the shell code.
117363 1999-08-01  Jim Meyering  <meyering@ascend.com>
117365         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
117366         m4.
117368 1999-07-20  Jim Meyering  <meyering@ascend.com>
117370         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
117372 1999-07-15  Jim Meyering  <meyering@ascend.com>
117374         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
117376 1999-05-22  Jim Meyering  <meyering@ascend.com>
117378         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
117380 1999-05-20  Jim Meyering  <meyering@ascend.com>
117382         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
117383         Add a colon after each `then' in case $4 is empty.
117385 1999-05-16  Jim Meyering  <meyering@ascend.com>
117387         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
117389 1999-05-10  Jim Meyering  <meyering@ascend.com>
117391         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
117393         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
117394         AC_FUNC_MKTIME.
117396 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
117398         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
117400 1999-05-04  Paul Eggert  <eggert@twinsun.com>
117402         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
117403         not CPPFLAGS, so that linking works correctly in IRIX.
117405 1999-04-30  Paul Eggert  <eggert@twinsun.com>
117407         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
117409 1999-04-20  Paul Eggert  <eggert@twinsun.com>
117411         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
117412         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
117413         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
117414         jm_AC_TYPE_UNSIGNED_LONG_LONG.
117415         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
117417         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
117419 1999-04-20  Jim Meyering  <meyering@ascend.com>
117421         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
117422         AC_REPLACE xstroull if necessary.  From Paul Eggert.
117423         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
117425 1999-04-18  Jim Meyering  <meyering@ascend.com>
117427         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
117428         * m4/jm-macros.m4: Use it.
117430 1999-04-06  Jim Meyering  <meyering@ascend.com>
117432         * m4/strftime.m4: Remove test for %f.
117434 1999-03-29  Jim Meyering  <meyering@ascend.com>
117436         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
117437         superset of the AC_TYPE_* checks in the textutils, fileutils,
117438         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
117439         AC_TYPE_PID_T.
117441 1999-03-28  Jim Meyering  <meyering@ascend.com>
117443         * m4/jm-macros.m4: Define GNU_PACKAGE here.
117444         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
117445         replaced e.g., in the *.sh files of the sh-utils.
117447 1999-03-20  Jim Meyering  <meyering@ascend.com>
117449         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
117450         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
117451         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
117453 1999-03-19  Jim Meyering  <meyering@ascend.com>
117455         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
117457 1999-03-12  Jim Meyering  <meyering@ascend.com>
117459         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
117461 1999-03-07  Jim Meyering  <meyering@ascend.com>
117463         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
117464         declared.
117466 1999-02-17  Jim Meyering  <meyering@ascend.com>
117468         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
117469         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
117471 1999-02-07  Jim Meyering  <meyering@ascend.com>
117473         * m4/group-member.m4: New file -- extracted from sh-utils'
117474         configure.in.
117476         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
117477         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
117479 1999-02-06  Jim Meyering  <meyering@ascend.com>
117481         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
117482         * m4/fnmatch.m4: Likewise.
117483         * m4/getgroups.m4: Likewise.
117484         * m4/lstat.m4: Likewise.
117485         * m4/malloc.m4: Likewise.
117486         * m4/putenv.m4: Likewise.
117487         * m4/realloc.m4: Likewise.
117488         * m4/regex.m4: Likewise.
117489         * m4/stat.m4: Likewise.
117490         * m4/strftime.m4: Likewise.
117491         Suggestion from Alain Magloire.
117493         * m4/chown.m4: Use `.$ac_objext', not `.o'.
117494         * m4/fnmatch.m4: Likewise.
117495         * m4/getgroups.m4: Likewise.
117496         * m4/getline.m4: Likewise.
117497         * m4/lstat.m4: Likewise.
117498         * m4/malloc.m4: Likewise.
117499         * m4/memcmp.m4: Likewise.
117500         * m4/putenv.m4: Likewise.
117501         * m4/realloc.m4: Likewise.
117502         * m4/regex.m4: Likewise.
117503         * m4/stat.m4: Likewise.
117504         * m4/strftime.m4: Likewise.
117505         Suggestion from Alain Magloire.
117507         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
117508         an argument.
117510         * m4/regex.m4: Add a run-time Test for proper operation of
117511         re_compile_pattern.
117513 1999-01-31  Jim Meyering  <meyering@ascend.com>
117515         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
117517 1999-01-30  Jim Meyering  <meyering@ascend.com>
117519         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
117521         * m4/jm-mktime.m4: Make this a wrapper around the official
117522         AM_FUNC_MKTIME rather than my private copy, now that the official one
117523         is up to date.
117524         * m4/mktime.m4: Remove file.
117526         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
117527         * m4/uptime.m4: Likewise.
117528         * m4/uintmax_t.m4: Likewise.
117530 1999-01-28  Jim Meyering  <meyering@ascend.com>
117532         * m4/jm-macros.m4: Use jm_AFS.
117533         * m4/afs.m4: New file (from fileutils' configure.in).
117535         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
117536         * m4/chown.m4: Likewise.
117537         * m4/d-ino.m4: Likewise.
117538         * m4/d-type.m4: Likewise.
117539         * m4/fnmatch.m4: Likewise.
117540         * m4/getgroups.m4: Likewise.
117541         * m4/gettext.m4: Likewise.
117542         * m4/jm-mktime.m4: Likewise.
117543         * m4/jm-winsz2.m4: Likewise.
117544         * m4/lcmessage.m4: Likewise.
117545         * m4/ls-mntd-fs.m4: Likewise.
117546         * m4/malloc.m4: Likewise.
117547         * m4/memcmp.m4: Likewise.
117548         * m4/putenv.m4: Likewise.
117549         * m4/realloc.m4: Likewise.
117550         * m4/st_mtim.m4: Likewise.
117551         * m4/strftime.m4: Likewise.
117553 1999-01-16  Jim Meyering  <meyering@ascend.com>
117555         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
117556         (ARGMATCH_DIE_DECL): Define.
117558 1999-01-12  Jim Meyering  <meyering@ascend.com>
117560         * m4/Makefile.am.in: Rewrite to avoid using fmt.
117561         Reported by Lars Hecking.
117563 1999-01-10  Jim Meyering  <meyering@ascend.com>
117565         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
117566         gross kludge.
117567         * m4/inttypes_h.m4: Likewise.
117568         * m4/lstat.m4: Likewise.
117569         * m4/malloc.m4: Likewise.
117570         * m4/readdir.m4: Likewise.
117571         * m4/realloc.m4: Likewise.
117572         * m4/st_dm_mode.m4: Likewise.
117573         * m4/stat.m4: Likewise.
117574         * m4/utimbuf.m4: Likewise.
117575         * m4/utimes.m4: Likewise.
117577         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
117578         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
117579         comments in config.h.in are meaningful.
117581         * m4/jm-macros.m4: Require autoconf-2.13 here.
117583         * m4/regex.m4: By default, don't use the included regex.c on systems
117584         with glibc 2.  Suggestion from Uli Drepper.
117586 1999-01-02  Jim Meyering  <meyering@ascend.com>
117588         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
117590 1998-12-18  Jim Meyering  <meyering@ascend.com>
117592         * m4/Makefile.am.in (Makefile.am): Simplify rule.
117593         Based on a suggestion from Lars Hecking.
117595 1998-11-16  Paul Eggert  <eggert@twinsun.com>
117597         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
117599 1998-11-16  Jim Meyering  <meyering@ascend.com>
117601         * m4/lfs.m4: Double-quote the `uname...` expression.
117603 1998-11-14  Jim Meyering  <meyering@ascend.com>
117605         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
117606         * m4/stat.m4: Likewise.
117608 1998-11-03  Jim Meyering  <meyering@ascend.com>
117610         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
117611         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
117613 1998-10-18  Jim Meyering  <meyering@ascend.com>
117615         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
117617 1998-10-17  Jim Meyering  <meyering@ascend.com>
117619         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
117620         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
117621         calls for those previously hard-coded headers.  Instead, take a new
117622         parameter.
117623         (jm_CHECK_DECLARATIONS): Reflect interface change.
117624         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
117625         (jm_CHECK_DECL_LOCALTIME_R): New macro.
117627         * m4/mktime.m4: Test for spring-forward gap before long-running test.
117629 1998-10-14  Jim Meyering  <meyering@ascend.com>
117631         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
117632         instead of "TZ=America/Vancouver".  From Paul Eggert.
117634 1998-10-11  Jim Meyering  <meyering@ascend.com>
117636         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
117637         This adds a test for a recently added compatibility fix for mktime.c.
117638         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
117640 1998-09-27  Jim Meyering  <meyering@ascend.com>
117642         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
117644         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
117645         ../configure.in, including a change from Gordon Matzigkeit to allow
117646         cross-compiling for the Hurd.
117648         * m4/glibc.m4: New file/macro to test for the GNU C Library
117649         versions 1 and 2.  From Gordon Matzigkeit.
117650         Indent.
117652 1998-09-21  Jim Meyering  <meyering@ascend.com>
117654         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
117656 1998-08-18  Paul Eggert  <eggert@twinsun.com>
117658         Port nanosecond-resolution times to UnixWare 2.1.2 and
117659         pedantic Solaris 2.6.
117661         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
117662         AC_STRUCT_ST_MTIM.
117663         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
117664         Generate name of ns member, instead of just 1 or undef.
117665         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
117667 1998-08-15  Jim Meyering  <meyering@ascend.com>
117669         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
117670         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
117671         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
117672         instead of jm_TYPE_SSIZE_T.
117674 1998-08-12  Jim Meyering  <meyering@ascend.com>
117676         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
117678 1998-08-02  Jim Meyering  <meyering@ascend.com>
117680         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
117681         in acconfig.h manually.
117683 1998-07-31  Paul Eggert  <eggert@twinsun.com>
117685         * m4/st_mtim.m4: New file.
117687 1998-07-28  Jim Meyering  <meyering@ascend.com>
117689         * m4/utimes.m4: Undef stat.
117691 1998-07-25  Jim Meyering  <meyering@ascend.com>
117693         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
117694         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
117696 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
117698         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
117699         uid and gid actually remain unchanged.
117701 1998-07-07  Jim Meyering  <meyering@ascend.com>
117703         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
117705 1998-07-04  Jim Meyering  <meyering@ascend.com>
117707         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
117708         to prove that this macro can be used in packages without regex.c.
117710 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
117712         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
117713         is to be used.
117715 1998-07-03  Jim Meyering  <meyering@ascend.com>
117717         * m4/gettext.m4: Add -lintl if it's found to be necessary.
117719         * m4/gettext.m4: New file -- from gettext-0.10.35.
117720         * m4/lcmessage.m4: Likewise.
117721         * m4/progtest.m4: Likewise.
117723         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
117724         * m4/jm-macros.m4: Require the new macro.
117726 1998-06-29  Jim Meyering  <meyering@ascend.com>
117728         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
117729         for the definition of NGROUPS (used in a system header included
117730         by sys/mount.h).
117732 1998-06-28  Jim Meyering  <meyering@ascend.com>
117734         * m4/ls-mntd-fs.m4: New file.
117735         * m4/fstypename.m4: New file.
117737         * m4/jm-macros.m4: Require the new macro.
117738         * m4/jm-glibc-io.m4: New file.
117740 1998-05-19  Jim Meyering  <meyering@ascend.com>
117742         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
117743         * m4/lchown.m4: New file.
117745         * m4/Makefile.am.in: New file.
117746         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
117748 1998-05-14  Jim Meyering  <meyering@ascend.com>
117750         * m4/Makefile.am (EXTRA_DIST): Add them.
117751         * m4/jm-macros.m4: New file.
117752         * m4/utimbuf.m4: New file.
117754 1998-05-12  Jim Meyering  <meyering@ascend.com>
117756         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
117758 1998-05-11  Jim Meyering  <meyering@ascend.com>
117760         * m4/isc-posix.m4: New file.
117762 1998-05-10  Jim Meyering  <meyering@ascend.com>
117764         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
117766 1998-05-09  Jim Meyering  <meyering@ascend.com>
117768         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
117769         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
117770         with automake.
117772         * m4/ssize_t.m4: New file.
117773         * m4/mktime.m4: Remove file -- the new automake has this now.
117775 1998-04-26  Jim Meyering  <meyering@ascend.com>
117777         * m4/assert.m4: New file.
117778         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
117780 1998-04-05  Jim Meyering  <meyering@ascend.com>
117782         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
117783         (jm_PREREQ): Use it here.
117785 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
117787         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
117788         in acconfig.h.
117790 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
117792         * m4/prereq.m4: New file.
117793         * m4/error.m4: New file.
117794         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
117796 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
117798         * m4/getline.m4: Don't set am_cv_func_working_getline before the
117799         cache-check for the same variable -- that defeated the purpose of
117800         the test; the test program was never run.  This was a problem only
117801         on systems with losing getline functions -- HP-UX 10.20 is one.
117802         Reported by Bjorn Helgaas.
117804 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
117806         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
117808 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
117810         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
117812         * m4/const.m4: New file.  Use an initializer in this declaration
117813         typedef int charset[2]; const charset x;
117814         Reported by Bob Glickstein.
117816 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
117818         * m4/chown.m4: Fix reversed types on -1 args to chown.
117819         From Kaveh Ghazi.
117821 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
117823         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
117824         Add lseek and memchr.
117826         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
117827         T.E.Dickey <dickey@clark.net> said that some older preprocessors
117828         have a 20-character limit on names.
117830 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
117832         * m4/inttypes_h.m4: New file.
117833         * m4/uintmax_t.m4: New file.
117834         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
117837         -----
117839         Local Variables:
117840         coding: utf-8
117841         End:
117843         Copyright (C) 1997-2018 Free Software Foundation, Inc.
117845         Copying and distribution of this file, with or without
117846         modification, are permitted provided the copyright notice
117847         and this notice are preserved.